本文整理汇总了PHP中UniteCssParserRev::compress_css方法的典型用法代码示例。如果您正苦于以下问题:PHP UniteCssParserRev::compress_css方法的具体用法?PHP UniteCssParserRev::compress_css怎么用?PHP UniteCssParserRev::compress_css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UniteCssParserRev
的用法示例。
在下文中一共展示了UniteCssParserRev::compress_css方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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'));
}
示例2: onAddScripts
/**
*
* a must function. you can not use it, but the function must stay there!.
*
*/
public static function onAddScripts()
{
global $wp_version;
$style_pre = '';
$style_post = '';
if ($wp_version < 3.7) {
$style_pre = '<style type="text/css">';
$style_post = '</style>';
}
$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");
$custom_css = RevOperations::getStaticCss();
$custom_css = UniteCssParserRev::compress_css($custom_css);
wp_add_inline_style('rs-plugin-settings', $style_pre . $custom_css . $style_post);
/*
*/
/*
$styles = $db->fetch(GlobalsRevSlider::$table_css);
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
wp_add_inline_style( 'rs-plugin-settings', $style_pre.$styles.$style_post );
// KRISZTIAN MODIFICATION FOR INNERLAYERS
$stylesinnerlayers = str_replace('.tp-caption', '',$styles);´
wp_add_inline_style( 'rs-plugin-settings', $style_pre.$stylesinnerlayers.$style_post );
// END MODIFICATION
*/
$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") {
$waitfor = array('jquery');
$enable_logs = UniteFunctionsRev::getVal($arrValues, "enable_logs", 'off');
if ($enable_logs == 'on') {
self::addScriptWaitFor("jquery.themepunch.enablelog", "rs-plugin/js", 'enable-logs');
$waitfor[] = 'enable-logs';
}
self::addScriptWaitFor("jquery.themepunch.tools.min", "rs-plugin/js", 'tp-tools', $waitfor);
self::addScriptWaitFor("jquery.themepunch.revolution.min", "rs-plugin/js", 'revmin', 'tp-tools');
} else {
//put javascript to footer
UniteBaseClassRev::addAction('wp_footer', 'putJavascript');
}
}
示例3: onAddScripts
public static function onAddScripts()
{
global $wp_version;
$style_pre = '';
$style_post = '';
if ($wp_version < 3.7) {
$style_pre = '<style type="text/css">';
$style_post = '</style>';
}
$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);
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");
$custom_css = RevOperations::getStaticCss();
$custom_css = UniteCssParserRev::compress_css($custom_css);
wp_add_inline_style('rs-plugin-settings', $style_pre . $custom_css . $style_post);
$setBase = get_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") {
$waitfor = array('jquery');
$enable_logs = UniteFunctionsRev::getVal($arrValues, "enable_logs", 'off');
if ($enable_logs == 'on') {
self::addScriptWaitFor("jquery.themepunch.enablelog", "rs-plugin/js", 'enable-logs');
$waitfor[] = 'enable-logs';
}
self::addScriptWaitFor("jquery.themepunch.tools.min", "rs-plugin/js", 'tp-tools', $waitfor);
self::addScriptWaitFor("jquery.themepunch.revolution.min", "rs-plugin/js", 'revmin', 'tp-tools');
} else {
UniteBaseClassRev::addAction('wp_footer', 'putJavascript');
}
}
示例4: 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'));
}
示例5: 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");
$db = new UniteDBRev();
$styles = $db->fetch(GlobalsRevSlider::$table_css);
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
wp_add_inline_style('rs-plugin-settings', $styles);
$custom_css = RevOperations::getStaticCss();
$custom_css = UniteCssParserRev::compress_css($custom_css);
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');
}
}
示例6: previewOutput
/**
*
* preview slider output
* if output object is null - create object
*/
public function previewOutput($sliderID, $output = null)
{
if ($sliderID == "empty_output") {
$this->loadingMessageOutput();
exit;
}
if ($output == null) {
$output = new RevSliderOutput();
}
$slider = new RevSlider();
$slider->initByID($sliderID);
$isWpmlExists = UniteWpmlRev::isWpmlExists();
$useWpml = $slider->getParam("use_wpml", "off");
$wpmlActive = false;
if ($isWpmlExists && $useWpml == "on") {
$wpmlActive = true;
$arrLanguages = UniteWpmlRev::getArrLanguages(false);
//set current lang to output
$currentLang = UniteFunctionsRev::getPostGetVariable("lang");
if (empty($currentLang)) {
$currentLang = UniteWpmlRev::getCurrentLang();
}
if (empty($currentLang)) {
$currentLang = $arrLanguages[0];
}
$output->setLang($currentLang);
$selectLangChoose = UniteFunctionsRev::getHTMLSelect($arrLanguages, $currentLang, "id='select_langs'", true);
}
$output->setPreviewMode();
//put the output html
$urlPlugin = RevSliderAdmin::$url_plugin . "rs-plugin/";
$urlPreviewPattern = UniteBaseClassRev::$url_ajax_actions . "&client_action=preview_slider&sliderid=" . $sliderID . "&lang=[lang]&nonce=[nonce]";
$nonce = wp_create_nonce("revslider_actions");
$setBase = is_ssl() ? "https://" : "http://";
$f = new ThemePunch_Fonts();
$my_fonts = $f->get_all_fonts();
?>
<html>
<head>
<link rel='stylesheet' href='<?php
echo $urlPlugin;
?>
css/settings.css?rev=<?php
echo GlobalsRevSlider::SLIDER_REVISION;
?>
' type='text/css' media='all' />
<?php
$db = new UniteDBRev();
$styles = $db->fetch(GlobalsRevSlider::$table_css);
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
// KRISZTIAN MODIFICATION
$stylesinnerlayers = str_replace('.tp-caption', '', $styles);
// KRISZTIAN MODIFICATION ENDS
echo '<style type="text/css">' . $styles . $stylesinnerlayers . '</style>';
$http = is_ssl() ? 'https' : 'http';
if (!empty($my_fonts)) {
foreach ($my_fonts as $c_font) {
?>
<link rel='stylesheet' href="<?php
echo $http . '://fonts.googleapis.com/css?family=' . strip_tags($c_font['url']);
?>
" type='text/css' />
<?php
}
}
$custom_css = RevOperations::getStaticCss();
echo '<style type="text/css">' . UniteCssParserRev::compress_css($custom_css) . '</style>';
?>
<script type='text/javascript' src='<?php
echo $setBase;
?>
ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
<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>
</head>
<body style="padding:0px;margin:0px;">
<?php
if ($wpmlActive == true) {
?>
<div style="margin-bottom:10px;text-align:center;">
//.........这里部分代码省略.........
示例7: onAddScripts
/**
*
* a must function. adds scripts on the page
* add all page scripts and styles here.
* pelase don't remove this function
* common scripts even if the plugin not load, use this function only if no choise.
*/
public static function onAddScripts()
{
self::addStyle("edit_layers", "edit_layers");
//add google font
//$urlGoogleFont = "http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700";
//self::addStyleAbsoluteUrl($urlGoogleFont,"google-font-pt-sans-narrow");
self::addScriptCommon("edit_layers", "unite_layers");
self::addScriptCommon("css_editor", "unite_css_editor");
self::addScript("rev_admin");
self::addScript("jquery.themepunch.plugins.min", "rs-plugin/js", 'themepunchtools');
//include all media upload scripts
self::addMediaUploadIncludes();
//add rs css:
self::addStyle("settings", "rs-plugin-settings", "rs-plugin/css");
$db = new UniteDBRev();
$styles = $db->fetch(GlobalsRevSlider::$table_css);
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
wp_add_inline_style('rs-plugin-settings', $styles);
$custom_css = RevOperations::getStaticCss();
$custom_css = UniteCssParserRev::compress_css($custom_css);
wp_add_inline_style('rs-plugin-settings', $custom_css);
//self::addStyle("static-captions","rs-plugin-static","rs-plugin/css");
}
示例8: add_inline_styles
/**
* Output Dynamic Inline Styles
*/
public function add_inline_styles()
{
//echo '<div class="revsliderstyles">';
echo '<style scoped>';
$db = new UniteDBRev();
$styles = $db->fetch(GlobalsRevSlider::$table_css);
foreach ($styles as $key => $style) {
$handle = str_replace('.tp-caption', '', $style['handle']);
if (!isset($this->class_include[$handle])) {
unset($styles[$key]);
}
}
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
echo $styles;
echo '</style>' . "\n";
//echo '</div>';
}
示例9: add_inline_styles
/**
* Output Dynamic Inline Styles
*/
public function add_inline_styles()
{
echo '<div class="revsliderstyles">';
echo '<style type="text/css">';
$db = new UniteDBRev();
$styles = $db->fetch(GlobalsRevSlider::$table_css);
foreach ($styles as $key => $style) {
$handle = str_replace('.tp-caption', '', $style['handle']);
if (!isset($this->class_include[$handle])) {
unset($styles[$key]);
}
}
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
echo $styles;
// KRISZTIAN MODIFICATION FOR INNERLAYERS
$stylesinnerlayers = str_replace('.tp-caption', '', $styles);
echo $stylesinnerlayers;
// END MODIFICATION
echo '</style>' . "\n";
echo '</div>';
}
示例10: onFrontAjaxAction
/**
* onAjax action handler
*/
public static function onFrontAjaxAction()
{
$db = new UniteDBRev();
$slider = new RevSlider();
$slide = new RevSlide();
$operations = new RevOperations();
$token = self::getPostVar("token", false);
//verify the token
$isVerified = wp_verify_nonce($token, 'RevSlider_Front');
$error = false;
if ($isVerified) {
$data = self::getPostVar('data', false);
switch (self::getPostVar('client_action', false)) {
case 'get_slider_html':
$id = intval(self::getPostVar('id', 0));
if ($id > 0) {
$html = '';
add_filter('revslider_add_js_delay', array('RevSliderAdmin', 'rev_set_js_delay'));
ob_start();
$slider_class = RevSliderOutput::putSlider($id);
$html = ob_get_contents();
//add styling
$custom_css = RevOperations::getStaticCss();
$custom_css = UniteCssParserRev::compress_css($custom_css);
$styles = $db->fetch(GlobalsRevSlider::$table_css);
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
$html .= '<style type="text/css">' . $custom_css . '</style>';
$html .= '<style type="text/css">' . $styles . '</style>';
ob_clean();
ob_end_clean();
$result = !empty($slider_class) && $html !== '' ? true : false;
if (!$result) {
$error = __('Slider not found', REVSLIDER_TEXTDOMAIN);
} else {
if ($html !== false) {
self::ajaxResponseData($html);
} else {
$error = __('Slider not found', REVSLIDER_TEXTDOMAIN);
}
}
} else {
$error = __('No Data Received', REVSLIDER_TEXTDOMAIN);
}
break;
}
} else {
$error = true;
}
if ($error !== false) {
$showError = __('Loading Error', REVSLIDER_TEXTDOMAIN);
if ($error !== true) {
$showError = __('Loading Error: ', REVSLIDER_TEXTDOMAIN) . $error;
}
self::ajaxResponseError($showError, false);
}
exit;
}
示例11: onAddScripts
/**
*
* a must function. adds scripts on the page
* add all page scripts and styles here.
* pelase don't remove this function
* common scripts even if the plugin not load, use this function only if no choise.
*/
public static function onAddScripts()
{
global $wp_version;
$style_pre = '';
$style_post = '';
if ($wp_version < 3.7) {
$style_pre = '<style type="text/css">';
$style_post = '</style>';
}
self::addStyle("edit_layers", "edit_layers");
//add google font
//$urlGoogleFont = "http://fonts.useso.com/css?family=PT+Sans+Narrow:400,700";
//self::addStyleAbsoluteUrl($urlGoogleFont,"google-font-pt-sans-narrow");
self::addScriptCommon("edit_layers", "unite_layers");
self::addScriptCommon("css_editor", "unite_css_editor");
self::addScript("rev_admin");
self::addScript("jquery.themepunch.tools.min", "rs-plugin/js", 'tp-tools');
//include all media upload scripts
self::addMediaUploadIncludes();
//add rs css:
self::addStyle("settings", "rs-plugin-settings", "rs-plugin/css");
$db = new UniteDBRev();
$styles = $db->fetch(GlobalsRevSlider::$table_css);
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
wp_add_inline_style('rs-plugin-settings', $style_pre . $styles . $style_post);
// KRISZTIAN MODIFICATION FOR INNERLAYERS
$stylesinnerlayers = str_replace('.tp-caption', '', $styles);
wp_add_inline_style('rs-plugin-settings', $style_pre . $stylesinnerlayers . $style_post);
// END MODIFICATION
$custom_css = RevOperations::getStaticCss();
$custom_css = UniteCssParserRev::compress_css($custom_css);
wp_add_inline_style('rs-plugin-settings', $style_pre . $custom_css . $style_post);
//self::addStyle("static-captions","rs-plugin-static","rs-plugin/css");
}
示例12: updateDynamicCaptions
/**
*
* update dynamic-captions css file content
*/
public static function updateDynamicCaptions($full = false)
{
if ($full) {
$captions = array();
$captions = RevOperations::getCaptionsContentArray();
$styles = UniteCssParserRev::parseArrayToCss($captions, "\n");
$styles = UniteCssParserRev::compress_css($styles);
//write styles into dynamic css
$stylesinnerlayers = str_replace('.tp-caption', '', $styles);
$styles = $styles . "\n\n" . $stylesinnerlayers;
UniteFunctionsRev::writeFile($styles, GlobalsRevSlider::$filepath_dynamic_captions);
} else {
//go through all sliders and check which classes are used, get all classes from DB and write them into the file
$slider = new RevSlider();
$arrSliders = $slider->getArrSliders();
$classes = array();
//get used classes
if (!empty($arrSliders)) {
foreach ($arrSliders as $slider) {
try {
//update from slides
$slides = $slider->getSlides();
$arrStaticSlides = $slider->getArrStaticSlides();
$slides = array_merge($slides, $arrStaticSlides);
if (!empty($slides)) {
foreach ($slides as $slide) {
$layers = $slide->getLayers();
if (!empty($layers)) {
foreach ($layers as $layer) {
if (isset($layer['style'])) {
if (!empty($layer['style'])) {
$classes[$layer['style']] = true;
}
}
}
}
}
}
} catch (Exception $e) {
$errorMessage = "ERROR: " . $e->getMessage();
}
}
}
if (!empty($classes)) {
$captions = array();
foreach ($classes as $class => $val) {
$captionCheck = RevOperations::getCaptionsContentArray($class);
if (!empty($captionCheck)) {
$captions[] = $captionCheck;
}
}
$styles = UniteCssParserRev::parseArrayToCss($captions, "\n");
$styles = UniteCssParserRev::compress_css($styles);
$stylesinnerlayers = str_replace('.tp-caption', '', $styles);
$styles = $styles . "\n\n" . $stylesinnerlayers;
//write styles into dynamic css
UniteFunctionsRev::writeFile($styles, GlobalsRevSlider::$filepath_dynamic_captions);
}
}
}
示例13: previewOutput
/**
*
* preview slider output
* if output object is null - create object
*/
public function previewOutput($sliderID, $output = null, $storeID = 0)
{
if ($sliderID == "empty_output") {
$this->loadingMessageOutput();
exit;
}
if ($output == null) {
$output = new RevSliderOutput();
}
$slider = new RevSlider();
$slider->initByID($sliderID);
$output->setPreviewMode($storeID);
//put the output html
$urlPreviewPattern = UniteBaseClassRev::$url_ajax_actions . "&client_action=preview_slider&sliderid=" . $sliderID . "&lang=[lang]&nonce=[nonce]";
$setBase = Mage::helper('nwdrevslider')->isSsl() ? "https://" : "http://";
?>
<html>
<head>
<link rel='stylesheet' href='<?php
echo Mage::getDesign()->getSkinUrl('css/nwdthemes/revslider/rs/settings.css');
?>
' type='text/css' media='all' />
<?php
$db = new UniteDBRev();
$styles = $db->fetch(GlobalsRevSlider::$table_css);
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
echo '<style type="text/css">' . $styles . '</style>';
//.$stylesinnerlayers
$http = Mage::helper('nwdrevslider')->isSsl() ? 'https' : 'http';
$custom_css = RevOperations::getStaticCss();
echo '<style type="text/css">' . UniteCssParserRev::compress_css($custom_css) . '</style>';
?>
<script type='text/javascript' src='<?php
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
?>
nwdthemes/jquery-1.11.0.min.js'></script>
<script type='text/javascript' src='<?php
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
?>
nwdthemes/jquery-migrate-1.2.1.min.js'></script>
<script type='text/javascript' src='<?php
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
?>
nwdthemes/jquery.noconflict.js'></script>
<script type='text/javascript' src='<?php
echo Mage::getDesign()->getSkinUrl('js/nwdthemes/revslider/rs/jquery.themepunch.tools.min.js');
?>
'></script>
<script type='text/javascript' src='<?php
echo Mage::getDesign()->getSkinUrl('js/nwdthemes/revslider/rs/jquery.themepunch.revolution.min.js');
?>
'></script>
</head>
<body style="padding:0px;margin:0px;">
<?php
$output->putSliderBase($sliderID, $storeID);
?>
</body>
</html>
<?php
exit;
}