Li (
chiming
) wrote
in
dreamwidthlayouts
2012-01-15 06:13 pm (UTC)
no subject
Okay. Step 1: Create the theme layer. Paste THIS into it if you want tags at the top of the entry:
layerinfo "type" = "theme"; layerinfo "name" = "Edited Entry"; function Page::print_entry(Entry e) "The meat of each new layout. Describes how each page will look. In nearly all cases, the logic and decision-making processes should come from pre-existing functions in core2, and should not get written here. If you limit the structure of the page to HTML, function calls, and attached CSS, then you will be able to pick up all of the enhancements and accessibility requirements managed by core2." { ## For most styles, this will be overridden by FriendsPage::print_entry and such. $e->print_wrapper_start(); """<div class="header">\n"""; $e->print_subject(); $e->print_metatypes(); $e->print_time(); """</div>\n"""; """<div>\n"""; """<div class="contents">\n"""; """<div class="inner">\n"""; $e->print_tags(); $e->print_poster(); $e->print_userpic(); if ($*entry_metadata_position == "top") { $e->print_metadata(); } $e->print_text(); if ($*entry_metadata_position == "bottom") { $e->print_metadata(); } """</div>\n"""; """</div>\n"""; """</div>\n"""; """<div class="footer">\n"""; """<div class="inner">\n"""; $this->print_entry_footer($e); "</div>\n</div>\n"; $e->print_wrapper_end(); }
(
72 comments
)
Post a comment in response:
From:
Anonymous
This account has disabled anonymous posting.
OpenID
Identity URL:
Log in?
Dreamwidth account
Account name
Password
Log in?
If you don't have an account you can
create one now
.
Subject
HTML doesn't work in the subject.
Formatting type
Casual HTML
Markdown
Raw HTML
Rich Text Editor
Message
[
Home
|
Post Entry
|
Log in
|
Search
|
Browse Options
|
Site Map
]
no subject