/** * Creates the markup for the Settings page */ public function markup_score_page() { echo '<div id="wrap" class="container">'; WSW_Main::markup_settings_header(); if (current_user_can(WSW_Main::REQUIRED_CAPABILITY)) { echo self::render_template('global-settings/page-score.php'); } else { wp_die('Access denied.'); } echo '</div>'; }
/** * Creates the markup for the Dashboard page */ public function markup_dashboard_page() { WSW_Main::markup_settings_header(); if (current_user_can(WSW_Main::REQUIRED_CAPABILITY)) { $variables = array(); $variables['chk_keyword_to_titles'] = WSW_Main::$settings['chk_keyword_to_titles']; $variables['chk_tweak_permalink'] = WSW_Main::$settings['chk_tweak_permalink']; $variables['chk_nofollow_in_external'] = WSW_Main::$settings['chk_nofollow_in_external']; $variables['chk_nofollow_in_image'] = WSW_Main::$settings['chk_nofollow_in_image']; $variables['chk_use_facebook'] = WSW_Main::$settings['chk_use_facebook']; $variables['chk_use_twitter'] = WSW_Main::$settings['chk_use_twitter']; $variables['chk_use_meta_robot'] = WSW_Main::$settings['chk_use_meta_robot']; $variables['chk_use_richsnippets'] = WSW_Main::$settings['chk_use_richsnippets']; $variables['chk_keyword_decorate_bold'] = WSW_Main::$settings['chk_keyword_decorate_bold']; $variables['chk_keyword_decorate_italic'] = WSW_Main::$settings['chk_keyword_decorate_italic']; $variables['chk_keyword_decorate_underline'] = WSW_Main::$settings['chk_keyword_decorate_underline']; $variables['chk_make_sitemap'] = WSW_Main::$settings['chk_make_sitemap']; $variables['opt_keyword_decorate_bold_type'] = WSW_Main::$settings['opt_keyword_decorate_bold_type']; $variables['opt_keyword_decorate_italic_type'] = WSW_Main::$settings['opt_keyword_decorate_italic_type']; $variables['opt_keyword_decorate_underline_type'] = WSW_Main::$settings['opt_keyword_decorate_underline_type']; $variables['opt_image_alternate_type'] = WSW_Main::$settings['opt_image_alternate_type']; $variables['opt_image_title_type'] = WSW_Main::$settings['opt_image_title_type']; $variables['txt_image_alternate'] = WSW_Main::$settings['txt_image_alternate']; $variables['txt_image_title'] = WSW_Main::$settings['txt_image_title']; $variables['chk_use_headings_h1'] = WSW_Main::$settings['chk_use_headings_h1']; $variables['chk_use_headings_h2'] = WSW_Main::$settings['chk_use_headings_h2']; $variables['chk_use_headings_h3'] = WSW_Main::$settings['chk_use_headings_h3']; $variables['chk_tagging_using_google'] = WSW_Main::$settings['chk_tagging_using_google']; $variables['txt_generic_tags'] = WSW_Main::$settings['txt_generic_tags']; $variables['chk_author_linking'] = WSW_Main::$settings['chk_author_linking']; $variables['chk_block_login_page'] = WSW_Main::$settings['chk_block_login_page']; $variables['chk_block_admin_page'] = WSW_Main::$settings['chk_block_admin_page']; $variables['lsi_bing_api_key'] = WSW_Main::$settings['lsi_bing_api_key']; $variables['first_tab'] = 'tab1'; if ($_GET['action'] == 'Trash') { WSW_Model_Log::remove_record($_GET['book']); $variables['first_tab'] = 'tab4'; } else { if ($_GET['paged']) { $variables['first_tab'] = 'tab4'; } } if ($_POST['page'] == 'wsw_log_404') { if ($_POST['log404']) { foreach ($_POST['log404'] as $log404) { WSW_Model_Log::remove_record($log404); } } $variables['first_tab'] = 'tab4'; } echo self::render_template('global-settings/page-dashboard.php', $variables); } else { wp_die('Access denied.'); } }