$title, 'url' => $url, 'active_class' => ($menu_slug === ACF_Stylizer()->cache->option_name) ? ' acfs-tab-active' : '' ); } } /** * Output an admin form page. * * @since 2.0.4 Changed admin page output. * @since 2.0.0 * * @access public static * @param string $heading Heading displayed at the top of the admin form page. * @param string $action AJAX action to request on form submission. * @param string $option_name Option name to generate the admin form page for. * @return void */ public static function admin_form_page($heading, $action = '', $option_name = '') { $acfs = ACF_Stylizer(); echo '
'; self::admin_nav_bar($heading); $screen = $acfs->cache->screen; $columns = $screen->get_columns(); if (empty($columns)) { $columns = 2; } echo '
' . ''; if (!empty($action)) { $action = sanitize_key($action); echo ''; wp_nonce_field($action); } if (!empty($option_name)) { echo ''; } if (!empty($admin_page)) { echo ''; } wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); echo '
' . '
' . '
'; do_meta_boxes($screen->id, 'side', ''); echo '
' . '
' . '
'; do_meta_boxes($screen->id, 'advanced', ''); do_meta_boxes($screen->id, 'normal', ''); echo '
' . '
' . '
' . '
' . '
' . '
' . '
'; } /** * Output the admin page nav bar. * * @since 2.0.0 * * @access public static * @param string $heading Heading displayed in the nav bar. * @return void */ public static function admin_nav_bar($heading) { $acfs = ACF_Stylizer(); $buttons = ''; echo '
' . '
' . '

' . '' . $acfs->cache->plugin_data['Name'] . ' | ' . $heading . '

' . '
' . '
'; if (count(self::$_tabs) > 1) { echo '
'; foreach (self::$_tabs as $tab) { echo '' . $tab['title'] . ''; } echo '
'; } echo '
' . '
'; } /** * Add the plugin name to a page title. * * @since 2.0.0 * * @access public static * @param string $page_title Current page title. * @return string Modified page title. */ public static function page_title($page_title) { return $page_title . ' ‹ ' . ACF_Stylizer()->cache->plugin_data['Name']; } }