當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。