Ejemplo n.º 1
0
<?php

/* ====================
[BEGIN_COT_EXT]
Hooks=rc
[END_COT_EXT]
==================== */
/**
 * Head resources
 *
 * @package Tags
 * @copyright (c) Cotonti Team
 * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
 */
defined('COT_CODE') or die('Wrong URL');
if ($cfg['jquery'] && $cfg['turnajax'] && $cfg['plugin']['autocomplete']['autocomplete'] > 0) {
    cot_rc_add_embed('tags.autocomplete', '$(document).ready(function(){
$(".autotags").autocomplete("' . cot_url('plug', 'r=tags') . '", {multiple: true, minChars: ' . $cfg['plugin']['autocomplete']['autocomplete'] . '});
});');
}
if ($cfg['plugin']['tags']['css']) {
    cot_rc_add_file($cfg['plugins_dir'] . '/tags/tpl/tags.css');
}
Ejemplo n.º 2
0
<?php

/* ====================
[BEGIN_COT_EXT]
Hooks=rc
[END_COT_EXT]
==================== */
/**
 * Header file for Autocomplete plugin
 *
 * @package Autocomplete
 * @copyright (c) Cotonti Team
 * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
 */
defined('COT_CODE') or die('Wrong URL');
if ($cfg['jquery'] && $cfg['turnajax'] && $cfg['plugin']['autocomplete']['autocomplete'] > 0) {
    cot_rc_add_file($cfg['plugins_dir'] . '/autocomplete/lib/jquery.autocomplete.min.js');
    if ($cfg['plugin']['autocomplete']['css']) {
        cot_rc_add_file($cfg['plugins_dir'] . '/autocomplete/lib/jquery.autocomplete.css');
    }
    cot_rc_add_embed('autocomplete', '
		$(document).ready(function(){
		    $( document ).on( "focus", ".userinput", function() {
		        $(".userinput").autocomplete("index.php?r=autocomplete", {multiple: true, minChars: ' . $cfg['plugin']['autocomplete']['autocomplete'] . '});
		    });
		});
	');
}
            $options['compress'] = true;
        }
        $parser = new Less_Parser($options);
        $parser->SetImportDirs(array($cfg['themes_dir'] . '/admin/' . $theme . '/less' => $cfg['themes_dir'] . '/admin/' . $theme . '/less', $cfg['plugins_dir'] . "/bootstrap/bootstrap/less" => $cfg['plugins_dir'] . "/bootstrap/bootstrap/less"));
        $parser->parseFile($input);
        $css = $parser->getCss();
        if (!file_exists($cfg['themes_dir'] . '/admin/' . $theme . '/css')) {
            mkdir($cfg['themes_dir'] . '/admin/' . $theme . '/css');
        }
        file_put_contents($output, $css);
        return true;
    }
    compile_botstrap_less_adm($cfg['admintheme'], $cfg['admintheme'] . '', $cfg['admintheme'] . '');
}
cot_rc_add_file($cfg['themes_dir'] . '/admin/' . $cfg['admintheme'] . '/css/' . $cfg['admintheme'] . '.css');
cot_rc_add_file($cfg['themes_dir'] . '/admin/' . $cfg['admintheme'] . '/css/font-awesome.css');
cot_rc_link_footer($cfg['themes_dir'] . '/admin/' . $cfg['admintheme'] . '/js/comaterial.js');
$R['input_checkbox'] = '<input type="hidden" name="{$name}" value="{$value_off}" /><label><input type="checkbox" name="{$name}" value="{$value}"{$checked}{$attrs} /> {$title}</label>';
$R['input_check'] = '<label><input type="checkbox" name="{$name}" value="{$value}"{$checked}{$attrs} /> {$title}</label>';
$R['input_default'] = '<input type="{$type}"  class="form-control" name="{$name}" value="{$value}"{$attrs} />{$error}';
$R['input_password'] = '******';
$R['input_option'] = '<option value="{$value}"{$selected}>{$title}</option>';
$R['input_radio'] = '<label><input type="radio" name="{$name}" value="{$value}"{$checked}{$attrs} /> {$title}</label>';
$R['input_radio_separator'] = ' ';
$R['input_select'] = '<select name="{$name}" class="form-control" {$attrs}>{$options}</select>{$error}';
$R['input_submit'] = '<button type="submit" name="{$name}" {$attrs}>{$value}</button>';
$R['input_text'] = '<input type="text" name="{$name}" value="{$value}" class="form-control" {$attrs} />{$error}';
$R['input_textarea'] = '<textarea name="{$name}" rows="{$rows}" cols="{$cols}" class="form-control"{$attrs}>{$value}</textarea>{$error}';
$R['input_textarea_editor'] = '<textarea class="editor" name="{$name}" rows="{$rows}" cols="{$cols}"{$attrs}>{$value}</textarea>{$error}';
$R['input_textarea_medieditor'] = '<textarea class="medieditor" name="{$name}" rows="{$rows}" cols="{$cols}"{$attrs}>{$value}</textarea>{$error}';
$R['input_textarea_minieditor'] = '<textarea class="minieditor" name="{$name}" rows="{$rows}" cols="{$cols}"{$attrs}>{$value}</textarea>{$error}';
Ejemplo n.º 4
0
<?php

