本文整理汇总了PHP中RevSliderFunctions::get_responsive_size方法的典型用法代码示例。如果您正苦于以下问题:PHP RevSliderFunctions::get_responsive_size方法的具体用法?PHP RevSliderFunctions::get_responsive_size怎么用?PHP RevSliderFunctions::get_responsive_size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RevSliderFunctions
的用法示例。
在下文中一共展示了RevSliderFunctions::get_responsive_size方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: putJS
//.........这里部分代码省略.........
$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", "45"));
$parallax_level[] = intval($this->slider->getParam("parallax_level_11", "46"));
$parallax_level[] = intval($this->slider->getParam("parallax_level_12", "47"));
$parallax_level[] = intval($this->slider->getParam("parallax_level_13", "48"));
$parallax_level[] = intval($this->slider->getParam("parallax_level_14", "49"));
$parallax_level[] = intval($this->slider->getParam("parallax_level_15", "50"));
$parallax_level[] = intval($this->slider->getParam("parallax_level_16", "55"));
$parallax_level = implode(',', $parallax_level);
}
$operations = new RevSliderOperations();
$arrValues = $operations->getGeneralSettingsValues();
$do_delay = $this->slider->getParam("start_js_after_delay", "0");
$do_delay = apply_filters('revslider_add_js_delay', $do_delay);
$do_delay = intval($do_delay);
$js_to_footer = isset($arrValues['js_to_footer']) && $arrValues['js_to_footer'] == 'on' ? true : false;
$slider_type = $this->slider->getParam('slider-type', 'standard');
//add inline style into the footer
if ($js_to_footer && $this->previewMode == false && $markup_export == false) {
ob_start();
}
$nav_css = '';
if ($markup_export === true) {
echo '<!-- STYLE -->';
}
//ADD SCOPED INLINE STYLES
$this->add_inline_styles();
if ($markup_export === true) {
echo '<!-- /STYLE -->';
}
$csizes = RevSliderFunctions::get_responsive_size($this);
if ($markup_export === true) {
echo '<!-- SCRIPT -->';
}
?>
<script type="text/javascript">
<?php
if (!$markup_export) {
//not needed for html markup export
?>
/******************************************
- PREPARE PLACEHOLDER FOR SLIDER -
******************************************/
var setREVStartSize=function(){
try{var e=new Object,i=jQuery(window).width(),t=9999,r=0,n=0,l=0,f=0,s=0,h=0;
e.c = jQuery('#<?php
echo $this->sliderHtmlID;
?>
');
<?php
if (isset($csizes['level']) && !empty($csizes['level'])) {
?>
e.responsiveLevels = <?php
echo '[' . $csizes['level'] . ']';
?>
;
e.gridwidth = <?php
echo '[' . $csizes['width'] . ']';
?>
;
e.gridheight = <?php
echo '[' . $csizes['height'] . ']';