Livejournal
Log in
Post
Friends
My journal
sreya
in
s2lickable
Custom Sidebar Modules
Dec 03, 2006 00:07
Is there a basic code for creating custom sidebar modules? I found the code for adding the Tags list, but didn't really see a way of making it more general.
Leave a comment
Back to all threads
kunzite1
December 3 2006, 17:16:38 UTC
function Page::lay_print_paraphernalia() {
# profile box
$this->lay_print_journalinfo();
# viewlinks
$this->lay_print_viewsel();
# page-specific viewlinks
$this->lay_print_viewspec();
# custom box
$this->lay_print_custom_paraphernalia();
# linklist
$this->lay_print_userlinks();
}
function Page::lay_print_custom_paraphernalia() {
var string id = "";
var string header = "";
var string content = "";
# custom1
$id = "custom1";
$header = "header";
$content = """
""";
paraphernalia_box_open ($id, $header);
print $content;
paraphernalia_box_close($id, $header);
}
Reply
Back to all threads
Leave a comment
Up
function Page::lay_print_paraphernalia() {
# profile box
$this->lay_print_journalinfo();
# viewlinks
$this->lay_print_viewsel();
# page-specific viewlinks
$this->lay_print_viewspec();
# custom box
$this->lay_print_custom_paraphernalia();
# linklist
$this->lay_print_userlinks();
}
function Page::lay_print_custom_paraphernalia() {
var string id = "";
var string header = "";
var string content = "";
# custom1
$id = "custom1";
$header = "header";
$content = """
""";
paraphernalia_box_open ($id, $header);
print $content;
paraphernalia_box_close($id, $header);
}
Reply
Leave a comment