Changeset 2089

Show
Ignore:
Timestamp:
08/10/10 02:25:53 (22 months ago)
Author:
nick_ramsay
Message:

[Branch 1.5] Bookmarking 0.5 - Edits to CSS and templates to allow for posts by "Anonymous" users

Location:
branches/1.5/content/plugins/bookmarking
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/content/plugins/bookmarking/bookmarking.php

    r2042 r2089  
    33 * name: Bookmarking 
    44 * description: Social Bookmarking base - provides "list" and "post" templates.  
    5  * version: 0.4 
     5 * version: 0.5 
    66 * folder: bookmarking 
    77 * class: Bookmarking 
  • branches/1.5/content/plugins/bookmarking/css/bookmarking.css

    r2039 r2089  
    1414.show_post { margin-bottom: 1.0em; } 
    1515 
    16 .avatar_wrapper a { float: left; padding: 0 0.6em 0.2em 0; } 
     16.avatar_wrapper a, .avatar_wrapper span { float: left; padding: 0 0.6em 0.2em 0; } /* span for anonymous avatars */ 
    1717 
    1818.show_post_title { font-size: 1.2em; font-weight: bold; } 
  • branches/1.5/content/plugins/bookmarking/readme.txt

    r2042 r2089  
    1414Changelog 
    1515--------- 
     16v.0.5 2010/08/10 - Nick - Edits to CSS and templates to allow for posts by "Anonymous" users 
    1617v.0.4 2010/07/20 - Nick - Edits to CSS for sort/filter links 
    1718v.0.3 2010/07/15 - Nick - Removed admin stats (moved to Post Manager) 
  • branches/1.5/content/plugins/bookmarking/templates/bookmarking_list.php

    r1985 r2089  
    5656     
    5757        <div class="show_post_author_date">     
    58             <?php echo " " . $h->lang["bookmarking_post_posted_by"] . " <a href='" . $h->url(array('user' => $user->name)) . "'>" . $user->name . "</a>"; ?> 
     58            <?php echo " " . $h->lang["bookmarking_post_posted_by"] . " "; ?> 
     59 
     60                        <?php  
     61                        if ($user->name) 
     62                        { 
     63                                echo "<a href='" . $h->url(array('user' => $user->name)) . "'>" . $user->name . "</a>"; 
     64                        } 
     65                        else 
     66                        { 
     67                                echo $h->lang['main_anonymous']; 
     68                        } 
     69                        ?> 
     70 
    5971            <?php echo time_difference(unixtimestamp($h->post->date), $h->lang) . " " . $h->lang["bookmarking_post_ago"]; ?> 
    6072            <?php $h->pluginHook('show_post_author_date'); ?> 
  • branches/1.5/content/plugins/bookmarking/templates/bookmarking_post.php

    r1985 r2089  
    5353    </div> 
    5454 
    55     <div class="show_post_author_date">     
    56         <?php echo " " . $h->lang["bookmarking_post_posted_by"] . " <a href='" . $h->url(array('user' => $user->name)) . "'>" . $user->name . "</a>"; ?> 
     55    <div class="show_post_author_date"> 
     56        <?php echo " " . $h->lang["bookmarking_post_posted_by"] . " "; ?> 
     57 
     58                <?php  
     59                if ($user->name) 
     60                { 
     61                        echo "<a href='" . $h->url(array('user' => $user->name)) . "'>" . $user->name . "</a>"; 
     62                } 
     63                else 
     64                { 
     65                        echo $h->lang['main_anonymous']; 
     66                } 
     67                ?> 
     68 
    5769        <?php echo time_difference(unixtimestamp($h->post->date), $h->lang) . " " . $h->lang["bookmarking_post_ago"]; ?> 
    5870        <?php $h->pluginHook('show_post_author_date'); ?>