/**
 * JavaScript registry
 *
 * @package SymiSun
 * @copyright (c) Cotonti Team
 * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
 */
defined('COT_CODE') or die('Wrong URL.');
cot_rc_add_file('themes/symisun-03/symisun-03.css');
cot_rc_add_file('themes/symisun-03/js/tabcontent.min.js');
cot_rc_add_file('themes/symisun-03/js/resizer.min.js');
cot_rc_add_file('themes/symisun-03/js/scroller.min.js');
cot_rc_add_file('themes/symisun-03/js/textshadow.min.js');
Ejemplo n.º 5
0
<?php

/* ====================
[BEGIN_COT_EXT]
Hooks=rc
[END_COT_EXT]
==================== */
/**
 * Static head resources for search
 *
 * @package Search
 * @copyright (c) Cotonti Team
 * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
 */
defined('COT_CODE') or die('Wrong URL');
if ($cfg['jquery']) {
    cot_rc_add_file($cfg['plugins_dir'] . '/search/js/hl.min.js');
}
Ejemplo n.º 6
0
<?php

/**
 * JavaScript and CSS loader for Nemesis theme
 *
 * @package Cotonti
 * @version 0.7.0
 * @author Cotonti Team
 * @copyright Copyright (c) Cotonti Team 2010-2011
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL.');
cot_rc_add_file($cfg['themes_dir'] . '/wooden_style/css/fb-buttons.css');
cot_rc_add_file($cfg['themes_dir'] . '/wooden_style/css/inner.css');
cot_rc_add_file($cfg['themes_dir'] . '/wooden_style/css/prettyPhoto.css');
cot_rc_add_file($cfg['themes_dir'] . '/wooden_style/css/skitter.styles.css');
cot_rc_add_file($cfg['themes_dir'] . '/wooden_style/css/style.css');
cot_rc_add_file($cfg['themes_dir'] . '/wooden_style/css/modalbox.css');
<?php

/**
 * [BEGIN_COT_EXT]
 * Hooks=rc
 * [END_COT_EXT]
 */
/**
 * Location Selector for Cotonti
 *
 * @package locationselector
 * @version 2.0.0
 * @author CMSWorks Team
 * @copyright Copyright (c) CMSWorks.ru, littledev.ru
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL.');
cot_rc_add_file($cfg['plugins_dir'] . '/locationselector/js/locationselector.js');
 }
 $rc_link_func($uidt_cfg['jquery_ui_js']);
 cot_rc_add_file($uidt_cfg['jquery_ui_css']);
 if ($usr['lang'] != 'en') {
     if ($uidt_cfg['enable_datepicker']) {
         $lang_file_path = pathinfo($uidt_cfg['jquery_ui_js'], PATHINFO_DIRNAME);
         $lang_file = $lang_file_path . "/i18n/jquery.ui.datepicker-{$usr['lang']}.js";
         if (!file_exists($lang_file)) {
             $lang_file = './js/jquery_ui/i18n/jquery.ui.datepicker-' . $usr['lang'] . '.js';
         }
         $rc_link_func($lang_file);
     }
 }
 if ($uidt_cfg['enable_timepicker']) {
     $timepicker_path = pathinfo($uidt_cfg['timepicker_js'], PATHINFO_DIRNAME);
     cot_rc_add_file($uidt_cfg['timepicker_css'], 'global', 70);
     $rc_link_func($uidt_cfg['timepicker_js']);
     if ($usr['lang'] != 'en') {
         $lang_file = $timepicker_path . "/i18n/jquery-ui-timepicker-{$usr['lang']}.js";
         $rc_link_func($lang_file);
     }
     if ($uidt_cfg['support_touch']) {
         $rc_link_func($timepicker_path . "/jquery-ui-sliderAccess.min.js");
     }
 } else {
     $ui_off_code = 'var ui_time_off = true;';
 }
 if (!$uidt_cfg['enable_datepicker']) {
     $ui_off_code .= 'var ui_date_off = true;';
 }
 $rc_link_func($cfg['plugins_dir'] . "/{$plug_name}/js/{$plug_name}.js");
Ejemplo n.º 9
0
 * 
 * @package cateditor
 * @version 1.0.0
 * @author esclkm
 * @copyright 
 * @license BSD
 *  */
