February 2013

S M T W T F S
     12
3456789
10111213141516
17181920212223
2425262728  

Aug. 16th, 2007


[info]lilbreck

[opal] [sidebar] Re-ordering sidebar and adding extra boxes

First, the code you're going to have to put in your theme layer: {new stuff in red}

function Page::lay_print_sidebar () {
$this->lay_print_summary();
var string text = """<div class="columnitem">STUFF YOU WANT IN YOUR NEW BOX </div>""";
print_box("TITLE OF NEW BOX ", $text);

$this->print_linklist();
$this->lay_print_freetext();
$this->lay_print_calendar();
}

Of course, you can put these in any order you want. For example:

function Page::lay_print_sidebar () {
var string text = """<div class="columnitem">STUFF YOU WANT IN YOUR NEW BOX </div>""";
print_box("TITLE OF NEW BOX ", $text);
$this->lay_print_freetext();
$this->print_linklist();
$this->lay_print_freetext();
$this->lay_print_summary();
$this->lay_print_calendar();
}

Tags

Powered by InsaneJournal