getGeneralSettingsValues(); $includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally","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"); 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"); } } ?>