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


PHP RevOperations::getGeneralSettingsValues方法代码示例

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


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

示例1: yit_revslider_slider

function yit_revslider_slider()
{
    $operations = new RevOperations();
    $arrValues = $operations->getGeneralSettingsValues();

    $includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally","on");

    $isWidgetActive = is_active_widget( false, false, "rev-slider-widget", true );
    $hasShortcode = UniteFunctionsWPRev::hasShortcode("rev_slider");

    if ( yit_slider_get_setting('slider_type',yit_slider_name()) != 'revolution-slider' || $includesGlobally == "on" || $isWidgetActive || $hasShortcode ) {
        return;
    }

    wp_enqueue_style('rs-plugin-settings', RS_PLUGIN_URL .'public/assets/css/settings.css', array(), RevSliderGlobals::SLIDER_REVISION);

    $custom_css = RevOperations::getStaticCss();
    $custom_css = UniteCssParserRev::compress_css($custom_css);
    wp_add_inline_style('rs-plugin-settings', $custom_css);

    $setBase = (is_ssl()) ? "https://" : "http://";

    $url_jquery = $setBase . "ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution";
    wp_enqueue_script("jquery", $url_jquery);

    // put javascript to footer
    add_action('wp_footer', array($GLOBALS['productFront'], 'putJavascript'));
}
开发者ID:simonsays88,项目名称:costa,代码行数:28,代码来源:config.php

示例2: putJavascript

    /**
     * 
     * javascript output to footer
     */
    public function putJavascript()
    {
        $urlPlugin = UniteBaseClassRev::$url_plugin . "rs-plugin/";
        $operations = new RevOperations();
        $arrValues = $operations->getGeneralSettingsValues();
        $use_hammer = UniteFunctionsRev::getVal($arrValues, "use_hammer_js", 'on');
        if ($use_hammer == 'off') {
            ?>
				<script type='text/javascript' src='<?php 
            echo $urlPlugin;
            ?>
js/jquery.themepunch.disablehammer.js?rev=<?php 
            echo GlobalsRevSlider::SLIDER_REVISION;
            ?>
'></script>
				<?php 
        }
        ?>
			<script type='text/javascript' src='<?php 
        echo $urlPlugin;
        ?>
js/jquery.themepunch.tools.min.js?rev=<?php 
        echo GlobalsRevSlider::SLIDER_REVISION;
        ?>
'></script>
			<script type='text/javascript' src='<?php 
        echo $urlPlugin;
        ?>
js/jquery.themepunch.revolution.min.js?rev=<?php 
        echo GlobalsRevSlider::SLIDER_REVISION;
        ?>
'></script>
			<?php 
    }
开发者ID:misfist,项目名称:missdrepants-network,代码行数:38,代码来源:revslider_front.php

示例3: putRevSlider

 /**
  * 
  * put rev slider on the page.
  * the data can be slider ID or slider alias.
  */
 function putRevSlider($data, $putIn = "")
 {
     $operations = new RevOperations();
     $arrValues = $operations->getGeneralSettingsValues();
     $includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally", "on");
     $strPutIn = UniteFunctionsRev::getVal($arrValues, "pages_for_includes");
     $isPutIn = RevSliderOutput::isPutIn($strPutIn, true);
     if ($isPutIn == false && $includesGlobally == "off") {
         $output = new RevSliderOutput();
         $option1Name = "Include RevSlider libraries globally (all pages/posts)";
         $option2Name = "Pages to include RevSlider libraries";
         $output->putErrorMessage(__("If you want to use the PHP function \"putRevSlider\" in your code please make sure to check \" ", REVSLIDER_TEXTDOMAIN) . $option1Name . __(" \" in the backend's \"General Settings\" (top right panel). <br> <br> Or add the current page to the \"", REVSLIDER_TEXTDOMAIN) . $option2Name . __("\" option box."));
         return false;
     }
     RevSliderOutput::putSlider($data, $putIn);
 }
开发者ID:ashanrupasinghe,项目名称:amc-car-from-server-2015-1-14,代码行数:21,代码来源:revslider.php

