本文整理匯總了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;
}