/** * This adds a "Theme Options" link to the WordPress admin bar under the menu * with the site name. Is only visible to users who can edit theme options. * * @param object $wp_admin_bar The wp_admin_bar object as supplied by WordPress * @return void */ public function admin_bar_links($wp_admin_bar) { if (current_user_can('edit_theme_options')) { $wp_admin_bar->add_node(array('id' => 'theme-options', 'parent' => 'site-name', 'title' => 'Theme Options', 'href' => theme::options_uri())); } }
theme::options_update_data(); ?> <section class="ui tab active" data-tab="first"> <?php theme::part('content-general', 'content', 'theme-options-general'); ?> </section> <section class="ui tab" data-tab="second"> <?php theme::part('content-meta-tags', 'content', 'theme-options-meta-tags'); ?> </section> <section class="ui tab" data-tab="third"> <?php theme::part('content-about', 'content', 'theme-options-about'); ?> </section> <br> <div class="ui buttons"> <a class="ui button" href="<?php echo theme::options_uri(); ?> ">Cancel</a> <button type="submit" class="ui positive submit button">Save All</button> </div> </form> </div>