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


PHP RevSlide::getLayerID_by_unique_id方法代码示例

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


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

示例1: putCreativeLayer


//.........这里部分代码省略.........
                 $parallax_class = ' rs-parallaxlevel-' . $slide_level;
             }
         }
         //check for actions
         $all_actions = RevSliderFunctions::getVal($layer, 'layer_action', array());
         $a_tooltip_event = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'tooltip_event', array()));
         $a_action = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'action', array()));
         $a_image_link = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'image_link', array()));
         $a_link_open_in = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'link_open_in', array()));
         $a_jump_to_slide = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'jump_to_slide', array()));
         $a_scrolloffset = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'scrollunder_offset', array()));
         $a_actioncallback = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'actioncallback', array()));
         $a_target = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'layer_target', array()));
         $a_action_delay = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'action_delay', array()));
         $a_link_type = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'link_type', array()));
         $a_toggle_layer_type = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'toggle_layer_type', array()));
         $a_toggle_class = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($all_actions, 'toggle_class', array()));
         $a_html = '';
         $a_events = array();
         if (!empty($a_action)) {
             $a_html .= "\t\t\tdata-actions='";
             foreach ($a_action as $num => $action) {
                 $layer_attrID = '';
                 switch ($action) {
                     case 'start_in':
                     case 'start_out':
                     case 'start_video':
                     case 'stop_video':
                     case 'toggle_layer':
                     case 'toggle_video':
                     case 'simulate_click':
                     case 'toggle_class':
                         //get the ID of the layer with the unique_id that is $a_target[$num]
                         $layer_attrID = $slide->getLayerID_by_unique_id($a_target[$num]);
                         if (trim($layer_attrID) == '') {
                             $layer_attrID = 'slide-' . preg_replace("/[^\\w]+/", "", $slideID) . '-layer-' . $a_target[$num];
                         }
                         break;
                 }
                 switch ($action) {
                     case 'none':
                         continue;
                         break;
                     case 'link':
                         //if post based, replace {{}} with correct info
                         //a_image_link
                         if (isset($a_link_type[$num]) && $a_link_type[$num] == 'jquery') {
                             /*
                             $setBase = (is_ssl()) ? "https://" : "http://";
                             if(strpos($a_image_link[$num], 'http') === false)
                             	$a_image_link[$num] = $setBase .$a_image_link[$num];
                             */
                             $a_tooltip_event[$num] = isset($a_tooltip_event[$num]) ? $a_tooltip_event[$num] : '';
                             $a_link_open_in[$num] = isset($a_link_open_in[$num]) ? $a_link_open_in[$num] : '';
                             $a_image_link[$num] = isset($a_image_link[$num]) ? $a_image_link[$num] : '';
                             $a_events[] = array('event' => $a_tooltip_event[$num], 'action' => 'simplelink', 'target' => $a_link_open_in[$num], 'url' => $a_image_link[$num]);
                         } else {
                             if ($html_simple_link == '') {
                                 //adds the link to the layer
                                 /*
                                 $setBase = (is_ssl()) ? "https://" : "http://";
                                 if(strpos($a_image_link[$num], 'http') === false)
                                 	$a_image_link[$num] = $setBase .$a_image_link[$num];
                                 */
                                 $a_image_link[$num] = isset($a_image_link[$num]) ? $a_image_link[$num] : '';
                                 $a_link_open_in[$num] = isset($a_link_open_in[$num]) ? $a_link_open_in[$num] : '';
开发者ID:allanRoberto,项目名称:klassea,代码行数:67,代码来源:output.class.php


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