diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php index 6261e9476e..d78ad838dc 100644 --- a/main/announcements/announcements.php +++ b/main/announcements/announcements.php @@ -1,4 +1,4 @@ -'; '; -// The settings here for the online editor are needed and they are specific for the introduction section. -// Please, preserve them. +// Tool introduction $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; $fck_attribute['ToolbarSet'] = 'Introduction'; - Display::display_introduction_section(TOOL_BLOG); - $fck_attribute = null; // Clearing this global variable immediatelly after it has been used. //Display::display_header($nameTools,'Blogs'); diff --git a/main/calendar/agenda.php b/main/calendar/agenda.php index 035fcfb4a5..b38fac9e36 100644 --- a/main/calendar/agenda.php +++ b/main/calendar/agenda.php @@ -1,4 +1,4 @@ -'.api_display_tool_title($nameTools) . ''; + /* ----------------------------------------------------------- Introduction section (editable by course admins) ----------------------------------------------------------- */ - -// The settings here for the online editor are needed and they are specific for the introduction section. -// Please, preserve them. $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; $fck_attribute['ToolbarSet'] = 'Introduction'; @@ -188,9 +186,7 @@ $fck_attribute['ToolbarSet'] = 'Introduction'; $fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/'; $fck_attribute['Config']['CreateDocumentDir'] = 'document/'; $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/'; - Display::display_introduction_section(TOOL_COURSE_HOMEPAGE); - $fck_attribute = null; // Clearing this global variable immediatelly after it has been used. /* diff --git a/main/document/document.php b/main/document/document.php index e9e091eaf4..1d03e7fb10 100644 --- a/main/document/document.php +++ b/main/document/document.php @@ -1,4 +1,4 @@ -'; -// tool introduction - -// The settings here for the online editor are needed and they are specific for the introduction section. -// Please, preserve them. +// Tool introduction $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; $fck_attribute['ToolbarSet'] = 'Introduction'; - Display::display_introduction_section(TOOL_FORUM,'left'); - $fck_attribute = null; // Clearing this global variable immediatelly after it has been used. $form_count=0; diff --git a/main/glossary/index.php b/main/glossary/index.php index 890030ba29..19ec57386e 100755 --- a/main/glossary/index.php +++ b/main/glossary/index.php @@ -34,20 +34,14 @@ event_access_tool(TOOL_GLOSSARY); // displaying the header Display::display_header(get_lang(ucfirst($tool))); -// tool introduction - -// The settings here for the online editor are needed and they are specific for the introduction section. -// Please, preserve them. +// Tool introduction $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; $fck_attribute['ToolbarSet'] = 'Introduction'; - Display::display_introduction_section(TOOL_GLOSSARY,'left'); - $fck_attribute = null; // Clearing this global variable immediatelly after it has been used. // Glossary FckEditor setting - $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '400'; $fck_attribute['ToolbarSet'] = 'Glossary'; diff --git a/main/gradebook/index.php b/main/gradebook/index.php index 2dd9341ee2..48a6989320 100755 --- a/main/gradebook/index.php +++ b/main/gradebook/index.php @@ -71,8 +71,6 @@ if (isset($_GET['isStudentView'])) { if ( (isset($_GET['selectcat']) && $_GET['selectcat']>0) && (isset($_SESSION['studentview']) && $_SESSION['studentview']=='studentview') ) { Display :: display_header(get_lang('Details')); - // The settings here for the online editor are needed and they are specific for the introduction section. - // Please, preserve them. //Introduction tool: student view $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; @@ -98,8 +96,6 @@ if ( (isset($_GET['selectcat']) && $_GET['selectcat']>0) && (isset($_SESSION['st // if ( !isset($_GET['selectcat']) && ($_SESSION['studentview']=='studentview') && ($status<>1 && !api_is_platform_admin()) || (isset($_GET['isStudentView']) && $_GET['isStudentView']=='true' && $status<>1 && !api_is_platform_admin()) ) { Display :: display_header(get_lang('Gradebook')); - // The settings here for the online editor are needed and they are specific for the introduction section. - // Please, preserve them. //Introduction tool: student view $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; @@ -750,8 +746,7 @@ if (api_is_platform_admin() || api_is_allowed_to_create_course() || $status==1) ----------------------------------------------------------- */ - // The settings here for the online editor are needed and they are specific for the introduction section. - // Please, preserve them. + // Tool introduction $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; $fck_attribute['ToolbarSet'] = 'Gradebook'; diff --git a/main/group/group.php b/main/group/group.php index 0bf80e88c4..f68d1d7c01 100644 --- a/main/group/group.php +++ b/main/group/group.php @@ -1,4 +1,4 @@ -'.get_lang('Search').''; - // introduction section - - // The settings here for the online editor are needed and they are specific for the introduction section. - // You may test and modify them, but please, don't delete them. - $fck_attribute['Width'] = '100%'; + + // Tool introduction + $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; $fck_attribute['ToolbarSet'] = 'Introduction'; // TODO: Settings for the FCKEditor to be checked (insert an image for example). Probably this is a special case here. @@ -329,7 +327,8 @@ function search_widget_show($action='index.php') { Display::display_introduction_section(TOOL_SEARCH,'left'); } $fck_attribute = null; // Clearing this global variable immediatelly after it has been used. - + + $op = 'or'; if (!empty($_REQUEST['operator']) && in_array($op,array('or','and'))) { $op = $_REQUEST['operator']; diff --git a/main/link/link.php b/main/link/link.php index 8ecd288781..827ff6995e 100644 --- a/main/link/link.php +++ b/main/link/link.php @@ -1,4 +1,4 @@ -, Ghent University: cleanup, refactoring and rewriting large parts of the code * @author Julio Montoya Armas , Dokeos: Personality Test modification and rewriting large parts of the code -* @version $Id: survey_list.php 19693 2009-04-09 19:55:28Z ivantcholakov $ +* @version $Id: survey_list.php 19694 2009-04-09 21:45:33Z ivantcholakov $ * * @todo use quickforms for the forms */ @@ -79,16 +79,11 @@ else Display :: display_header($tool_name,'Survey'); //api_display_tool_title($tool_name); -// introduction section - -// The settings here for the online editor are needed and they are specific for the introduction section. -// Please, preserve them. +// Tool introduction $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; $fck_attribute['ToolbarSet'] = 'Introduction'; - Display::display_introduction_section('survey', 'left'); - $fck_attribute = null; // Clearing this global variable immediatelly after it has been used. // Action handling: searching diff --git a/main/user/user.php b/main/user/user.php index c7555e8e3d..fe8465e455 100644 --- a/main/user/user.php +++ b/main/user/user.php @@ -1,4 +1,4 @@ -"; diff --git a/main/wiki/index.php b/main/wiki/index.php index 035758183d..3ef3551d99 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -165,16 +165,11 @@ MAIN CODE ============================================================================== */ -// introduction section - -// The settings here for the online editor are needed and they are specific for the introduction section. -// Please, preserve them. +// Tool introduction $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; $fck_attribute['ToolbarSet'] = 'Introduction'; - Display::display_introduction_section(TOOL_WIKI); - $fck_attribute = null; // Clearing this global variable immediatelly after it has been used. /* @@ -185,7 +180,6 @@ Wiki configuration settings $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '400'; - if(!api_is_allowed_to_edit()) { $fck_attribute['Config']['UserStatus'] = 'student'; diff --git a/main/work/work.php b/main/work/work.php index f239f1fa2b..a494bc728b 100644 --- a/main/work/work.php +++ b/main/work/work.php @@ -1,4 +1,4 @@ -, Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default. * @author Roan Embrechts, code refactoring and virtual course support * @author Frederic Vauthier, directories management -* @version $Id: work.php 19693 2009-04-09 19:55:28Z ivantcholakov $ +* @version $Id: work.php 19694 2009-04-09 21:45:33Z ivantcholakov $ * * @todo refactor more code into functions, use quickforms, coding standards, ... */ @@ -380,16 +380,11 @@ if (!empty ($_POST['changeProperties'])) { $uploadvisibledisabled = $row["show_score"]; } -// introduction section - -// The settings here for the online editor are needed and they are specific for the introduction section. -// Please, preserve them. +// Tool introduction $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '300'; $fck_attribute['ToolbarSet'] = 'Introduction'; - Display :: display_introduction_section(TOOL_STUDENTPUBLICATION,'left'); - $fck_attribute = null; // Clearing this global variable immediatelly after it has been used. /*