本文整理匯總了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')) {