/** * Get the theme settings option name. * * Get the name of the option in which all theme settings are stored. By default the name is * 'theme_settings' preceded by the theme prefix_. It can be changed by using * 'momtaz_theme_settings_option' filter hook. * * @return string * @since 1.0 */ function momtaz_theme_settings_option() { $option = momtaz_format_hook('theme_settings'); // The option name. $option = apply_filters('momtaz_theme_settings_option', $option); return $option; }
/** * Displays the theme settings page and calls do_meta_boxes() to allow additional settings * meta boxes to be added to the page. * * @return string * @since 1.2 */ public function page_content() { if (!current_user_can($this->get_capability())) { return; } Momtaz_Zones::call('settings_page:before'); ?> <div class="wrap theme-settings"> <h2> <?php echo $this->get_page_title(); ?> <a href="<?php echo esc_url(admin_url('customize.php')); ?> " class="add-new-h2"><?php esc_html_e('Customize', 'momtaz'); ?> </a> </h2> <?php settings_errors(); ?> <div class="momtaz-core-settings-wrap"> <form method="post" action="<?php echo esc_url(admin_url('options.php')); ?> "> <p class="submit"> <?php submit_button(esc_attr__('Update Settings', 'momtaz'), 'primary', 'update', false); ?> </p> <!-- .submit --> <?php settings_fields(momtaz_format_hook('theme_settings')); ?> <?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); ?> <?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); ?> <div class="metabox-holder"> <div class="post-box-container column-1 normal"> <?php do_meta_boxes(NULL, 'normal', NULL); ?> </div> <!-- .column-1 --> <div class="post-box-container column-2 side"> <?php do_meta_boxes(NULL, 'side', NULL); ?> </div> <!-- .column-2 --> <div class="post-box-container column-3 advanced"> <?php do_meta_boxes(NULL, 'advanced', NULL); ?> </div> <!-- .column-3 --> </div> <!-- .metabox-holder --> </form> <!-- Form End --> </div> <!-- .momtaz-core-settings-wrap --> </div> <!-- .wrap --> <?php Momtaz_Zones::call('settings_page:after'); }