示例4: onAddScripts

 /**
  * 
  * a must function. you can not use it, but the function must stay there!.
  *   
  */
 public static function onAddScripts()
 {
     $operations = new RevOperations();
     $arrValues = $operations->getGeneralSettingsValues();
     $includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally", "on");
     $includesFooter = UniteFunctionsRev::getVal($arrValues, "js_to_footer", "off");
     $strPutIn = UniteFunctionsRev::getVal($arrValues, "pages_for_includes");
     $isPutIn = RevSliderOutput::isPutIn($strPutIn, true);
     //put the includes only on pages with active widget or shortcode
     // if the put in match, then include them always (ignore this if)
     if ($isPutIn == false && $includesGlobally == "off") {
         $isWidgetActive = is_active_widget(false, false, "rev-slider-widget", true);
         $hasShortcode = UniteFunctionsWPRev::hasShortcode("rev_slider");
         if ($isWidgetActive == false && $hasShortcode == false) {
             return false;
         }
     }
     self::addStyle("settings", "rs-plugin-settings", "rs-plugin/css");
     //check if dynamic-captions.css exists. If not, include captions.php
     if (file_exists(self::$path_plugin . "rs-plugin/css/dynamic-captions.css") == false) {
         self::addDynamicStyle("captions", "rs-plugin-captions", "rs-plugin/css");
     } else {
         $db = new UniteDBRev();
         $styles = $db->fetch(GlobalsRevSlider::$table_css);
         $styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
         wp_add_inline_style('rs-plugin-settings', $styles);
         //self::addStyle("dynamic-captions","rs-captions","rs-plugin/css");
     }
     $custom_css = RevOperations::getStaticCss();
     wp_add_inline_style('rs-plugin-settings', $custom_css);
     //self::addStyle("static-captions","rs-plugin-static","rs-plugin/css");
     $setBase = is_ssl() ? "https://" : "http://";
     $url_jquery = $setBase . "ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution";
     self::addScriptAbsoluteUrl($url_jquery, "jquery");
     if ($includesFooter == "off") {
         self::addScriptWaitFor("jquery.themepunch.plugins.min", "rs-plugin/js", 'themepunchtools', 'jquery');
         self::addScriptWaitFor("jquery.themepunch.revolution.min", "rs-plugin/js", 'revmin', 'jquery');
     } else {
         //put javascript to footer
         UniteBaseClassRev::addAction('wp_footer', 'putJavascript');
     }
 }
开发者ID:donpapa26,项目名称:bakancslistad,代码行数:47,代码来源:revslider_front.php

示例5: yit_revslider_slider

function yit_revslider_slider()
{
    if ( ! class_exists('RevOperations') ) {
        return;
    }

    $operations = new RevOperations();
    $arrValues = $operations->getGeneralSettingsValues();

    $includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally","on");

    $isWidgetActive = is_active_widget( false, false, "rev-slider-widget", true );
    $hasShortcode = UniteFunctionsWPRev::hasShortcode("rev_slider");

    if ( YIT_Layout()->slider_name===false 
    	|| (YIT_Layout()->slider_name != 'none' && YIT_Slider::get_slider( YIT_Layout()->slider_name )->config->layout != 'revolution-slider') 
    	|| $includesGlobally == "on" 
    	|| $isWidgetActive 
    	|| $hasShortcode ) {
        return;
    }

    if ( defined( 'RS_PLUGIN_URL' ) ) {
        wp_enqueue_style( 'rs-plugin-settings', RS_PLUGIN_URL . 'public/assets/css/settings.css', array(), RevSliderGlobals::SLIDER_REVISION );
    }
    else {
        wp_enqueue_style( "rs-plugin-settings", UniteBaseClassRev::$url_plugin . "rs-plugin/css/settings.css", array(), GlobalsRevSlider::SLIDER_REVISION );
    }

    $custom_css = RevOperations::getStaticCss();
    $custom_css = UniteCssParserRev::compress_css($custom_css);
    wp_add_inline_style('rs-plugin-settings', $custom_css);

    $setBase = (is_ssl()) ? "https://" : "http://";

    $url_jquery = $setBase . "ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution";
    wp_enqueue_script("jquery", $url_jquery);

    // put javascript to footer
    add_action('wp_footer', array($GLOBALS['productFront'], 'putJavascript'));
}
开发者ID:jabue,项目名称:wordpress,代码行数:41,代码来源:config.php

