function _print_current_layout_db($id) { $parentStruct = get_post_meta($id, '_wipfr_page_parent_layout', true); $throw = ""; if (!empty($parentStruct) && is_array($parentStruct)) { $throw = '<ul id="wip-layout-item-lists" >' . "\n"; foreach ($parentStruct as $pid => $key) { if (isset($key['type'])) { $pL = $key['type']; switch ($pL) { case 'fullwidth': $throw .= wipfr_fullwidth_module($pid, wip_page_manager::_get_current_content_db($id, $pid), true); break; case 'sidebar_content': $throw .= wipfr_sidebarcontent_module('sidebar_content', $pid, wip_page_manager::_get_current_content_db($id, $pid), true); break; case 'content_sidebar': $throw .= wipfr_sidebarcontent_module('content_sidebar', $pid, wip_page_manager::_get_current_content_db($id, $pid), true); break; } } } $throw .= '</ul>' . "\n"; } return $throw; }
function wipfr_ProcessPageLayoutAjax() { return wip_page_manager::ajaxProcessLayout(); }