Changeset 158

Show
Ignore:
Timestamp:
04/15/08 14:14:38 (3 months ago)
Author:
zamoose
Message:

Styling to account for new gallery CSS code, as well as converting from plugin Gravatar support to native avatar support. Also making the jQuery update checker NOT spam every admin screen with update notifications, only the theme page itself.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/comments.php

    r148 r158  
    9090                         <?php if (function_exists('gravatar')) {  
    9191                                gravatar_image_link(); 
     92                         }elseif (function_exists('get_avatar')) { 
     93                                echo get_avatar(get_comment_author_email(),'45'); 
    9294                         } ?> 
    9395<?php /* If you want to use gravatars, they go somewhere around here */ ?> 
  • trunk/functions.php

    r157 r158  
    155155?> 
    156156<div class="wrap"> 
    157 <h2><?php echo $themename; ?> settings</h2> 
     157<h2 class="updatehook"><?php echo $themename; ?> settings</h2> 
    158158 
    159159<form method="post"> 
     
    296296function mytheme_admin_head(){  
    297297        global $theme_current_version; 
     298        global $theme_url; 
    298299        global $themename; 
    299         global $theme_url; 
    300300        ?> 
    301301        <script type="text/javascript">   
     
    303303             jQuery.get('http://literalbarrage.org/lblgversion.txt', function(newversion){   
    304304                 if (<?php echo $theme_current_version; ?> < newversion) { 
    305                      jQuery('#wpbody > .wrap > h2').after('<div id="message" class="updated fade"><p><strong><?php echo $themename; ?> Update available. Click <a href="<?php echo $theme_url;?>">here</a> for details.</strong></p></div>'); 
     305                     jQuery('#wpbody > .wrap > h2.updatehook').after('<div id="message" class="updated fade"><p><strong>Theme Update available. Click <a href="<?php echo $theme_url;?>">here</a> for details.</strong></p></div>'); 
    306306           
    307307                 }   
  • trunk/style.css

    r156 r158  
    155155/* @group Alignment classes */ 
    156156 
    157 .center
     157.center, .aligncenter
    158158        text-align: center; 
    159159} 
     
    171171/* @group Image classes */ 
    172172 
    173 img.center, img[align="center"] { 
     173img.center, img.aligncenter, img[align="center"] { 
    174174    display: block; 
    175175        margin: 0 auto !important; 
     
    207207/* @group Gravatar classes */ 
    208208 
    209 .gravatar
     209.gravatar, .avatar
    210210        float: left; 
    211211        padding: 3px; 
    212         border: 1px solid #ccc; 
     212        border: 1px solid #3c3c3c; 
    213213        background: #fff; 
    214214        margin-right: 10px;