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


PHP Themes::getParam方法代码示例

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


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

示例1: registerMainAssets

    public static function registerMainAssets()
    {
        $cs = Yii::app()->clientScript;
        //$cs->coreScriptPosition = CClientScript::POS_BEGIN;
        $baseThemeUrl = Yii::app()->theme->baseUrl;
        $cs->registerCoreScript('jquery');
        $cs->registerCoreScript('jquery.ui');
        $cs->registerCoreScript('rating');
        $cs->registerCssFile($baseThemeUrl . '/css/ui/jquery-ui.multiselect.css');
        $cs->registerCssFile($baseThemeUrl . '/css/redmond/jquery-ui-1.7.1.custom.css');
        $cs->registerCssFile($baseThemeUrl . '/css/ui.slider.extras.css');
        $cs->registerScriptFile($baseThemeUrl . '/js/jquery.multiselect.min.js', CClientScript::POS_BEGIN);
        $cs->registerCssFile($baseThemeUrl . '/css/ui/jquery-ui.multiselect.css');
        $cs->registerScriptFile($baseThemeUrl . '/js/jquery.dropdownPlain.js', CClientScript::POS_BEGIN);
        $cs->registerScriptFile($baseThemeUrl . '/js/common.js', CClientScript::POS_BEGIN);
        $cs->registerScriptFile($baseThemeUrl . '/js/habra_alert.js', CClientScript::POS_END);
        $cs->registerScriptFile($baseThemeUrl . '/js/jquery.cookie.js', CClientScript::POS_END);
        $cs->registerScriptFile($baseThemeUrl . '/js/scrollto.js', CClientScript::POS_END);
        $cs->registerCssFile($baseThemeUrl . '/css/form.css', 'screen, projection');
        // superfish menu
        $cs->registerCssFile($baseThemeUrl . '/js/superfish/css/superfish.css', 'screen');
        $cs->registerScriptFile($baseThemeUrl . '/js/superfish/js/superfish.js', CClientScript::POS_END);
        if (Yii::app()->theme->name == 'atlas') {
            $cs->registerCssFile($baseThemeUrl . '/css/rating/rating.css');
            $colorTheme = Themes::getParam('color_theme');
            if ($colorTheme) {
                $cs->registerCssFile($baseThemeUrl . '/css/colors/' . $colorTheme);
            }
            $cs->registerScriptFile($baseThemeUrl . '/js/jquery.easing.1.3.js', CClientScript::POS_BEGIN);
            $cs->registerScript('initizlize-superfish-menu', '
			$("#sf-menu-id").superfish( {hoverClass: "sfHover", delay: 100, animationOut: {opacity:"hide"}, animation: {opacity:"show"}, cssArrows: false, dropShadows: false, speed: "fast", speedOut: 1 });
		', CClientScript::POS_READY);
        }
        //deb(Yii::app()->theme->name); exit;
        if (Yii::app()->theme->name == 'classic') {
            $cs->registerCssFile($cs->getCoreScriptUrl() . '/rating/jquery.rating.css');
            $cs->registerCssFile($baseThemeUrl . '/js/superfish/css/superfish-vertical.css', 'screen');
            $cs->registerScriptFile($baseThemeUrl . '/js/superfish/js/hoverIntent.js', CClientScript::POS_HEAD);
            $cs->registerScript('initizlize-superfish-menu', '
			$("#sf-menu-id").superfish( {delay: 100, autoArrows: false, dropShadows: false, pathClass: "overideThisToUse", speed: "fast" });
		', CClientScript::POS_READY);
        }
    }
开发者ID:barricade86,项目名称:raui,代码行数:43,代码来源:HSite.php

示例2: getBgUrl

 public static function getBgUrl($bgImage = null)
 {
     $bgImage = $bgImage ? $bgImage : Themes::getParam('bg_image');
     $model = self::model();
     $path = Yii::getPathOfAlias($model->path);
     $filePath = $path . DIRECTORY_SEPARATOR . $bgImage;
     if ($bgImage && file_exists($filePath)) {
         return Yii::app()->baseUrl . '/' . $model->urlRoute . '/' . $bgImage;
     } else {
         return false;
     }
 }
开发者ID:barricade86,项目名称:raui,代码行数:12,代码来源:Themes.php

示例3: array

?>
            <li>
                <?php 
echo CHtml::link(Yii::t('module_install', 'About product', array(), 'messagesInFile', Yii::app()->language), Yii::app()->language == 'ru' ? '#' : '#', array('class' => 'button cyan'));
?>
            </li>
            <li>
                <?php 
echo CHtml::link(Yii::t('module_install', 'Contact us', array(), 'messagesInFile', Yii::app()->language), Yii::app()->language == 'ru' ? '#' : '#', array('class' => 'button cyan'));
?>
            </li>
            <li>
                <?php 
$themeList = Themes::getColorThemesList();
echo Yii::t('module_install', 'Color theme', array(), 'messagesInFile', Yii::app()->language) . ': ';
echo CHtml::dropDownList('theme', Themes::getParam('color_theme'), $themeList, array('onchange' => 'js: changeTheme(this.value);'));
?>
            </li>
        </ul>
    </div>
</div>

<script type="text/javascript">
    function changeTheme(theme){
        location.href = URL_add_parameter(location.href, 'theme', theme);
    }

    function URL_add_parameter(url, param, value){
        var hash       = {};
        var parser     = document.createElement('a');
开发者ID:barricade86,项目名称:raui,代码行数:30,代码来源:ads-block.php


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