本文整理汇总了PHP中RevSliderOperations::modifyCustomSliderParams方法的典型用法代码示例。如果您正苦于以下问题:PHP RevSliderOperations::modifyCustomSliderParams方法的具体用法?PHP RevSliderOperations::modifyCustomSliderParams怎么用?PHP RevSliderOperations::modifyCustomSliderParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RevSliderOperations
的用法示例。
在下文中一共展示了RevSliderOperations::modifyCustomSliderParams方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onAjaxAction
//.........这里部分代码省略.........
$viewBack = self::getViewUrl(self::VIEW_SLIDERS);
$updateAnim = self::getPostGetVar("update_animations");
$updateNav = self::getPostGetVar("update_navigations");
$updateStatic = self::getPostGetVar("update_static_captions");
self::importSliderHandle($viewBack, $updateAnim, $updateStatic, $updateNav);
break;
case "import_slider_online_template_slidersview":
$viewBack = self::getViewUrl(self::VIEW_SLIDERS);
self::importSliderOnlineTemplateHandle($viewBack, 'true', 'none');
break;
case "import_slide_online_template_slidersview":
$redirect_id = esc_attr(self::getPostGetVar("redirect_id"));
$viewBack = self::getViewUrl(self::VIEW_SLIDE, "id={$redirect_id}");
$slidenum = intval(self::getPostGetVar("slidenum"));
$sliderid = intval(self::getPostGetVar("slider_id"));
self::importSliderOnlineTemplateHandle($viewBack, 'true', 'none', array('slider_id' => $sliderid, 'slide_id' => $slidenum));
break;
case "import_slider_template_slidersview":
$viewBack = self::getViewUrl(self::VIEW_SLIDERS);
$updateAnim = self::getPostGetVar("update_animations");
$updateStatic = self::getPostGetVar("update_static_captions");
self::importSliderTemplateHandle($viewBack, $updateAnim, $updateStatic);
break;
case "import_slide_template_slidersview":
$redirect_id = esc_attr(self::getPostGetVar("redirect_id"));
$viewBack = self::getViewUrl(self::VIEW_SLIDE, "id={$redirect_id}");
$updateAnim = self::getPostGetVar("update_animations");
$updateStatic = self::getPostGetVar("update_static_captions");
$slidenum = intval(self::getPostGetVar("slidenum"));
$sliderid = intval(self::getPostGetVar("slider_id"));
self::importSliderTemplateHandle($viewBack, $updateAnim, $updateStatic, array('slider_id' => $sliderid, 'slide_id' => $slidenum));
break;
case "create_slider":
$data = $operations->modifyCustomSliderParams($data);
$newSliderID = $slider->createSliderFromOptions($data);
self::ajaxResponseSuccessRedirect(__("Slider created", 'revslider'), self::getViewUrl(self::VIEW_SLIDE, 'id=new&slider=' . esc_attr($newSliderID)));
//redirect to slide now
break;
case "update_slider":
$data = $operations->modifyCustomSliderParams($data);
$slider->updateSliderFromOptions($data);
self::ajaxResponseSuccess(__("Slider updated", 'revslider'));
break;
case "delete_slider":
case "delete_slider_stay":
$isDeleted = $slider->deleteSliderFromData($data);
if (is_array($isDeleted)) {
$isDeleted = implode(', ', $isDeleted);
self::ajaxResponseError(__("Template can't be deleted, it is still being used by the following Sliders: ", 'revslider') . $isDeleted);
} else {
if ($action == 'delete_slider_stay') {
self::ajaxResponseSuccess(__("Slider deleted", 'revslider'));
} else {
self::ajaxResponseSuccessRedirect(__("Slider deleted", 'revslider'), self::getViewUrl(self::VIEW_SLIDERS));
}
}
break;
case "duplicate_slider":
$slider->duplicateSliderFromData($data);
self::ajaxResponseSuccessRedirect(__("Success! Refreshing page...", 'revslider'), self::getViewUrl(self::VIEW_SLIDERS));
break;
case "add_slide":
case "add_bulk_slide":
$numSlides = $slider->createSlideFromData($data);
$sliderID = $data["sliderid"];
if ($numSlides == 1) {