当前位置: 首页>>代码示例>>PHP>>正文


PHP Widgets::theme_placeholders方法代码示例

本文整理汇总了PHP中Widgets::theme_placeholders方法的典型用法代码示例。如果您正苦于以下问题:PHP Widgets::theme_placeholders方法的具体用法?PHP Widgets::theme_placeholders怎么用?PHP Widgets::theme_placeholders使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Widgets的用法示例。


在下文中一共展示了Widgets::theme_placeholders方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

<?php

defined('SYSPATH') or die('No direct access allowed.');
/**
 * Theme Name: Kamaleon Free
 * Description: Free theme, HTML5. Default base, link on footer.
 * Tags: HTML5, Advanced Confiuration, prettyPhoto, Slider.
 * Version: 2.2.0
 * Author: Chema <chema@open-classifieds.com>
 * 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
开发者ID:Ryanker,项目名称:open-eshop,代码行数:31,代码来源:init.php

示例2: die

<?php

defined('SYSPATH') or die('No direct access allowed.');
/**
 * Theme Name: Ocean Free
 * Description: Clean free theme that includes full admin. It has publicity. Do not delete this theme, all the views depend in this theme.
 * Tags: HTML5, Admin, Free
 * Version: 2.7.0
 * Author: Chema <chema@open-classifieds.com> , <slobodan@open-classifieds.com>
 * License: GPL v3
 * Skins: default,green,orange 
 */
/**
 * placeholders for this theme
 */
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');
开发者ID:ThomWensink,项目名称:openclassifieds2,代码行数:31,代码来源:init.php


注:本文中的Widgets::theme_placeholders方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。