[gnome-web-wppo] made widget support new html5 format for wordpress (and avoid duplicating the default language item)



commit a376ae04df3dd94e6e62aa07839ecd07d674c84c
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Thu Mar 8 23:13:52 2012 -0300

    made widget support new html5 format for wordpress (and avoid duplicating the
    default language item)

 widget.php |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/widget.php b/widget.php
index a843cd9..04d9664 100644
--- a/widget.php
+++ b/widget.php
@@ -7,18 +7,15 @@ wp_register_sidebar_widget(
         
         $langs = wppo_get_all_available_langs();
         
-        echo '<li id="languages" class="widget-container widget_languages">'."\n".
+        echo '<aside id="languages" class="widget widget_languages">'."\n".
              '<h3 class="widget-title">'.__('Languages').'</h3>'."\n".
              '<ul>'."\n";
         
-        
-        echo '<li><a href="'.wppo_recreate_url($_SERVER['REQUEST_URI'], WPPO_DEFAULT_LANGUAGE_CODE).'">'.WPPO_DEFAULT_LANGUAGE_NAME.'</a></li>';
-        
         foreach ($langs as $lang_code => $lang_name) {
             echo '<li><a href="'.wppo_recreate_url($_SERVER['REQUEST_URI'], $lang_code).'">'.$lang_name.'</a></li>';
         }
         echo '</ul>'."\n".
-             '</li>'."\n";
+             '</aside>'."\n";
     },
     array(
         'description' => 'List all available languages'



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