示例6: onAddScripts

 public static function onAddScripts()
 {
     $operations = new RevOperations();
     $arrValues = $operations->getGeneralSettingsValues();
     $includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally", "on");
     $includesFooter = UniteFunctionsRev::getVal($arrValues, "js_to_footer", "off");
     $strPutIn = UniteFunctionsRev::getVal($arrValues, "pages_for_includes");
     $isPutIn = RevSliderOutput::isPutIn($strPutIn, true);
     //put the includes only on pages with active widget or shortcode
     // if the put in match, then include them always (ignore this if)
     if ($isPutIn == false && $includesGlobally == "off") {
         $isWidgetActive = is_active_widget(false, false, "rev-slider-widget", true);
         $hasShortcode = UniteFunctionsWPRev::hasShortcode("rev_slider");
         if ($isWidgetActive == false && $hasShortcode == false) {
             return false;
         }
     }
     //self::addStyle("settings","rs-settings","rs-plugin/css");
     //check if dynamic-captions.css exists. If not, include captions.php
     //if(file_exists(self::$path_plugin."rs-plugin/css/dynamic-captions.css") == false){
     //self::addDynamicStyle("captions","rs-plugin-captions","rs-plugin/css");
     //                                $captionsAction =  Context::getContext()->link->getAdminLink('Revolutionslider_ajax').'&revControllerAction=captions';
     //
     //                                wp_enqueue_style ('captions', $captionsAction);
     //  }
     //else
     //self::addStyle("dynamic-captions","rs-captions","rs-plugin/css");
     //self::addStyle("static-captions","rs-plugin-static","rs-plugin/css");
     // $setBase = (is_ssl()) ? "https://" : "http://";
     // $url_jquery = $setBase."ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution";
     // self::addScriptAbsoluteUrl($url_jquery, "jquery");
     // if($includesFooter == "off"){
     // 	self::addScript("jquery.themepunch.tools.min","rs-plugin/js",'themepunchtools');
     // 	self::addScript("jquery.themepunch.revolution.min","rs-plugin/js");
     //self::addScriptWaitFor("jquery.themepunch.tools.min","rs-plugin/js",'themepunchtools', array('jquery'));
     //self::addScriptWaitFor("jquery.themepunch.revolution.min","rs-plugin/js", null, array('jquery'));
     // }else{
     //put javascript to footer
     // 	UniteBaseClassRev::addAction('wp_footer', 'putJavascript');
     // }
 }
开发者ID:evgrishin,项目名称:se1614,代码行数:41,代码来源:revslider_front.php

示例7: putJavascript

    public function putJavascript()
    {
        $urlPlugin = UniteBaseClassRev::$url_plugin . "rs-plugin/";
        $operations = new RevOperations();
        $arrValues = $operations->getGeneralSettingsValues();
        ?>
			<script type='text/javascript' src='<?php 
        echo $urlPlugin;
        ?>
js/jquery.themepunch.tools.min.js?rev=<?php 
        echo GlobalsRevSlider::SLIDER_REVISION;
        ?>
'></script>
			<script type='text/javascript' src='<?php 
        echo $urlPlugin;
        ?>
js/jquery.themepunch.revolution.min.js?rev=<?php 
        echo GlobalsRevSlider::SLIDER_REVISION;
        ?>
'></script>
			<?php 
    }
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:22,代码来源:revslider_front.php

