本文整理汇总了PHP中AviaHtmlHelper::render_multiple_elements方法的典型用法代码示例。如果您正苦于以下问题:PHP AviaHtmlHelper::render_multiple_elements方法的具体用法?PHP AviaHtmlHelper::render_multiple_elements怎么用?PHP AviaHtmlHelper::render_multiple_elements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AviaHtmlHelper
的用法示例。
在下文中一共展示了AviaHtmlHelper::render_multiple_elements方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: popup_editor
/**
* function that creates the popup editor. only used in classes that have a config array defined by the set_elements class
* a child class that has the function declared automaticaly gets an edit button in the admin section
*/
public function popup_editor($var)
{
if (empty($this->elements)) {
die;
}
if (current_theme_supports('avia_template_builder_custom_css')) {
$this->elements = $this->avia_custom_class_for_element($this->elements);
}
$elements = $this->elements;
//if the ajax request told us that we are fetching the subfunction iterate over the array elements and
if (!empty($_POST['params']['subelement'])) {
foreach ($elements as $element) {
if (isset($element['subelements'])) {
$elements = $element['subelements'];
break;
}
}
}
$elements = $this->set_default_values($elements);
echo AviaHtmlHelper::render_multiple_elements($elements, $this);
die;
}