ext_139: rainbow texture with define equality as text (0)
wistfuljane.livejournal.com ([identity profile] wistfuljane.livejournal.com) wrote in [personal profile] thefourthvine 2005-06-23 02:17 pm (UTC)

function Entry::print_metadata() {
if (size $.metadata > 0 or size $.tags > 0) { #altered so the metas area will print if you have tags
           var string currents = """<div class="clear"> </div><div class="clear"> </div>
           <div class="currents">""";

#added tag code
           if ($.tags) {
               $currents = $currents + """<div class="tag"><strong>$*text_tags</strong> """;  
               var int tcount = 0;
               foreach var Tag t ($.tags) {
                  $currents = """$currents<a href="$t.url">$t.name</a>""";
                  $tcount++;
                  if ($tcount != size $.tags) { $currents = """$currents, """; }
               }
               $currents = $currents + """</div>""";
            }
            foreach var string k ($.metadata) {
               var string text = $k;
               var string val = $.metadata{$k};
               if ($k == "mood") {
                   $text = $*text_meta_mood;
               }
               elseif ($k == "music") {
                   $text = $*text_meta_music;
               }
               if ($k == "mood" and defined $.mood_icon) {
                   var Image i = $.mood_icon;

                   $val = "<img src='$i.url' width='$i.width' height='$i.height' align='middle' alt='' /> $val";
               }
               $currents = $currents + """<div class="current$k"><strong>$text:</strong> $val</div>""";        
            }      
            $currents = $currents + "</div>";
            println "$currents";
}
}

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org