本文整理汇总了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] : '';