[svn r18115] FS#2867 - Introduction sections, special cases for settings for the FCKEditor. Adding comments.

skala
Ivan Tcholakov 16 years ago
parent 1e85ff2767
commit b2f4413d90
  1. 5
      main/course_home/course_home.php
  2. 2
      main/exercice/export/exercise_import.php
  3. 1
      main/inc/lib/search/search_widget.php
  4. 1
      main/newscorm/document.php
  5. 4
      main/newscorm/lp_list.php

@ -1,4 +1,4 @@
<?php // $Id: course_home.php 17787 2009-01-17 00:41:06Z ivantcholakov $
<?php // $Id: course_home.php 18115 2009-02-01 11:56:07Z ivantcholakov $
/*
==============================================================================
@ -183,12 +183,11 @@ $fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Full';
$fck_attribute['Config']['InDocument'] = false;
// A special case, some default settings do not fit. These settings should stay.
$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.

@ -104,7 +104,7 @@ $fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Full';
$fck_attribute['Config']['InDocument'] = false;
// TODO: These settings to be checked when it is possible.
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/';
$fck_attribute['Config']['CreateDocumentDir'] = '../../../courses/'.api_get_course_path().'/document/';
$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/';

@ -315,6 +315,7 @@ function search_widget_show($action='index.php') {
echo '<h2>'.get_lang('Search').'</h2>';
// introduction section
// TODO: Settings for the FCKEditor to be added for the introduction section.
if (api_get_course_id() !== -1)
if (!empty($_SESSION['_gid'])) {
Display::display_introduction_section(TOOL_SEARCH.$_SESSION['_gid'],'left');

@ -197,6 +197,7 @@ $fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Full';
// TODO: These settings to be checked when it is possible.
$fck_attribute['Config']['InDocument'] = false;
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/';
$fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/';

@ -92,7 +92,9 @@ $fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Full';
$fck_attribute['Config']['InDocument'] = false;
// These settings should stay here.
// TODO: Here a calculation mechanism has to be added in order the editor to work
// properly with documents that are not at the root of the repository.
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/';
$fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/';
$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/';

Loading…
Cancel
Save