示例8: onAddScripts

 /**
  * 
  * a must function. you can not use it, but the function must stay there!.
  *   
  */
 public static function onAddScripts()
 {
     $operations = new RevOperations();
     $arrValues = $operations->getGeneralSettingsValues();
     $includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally", "on");
     $strPutIn = UniteFunctionsRev::getVal($arrValues, "pages_for_includes");
     $isPutIn = RevSliderOutput::isPutIn($strPutIn, true);
     //put the includes only on pages with active widget or shortcode
     // if the put in match, then include them always (ignore this if)
     if ($isPutIn == false && $includesGlobally == "off") {
         $isWidgetActive = is_active_widget(false, false, "rev-slider-widget", true);
         $hasShortcode = UniteFunctionsWPRev::hasShortcode("rev_slider");
         if ($isWidgetActive == false && $hasShortcode == false) {
             return false;
         }
     }
     self::addStyle("settings", "rs-settings", "rs-plugin/css");
     self::addStyle("captions", "rs-captions", "rs-plugin/css");
     $url_jquery = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution";
     self::addScriptAbsoluteUrl($url_jquery, "jquery");
     self::addScript("jquery.themepunch.revolution.min", "rs-plugin/js");
 }
开发者ID:kivivuori,项目名称:jotain,代码行数:27,代码来源:revslider_front.php

示例9: putJS


