Forráskód Böngészése

[svn r17768] FS#2867 - FCKEditor: Moving towards the new system of managing URLs (to use relative or at least semi-absolute ones, a built-in the editor option is started to be used). Changing/addition of editor's configuration options for Documents tool and all tool introduction sections.

Ivan Tcholakov 16 éve
szülő
commit
1c931e7290

+ 11 - 1
main/announcements/announcements.php

@@ -1,4 +1,4 @@
-<?php //$Id: announcements.php 17627 2009-01-09 21:50:35Z cvargas1 $
+<?php //$Id: announcements.php 17768 2009-01-16 04:05:43Z ivantcholakov $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -850,6 +850,16 @@ if($_REQUEST['publish_survey'])
 /*====================================================
 		     		Tool Title
 ====================================================*/
+
+$fck_attribute['Width'] = '100%';
+$fck_attribute['Height'] = '400';
+$fck_attribute['ToolbarSet'] = 'Full';
+
+$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/';
+$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/';
+
 if (empty($_GET['origin']) || $_GET['origin'] !== 'learnpath')
 {
 	//api_display_tool_title($nameTools);

+ 12 - 2
main/calendar/agenda.php

@@ -1,4 +1,4 @@
-<?php //$Id: agenda.php 17627 2009-01-09 21:50:35Z cvargas1 $
+<?php //$Id: agenda.php 17768 2009-01-16 04:05:43Z ivantcholakov $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -233,6 +233,16 @@ $is_allowed_to_edit = api_is_allowed_to_edit(false,true) OR (api_get_course_sett
 //api_display_tool_title($nameTools);
 
 // tool introduction
+
+$fck_attribute['Width'] = '100%';
+$fck_attribute['Height'] = '400';
+$fck_attribute['ToolbarSet'] = 'Full';
+
+$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/';
+$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/';
+
 Display::display_introduction_section(TOOL_CALENDAR_EVENT);
 
 // insert an anchor (top) so one can jump back to the top of the page
@@ -476,4 +486,4 @@ if ($_GET['origin'] != 'learnpath')
 {
 	Display::display_footer();
 }
-?>
+?>

+ 4 - 2
main/course_home/course_home.php

@@ -1,4 +1,4 @@
-<?php // $Id: course_home.php 16724 2008-11-12 15:42:23Z pcool $
+<?php // $Id: course_home.php 17768 2009-01-16 04:05:43Z ivantcholakov $
 
 /*
 ==============================================================================
@@ -184,7 +184,9 @@ $fck_attribute['Height'] = '400';
 $fck_attribute['ToolbarSet'] = 'Full';
 
 $fck_attribute['Config']['InDocument'] = false;
+$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);
@@ -215,4 +217,4 @@ elseif(get_setting('homepage_view') == "3column")
 ==============================================================================
 */
 Display::display_footer();
-?>
+?>

+ 2 - 2
main/document/create_document.php

@@ -1,4 +1,4 @@
-<?php // $Id: create_document.php 17647 2009-01-11 13:12:30Z ivantcholakov $
+<?php // $Id: create_document.php 17768 2009-01-16 04:05:43Z ivantcholakov $
 
 /*
 ==============================================================================
@@ -217,7 +217,7 @@ if ($relative_url== '')
 $fck_attribute['Config']['InDocument'] = true;
 $fck_attribute['Config']['CreateDocumentDir'] = $relative_url;
 $fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document/';
-$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document/';
+$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document'.$dir;
 
 $filepath = api_get_path('SYS_COURSE_PATH').$_course['path'].'/document'.$dir;
 

+ 10 - 1
main/document/document.php

@@ -1,4 +1,4 @@
-<?php // $Id: document.php 17746 2009-01-15 20:33:37Z cvargas1 $
+<?php // $Id: document.php 17768 2009-01-16 04:05:43Z ivantcholakov $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -339,6 +339,15 @@ if($to_group_id !=0) //add group name after for group documents
 -----------------------------------------------------------
 */
 
+$fck_attribute['Width'] = '100%';
+$fck_attribute['Height'] = '400';
+$fck_attribute['ToolbarSet'] = 'Full';
+
+$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/';
+$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/';
+
 if(!empty($_SESSION['_gid']))
 {
 	Display::display_introduction_section(TOOL_DOCUMENT.$_SESSION['_gid'],'left');

+ 2 - 2
main/document/edit_document.php

@@ -1,4 +1,4 @@
-<?php // $Id: edit_document.php 17647 2009-01-11 13:12:30Z ivantcholakov $
+<?php // $Id: edit_document.php 17768 2009-01-16 04:05:43Z ivantcholakov $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -125,7 +125,7 @@ for($i=0;$i<($count_dir);$i++)
 $fck_attribute['Config']['InDocument'] = true;
 $fck_attribute['Config']['CreateDocumentDir'] = $relative_url;
 $fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document/';
-$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document/';
+$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document'.$dir;
 
 $use_document_title = (get_setting('use_document_title')=='true')?true:false;
 $noPHP_SELF=true;