kunzite (kunzite1) wrote in component_help,
kunzite
kunzite1
component_help

[theme] - [component] - [tabbed entry headers]

take this and change some stuff.
requested by adorekisha and inspired by charmed.
inside print_entry():
  var string tab_width = "200px"; # width.  either in terms of px or %
  var string tab_align = "right"; # left|center|right

  """<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td align="$tab_align"><div style="width: $tab_width;">""";

  var string entry_header = "";
  if(defined $e.security_icon) {
    $entry_header = $entry_header + $e.security_icon + " ";
  }
  $entry_header = $entry_header + $e.time->time_format();
  $entry_header = $entry_header + " ";
  $entry_header = $entry_header + ($e.new_day ? "<b>" : "");
  $entry_header = $entry_header + $e.time->date_format("long");
  $entry_header = $entry_header + ($e.new_day ? "</b>" : "");
  print_entry_header($entry_header);

  """</div></td></tr></table>""";
inside Page::print_custom_head():
"""
<style type="text/css">
""";

if($.view == "recent" or $.view == "friends" or $.view == "day" or $.view == "entry") {
var Color dkLineColor = $*header_bgcolor->darker(50);
"""
.entryHolderBg {
  border-top: 1px solid $dkLineColor;
}
""";
}

"""
</style>
""";
Tags: admin: deprecated, user: kunzite1
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 6 comments