• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP RevSliderBase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: get_all_navigations

 /**
  * Get all Navigations
  * @since: 5.0
  **/
 public static function get_all_navigations($defaults = true)
 {
     global $wpdb;
     $navigations = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . RevSliderGlobals::TABLE_NAVIGATION_NAME, ARRAY_A);
     foreach ($navigations as $key => $nav) {
         $navigations[$key]['css'] = RevSliderBase::stripslashes_deep(json_decode($navigations[$key]['css'], true));
         $navigations[$key]['markup'] = RevSliderBase::stripslashes_deep(json_decode($navigations[$key]['markup'], true));
         if (isset($navigations[$key]['settings'])) {
             $navigations[$key]['settings'] = RevSliderBase::stripslashes_deep(json_decode($navigations[$key]['settings'], true));
         }
     }
     if ($defaults) {
         $def = self::get_default_navigations();
         if (!empty($def)) {
             foreach ($def as $key => $nav) {
                 $def[$key]['css'] = RevSliderBase::stripslashes_deep(json_decode($def[$key]['css'], true));
                 $def[$key]['markup'] = RevSliderBase::stripslashes_deep(json_decode($def[$key]['markup'], true));
             }
             if (isset($def[$key]['settings'])) {
                 $def[$key]['settings'] = RevSliderBase::stripslashes_deep(json_decode($def[$key]['settings'], true));
             }
             $navigations = array_merge($navigations, $def);
         }
     }
     return $navigations;
 }
开发者ID:SayenkoDesign,项目名称:ividf,代码行数:30,代码来源:navigation.class.php


示例2: onAddScripts

 /**
  * 
  * a must function. you can not use it, but the function must stay there!
  */
 public static function onAddScripts()
 {
     global $wp_version;
     $slver = apply_filters('revslider_remove_version', RevSliderGlobals::SLIDER_REVISION);
     $style_pre = '';
     $style_post = '';
     if ($wp_version < 3.7) {
         $style_pre = '<style type="text/css">';
         $style_post = '</style>';
     }
     $operations = new RevSliderOperations();
     $arrValues = $operations->getGeneralSettingsValues();
     $includesGlobally = RevSliderFunctions::getVal($arrValues, "includes_globally", "on");
     $includesFooter = RevSliderFunctions::getVal($arrValues, "js_to_footer", "off");
     $strPutIn = RevSliderFunctions::getVal($arrValues, "pages_for_includes");
     $isPutIn = RevSliderOutput::isPutIn($strPutIn, true);
     $do_inclusion = apply_filters('revslider_include_libraries', false);
     //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" && $do_inclusion == false) {
         $isWidgetActive = is_active_widget(false, false, "rev-slider-widget", true);
         $hasShortcode = RevSliderFunctionsWP::hasShortcode("rev_slider");
         if ($isWidgetActive == false && $hasShortcode == false) {
             return false;
         }
     }
     wp_enqueue_style('rs-plugin-settings', RS_PLUGIN_URL . 'public/assets/css/settings.css', array(), $slver);
     $custom_css = RevSliderOperations::getStaticCss();
     $custom_css = RevSliderCssParser::compress_css($custom_css);
     if (trim($custom_css) == '') {
         $custom_css = '#rs-demo-id {}';
     }
     wp_add_inline_style('rs-plugin-settings', $style_pre . $custom_css . $style_post);
     $setBase = is_ssl() ? "https://" : "http://";
     wp_enqueue_script(array('jquery'));
     $waitfor = array('jquery');
     $enable_logs = RevSliderFunctions::getVal($arrValues, "enable_logs", 'off');
     if ($enable_logs == 'on') {
         wp_enqueue_script('enable-logs', RS_PLUGIN_URL . 'public/assets/js/jquery.themepunch.enablelog.js', $waitfor, $slver);
         $waitfor[] = 'enable-logs';
     }
     $ft = $includesFooter == "off" ? false : true;
     wp_enqueue_script('tp-tools', RS_PLUGIN_URL . 'public/assets/js/jquery.themepunch.tools.min.js', $waitfor, $slver, $ft);
     wp_enqueue_script('revmin', RS_PLUGIN_URL . 'public/assets/js/jquery.themepunch.revolution.min.js', 'tp-tools', $slver, $ft);
     add_action('wp_head', array('RevSliderFront', 'add_meta_generator'));
     add_action("wp_footer", array('RevSliderFront', "load_icon_fonts"));
     // Async JS Loading
     $js_defer = RevSliderBase::getVar($arrValues, 'js_defer', 'off');
     if ($js_defer != 'off') {
         add_filter('clean_url', array('RevSliderFront', 'add_defer_forscript'), 11, 1);
     }
     add_action('wp_before_admin_bar_render', array('RevSliderFront', 'add_admin_menu_nodes'));
     add_action('wp_footer', array('RevSliderFront', 'putAdminBarMenus'));
 }
