[gnome-web-www: 42/68] Drop Settings custom page as we use GNOME grass Customizer



commit 066c1658166e4353f0baf017805cd3ce299759b3
Author: Tom Tryfonidis <tomtryf gnome org>
Date:   Mon Jan 9 18:29:47 2017 +0200

    Drop Settings custom page as we use GNOME grass Customizer

 theme/functions.php |   70 ---------------------------------------------------
 1 files changed, 0 insertions(+), 70 deletions(-)
---
diff --git a/theme/functions.php b/theme/functions.php
index 5b9a77d..78e0d53 100644
--- a/theme/functions.php
+++ b/theme/functions.php
@@ -474,76 +474,6 @@ function special_nav_class($classes, $item){
 add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2);
 
 
-
-/*
- * Theme settings menu
- */
-
-function theme_settings_page() {
-?>
-    <div class="wrap">
-    <h2>Theme Settings</h2>
-    <p>Theme settings for various pages.</p>
-    <form method="post" action="options.php">
-        <?php
-            settings_fields("section");
-            do_settings_sections("theme-options");
-            submit_button();
-        ?>
-    </form>
-    </div>
-<?php
-}
-
-function add_theme_menu_item() {
-    add_menu_page("Theme Panel", "Theme Settings", "manage_options", "theme-panel", "theme_settings_page", 
null, 99);
-}
-
-function show_year() {
-?>
-    <input type="text" class="regular-text" name="support_year" id="support_year" value="<?php echo 
get_option('support_year'); ?>" />
-    <p>The year of the hackfests.</p>
-<?php
-}
-
-function show_contributors() {
-?>
-    <input type="text" class="regular-text" name="support_contributors" id="support_contributors" 
value="<?php echo get_option('support_contributors'); ?>" />
-    <p>Enter the number of sponsored contributors.</p>
-<?php
-}
-
-function show_hackfests() {
-?>
-    <input type="text" class="regular-text" name="support_hackfests" id="support_hackfests" value="<?php 
echo get_option('support_hackfests'); ?>" />
-    <p>Enter the number of sponsored hackfests.</p>
-<?php
-}
-
-function show_screenshot() {
-?>
-    <input type="text" class="regular-text" name="homepage_screenshot" id="homepage_screenshot" value="<?php 
echo get_option('homepage_screenshot'); ?>" />
-<?php
-}
-
-
-function display_theme_panel_fields() {
-    add_settings_section("section", null, null, "theme-options");
-
-    add_settings_field("homepage_screenshot", "Release screenshot (URL)", "show_screenshot", 
"theme-options", "section");
-    add_settings_field("support_year", "Year", "show_year", "theme-options", "section");
-    add_settings_field("support_contributors", "Contributors", "show_contributors", "theme-options", 
"section");
-    add_settings_field("support_hackfests", "Hackfests", "show_hackfests", "theme-options", "section");
-
-    register_setting("section", "homepage_screenshot");
-    register_setting("section", "support_year");
-    register_setting("section", "support_contributors");
-    register_setting("section", "support_hackfests");
-}
-
-add_action("admin_init", "display_theme_panel_fields");
-add_action("admin_menu", "add_theme_menu_item");
-
 add_action( 'admin_head', 'replace_default_featured_image_meta_box', 100 );
 function replace_default_featured_image_meta_box() {
     add_meta_box('postimagediv', 'FoG Hacker Image', 'post_thumbnail_meta_box', 'hackers', 'side', 'high');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]