<?php if (!defined('VALID_RUN')) { header("HTTP/1.1 404 Not Found"); exit; } UseScript('jquery_ui'); ScriptsAddJQueryPlugin('elfinder/elfinder'); ScriptsAddCss('elfinder/css/elfinder');
<?php if (!defined('VALID_RUN')) { header("HTTP/1.1 404 Not Found"); exit; } UseScript('jquery'); ScriptsAddJQueryPlugin('jquery_ui/jquery-ui'); ScriptsAddCss('jquery_ui/themes/aristo/jquery-ui.custom');
\t\t\t\t} \t\t\t\taceel.hide(); \t\t\t\tecediv.css(dest); \t\t\t\tvar {$var} = ace.edit("{$id}_replace"); \t\t\t\t{$var}.getSession().setValue(aceeldom.defaultValue); \t\t\t\t{$var}.getSession().on('change', function(){ \t\t\t\t\taceel.val({$var}.getSession().getValue()); \t\t\t\t}); \t\t\t}else{ \t\t\t\tvar {$var} = ace.edit("{$id}"); \t\t\t} \t\t\t{$var}.getSession().setUseSoftTabs({$softwraps}); \t\t\t{$var}.getSession().setUseWrapMode({$wordwrap}); \t\t\t{$var}.setHighlightActiveLine({$highlightline}); \t\t\t{$var}.setShowPrintMargin({$printmargin}); \t\t\t{$var}.getSession().setTabSize({$tabsize}); \t\t\taceel.val({$var}.getSession().getValue()); JS ); } ScriptsAddCss('ace/theme'); if (isset($params['theme']) && $params['theme'] != 'textmate') { ScriptsAddJs('ace/src/theme-' . $params['theme']); System::site()->AddOnLoadJS($var . '.setTheme("ace/theme/' . $params['theme'] . '");'); } if (isset($params['mode'])) { ScriptsAddJs('ace/src/mode-' . $params['mode']); System::site()->AddOnLoadJS('var Mode = require("ace/mode/' . $params['mode'] . '").Mode;'); System::site()->AddOnLoadJS($var . '.getSession().setMode(new Mode());'); } return $var;
<?php if (!defined('VALID_RUN')) { header("HTTP/1.1 404 Not Found"); exit; } /* * Плагин jQuery для всплывающих окон и слайд шоу. * Параметры: * theme - Номер темы от 1 до 5 (по умолчанию 5) */ UseScript('jquery'); if (!isset($params['theme'])) { $theme = 'example3'; } else { if ($params['theme'] == 'admin') { $theme = 'example3'; } elseif ($params['theme'] == 'default') { $theme = 'exanple3'; } elseif (is_numeric($params['theme'])) { $theme = 'example' . $params['theme']; } else { $theme = $params['theme']; } } ScriptsAddJQueryPlugin('colorbox/jquery.colorbox'); ScriptsAddCss('colorbox/' . $theme . '/colorbox'); System::site()->AddOnLoadJS('$(".colorbox").colorbox({rel: "colorbox_group", maxWidth: "100%", maxHeight: "100%"});');
* tab-size - Размер табуляции * gutter - Показать номера строк (true, false) * toolbar - Показать панель * quick-code * collapse - Свернуть код * auto-links - Автоматически преобразовывать ссылки * light * html-script */ UseScript('jquery'); if (!isset($params['theme'])) { $theme = 'Default'; } else { $theme = $params['theme']; } $extra = ''; if (count($params) > 0) { foreach ($params as $param => $value) { if ($param != 'theme') { $extra .= "SyntaxHighlighter.defaults['{$param}'] = {$value};\n"; } } } ScriptsAddJs('syntaxhighlighter/SyntaxHighlighter'); ScriptsAddCss('syntaxhighlighter/styles/shCore' . $theme); System::site()->AddOnLoadJS(<<<JS \t\t{$extra} \t\tSyntaxHighlighter.config.strings.expandSource = 'Показать код'; \t\tSyntaxHighlighter.all(); JS );
<?php if (!defined('VALID_RUN')) { header("HTTP/1.1 404 Not Found"); exit; } UseScript('jquery_ui'); ScriptsAddJQueryPlugin('jquery_ui_table/jquery.ui.table'); ScriptsAddCss('jquery_ui_table/theme/jquery.ui.table'); class jQueryUiTable { private $id = 0; private $columns = array(); private $rows = array(); public $listing = ''; public $total = 0; public $page = 0; public $onpage = 10; public $sortby = -1; public $sortdesc = false; /** * URL ajax запроса на удаление элемента таблицы * @var string */ public $del = ''; public function AddColumn($Title, $Align = 'left', $Sortable = true, $NoWrap = false) { $this->columns[] = array('id' => $this->id, 'title' => $Title, 'sortable' => $Sortable, 'align' => $Align, 'nowrap' => $NoWrap); $this->id++; } public function AddRow($RowId, $Col1, $Col2 = '', $Col3 = '')
<?php if (!defined('VALID_RUN')) { header("HTTP/1.1 404 Not Found"); exit; } $bb_cssfile = System::site()->Root . '/style/bbcode.css'; if (file_exists($bb_cssfile)) { System::site()->AddCSSFile('bbcode.css'); } else { ScriptsAddCss('bbcode_editor/style'); } ScriptsAddJs('bbcode_editor/bbcode_editor');
<?php if (!defined('VALID_RUN')) { header("HTTP/1.1 404 Not Found"); exit; } UseScript('jquery', 'jquery_ui'); ScriptsAddJs('jquery_menu/jquery.menu'); ScriptsAddCss('jquery_menu/theme/jquery.menu-default'); // Стандартная тема