开发者ID:ksan5835,项目名称:maadithottam,代码行数:58,代码来源:revslider-front.class.php


示例3: get_all_navigations

 /**
  * Get all Navigations
  * @since: 5.0
  **/
 public static function get_all_navigations($defaults = true, $raw = false)
 {
     global $wpdb;
     $navigations = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . RevSliderGlobals::TABLE_NAVIGATION_NAME, ARRAY_A);
     if ($raw == false) {
         foreach ($navigations as $key => $nav) {
             $navigations[$key]['css'] = RevSliderBase::stripslashes_deep(json_decode($navigations[$key]['css'], true));
             $navigations[$key]['markup'] = RevSliderBase::stripslashes_deep(json_decode($navigations[$key]['markup'], true));
             if (isset($navigations[$key]['settings'])) {
                 $navigations[$key]['settings'] = RevSliderBase::stripslashes_deep(json_decode($navigations[$key]['settings'], true));
                 if (!is_array($navigations[$key]['settings'])) {
                     $navigations[$key]['settings'] = json_decode($navigations[$key]['settings'], true);
                 }
             }
         }
     }
     if ($defaults) {
         $def = self::get_default_navigations();
         $default_presets = get_option('revslider-nav-preset-default', array());
         if (!empty($def)) {
             if ($raw == false) {
                 foreach ($def as $key => $nav) {
                     $def[$key]['css'] = RevSliderBase::stripslashes_deep(json_decode($def[$key]['css'], true));
                     $def[$key]['markup'] = RevSliderBase::stripslashes_deep(json_decode($def[$key]['markup'], true));
                     if (isset($def[$key]['settings'])) {
                         $def[$key]['settings'] = RevSliderBase::stripslashes_deep(json_decode($def[$key]['settings'], true));
                         if (!is_array($def[$key]['settings'])) {
                             $def[$key]['settings'] = json_decode($def[$key]['settings'], true);
                         }
                     }
                     //add custom settings (placeholders) to the default navigation
                     if (!empty($default_presets)) {
                         if (!isset($def[$key]['settings'])) {
                             $def[$key]['settings'] = array();
                         }
                         if (!isset($def[$key]['settings']['presets'])) {
                             $def[$key]['settings']['presets'] = array();
                         }
                         foreach ($default_presets as $id => $v) {
                             if ($id !== $def[$key]['id']) {
                                 continue;
                             }
                             foreach ($v as $values) {
                                 $def[$key]['settings']['presets'][] = $values;
                             }
                         }
                     }
                 }
             }
             $navigations = array_merge($navigations, $def);
         }
     }
     return $navigations;
 }
开发者ID:ksan5835,项目名称:maadithottam,代码行数:58,代码来源:navigation.class.php


示例4: __construct

 /**
  * 
  * main constructor		 
  */
 public function __construct($t)
 {
     parent::__construct($t);
     //set view
     self::$view = self::getGetVar("view");
     if (empty(self::$view)) {
         self::$view = 'sliders';
     }
     //add internal hook for adding a menu in arrMenus
     add_action('admin_menu', array('RevSliderBaseAdmin', 'addAdminMenu'));
     add_action('add_meta_boxes', array('RevSliderBaseAdmin', 'onAddMetaboxes'));
     add_action('save_post', array('RevSliderBaseAdmin', 'onSavePost'));
     //if not inside plugin don't continue
     if ($this->isInsidePlugin() == true) {
         add_action('admin_enqueue_scripts', array('RevSliderBaseAdmin', 'addCommonScripts'));
         add_action('admin_enqueue_scripts', array('RevSliderAdmin', 'onAddScripts'));
     }
     //a must event for any admin. call onActivate function.
     $this->addEvent_onActivate();
     $this->addAction_onActivate();
     self::addActionAjax('show_image', 'onShowImage');
 }
开发者ID:SayenkoDesign,项目名称:ividf,代码行数:26,代码来源:base-admin.class.php


