forked from marekmurawski/ace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenable.php
More file actions
39 lines (37 loc) · 1.33 KB
/
enable.php
File metadata and controls
39 lines (37 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/*
* Wolf CMS - Content Management Simplified. <http://www.wolfcms.org>
* Copyright (C) 2008-2010 Martijn van der Kleijn <martijn.niji@gmail.com>
*
* Ace filter for Wolf CMS
* Code editor and syntax highlighter based on Ajax.org Cloud9 Editor.
*
* @package Plugins
* @subpackage ace
*
* @author Marek Murawski <http://marekmurawski.pl>
* @copyright Marek Murawski, 2012
* @license http://www.gnu.org/licenses/gpl.html GPLv3 license
* @license Ace http://opensource.org/licenses/BSD-3-Clause BSD
*
*/
/* Security measure */
if (!defined('IN_CMS')) { exit(); }
$settings = array('aceMode' => 'php',
'aceTheme' => 'monokai',
'aceFontSize' => 12,
'aceScrollSpeed' => 6,
'aceEditorHeight' => 400,
'aceWrapLines' => 'true',
'aceWrapRange' => 80,
'aceLayoutIntegrate' => 'true',
'aceHighlightActiveLine' => 'true',
'aceCookieLife' => '365', // in days, -1 defaults to Session cookie
);
// Store settings.
if (Plugin::setAllSettings($settings, 'ace')) {
Flash::set('success', __('Ace - plugin settings initialized.'));
}
else
Flash::set('error', __('Ace - unable to store plugin settings!'));
?>