kunzite (kunzite1) wrote in component_help,
kunzite
kunzite1
component_help

spiffy date format

add the following to Page::print_custom_head():
<style type="text/css">
.date2 {
  line-height:     10px;
  margin-top:     -19px;
  margin-left:    170px;
  font-family:    serif;
  font-size:       12pt;
  color:          $*header_fgcolor;
  letter-spacing:   5px;
  text-align:     left;
}

.date3 {
  line-height:    10px;
  margin-top:      8px;
  margin-left:   285px;
  font-family:    serif;
  font-size:      12pt;
  font-weight:    700;
  color:          $*header_fgcolor;
  letter-spacing: 2px;
  text-align:     left;
}

.date4 {
  line-height:    36px;
  font-family:    serif;
  font-size:      36pt;
  color:          $*comp_bgcolor;
  letter-spacing: 10px;
  text-align:     center;
}
</style>
alter the entry header stuff from the most recent "customizing the entries" tutorial found on the tutorials page:

  if($sec_urls{$security} != "") {
    $entry_header = $entry_header + """<div style="background-image:url($sec_urls{$security}); background-position:top left; background-repeat: no-repeat;">""";
  }

  $entry_header = $entry_header + """<div class="date4">""";
  $entry_header = $entry_header + $e.time->date_format("%%day%%");
  $entry_header = $entry_header + """</div>""";

  $entry_header = $entry_header + """<div class="date2">""";
  $entry_header = $entry_header + $e.time->date_format("long");
  $entry_header = $entry_header + """</div>""";

  $entry_header = $entry_header + """<div class="date3">""";
  $entry_header = $entry_header + $e.time->time_format();
  $entry_header = $entry_header + """</div>""";

  if($sec_urls{$security} != "") {
    $entry_header = $entry_header + """</div>""";
  }
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

  • 64 comments