* For a full list of contributors, see "credits.txt".
@ -47,7 +47,7 @@
* 5-th level (the lowest priority)
* Configuration settings from myconfig.js. This file is "as is" in the original source, modifying it is not recommended.
*/
/*
* Toolbar definitions.
*/
@ -133,62 +133,73 @@ if ((api_get_setting('youtube_for_students') == 'true')) {
// googlemaps : Adds a dilog for inserting Google maps.
if ((api_get_setting('enabled_googlemaps') == 'true')) {
$config['LoadPlugin'][] = 'googlemaps';
/*
**API-key for the "googlemaps" plugin.
The following key is valid for http://localhost (see myconfig.js where this key has been activated by default).
You must get a new for each server where you intend to use the plugin 'googlemaps'. Just get the key for free after agreeing with the Terms of Use of the GoogleMaps API from here: http://www.google.com/apis/maps/signup.html.
At you choice, you may activate the newly obtained API-key using the following setting or using the same setting in myconfig.js.
Activated here API-key is not cached by browsers and overrides the key from the configuration file myconfig.js.
*
*/
//$config['GoogleMaps_Key'] = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSy5hTGQdsosYD3dz6faZHVrO-02A'; //sample for localhost
$config['LoadPlugin'][] = 'googlemaps';
/*
**API-key for the "googlemaps" plugin.
The following key is valid for http://localhost (see myconfig.js where this key has been activated by default).
You must get a new for each server where you intend to use the plugin 'googlemaps'. Just get the key for free after agreeing with the Terms of Use of the GoogleMaps API from here: http://www.google.com/apis/maps/signup.html.
At you choice, you may activate the newly obtained API-key using the following setting or using the same setting in myconfig.js.
Activated here API-key is not cached by browsers and overrides the key from the configuration file myconfig.js.
*
*/
//$config['GoogleMaps_Key'] = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSy5hTGQdsosYD3dz6faZHVrO-02A'; //sample for localhost
}
// mimetex : Adds a dialog for inserting mathematical formulas. In order this plugin to work properly, preliminary changes.
if ((api_get_setting('math_mimetex') == 'true')) {
$config['LoadPlugin'][] = 'mimetex';
// in your server configuration have to be done. The MimeTex executable file has to be installed, see the installation guide.
// Some additional settings become active only when the 'mimetex' plugin has been enabled:
//
// The following setting determines whether MimeTeX executable file has been installed on the server or not. This file should be accessible
// for browsers at address http://mysite.com/cgi-bin/mimetex.cgi (Linux) or at address http://mysite.com/cgi-bin/mimetex.exe (Windows).
// How to test manually: Open your browser and enter in the address bar something like http://mysite.com/cgi-bin/mimetex.cgi?hello
// By default, the system tries to detect the MimeTeX executable file automatically.
// If you are sure that the MimeTeX executable has been correctly installed, you may set this option to boolean true value.
// insertHtml: Plugin for inserting HTML. A single preconfigured snippet; a choice from multiple preconfigured snippets; or manually entered HTML.
if ((api_get_setting('enabled_insertHtml') == 'true')) {
$config['LoadPlugin'][] = 'insertHtml';
$config['LoadPlugin'][] = 'insertHtml';
}
// enter a single snippet (HMTL string) or multiple snippets to choose form (object of description string and HTML string pairs). Or leave empty if you want to show a dialog for the user to enter HTML manually (and not show any default HTML in the dialog textarea)
//$config['insertHtml_snippets'] = { 'ArtGallery': '<embedwidth="475"height="400"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"src="FlashGallery/Art/ArtFlashGallery.swf"mediaType="flashGallery"bgcolor="#ffffff"allowfullscreen="true"flashvars="XMLFile=userfiles/image/ArtGallery/gallery.xml"></embed>', 'PhotoFlowGallery' : '<embedwidth="700"height="300"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"src="FlashGallery/PhotoFlow/PhotoFlowGallery.swf"mediaType="flashGallery"bgcolor="#ffffff"flashvars="XMLFile=userfiles/image/PhotoFlowGallery/gallery.xml"></embed>', 'StackPhotoGallery' : '<embedwidth="600"height="400"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"src="FlashGallery/StackPhoto/StackPhotoGallery.swf"mediaType="flashGallery"bgcolor="#ffffff"flashvars="XMLFile=userfiles/image/StackPhotoGallery/gallery.xml"></embed>', 'ZenGallery' : '<embedwidth="550"height="400"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"src="FlashGallery/Zen/ZenGallery.swf"mediaType="flashGallery"bgcolor="#ffffff"flashvars="XMLFile=userfiles/image/ZenGallery/gallery.xml"></embed>'};// TODO: this $config['insertHtml_snippets'] does not work. See also temporal hack around line 76 insertHtml.js
// (if no snippets specified the dialog will show anyhow)
$config['insertHtml_showDialog'] = true;
// specify a custom tooltip if you want this to appear when hovering the plugin's toolbar button (e.g. a description of the element being inserted). If no custom tooltip is set 'Insert HTML' will appear, and if available, translated into your language
$config['insertHtml_buttonTooltip'] = '';
// show a textarea in the dialog? The first HTML set with $config['insertHtml_snippets'] will be shown in the textarea by default. If no snippets specified the textarea will show anyhow
$config['insertHtml_showTextarea']= false;
// the size of the textarea in the dialog, in px
$config['insertHtml_textareaWidth'] = 400;
$config['insertHtml_textareaHeight'] = 300;
// enter a single snippet (HMTL string) or multiple snippets to choose form (object of description string and HTML string pairs). Or leave empty if you want to show a dialog for the user to enter HTML manually (and not show any default HTML in the dialog textarea)
//$config['insertHtml_snippets'] = { 'ArtGallery': '<embedwidth="475"height="400"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"src="FlashGallery/Art/ArtFlashGallery.swf"mediaType="flashGallery"bgcolor="#ffffff"allowfullscreen="true"flashvars="XMLFile=userfiles/image/ArtGallery/gallery.xml"></embed>', 'PhotoFlowGallery' : '<embedwidth="700"height="300"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"src="FlashGallery/PhotoFlow/PhotoFlowGallery.swf"mediaType="flashGallery"bgcolor="#ffffff"flashvars="XMLFile=userfiles/image/PhotoFlowGallery/gallery.xml"></embed>', 'StackPhotoGallery' : '<embedwidth="600"height="400"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"src="FlashGallery/StackPhoto/StackPhotoGallery.swf"mediaType="flashGallery"bgcolor="#ffffff"flashvars="XMLFile=userfiles/image/StackPhotoGallery/gallery.xml"></embed>', 'ZenGallery' : '<embedwidth="550"height="400"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"src="FlashGallery/Zen/ZenGallery.swf"mediaType="flashGallery"bgcolor="#ffffff"flashvars="XMLFile=userfiles/image/ZenGallery/gallery.xml"></embed>'};// TODO: this $config['insertHtml_snippets'] does not work. See also temporal hack around line 76 insertHtml.js
// (if no snippets specified the dialog will show anyhow)
$config['insertHtml_showDialog'] = true;
// specify a custom tooltip if you want this to appear when hovering the plugin's toolbar button (e.g. a description of the element being inserted). If no custom tooltip is set 'Insert HTML' will appear, and if available, translated into your language
$config['insertHtml_buttonTooltip'] = '';
// show a textarea in the dialog? The first HTML set with $config['insertHtml_snippets'] will be shown in the textarea by default. If no snippets specified the textarea will show anyhow