Changeset 1085


Ignore:
Timestamp:
02/02/10 11:32:18 (3 years ago)
Author:
nick_ramsay
Message:

[trunk] Template changes for W3C compliance.

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/content/admin_themes/admin_default/sidebar.php

    r1081 r1085  
    3232 
    3333<ul id="sidebar" class='accordion <?php echo $h->vars['admin_sidebar_layout']; ?>'> 
    34     <li><a  class="home" href="<?php echo $h->url(array(), 'admin'); ?>"><?php echo $h->lang["admin_theme_main_admin_home"]; ?></a></li> 
     34    <li><a class="home" href="<?php echo $h->url(array(), 'admin'); ?>"><?php echo $h->lang["admin_theme_main_admin_home"]; ?></a></li> 
    3535    <?php if ($h->currentUser->loggedIn == true) { ?> 
    3636        <li><a href="<?php echo BASEURL; ?>admin_index.php?page=admin_account"><?php echo $h->lang["admin_theme_account"]; ?></a></li> 
  • trunk/content/plugins/categories/categories.php

    r1081 r1085  
    246246             
    247247            echo " " . $h->lang["sb_base_post_in"] . " "; 
    248             echo "<a href='" . $h->url(array('category'=>$h->post->category)) . "'>" . $cat_name . "</a></li>\n"; 
     248            echo "<a href='" . $h->url(array('category'=>$h->post->category)) . "'>" . $cat_name . "</a>\n"; 
    249249        }         
    250250    } 
     
    331331                } 
    332332            }  
    333             $output .= "</li></ul>";  
     333            $output .= ""; 
    334334            return $output;  
    335335        }   
    336  
     336        $output .= "</li></ul>"; 
    337337        return $output;  
    338338    } 
     
    355355     
    356356        $category = stripslashes(html_entity_decode(urldecode($category->category_name), ENT_QUOTES,'UTF-8')); 
    357         $output .= '<li><a href="' . $h->url(array('category'=>$link)) .'">' . $category . "</a>\n";  
     357        $output .= '<li><a href="' . $h->url(array('category'=>$link)) .'">' . $category . "</a>\n"; 
    358358         
    359359        return $output;  
  • trunk/content/plugins/comments/comments.php

    r1081 r1085  
    417417        if (!$h->currentUser->loggedIn) { 
    418418            echo "<div class='comment_form_off'>"; 
    419             echo "<a href='" . BASEURL . "index.php?page=login&return=" . $return . "'>"; 
     419            echo "<a href='" . BASEURL . "index.php?page=login&amp;return=" . $return . "'>"; 
    420420            echo $h->lang['comments_please_login'] . "</a></div>"; 
    421421            return false; 
  • trunk/content/plugins/comments_widget/comments_widget.php

    r1081 r1085  
    8383            $output .= $title; 
    8484            $output .= "<a href='" . $h->url(array('page'=>'rss_comments')) . "' title='" . $anchor_title . "'>\n"; 
    85             $output .= "<img src='" . BASEURL . "content/themes/" . THEME . "images/rss_16.png'>\n</a>"; // RSS icon 
     85            $output .= "<img src='" . BASEURL . "content/themes/" . THEME . "images/rss_16.png' alt='rss' />\n</a>"; // RSS icon 
    8686            $output .= "</h2>\n";  
    8787                 
  • trunk/content/plugins/media_select/media_select.php

    r1081 r1085  
    200200        echo "<li><a href='#'>" . $h->lang['media_select'] . "</a>\n"; 
    201201        echo "<ul class='children'>\n"; 
    202         echo "<li><a href='" . $h->url(array('media'=>'text')) . "'>" . $h->lang['media_select_text'] . "</a>\n"; 
    203         echo "<li><a href='" . $h->url(array('media'=>'video')) . "'>" . $h->lang['media_select_videos'] . "</a>\n"; 
    204         echo "<li><a href='" . $h->url(array('media'=>'image')) . "'>" . $h->lang['media_select_images'] . "</a>\n"; 
     202        echo "<li><a href='" . $h->url(array('media'=>'text')) . "'>" . $h->lang['media_select_text'] . "</a></li>\n"; 
     203        echo "<li><a href='" . $h->url(array('media'=>'video')) . "'>" . $h->lang['media_select_videos'] . "</a></li>\n"; 
     204        echo "<li><a href='" . $h->url(array('media'=>'image')) . "'>" . $h->lang['media_select_images'] . "</a></li>\n"; 
    205205        echo "</ul></li>"; 
    206206    } 
  • trunk/content/plugins/tags/css/tags.css

    r1081 r1085  
    44 
    55.tags_link      { padding-left: 1.5em; background-image: url(content/themes/default/images/tags.png); } 
     6.show_tags ul li {float:left; margin-right:0.6em;} 
     7.clear {clear:both; height:0.1em;} 
  • trunk/content/plugins/tags/tags.php

    r1081 r1085  
    145145        if (!$raw) { 
    146146            echo "<div class='show_tags' style='display: none;'>\n"; 
    147             echo "<ul>" . $h->lang["tags_list"] . " \n"; 
     147            echo "<ul><li>" . $h->lang["tags_list"] . "</li>"; 
    148148        } 
    149149         
    150150        foreach ($tags as $tag) { 
    151             echo "<a href='" . $h->url(array('tag' => str_replace(' ', '_', trim($tag)))) . "'>" . trim($tag) . "</a>&nbsp;\n"; 
     151            echo "<li><a href='" . $h->url(array('tag' => str_replace(' ', '_', trim($tag)))) . "'>" . trim($tag) . "</a></li>"; 
    152152        } 
    153153         
     
    155155            echo "</ul>\n"; 
    156156            echo "</div>\n"; 
     157            echo "<div class='clear'>&nbsp;</div>\n"; 
    157158        } 
    158159    } 
  • trunk/content/plugins/vote/vote.php

    r1081 r1085  
    231231            $return = $h->cage->get->testUri('return'); // use existing return parameter 
    232232        } 
    233         $h->vars['vote_login_url'] = BASEURL . "index.php?page=login&return=" . $return; 
     233        $h->vars['vote_login_url'] = BASEURL . "index.php?page=login&amp;return=" . $return; 
    234234        $h->displayTemplate('vote_button', 'vote', NULL, false); 
    235235    } 
  • trunk/content/themes/default-blues/header.php

    r1081 r1085  
    8282                <!-- NAVIGATION --> 
    8383        <ul> 
    84         <?php if ($h->pageName == 'index') { $status = "id='navigation_active'"; } else { $status = ""; } ?> 
     84        <?php if ($h->pageName == 'index') { $status = "class='navigation_active'"; } else { $status = ""; } ?> 
    8585                <li <?php echo $status; ?>><a <?php echo $status; ?> href="<?php echo BASEURL; ?>"><?php echo $h->lang["main_theme_navigation_home"]; ?></a></li> 
    8686     
     
    8989        <?php 
    9090                        if ($h->currentUser->loggedIn) { ?> 
    91         <?php if (($h->pageType == 'user') && ($h->vars['user']->id == $h->currentUser->id)) { $status = "id='navigation_active'"; } else { $status = ""; } ?> 
     91        <?php if (($h->pageType == 'user') && ($h->vars['user']->id == $h->currentUser->id)) { $status = "class='navigation_active'"; } else { $status = ""; } ?> 
    9292                <li <?php echo $status; ?>><a <?php echo $status; ?> href='<?php echo $h->url(array('user' => $h->currentUser->name)); ?>' title='<?php echo $h->lang["users_profile"]; ?>'> 
    9393            <?php echo "My Settings"; ?> 
     
    9999 
    100100            if ($h->currentUser->loggedIn == true) {  
    101                 if ($h->pageName == 'admin') { $status = "id='navigation_active'"; } else { $status = ""; } 
     101                if ($h->pageName == 'admin') { $status = "class='navigation_active'"; } else { $status = ""; } 
    102102                echo "<li " . $status . "><a " . $status . " href='" . $h->url(array(), 'admin') . "'>" . $h->lang["main_theme_navigation_admin"] . "</a></li>";  
    103103 
    104                 if ($h->pageName == 'logout') { $status = "id='navigation_active'"; } else { $status = ""; } 
     104                if ($h->pageName == 'logout') { $status = "class='navigation_active'"; } else { $status = ""; } 
    105105                echo "<li " . $status . "><a " . $status . " href='" . $h->url(array('page'=>'admin_logout'), 'admin') . "'>" . $h->lang["main_theme_navigation_logout"] . "</a></li>"; 
    106106            } else {  
    107                 if ($h->pageName == 'login') { $status = "id='navigation_active'"; } else { $status = ""; } 
     107                if ($h->pageName == 'login') { $status = "class='navigation_active'"; } else { $status = ""; } 
    108108                echo "<li " . $status . "><a " . $status . " href='" . $h->url(array(), 'admin') . "'>" . $h->lang["main_theme_navigation_login"] . "</a></li>";  
    109109            } 
  • trunk/content/themes/shibuya/css/style.css

    r1081 r1085  
    66html, body {   min-height:101%; /*Firefox scrollbar fix*/ background:#FFFFFF none repeat scroll 0 0; color:#000000;} 
    77 
    8 body { 
    9         /* background: transparent url(/content/themes/default/images/bg-gradient.png) repeat-x;*/ 
     8body {   
    109        color: #666; 
    1110        font-family: Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif; 
     
    155154    background-color: #ffcc00; 
    156155    border: 0.1em solid #fff;    
    157     margin: 1.5em 0 0.5em 0; 
     156    margin: 1.5em 0 0.8em 0; 
    158157    padding-left: 0.5em; 
    159158    text-align: left; 
     
    165164 
    166165.debug  { font-size: 0.8em; } 
     166 
     167#ft .hotaru_logo {float:left;} 
     168#ft .W3C {float:right; margin-right: 1em; } 
  • trunk/content/themes/shibuya/footer.php

    r1081 r1085  
    3030 
    3131    <div id="ft"> 
    32         <?php  
    33             $h->pluginHook('footer'); 
     32        <div class="hotaru_logo"> 
     33        <?php             
    3434         
    3535            // Link to forums... 
     
    3838         
    3939            $h->showQueriesAndTime(); 
     40 
    4041        ?> 
     42        </div> 
     43        <div class="W3C"> 
     44            <p> 
     45                <a href="http://validator.w3.org/check?uri=referer"><img 
     46                    src="http://www.w3.org/Icons/valid-xhtml10" 
     47                    alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> 
     48              </p> 
     49        </div> 
     50         
    4151    </div> <!-- close "ft" --> 
     52 
     53    <?php $h->pluginHook('footer'); ?> 
     54 
    4255</div> <!-- close "yui-t7 first" --> 
    4356 
Note: See TracChangeset for help on using the changeset viewer.