示例5: get_image_attributes

 public function get_image_attributes($slider_type)
 {
     $params = $this->params;
     $bgType = RevSliderBase::getVar($params, "background_type", "transparent");
     $bgColor = RevSliderBase::getVar($params, "slide_bg_color", "transparent");
     $bgFit = RevSliderBase::getVar($params, "bg_fit", "cover");
     $bgFitX = intval(RevSliderBase::getVar($params, "bg_fit_x", "100"));
     $bgFitY = intval(RevSliderBase::getVar($params, "bg_fit_y", "100"));
     $bgPosition = RevSliderBase::getVar($params, "bg_position", "center top");
     $bgPositionX = intval(RevSliderBase::getVar($params, "bg_position_x", "0"));
     $bgPositionY = intval(RevSliderBase::getVar($params, "bg_position_y", "0"));
     $bgRepeat = RevSliderBase::getVar($params, "bg_repeat", "no-repeat");
     $bgStyle = ' ';
     if ($bgFit == 'percentage') {
         $bgStyle .= "background-size: " . $bgFitX . '% ' . $bgFitY . '%;';
     } else {
         $bgStyle .= "background-size: " . $bgFit . ";";
     }
     if ($bgPosition == 'percentage') {
         $bgStyle .= "background-position: " . $bgPositionX . '% ' . $bgPositionY . '%;';
     } else {
         $bgStyle .= "background-position: " . $bgPosition . ";";
     }
     $bgStyle .= "background-repeat: " . $bgRepeat . ";";
     $thumb = '';
     switch ($slider_type) {
         case 'gallery':
             $imageID = RevSliderBase::getVar($params, "image_id");
             if (empty($imageID)) {
                 $thumb = RevSliderBase::getVar($params, "image");
                 $imgID = RevSliderBase::get_image_id_by_url($thumb);
                 if ($imgID !== false) {
                     $thumb = RevSliderFunctionsWP::getUrlAttachmentImage($imgID, RevSliderFunctionsWP::THUMB_MEDIUM);
                 }
             } else {
                 $thumb = RevSliderFunctionsWP::getUrlAttachmentImage($imageID, RevSliderFunctionsWP::THUMB_MEDIUM);
             }
             break;
         case 'posts':
             $thumb = RS_PLUGIN_URL . 'public/assets/assets/sources/post.png';
             $bgStyle = 'background-size: cover;';
             break;
         case 'facebook':
             $thumb = RS_PLUGIN_URL . 'public/assets/assets/sources/fb.png';
             $bgStyle = 'background-size: cover;';
             break;
         case 'twitter':
             $thumb = RS_PLUGIN_URL . 'public/assets/assets/sources/tw.png';
             $bgStyle = 'background-size: cover;';
             break;
         case 'instagram':
             $thumb = RS_PLUGIN_URL . 'public/assets/assets/sources/ig.png';
             $bgStyle = 'background-size: cover;';
             break;
         case 'flickr':
             $thumb = RS_PLUGIN_URL . 'public/assets/assets/sources/fr.png';
             $bgStyle = 'background-size: cover;';
             break;
         case 'youtube':
             $thumb = RS_PLUGIN_URL . 'public/assets/assets/sources/yt.png';
             $bgStyle = 'background-size: cover;';
             break;
         case 'vimeo':
             $thumb = RS_PLUGIN_URL . 'public/assets/assets/sources/vm.png';
             $bgStyle = 'background-size: cover;';
             break;
     }
     if ($thumb == '') {
         $thumb = RevSliderBase::getVar($params, "image");
     }
     $bg_fullstyle = '';
     $bg_extraClass = '';
     $data_urlImageForView = '';
     //if($bgType=="image" || $bgType=="streamvimeo" || $bgType=="streamyoutube" || $bgType=="streaminstagram" || $bgType=="html5") {
     $data_urlImageForView = $thumb;
     $bg_fullstyle = $bgStyle;
     //}
     if ($bgType == "solid") {
         $bg_fullstyle = 'background-color:' . $bgColor . ';';
     }
     if ($bgType == "trans" || $bgType == "transparent") {
         $bg_extraClass = 'mini-transparent';
     }
     return array('url' => $data_urlImageForView, 'class' => $bg_extraClass, 'style' => $bg_fullstyle);
 }
开发者ID:hathbanger,项目名称:squab,代码行数:85,代码来源:slide.class.php


示例6: _e

		<div id="dialog_save_animation" class="dialog_save_animation" title="<?php 
_e('Save Under', REVSLIDER_TEXTDOMAIN);
?>
" style="display:none;">
			<div style="margin-top:14px">
				<span style="margin-right:15px"><?php 
_e('Save Under:', REVSLIDER_TEXTDOMAIN);
?>
</span><input id="rs-save-under-animation" type="text" name="rs-save-under-animation" value="" />
			</div>
		</div>
		
		<script type="text/javascript">
			
			<?php 
