carriep63 (carriep63) wrote in s2bloggish, @ 2007-08-30 14:58:00 |
|
|||
Entry tags: | entries, metadata, mood icon, paid, tutorial |
[paid] Moving mood icon to the left
Using the following code in a theme layer will float your mood icon over to the left of the mood and music (see example). If you do not want a mood icon at all, remove everything in red.
function Entry::print_metadata() {
if (size $.metadata) {
"""<div class="metadata">\n""";
if(($.mood_icon)) {
"""<div style="float:left; padding-right:10px;">""";
print "$.mood_icon";
"</div>";
}
foreach var string m ($.metadata) {
"<div><strong>"; print lang_metadata_title($m); "</strong>: ";
print $.metadata{$m}; "</div>\n";
}
"</div>\n";
}
}