本文整理汇总了PHP中RevSliderNavigation::export_navigation方法的典型用法代码示例。如果您正苦于以下问题:PHP RevSliderNavigation::export_navigation方法的具体用法?PHP RevSliderNavigation::export_navigation怎么用?PHP RevSliderNavigation::export_navigation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RevSliderNavigation
的用法示例。
在下文中一共展示了RevSliderNavigation::export_navigation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exportSlider
//.........这里部分代码省略.........
}
}
if (isset($layer['type']) && $layer['type'] == 'svg') {
if (isset($layer['svg']) && isset($layer['svg']->src)) {
$usedSVG[$layer['svg']->src] = true;
}
}
}
}
}
}
$arrSliderExport = array("params" => $sliderParams, "slides" => $arrSlides);
if (!empty($arrStaticSlide)) {
$arrSliderExport['static_slides'] = $arrStaticSlide;
}
$strExport = serialize($arrSliderExport);
//$strExportAnim = serialize(RevSliderOperations::getFullCustomAnimations());
$exportname = !empty($this->alias) ? $this->alias . '.zip' : "slider_export.zip";
//add navigations if not default animation
if (isset($sliderParams['navigation_arrow_style'])) {
$usedNavigations[$sliderParams['navigation_arrow_style']] = true;
}
if (isset($sliderParams['navigation_bullets_style'])) {
$usedNavigations[$sliderParams['navigation_bullets_style']] = true;
}
if (isset($sliderParams['thumbnails_style'])) {
$usedNavigations[$sliderParams['thumbnails_style']] = true;
}
if (isset($sliderParams['tabs_style'])) {
$usedNavigations[$sliderParams['tabs_style']] = true;
}
$navs = false;
if (!empty($usedNavigations)) {
$navs = RevSliderNavigation::export_navigation($usedNavigations);
if ($navs !== false) {
$navs = serialize($navs);
}
}
$styles = '';
if (!empty($usedCaptions)) {
$captions = array();
foreach ($usedCaptions as $class => $val) {
$cap = RevSliderOperations::getCaptionsContentArray($class);
//set also advanced styles here...
if (!empty($cap)) {
$captions[] = $cap;
}
}
$styles = RevSliderCssParser::parseArrayToCss($captions, "\n", true);
}
$animations = '';
if (!empty($usedAnimations)) {
$animation = array();
foreach ($usedAnimations as $anim => $val) {
$anima = RevSliderOperations::getFullCustomAnimationByID($anim);
if ($anima !== false) {
$animation[] = $anima;
}
}
if (!empty($animation)) {
$animations = serialize($animation);
}
}
$usedImages = array_merge($usedImages, $usedVideos);
$usepcl = false;
if (class_exists('ZipArchive')) {