[svn r18495] configure home page portal buttons bar

skala
Juan Carlos Raña 17 years ago
parent afa8098802
commit 536fbf3666
  1. 9
      main/admin/configure_homepage.php
  2. 31
      main/inc/lib/fckeditor/myconfig.js

@ -1,4 +1,4 @@
<?php // $Id: configure_homepage.php 18298 2009-02-06 20:54:11Z juliomontoya $
<?php // $Id: configure_homepage.php 18495 2009-02-13 19:03:28Z herodoto $
/*
===== =========================================================================
Dokeos - elearning and course management software
@ -679,7 +679,7 @@ switch($action){
Display::display_normal_message($errorMsg); //main API
}
$fck_attribute['ToolbarSet'] = "Small";
$fck_attribute['ToolbarSet'] = "LinksHomePage";
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
@ -724,7 +724,6 @@ switch($action){
if ($action == 'edit_link' && (empty($link_url) || $link_url == 'http://'))
{
$form->addElement('html', '</table><table border="0" cellpadding="5" cellspacing="0" width="100%"><tr><td>');
$form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
$form->addElement('html', '</td></tr><tr><td>');
if (api_get_setting('wcag_anysurfer_public_pages')=='true')
{
@ -771,7 +770,7 @@ switch($action){
Display::display_normal_message($errorMsg); //main API
}
$fck_attribute['ToolbarSet'] = "Full";
$fck_attribute['ToolbarSet'] = "EditHomePage";
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
@ -783,7 +782,7 @@ switch($action){
$renderer->setElementTemplate('<tr><td>{element}</td></tr>');
$renderer->setRequiredNoteTemplate('');
$form->addElement('hidden', 'formSent', '1');
$form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
if($action == 'edit_news'){
$_languages=api_get_languages();
$html = '<tr><td>'.get_lang('ChooseNewsLanguage').' : ';

@ -35,8 +35,37 @@ FCKConfig.ToolbarSets["Middle"] = [
FCKConfig.ToolbarSets["Small"] = [
['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table']
] ;//used by test ?
////
///// admin tools /////
//Edit platform home page
FCKConfig.ToolbarSets["EditHomePage"] = [
['NewPage','Templates','Save','Print','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Link','Unlink','Anchor'],
['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
['FontFormat','FontName','FontSize'],
['Bold','Italic','Underline','StrikeThrough'],
['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
['Source']
] ;
//Insert or Edit a page link in platform home page
FCKConfig.ToolbarSets["LinksHomePage"] = [
['NewPage','Templates','Save','Print','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Link','Unlink','Anchor'],
['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
['FontFormat','FontName','FontSize'],
['Bold','Italic','Underline','StrikeThrough'],
['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
['Source']
] ;
///// users tools /////
FCKConfig.ToolbarSets["Profil"] = [
['FitWindow','PasteWord','Undo','Redo'],
['Link','Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','Table','googlemaps'],
@ -49,6 +78,8 @@ FCKConfig.ToolbarSets["Messages"] = [
['Bold','Italic','Underline','OrderedList','UnorderedList','TextColor','-','Source']
] ;
///// course tools /////
//Course introduction
FCKConfig.ToolbarSets["Introduction"] = [
['NewPage','Templates','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],

Loading…
Cancel
Save