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/templates
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • 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'); ?>