//.........这里部分代码省略.........
                $arrowsType = "solo";
                break;
        }
        //More Mobile Options
        $hideThumbsOnMobile = $this->slider->getParam("hide_thumbs_on_mobile", "off");
        $hideThumbsDelayMobile = $this->slider->getParam("hide_thumbs_delay_mobile", "1500");
        $hideBulletsOnMobile = $this->slider->getParam("hide_bullets_on_mobile", "off");
        $hideArrowsOnMobile = $this->slider->getParam("hide_arrows_on_mobile", "off");
        $hideThumbsUnderResolution = $this->slider->getParam("hide_thumbs_under_resolution", "0", RevSlider::VALIDATE_NUMERIC);
        $timerBar = $this->slider->getParam("show_timerbar", "top");
        $disableKenBurnOnMobile = $this->slider->getParam("disable_kenburns_on_mobile", "off");
        $swipe_velocity = $this->slider->getParam("swipe_velocity", "0.7", RevSlider::VALIDATE_NUMERIC);
        $swipe_min_touches = $this->slider->getParam("swipe_min_touches", "1", RevSlider::VALIDATE_NUMERIC);
        $swipe_max_touches = $this->slider->getParam("swipe_max_touches", "1", RevSlider::VALIDATE_NUMERIC);
        $drag_block_vertical = $this->slider->getParam("drag_block_vertical", "false");
        $use_parallax = $this->slider->getParam("use_parallax", "off");
        $disable_parallax_mobile = $this->slider->getParam("disable_parallax_mobile", "off");
        if ($use_parallax == 'on') {
            $parallax_type = $this->slider->getParam("parallax_type", "mouse");
            $parallax_bg_freeze = $this->slider->getParam("parallax_bg_freeze", "off");
            $parallax_level[] = intval($this->slider->getParam("parallax_level_1", "5"));
            $parallax_level[] = intval($this->slider->getParam("parallax_level_2", "10"));
            $parallax_level[] = intval($this->slider->getParam("parallax_level_3", "15"));
            $parallax_level[] = intval($this->slider->getParam("parallax_level_4", "20"));
            $parallax_level[] = intval($this->slider->getParam("parallax_level_5", "25"));
            $parallax_level[] = intval($this->slider->getParam("parallax_level_6", "30"));
            $parallax_level[] = intval($this->slider->getParam("parallax_level_7", "35"));
            $parallax_level[] = intval($this->slider->getParam("parallax_level_8", "40"));
            $parallax_level[] = intval($this->slider->getParam("parallax_level_9", "45"));
            $parallax_level[] = intval($this->slider->getParam("parallax_level_10", "50"));
            $parallax_level = implode(',', $parallax_level);
        }
        $operations = new RevOperations();
        $arrValues = $operations->getGeneralSettingsValues();
        ?>
			
			<script type="text/javascript">

					
				/******************************************
					-	PREPARE PLACEHOLDER FOR SLIDER	-
				******************************************/
				<?php 
        /*var setREVStartSize = function() {
        		
        							var	tpopt = new Object(); 
        								tpopt.startwidth = <?php echo $this->slider->getParam("width","900")?>;
        								tpopt.startheight = <?php echo $this->slider->getParam("height","300")?>;
        								tpopt.container = jQuery('#<?php echo $this->sliderHtmlID?>');
        								tpopt.fullScreen = "<?php echo $optFullScreen?>";
        								tpopt.forceFullWidth="<?php echo $this->slider->getParam("force_full_width", 'off'); ?>";
        							
        
        							
        								
        							tpopt.container.closest('.rev_slider_wrapper').css({'height':tpopt.container.height()});
        			
        							tpopt.width=parseInt(tpopt.container.width(),0);
        							tpopt.height=parseInt(tpopt.container.height(),0);
        			
        			
        							tpopt.bw= (tpopt.width / tpopt.startwidth);
        							tpopt.bh = (tpopt.height / tpopt.startheight);
        			
        							if (tpopt.bh>tpopt.bw) tpopt.bh=tpopt.bw;
        							if (tpopt.bh<tpopt.bw) tpopt.bw = tpopt.bh;
开发者ID:networksoft,项目名称:networksoft.com.co,代码行数:67,代码来源:revslider_output.class.php

示例10: putSliderBase

 public function putSliderBase($sliderID)
 {
     try {
         self::$sliderSerial++;
         $this->slider = new RevSlider();
         $this->slider->initByMixed($sliderID);
         $doWrapFromTemplate = false;
         if ($this->slider->isSlidesFromPosts() && $this->slider->getParam("slider_template_id", false) !== false) {
             //need to use general settings from the Template Slider
             $this->slider->initByMixed($this->slider->getParam("slider_template_id", false));
             $doWrapFromTemplate = $sliderID;
         }
         //modify settings for admin preview mode
         if ($this->previewMode == true) {
             $this->modifyPreviewModeSettings();
         }
         //edit html before slider
         $htmlBeforeSlider = "";
         // add fonts
         $_usedStyles = array();
         $_slides = $this->slider->getSlides();
         foreach ($_slides as $_slide) {
             $_layers = $_slide->getLayers();
             foreach ($_layers as $_layer) {
                 $_style = isset($_layer['style']) ? $_layer['style'] : '';
                 if ($_style && !in_array($_style, $_usedStyles)) {
                     $_usedStyles[] = $_style;
                 }
             }
         }
         $htmlBeforeSlider .= Mage::helper('nwdrevslider')->inlcudeStyleFonts($_usedStyles);
         //pub js to body handle
         if ($this->slider->getParam("js_to_body", "false") == "true") {
             $operations = new RevOperations();
             $arrValues = $operations->getGeneralSettingsValues();
             $enable_logs = UniteFunctionsRev::getVal($arrValues, "enable_logs", 'off');
             if ($enable_logs == 'on') {
                 $urlIncludeJS = UniteBaseClassRev::$url_plugin . "rs-plugin/js/jquery.themepunch.enablelog.js?rev=" . GlobalsRevSlider::SLIDER_REVISION;
                 $htmlBeforeSlider .= "<script type='text/javascript' src='{$urlIncludeJS}'></script>";
             }
             $urlIncludeJS = UniteBaseClassRev::$url_plugin . "rs-plugin/js/jquery.themepunch.tools.min.js?rev=" . GlobalsRevSlider::SLIDER_REVISION;
             $htmlBeforeSlider .= "<script type='text/javascript' src='{$urlIncludeJS}'></script>";
             $urlIncludeJS = UniteBaseClassRev::$url_plugin . "rs-plugin/js/jquery.themepunch.revolution.min.js?rev=" . GlobalsRevSlider::SLIDER_REVISION;
             $htmlBeforeSlider .= "<script type='text/javascript' src='{$urlIncludeJS}'></script>";
         }
         //the initial id can be alias
         $sliderID = $this->slider->getID();
         $bannerWidth = $this->slider->getParam("width", null, RevSlider::VALIDATE_NUMERIC, "Slider Width");
         $bannerHeight = $this->slider->getParam("height", null, RevSlider::VALIDATE_NUMERIC, "Slider Height");
         $sliderType = $this->slider->getParam("slider_type");
         //set wrapper height
         $wrapperHeigh = 0;
         $wrapperHeigh += $this->slider->getParam("height");
         //add thumb height
         if ($this->slider->getParam("navigaion_type") == "thumb") {
             $wrapperHeigh += $this->slider->getParam("thumb_height");
         }
         $this->sliderHtmlID = "rev_slider_" . $sliderID . "_" . self::$sliderSerial;
         $this->sliderHtmlID_wrapper = $this->sliderHtmlID . "_wrapper";
         $containerStyle = "";
         $sliderPosition = $this->slider->getParam("position", "center");
         //set position:
         if ($sliderType != "fullscreen") {
             switch ($sliderPosition) {
                 case "center":
                 default:
                     $containerStyle .= "margin:0px auto;";
                     break;
                 case "left":
                     $containerStyle .= "float:left;";
                     break;
                 case "right":
                     $containerStyle .= "float:right;";
                     break;
             }
         }
         //add background color
         $backgrondColor = trim($this->slider->getParam("background_color"));
         if (!empty($backgrondColor)) {
             $containerStyle .= "background-color:{$backgrondColor};";
         }
         //set padding
         $containerStyle .= "padding:" . $this->slider->getParam("padding", "0") . "px;";
         //set margin:
         if ($sliderType != "fullscreen") {
             if ($sliderPosition != "center") {
                 $containerStyle .= "margin-left:" . $this->slider->getParam("margin_left", "0") . "px;";
                 $containerStyle .= "margin-right:" . $this->slider->getParam("margin_right", "0") . "px;";
             }
             $containerStyle .= "margin-top:" . $this->slider->getParam("margin_top", "0") . "px;";
             $containerStyle .= "margin-bottom:" . $this->slider->getParam("margin_bottom", "0") . "px;";
         }
         //set height and width:
         $bannerStyle = "display:none;";
         //add background image (to banner style)
         $showBackgroundImage = $this->slider->getParam("show_background_image", "false");
         if ($showBackgroundImage == "true") {
             $backgroundImage = $this->slider->getParam("background_image");
             $backgroundFit = $this->slider->getParam("bg_fit", "cover");
             $backgroundRepeat = $this->slider->getParam("bg_repeat", "no-repeat");
//.........这里部分代码省略.........
开发者ID:perseusl,项目名称:kingdavid,代码行数:101,代码来源:revslider_output.class.php

示例11: UniteSettingsRev

<?php

$generalSettings = new UniteSettingsRev();
$generalSettings->addSelect("role", array(UniteBaseAdminClassRev::ROLE_ADMIN => __("To Admin", REVSLIDER_TEXTDOMAIN), UniteBaseAdminClassRev::ROLE_EDITOR => __("To Editor, Admin", REVSLIDER_TEXTDOMAIN), UniteBaseAdminClassRev::ROLE_AUTHOR => __("Author, Editor, Admin", REVSLIDER_TEXTDOMAIN)), __("View Plugin Permission", REVSLIDER_TEXTDOMAIN), UniteBaseAdminClassRev::ROLE_ADMIN, array("description" => "<br>" . __("The role of user that can view and edit the plugin", REVSLIDER_TEXTDOMAIN)));
$generalSettings->addRadio("includes_globally", array("on" => __("On", REVSLIDER_TEXTDOMAIN), "off" => __("Off", REVSLIDER_TEXTDOMAIN)), __("Include RevSlider libraries globally", REVSLIDER_TEXTDOMAIN), "on", array("description" => "<br>" . __("Add css and js includes only on all pages. Id turned to off they will added to pages where the rev_slider shortcode exists only. This will work only when the slider added by a shortcode.", REVSLIDER_TEXTDOMAIN)));
$generalSettings->addTextBox("pages_for_includes", "", __("Pages to include RevSlider libraries", REVSLIDER_TEXTDOMAIN), array("description" => "<br>" . __("Specify the page id's that the front end includes will be included in. Example: 2,3,5 also: homepage,3,4", REVSLIDER_TEXTDOMAIN)));
//--------------------------
//get stored values
$operations = new RevOperations();
$arrValues = $operations->getGeneralSettingsValues();
$generalSettings->setStoredValues($arrValues);
self::storeSettings("general", $generalSettings);
开发者ID:kivivuori,项目名称:jotain,代码行数:12,代码来源:general_settings.php


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