Example #1
0
 * License: GPL v3
 */
/**
 * placeholders & widgets for this theme
 */
Widgets::$theme_placeholders = array('header', 'sidebar', 'footer');
/**
 * custom options for the theme
 * @var array
 */
Theme::$options = Theme::get_options();
//we load earlier the theme since we need some info
Theme::load();
//local files
$theme_css = array('//cdn.jsdelivr.net/bootswatch/3.3.6/yeti/bootstrap.min.css' => 'screen', '//cdn.jsdelivr.net/fontawesome/4.5.0/css/font-awesome.min.css' => 'screen', '//cdn.jsdelivr.net/chosen/1.0.0/chosen.css' => 'screen', '//cdn.jsdelivr.net/prettyphoto/3.1.5/css/prettyPhoto.css' => 'screen', 'css/style.css?v=' . Core::VERSION => 'screen', 'css/yeti-style.css' => 'screen', 'css/slider.css' => 'screen');
if (Theme::get('rtl')) {
    $theme_css = array_merge($theme_css, array('css/bootstrap-rtl.min.css' => 'screen'));
}
Theme::$styles = $theme_css;
Theme::$scripts['footer'] = array('//code.jquery.com/jquery-1.10.2.min.js', '//cdn.jsdelivr.net/bootstrap/3.3.6/js/bootstrap.min.js', '//cdn.jsdelivr.net/prettyphoto/3.1.5/js/jquery.prettyPhoto.js', '//cdn.jsdelivr.net/chosen/1.0.0/chosen.jquery.min.js', Route::url('jslocalization', array('controller' => 'jslocalization', 'action' => 'chosen')), 'js/bootstrap-slider.js', 'js/jquery.validate.min.js', Route::url('jslocalization', array('controller' => 'jslocalization', 'action' => 'validate')), 'js/theme.init.js?v=' . Core::VERSION);
/**
 * custom error alerts
 */
Form::$errors_tpl = '<div class="alert alert-danger"><a class="close" data-dismiss="alert">×</a>
                        <h4 class="alert-heading">%s</h4>
                        <ul>%s</ul></div>';
Form::$error_tpl = '<div class="alert"><a class="close" data-dismiss="alert">×</a>%s</div>';
Alert::$tpl = '<div class="alert alert-%s">
                    <a class="close" data-dismiss="alert" href="#">×</a>
                    <h4 class="alert-heading">%s</h4>%s
                    </div>';
Example #2
0
Widgets::$theme_placeholders = array('footer', 'sidebar', 'publish_new');
/**
 * custom options for the theme
 * @var array
 */
Theme::$options = Theme::get_options();
//we load earlier the theme since we need some info
Theme::load();
/**
 * styles and themes, loaded in this order
 */
Theme::$skin = Theme::get('theme');
/**
 * styles and themes, loaded in this order
 */
Theme::$styles = array('//cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap.min.css' => 'screen', '//cdn.jsdelivr.net/fontawesome/4.5.0/css/font-awesome.min.css' => 'screen', '//cdn.jsdelivr.net/bootstrap.image-gallery/3.1.0/css/bootstrap-image-gallery.min.css' => 'screen', '//cdn.jsdelivr.net/blueimp-gallery/2.14.0/css/blueimp-gallery.min.css' => 'screen', '//cdn.jsdelivr.net/bootstrap.datepicker/0.1/css/datepicker.css' => 'screen', '//cdn.jsdelivr.net/select2/4.0.2/css/select2.min.css' => 'screen', 'css/styles.css?v=' . Core::VERSION => 'screen', 'css/slider.css' => 'screen');
if (Theme::$skin != 'default') {
    Theme::$styles = array_merge(Theme::$styles, array('css/color-' . Theme::$skin . '.css' => 'screen'));
}
Theme::$scripts['footer'] = array('//cdn.jsdelivr.net/g/jquery@1.12.3,bootstrap@3.3.6,bootstrap.datepicker@0.1,select2@4.0.2,jquery.validation@1.11.1,holder@2.8.1', '//cdn.jsdelivr.net/blueimp-gallery/2.14.0/js/jquery.blueimp-gallery.min.js', '//cdn.jsdelivr.net/bootstrap.image-gallery/3.1.0/js/bootstrap-image-gallery.min.js', Route::url('jslocalization', array('controller' => 'jslocalization', 'action' => 'select2')), Route::url('jslocalization', array('controller' => 'jslocalization', 'action' => 'validate')), 'js/bootstrap-slider.js', 'js/favico.min.js', 'js/curry.js', 'js/default.init.js?v=' . Core::VERSION, 'js/theme.init.js?v=' . Core::VERSION);
/**
 * custom error alerts
 */
Form::$errors_tpl = '<div class="alert alert-danger"><a class="close" data-dismiss="alert">×</a>
			       		<p><strong>%s</strong></p>
			        	<ul>%s</ul></div>';
Form::$error_tpl = '<div class="alert "><a class="close" data-dismiss="alert">×</a>%s</div>';
Alert::$tpl = '<div class="alert alert-%s">
					<a class="close" data-dismiss="alert" href="#">×</a>
					<strong>%s:</strong> %s
					</div>';