]> git.wh0rd.org Git - tt-rss.git/commitdiff
unify 'all tags' popup
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 10 Aug 2007 16:53:05 +0000 (17:53 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 10 Aug 2007 16:53:05 +0000 (17:53 +0100)
functions.php

index 7c162be12f08429f5e98d1a91cad1f80b85d47ca..cd30b45606b345d47af69d00fd97a43a2bf14458 100644 (file)
                                $tag_str = "<a href=\"javascript:viewfeed('$tag_escaped')\">$tag</a>, ";
                                
                                if ($num_tags == 6) {
-                                       $tags_str .= "<a href=\"javascript:showBlockElement('allEntryTags')\">...</a>";
+                                       $tags_str .= "...";
+
                                } else if ($num_tags < 6) {
                                        $tags_str .= $tag_str;
                                }
                        $tags_str = preg_replace("/, $/", "", $tags_str);
                        $f_tags_str = preg_replace("/, $/", "", $f_tags_str);
 
+                       $all_tags_div = "<span class='cdmAllTagsCtr'>...<div class='cdmAllTags'>All Tags: $f_tags_str</div></span>";
+                       $tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str);
+
                        if (!$entry_comments) $entry_comments = "&nbsp;"; # placeholder
 
                        if (!$tags_str) $tags_str = '<span class="tagList">'.__('no tags').'</span>';
                        print "<div class=\"postIcon\">" . $feed_icon . "</div>";
                        print "<div class=\"postContent\">";
                        
-                       print "<div id=\"allEntryTags\">".__('Tags:')." $f_tags_str</div>";
+                       #print "<div id=\"allEntryTags\">".__('Tags:')." $f_tags_str</div>";
 
                        $line["content"] = sanitize_rss($link, $line["content"]);