Changeset 135

Show
Ignore:
Timestamp:
10/06/07 19:46:54 (11 months ago)
Author:
zamoose
Message:

Adding support for tags and updating the del.icio.us links.

Files:

Legend:

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

    r134 r135  
    5454                <?php } ?> 
    5555 
    56                 <?php if (function_exists(SimplePieWP)) { ?> 
     56               <?php if(function_exists(fetch_rss)) { ?> 
    5757                        <li><h2>del.icio.us Links</h2> 
    58                                 <?php echo SimplePieWP('http://del.icio.us/rss/zamoose','items:10, showdesc:false, showtitle:false'); ?> 
     58                                <ul> 
     59                        <?php    
     60                                $url = 'http://del.icio.us/rss/zamoose'; 
     61                                $lblgrss = fetch_rss($url); 
     62                                $rss_c = 0; 
     63                                 
     64                                foreach($lblgrss->items as $item){ 
     65                                        if($rss_c <=10){ 
     66                                                $title = $item['title']; 
     67                                                $link = $item['link']; 
     68                                                $description = $item['description']; 
     69                                                echo "<li><a href=\"$link\">$title</a></li>\n"; 
     70                                        } 
     71                                        $rss_c++; 
     72                                } 
     73                        ?> 
     74                                </ul> 
    5975                        </li> 
    6076                <?php } ?> 
     77 
    6178                <?php endif; ?> 
    6279                </ul> 
  • trunk/theloop.php

    r131 r135  
    1919                                                <span class="posttags">Tagged as: <?php UTW_ShowTagsForCurrentPost("commalist"); ?></span> 
    2020                                        <?php }} ?> 
     21                                                <?php if(function_exists(the_tags) && is_single()){?> 
     22                                                <br /> 
     23                                                <span class="posttags">Tagged as: <?php the_tags(', '); ?></span> 
     24                                        <?php }?> 
    2125                                        </div> 
    2226                                        <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>