[gnome-web-www] clean up of functions.php and add support for only rendering the footer menu



commit 350b69962ee92d3ac2a5c781317c9465edc17097
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Tue Sep 27 18:51:02 2011 -0300

    clean up of functions.php and add support for only rendering the footer menu
    
    since there are plenty of other gnome websites relying on the same structure of links
    for the footer, acessing the url /?render-footer-menu will return only the footer
    menu. This way each service that uses gnome theme can implement their own
    support for keeping the footer links updated.

 theme/functions.php |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/theme/functions.php b/theme/functions.php
index f669f31..e567891 100644
--- a/theme/functions.php
+++ b/theme/functions.php
@@ -5,8 +5,6 @@
  */
 
 
-add_editor_style("editor_style.css");
-
 /*
  * Add support for custom menus and posts thumbnails
  */
@@ -16,14 +14,8 @@ add_theme_support( 'post-thumbnails');
 
 
 /*
- * Remove support for rich editor.
- * We don't want messy wysiwyg edits!
+ * Set default banner size
  */
-if (is_admin ()) {
-    add_filter ('user_can_richedit', create_function ('$a' ,'return false;') , 50);
-}
-
-
 set_post_thumbnail_size(940, 240);
 
 /*
@@ -297,3 +289,11 @@ if (array_key_exists('select-language', $_GET)) {
         die;
     }
 }
+
+/*
+ * Identify action for rendering only the footer elements
+ */
+if (array_key_exists('render-footer-menu', $_GET)) {
+    wp_nav_menu('menu=footer');
+    exit;
+}



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