// Generated by Cotonti developer tool (littledev.ru)
defined('COT_CODE') or die('Wrong URL.');
require_once cot_incfile('cateditor', 'plug');
require_once cot_incfile('cateditor', 'plug', 'structure');
require_once cot_langfile('cateditor', 'plug');
cot_rc_add_file($cfg['plugins_dir'] . '/cateditor/lib/jquery.nestable.js');
cot_rc_add_file($cfg['plugins_dir'] . '/cateditor/lib/jquery.cookie.js');
cot_rc_add_file($cfg['plugins_dir'] . '/cateditor/lib/jquery.nestable.css');
cot_rc_add_file($cfg['plugins_dir'] . '/cateditor/lib/cateditor.js');
/* === Hook === */
foreach (cot_getextplugins('admin.structure.first') as $pl) {
    include $pl;
}
/* ===== */
//cot_rc_link_file($cfg['plugins_dir'].'/banners/tpl/admin.css');
// Роутер
// Only if the file exists...
if (is_array($extension_structure) && count($extension_structure) == 1 && (cot_plugin_active($extension_structure[0]) || cot_module_active($extension_structure[0]))) {
    $n = $extension_structure[0];
}
$sub = empty($n) ? 'list' : 'editor';
if (!empty($n)) {
    $cot_structure = new structure($n);
    $is_module = cot_module_active($n);
Ejemplo n.º 10
0
<?php

/* ====================
[BEGIN_COT_EXT]
Hooks=rc
[END_COT_EXT]
==================== */
/**
 * Ratings JavaScript loader
 *
 * @package Ratings
 * @copyright (c) Cotonti Team
 * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
 */
defined('COT_CODE') or die('Wrong URL');
if ($cfg['jquery']) {
    cot_rc_add_file($cfg['plugins_dir'] . '/ratings/js/jquery.rating.min.js');
    cot_rc_add_file($cfg['plugins_dir'] . '/ratings/js/ratings.js');
    if ($cfg['plugin']['ratings']['css']) {
        cot_rc_add_file($cfg['plugins_dir'] . '/ratings/tpl/ratings.css');
    }
}
Ejemplo n.º 11
0
<?php

/* 
====================
[BEGIN_COT_EXT]
Hooks=rc
[END_COT_EXT]
====================
*/
/**
 * @package Karma
 * @author Dr2005alex
 * @copyright Copyright (c) 2014 Dr2005alex http://mycotonti.ru
 * @license Distributed under BSD license.
 */
defined('COT_CODE') or die('Wrong URL');
if ($cfg['plugin']['karma']['karma_css']) {
    cot_rc_add_file($cfg['plugins_dir'] . '/karma/js/karma.css');
}
cot_rc_add_file($cfg['plugins_dir'] . '/karma/js/karma.js');
Ejemplo n.º 12
0
<?php

/**
 * JavaScript and CSS loader for bootlance theme
 *
 * @package Cotonti
 * @version 0.9.0
 * @author CMSWorks Team
 * @copyright Copyright (c) CMSWorks.ru, littledev.ru
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL.');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/bootstrap/css/bootstrap.min.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/bootstrap/css/bootstrap-responsive.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/css/modalbox.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/css/style.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/js.js');
require_once cot_rc($cfg['themes_dir'] . '/' . $usr['theme'] . '/' . $usr['theme'] . '.resources.php');
Ejemplo n.º 13
0
defined('COT_CODE') or die('Wrong URL.');
/**
 * Kush CSS and JavaScript loader
 *
 * @package Kush
 * @author Kushelbek
 * @copyright Copyright (c) 2015 Digital Balance
 * @license BSD
 */
// CSS
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/css/bootstrap.min.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/css/font-awesome.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/css/prettyPhoto.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/css/style.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/css/animate.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/css/flexslider.css');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/css/owl.carousel.css');
// JavaScript
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/jquery-1.11.3.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/bootstrap.min.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/jquery.prettyPhoto.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/jquery.nicescroll.min.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/superfish.min.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/jquery.flexslider-min.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/owl.carousel.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/animate.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/jquery.BlackAndWhite.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/myscript.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/index.js');
cot_rc_add_file($cfg['themes_dir'] . '/' . $usr['theme'] . '/js/prefixfree.min.js');