$icon_sets = RevSliderBase::get_icon_sets();
$sets = array();
if (!empty($icon_sets)) {
    $sets = implode("','", $icon_sets);
}
?>

			 var rs_icon_sets = new Array('<?php 
echo $sets;
?>
');
			
			 
			jQuery(document).ready(function() {

				
开发者ID:jfbelisle,项目名称:magexpress,代码行数:29,代码来源:slide-editor.php


示例7: _e

" class="label" origtitle=""><?php 
_e('Animation Duration', REVSLIDER_TEXTDOMAIN);
?>
</span>
										<input type="text" class="text-sidebar withlabel" id="def-transition_duration" name="def-transition_duration" value="<?php 
echo $def_trans_dur;
?>
">
										<span><?php 
_e('ms', REVSLIDER_TEXTDOMAIN);
?>
</span>
										<div class="clear"></div>

										<?php 
$img_sizes = RevSliderBase::get_all_image_sizes();
$bg_image_size = RevSliderFunctions::getVal($arrFieldsParams, 'def-image_source_type', 'full');
?>
										<input type="checkbox" class="rs-ingore-save rs-reset-slide-setting" name="reset-image_source_type" /> <span id="label_def-image_source_type" class="label" origtitle="<?php 
_e("Default main image source size by creating a new slide.", REVSLIDER_TEXTDOMAIN);
?>
" ><?php 
_e('Image Source Size', REVSLIDER_TEXTDOMAIN);
?>
</span>
										<select name="def-image_source_type">
											<?php 
foreach ($img_sizes as $imghandle => $imgSize) {
    $sel = $bg_image_size == $imghandle ? ' selected="selected"' : '';
    echo '<option value="' . $imghandle . '"' . $sel . '>' . $imgSize . '</option>';
}
开发者ID:johnmanlove,项目名称:Galveston_Island,代码行数:31,代码来源:slider-main-options.php


示例8:

	
	var global_grid_sizes = {
		'desktop': '<?php 
echo RevSliderBase::getVar($glval, 'width', 1230);
?>
',
		'notebook': '<?php 
echo RevSliderBase::getVar($glval, 'width_notebook', 1230);
?>
',
		'tablet': '<?php 
echo RevSliderBase::getVar($glval, 'width_tablet', 992);
?>
',
		'mobile': '<?php 
echo RevSliderBase::getVar($glval, 'width_mobile', 480);
?>
'
	};
	
</script>

<div id="div_debug"></div>

<div class='unite_error_message' id="error_message" style="display:none;"></div>

<div class='unite_success_message' id="success_message" style="display:none;"></div>

<div id="viewWrapper" class="view_wrapper<?php 
echo $wrapperClass;
?>
开发者ID:ntngiri,项目名称:Wordpress-dhaba,代码行数:30,代码来源:master-view.php


示例9: get_slider_speed


//.........这里部分代码省略.........
                    }
                    if (isset($slide['params']['image_id'])) {
                        $cur_img_id = $slide['params']['image_id'];
                        //get image sizes by ID
                        $urlImage = wp_get_attachment_image_src($slide['params']['image_id'], $slide['params']['image_source_type']);
                    }
                    if ($urlImage === false) {
                        $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($slide['params']['image']);
                        if ($cur_img_id !== false) {
                            $urlImage = wp_get_attachment_image_src($cur_img_id, $slide['params']['image_source_type']);
                        }
                    }
                    if ($urlImage !== false) {
                        $infos['id'] = $cur_img_id;
                        $file = get_attached_file($cur_img_id);
                        $infos['info'] = pathinfo($file);
                        if (file_exists($file)) {
                            $infos['size'] = filesize($file);
                            $infos['size-format'] = size_format($infos['size'], 2);
                            $img_size += $infos['size'];
                            if ($slide_counter == 1) {
                                $firstslide_size += $infos['size'];
                            }
                            if ($slide_counter == 1 || $slide_counter == 2 || $slide_counter == count($slides)) {
                                $smartslide_size += $infos['size'];
                            }
                        } else {
                            $infos['id'] = false;
                        }
                    } else {
                        $infos['id'] = 'external';
                    }
                    if (strpos($slide_id, 'static_') !== false) {
                        $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_' . $sliderID);
                    } else {
                        $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=' . $slide_id);
                    }
                    $used_images[$slide['params']['image']] = $infos;
                }
                if (isset($slide['layers']) && !empty($slide['layers']) && count($slide['layers']) > 0) {
                    $using_layeranim = true;
                    foreach ($slide['layers'] as $lKey => $layer) {
                        switch ($layer['type']) {
                            case 'image':
                                $infos = array();
                                if (isset($layer['image_url']) && trim($layer['image_url']) != '') {
                                    $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($layer['image_url']);
                                    if ($cur_img_id !== false) {
                                        if (!isset($layer['layer-image-size']) || $layer['layer-image-size'] == 'auto') {
                                            $layer['layer-image-size'] = $slide['params']['image_source_type'];
                                        }
                                        $urlImage = wp_get_attachment_image_src($cur_img_id, $layer['layer-image-size']);
                                        if ($urlImage !== false) {
                                            $infos['id'] = $cur_img_id;
                                            $file = get_attached_file($cur_img_id);
                                            $infos['info'] = pathinfo($file);
                                            if (file_exists($file)) {
                                                $infos['size'] = filesize($file);
                                                $infos['size-format'] = size_format($infos['size'], 2);
                                                $img_size += $infos['size'];
                                                if ($slide_counter == 1) {
                                                    $firstslide_size += $infos['size'];
                                                }
                                                if ($slide_counter == 1 || $slide_counter == 2 || $slide_counter == count($slides)) {
                                                    $smartslide_size += $infos['size'];
                                                }
开发者ID:hathbanger,项目名称:squab,代码行数:67,代码来源:operations.class.php


示例10: foreach

">
						<?php 
            echo '<div class="template_slider_title">' . $c_title . '</div>';
            foreach ($c_slides as $c_slide) {
                ?>
							<div class="temp_slide_single_wrapper">
							<?php 
                $mod_slide = array();
                $mod_slide['id'] = $c_slide->getID();
                $mod_slide['params'] = $c_slide->getParams();
                //$mod_slide['layers'] = $c_slide->getLayers();
                $mod_slide['settings'] = $c_slide->getSettings();
                $mod_slide['settings']['width'] = $width;
                $mod_slide['settings']['height'] = $height;
                $mod_slide["user_template"] = true;
                $title = str_replace("'", "", RevSliderBase::getVar($mod_slide['params'], 'title', 'Slide'));
                $tmpl->write_template_markup($mod_slide);
                ?>
								<div class="template_meta_line">									
									<span class="template_local"><?php 
                _e("Local Slide", "revslider");
                ?>
</span>									
								</div>	
								<div class="template_thumb_title"><?php 
                echo $title;
                ?>
</div>
							</div>
							<?php 
            }
开发者ID:ksan5835,项目名称:maadithottam,代码行数:31,代码来源:template-selector.php


示例11: _e

            ?>
</a>
						<?php 
        }
        ?>
					<a class="button-primary  export_slider_overview" id="export_slider_<?php 
        echo $id;
        ?>
" href="javascript:void(0);" ><i class="revicon-export"></i><?php 
        _e("Export", REVSLIDER_TEXTDOMAIN);
        ?>
</a>
					<?php 
        $operations = new RevSliderOperations();
        $general_settings = $operations->getGeneralSettingsValues();
        $show_dev_export = RevSliderBase::getVar($general_settings, 'show_dev_export', 'off');
        if ($show_dev_export == 'on') {
            ?>
						<a class="button-primary  export_slider_standalone" id="export_slider_standalone_<?php 
            echo $id;
            ?>
" href="javascript:void(0);" ><i class="revicon-export"></i><?php 
            _e("Export to HTML", REVSLIDER_TEXTDOMAIN);
            ?>
</a>
						<?php 
        }
        ?>
					<a class="button-primary  button_delete_slider" id="button_delete_<?php 
        echo $id;
        ?>
开发者ID:jfbelisle,项目名称:magexpress,代码行数:31,代码来源:sliders-list.php


示例12: importSliderFromPost


//.........这里部分代码省略.........
                 //add that we are an template
                 $arrInsert['type'] = 'template';
                 $sliderParams['uid'] = $is_template;
                 $json_params = json_encode($sliderParams);
                 $arrInsert['params'] = $json_params;
             }
             $sliderID = $this->db->insert(RevSliderGlobals::$table_sliders, $arrInsert);
         }
         //-------- Slides Handle -----------
         //delete current slides
         if ($sliderExists) {
             $this->deleteAllSlides();
         }
         //create all slides
         $arrSlides = $arrSlider["slides"];
         $alreadyImported = array();
         //$content_url = content_url();
         $upload_dir = wp_upload_dir();
         $content_url = $upload_dir['baseurl'] . '/revslider/assets/svg/';
         //wpml compatibility
         $slider_map = array();
         foreach ($arrSlides as $sl_key => $slide) {
             $params = $slide["params"];
             $layers = $slide["layers"];
             $settings = isset($slide["settings"]) ? $slide["settings"] : '';
             //convert params images:
             if ($importZip === true) {
                 //we have a zip, check if exists
                 //remove image_id as it is not needed in import
                 if (isset($params['image_id'])) {
                     unset($params['image_id']);
                 }
                 if (isset($params["image"])) {
                     $params["image"] = RevSliderBase::check_file_in_zip($d_path, $params["image"], $sliderParams["alias"], $alreadyImported);
                     $params["image"] = RevSliderFunctionsWP::getImageUrlFromPath($params["image"]);
                 }
                 if (isset($params["background_image"])) {
                     $params["background_image"] = RevSliderBase::check_file_in_zip($d_path, $params["background_image"], $sliderParams["alias"], $alreadyImported);
                     $params["background_image"] = RevSliderFunctionsWP::getImageUrlFromPath($params["background_image"]);
                 }
                 if (isset($params["slide_thumb"])) {
                     $params["slide_thumb"] = RevSliderBase::check_file_in_zip($d_path, $params["slide_thumb"], $sliderParams["alias"], $alreadyImported);
                     $params["slide_thumb"] = RevSliderFunctionsWP::getImageUrlFromPath($params["slide_thumb"]);
                 }
                 if (isset($params["show_alternate_image"])) {
                     $params["show_alternate_image"] = RevSliderBase::check_file_in_zip($d_path, $params["show_alternate_image"], $sliderParams["alias"], $alreadyImported);
                     $params["show_alternate_image"] = RevSliderFunctionsWP::getImageUrlFromPath($params["show_alternate_image"]);
                 }
                 if (isset($params['background_type']) && $params['background_type'] == 'html5') {
                     if (isset($params['slide_bg_html_mpeg']) && $params['slide_bg_html_mpeg'] != '') {
                         $params['slide_bg_html_mpeg'] = RevSliderFunctionsWP::getImageUrlFromPath(RevSliderBase::check_file_in_zip($d_path, $params["slide_bg_html_mpeg"], $sliderParams["alias"], $alreadyImported, true));
                     }
                     if (isset($params['slide_bg_html_webm']) && $params['slide_bg_html_webm'] != '') {
                         $params['slide_bg_html_webm'] = RevSliderFunctionsWP::getImageUrlFromPath(RevSliderBase::check_file_in_zip($d_path, $params["slide_bg_html_webm"], $sliderParams["alias"], $alreadyImported, true));
                     }
                     if (isset($params['slide_bg_html_ogv']) && $params['slide_bg_html_ogv'] != '') {
                         $params['slide_bg_html_ogv'] = RevSliderFunctionsWP::getImageUrlFromPath(RevSliderBase::check_file_in_zip($d_path, $params["slide_bg_html_ogv"], $sliderParams["alias"], $alreadyImported, true));
                     }
                 }
             }
             //convert layers images:
             foreach ($layers as $key => $layer) {
                 //import if exists in zip folder
                 if ($importZip === true) {
                     //we have a zip, check if exists
                     if (isset($layer["image_url"])) {
开发者ID:ksan5835,项目名称:maadithottam,代码行数:67,代码来源:slider.class.php


示例13: putCreativeLayer

 /**
  * put creative layer
  */
 private function putCreativeLayer(RevSliderSlide $slide, $static_slide = false)
 {
     $layers = $slide->getLayers();
     $slider_type = $this->slider->getParam('slider-type');
     $icon_sets = RevSliderBase::set_icon_sets(array());
     $ignore_styles = array('font-family', 'color', 'font-weight', 'font-style', 'text-decoration');
     $customAnimations = RevSliderOperations::getCustomAnimations('customin');
     //get all custom animations
     $customEndAnimations = RevSliderOperations::getCustomAnimations('customout');
     //get all custom animations
     $startAnimations = RevSliderOperations::getArrAnimations(false);
     //only get the standard animations
     $endAnimations = RevSliderOperations::getArrEndAnimations(false);
     //only get the standard animations
     $lazyLoad = $this->slider->getParam('lazy_load_type', false);
     if ($lazyLoad === false) {
         //do fallback checks to removed lazy_load value since version 5.0 and replaced with an enhanced version
         $old_ll = $this->slider->getParam('lazy_load', 'off');
         $lazyLoad = $old_ll == 'on' ? 'all' : 'none';
     }
     $isTemplate = $this->slider->getParam('template', 'false');
     $enable_custom_size_notebook = $this->slider->getParam('enable_custom_size_notebook', 'off');
     $enable_custom_size_tablet = $this->slider->getParam('enable_custom_size_tablet', 'off');
     $enable_custom_size_iphone = $this->slider->getParam('enable_custom_size_iphone', 'off');
     $enabled_sizes = array('desktop' => 'on', 'notebook' => $enable_custom_size_notebook, 'tablet' => $enable_custom_size_tablet, 'mobile' => $enable_custom_size_iphone);
     $adv_resp_sizes = $enable_custom_size_notebook == 'on' || $enable_custom_size_tablet == 'on' || $enable_custom_size_iphone == 'on' ? true : false;
     $slider_selectable = $this->slider->getParam('def-layer_selection', 'off');
     $image_source_type = $this->slider->getParam('def-image_source_type', 'full');
     if (empty($layers)) {
         return false;
     }
     $zIndex = 5;
     $slideID = $slide->getID();
     $in_class_usage = array();
     foreach ($layers as $layer) {
         $unique_id = RevSliderFunctions::getVal($layer, 'unique_id');
         if ($unique_id == '') {
             $unique_id = $zIndex - 4;
         }
         //$visible = RevSliderFunctions::getVal($layer, 'visible', true);
         //if($visible == false) continue;
         $type = RevSliderFunctions::getVal($layer, 'type', 'text');
         $svg_val = '';
         //set if video full screen
         $videoclass = '';
         $isFullWidthVideo = false;
         if ($type == 'video') {
             $videoclass = ' tp-videolayer';
             $videoData = RevSliderFunctions::getVal($layer, 'video_data');
             if (!empty($videoData)) {
                 $videoData = (array) $videoData;
                 $isFullWidthVideo = RevSliderFunctions::getVal($videoData, 'fullwidth');
                 $isFullWidthVideo = RevSliderFunctions::strToBool($isFullWidthVideo);
             } else {
                 $videoData = array();
             }
         } elseif ($type == 'audio') {
             $videoclass = ' tp-audiolayer';
             $videoData = RevSliderFunctions::getVal($layer, 'video_data');
             if (!empty($videoData)) {
                 $videoData = (array) $videoData;
             } else {
                 $videoData = array();
             }
         }
         $class = RevSliderFunctions::getVal($layer, 'style');
         if (trim($class) !== '') {
             $this->class_include['.' . trim($class)] = true;
             //add classname for style inclusion
             //get class styles for further compare usage
             if (!isset($in_class_usage[trim($class)])) {
                 $in_class_usage[trim($class)] = RevSliderOperations::getCaptionsContentArray(trim($class));
             }
         }
         //set defaults for stylings
         $dff = '';
         $dta = 'left';
         $dttr = 'none';
         $dfs = 'normal';
         $dtd = 'none';
         $dpa = '0px 0px 0px 0px';
         $dbs = 'none';
         $dbw = '0px';
         $dbr = '0px 0px 0px 0px';
         $dc = 'auto';
         $dfos = false;
         $dlh = false;
         $dfw = false;
         $dco = false;
         $dcot = 1;
         $dbc = 'transparent';
         $dbt = 1;
         $dboc = 'transparent';
         $dbot = 1;
         /**
          * remove this following to get back to 5.0.4.1 in terms of output styling
          **/
//.........这里部分代码省略.........
开发者ID:surreal8,项目名称:wptheme,代码行数:101,代码来源:output.class.php


示例14: putJavascript

    /**
     * 
     * javascript output to footer
     */
    public static function putJavascript()
    {
        $urlPlugin = RS_PLUGIN_URL . "public/assets/";
        $operations = new RevSliderOperations();
        $arrValues = $operations->getGeneralSettingsValues();
        $js_defer = RevSliderBase::getVar($arrValues, 'js_defer', 'off');
        if ($js_defer != 'off') {
            $js_defer = 'defer="defer"';
        } else {
            $js_defer = '';
        }
        ?>

		<script type='text/javascript' <?php 
        echo $js_defer;
        ?>
 src='<?php 
        echo $urlPlugin;
        ?>
js/jquery.themepunch.tools.min.js?rev=<?php 
        echo RevSliderGlobals::SLIDER_REVISION;
        ?>
'></script>
		<script type='text/javascript' <?php 
        echo $js_defer;
        ?>
 src='<?php 
        echo $urlPlugin;
        ?>
js/jquery.themepunch.revolution.min.js?rev=<?php 
        echo RevSliderGlobals::SLIDER_REVISION;
        ?>
'></script>
		<?php 
    }
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:39,代码来源:revslider-front.class.php


示例15: RevSliderOperations

$operations = new RevSliderOperations();
$arrValues = $operations->getGeneralSettingsValues();
$role = RevSliderBase::getVar($arrValues, 'role', 'admin');
$includes_globally = RevSliderBase::getVar($arrValues, 'includes_globally', 'on');
$pages_for_includes = RevSliderBase::getVar($arrValues, 'pages_for_includes', '');
$js_to_footer = RevSliderBase::getVar($arrValues, 'js_to_footer', 'off');
$js_defer = RevSliderBase::getVar($arrValues, 'js_defer', 'off');
$show_dev_export = RevSliderBase::getVar($arrValues, 'show_dev_export', 'off');
$change_font_loading = RevSliderBase::getVar($arrValues, 'change_font_loading', '');
$enable_logs = RevSliderBase::getVar($arrValues, 'enable_logs', 'off');
$enable_newschannel = apply_filters('revslider_set_notifications', 'on');
$enable_newschannel = RevSliderBase::getVar($arrValues, "enable_newschannel", $enable_newschannel);
$width = RevSliderBase::getVar($arrValues, 'width', 1240);
$width_notebook = RevSliderBase::getVar($arrValues, 'width_notebook', 1024);
$width_tablet = RevSliderBase::getVar($arrValues, 'width_tablet', 778);
$width_mobile = RevSliderBase::getVar($arrValues, 'width_mobile', 480);
?>

<div id="dialog_general_settings" title="<?php 
_e("General Settings", REVSLIDER_TEXTDOMAIN);
?>
" style="display:none;">

	<div class="settings_wrapper unite_settings_wide">
		<form name="form_general_settings" id="form_general_settings">
			<script type="text/javascript">
				g_settingsObj['form_general_settings'] = {};
			</script>
			<table class="form-table">				
				<tbody>
					<tr id="role_row" valign="top">
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:31,代码来源:dialog-global-settings.php


示例16: apply_filters

$arrValues = $operations->getGeneralSettingsValues();
$role = RevSliderBase::getVar($arrValues, 'role', 'admin');
$includes_globally = RevSliderBase::getVar($arrValues, 'includes_globally', 'on');
$pages_for_includes = RevSliderBase::getVar($arrValues, 'pages_for_includes', '');
$js_to_footer = RevSliderBase::getVar($arrValues, 'js_to_footer', 'off');
$js_defer = RevSliderBase::getVar($arrValues, 'js_defer', 'off');
$show_dev_export = RevSliderBase::getVar($arrValues, 'show_dev_export', 'off');
$change_font_loading = RevSliderBase::getVar($arrValues, 'change_font_loading', '');
$enable_logs = RevSliderBase::getVar($arrValues, 'enable_logs', 'off');
$enable_newschannel = apply_filters('revslider_set_notifications', 'on');
$enable_newschannel = RevSliderBase::getVar($arrValues, "enable_newschannel", $enable_newschannel);
$width = RevSliderBase::getVar($arrValues, 'width', 1240);
$width_notebook = RevSliderBase::getVar($arrValues, 'width_notebook', 1024);
$width_tablet = RevSliderBase::getVar($arrValues, 'width_tablet', 778);
$width_mobile = RevSliderBase::getVar($arrValues, 'width_mobile', 480);
$force_activation_box = RevSliderBase::getVar($arrValues, 'force_activation_box', 'off');
?>

<div id="dialog_general_settings" title="<?php 
_e("General Settings", 'revslider');
?>
" style="display:none;">

	<div class="settings_wrapper unite_settings_wide">
		<form name="form_general_settings" id="form_general_settings">
			<script type="text/javascript">
				g_settingsObj['form_general_settings'] = {};
			</script>
			<table class="form-table">				
				<tbody>
					<tr id="role_row" valign="top">
开发者ID:dawnthemes,项目名称:tkb,代码行数:31,代码来源:dialog-global-settings.php


示例17: _e

			<div id="addsvg-list-of-items">
				<div class="object_library_search_wrapper">
					<input type="text" id="obj_library_search" placeholder="<?php 
_e("Search for Objects...", 'revslider');
?>
" /><span id="obj_library_search_trigger"><i class="eg-icon-search"></i></span>
				</div>
				<div class="object-tag-list"></div>
				<div id="object_library_results">
					<div id="object_library_results-inner">
					</div>
				</div>
				<script>
					var svg_libraries = [];									
				<?php 
$svgs = RevSliderBase::get_svg_sets_full();
if (!empty($svgs) && is_array($svgs)) {
    foreach ($svgs as $svghandle => $svgfiles) {
        ?>
																																	
							jQuery('.object-tag-list').append('<span class="obj_library_cats" data-group="<?php 
        echo $svghandle;
        ?>
"><?php 
        echo $svghandle;
        ?>
</span>')
							jQuery('#object_library_results-inner').append('<div style="display:none" class="rs-svg-library rs-svg-<?php 
        echo esc_attr($svghandle);
        ?>
"</div>');
开发者ID:hugocica,项目名称:locomotiva-2016,代码行数:31,代码来源:slide-stage.php


示例18: write_template_markup

    /**
     * output markup for template
     * @since: 5.0
     */
    public function write_template_markup($template, $slider_id = false)
    {
        $params = $template['params'];
        $settings = $template['settings'];
        $slide_id = $template['id'];
        $title = str_replace("'", "", RevSliderBase::getVar($params, 'title', 'Slide'));
        if ($slider_id !== false) {
            $title = '';
        }
        //remove Title if Slider
        $width = RevSliderBase::getVar($settings, "width", 1240);
        $height = RevSliderBase::getVar($settings, "height", 868);
        $bgType = RevSliderBase::getVar($params, "background_type", "transparent");
        $bgColor = RevSliderBase::getVar($params, "slide_bg_color", "transparent");
        $bgFit = RevSliderBase::getVar($params, "bg_fit", "cover");
        $bgFitX = intval(RevSliderBase::getVar($pa 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP RevSliderCssParser类代码示例发布时间:2022-05-23
下一篇:
PHP RevSlider类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap