author_email | webmaster@livejournal.com |
author_name | LiveJournal Webmaster |
majorversion | 1 |
name | LiveJournal S2 Core, v1 |
redist_uniq | core1 |
type | core |
color_comment_bar | #d0d0ff |
comment_userpic_style | (empty) |
control_strip_bgcolor | (empty) |
control_strip_bordercolor | (empty) |
control_strip_fgcolor | (empty) |
control_strip_linkcolor | (empty) |
custom_control_strip_colors | off |
custom_css | (empty) |
external_stylesheet | 0 |
font_base | (empty) |
font_fallback | none |
include_default_stylesheet | 1 |
lang_current | en |
lang_dayname_long | [
] |
lang_dayname_short | [
] |
lang_dayname_shorter | [
] |
lang_fmt_date_long | %%month%% %%dayord%%, %%yyyy%% |
lang_fmt_date_long_day | %%day%%, %%month%% %%dayord%%, %%yyyy%% |
lang_fmt_date_med | %%mon%%. %%dayord%%, %%yyyy%% |
lang_fmt_date_med_day | %%da%%, %%mon%%. %%dayord%%, %%yyyy%% |
lang_fmt_date_short | %%m%%/%%d%%/%%yy%% |
lang_fmt_month_long | %%month%% %%yyyy%% |
lang_fmt_month_med | %%mon%% %%yyyy%% |
lang_fmt_month_short | %%m%%/%%yy%% |
lang_fmt_time_short | %%hh%%:%%min%% %%a%%m |
lang_monthname_long | [
] |
lang_monthname_short | [
] |
linked_stylesheet | (empty) |
linklist_support | 1 |
page_day_sortorder | forward |
page_friends_items | 20 |
page_month_textsubjects | 1 |
page_recent_items | 20 |
page_year_sortorder | forward |
reg_firstdayofweek | sunday |
tags_aware | 0 |
text_comment_date | Date: |
text_comment_from | From: |
text_comment_frozen | Frozen |
text_comment_ipaddr | IP Address: |
text_comment_parent | Parent |
text_comment_posted | Comment successfully posted. |
text_comment_reply | Reply |
text_comment_thread | Thread |
text_day_next | Next Day |
text_day_prev | Previous Day |
text_edit_entry | Edit Entry |
text_edit_tags | Edit Tags |
text_entry_next | Next Entry |
text_entry_prev | Previous Entry |
text_icon_alt_private | [private post] |
text_icon_alt_protected | [protected post] |
text_max_comments | Maximum comments reached |
text_mem_add | Add to Memories |
text_meta_location | Current Location |
text_meta_mood | Current Mood |
text_meta_music | Current Music |
text_month_form_btn | View |
text_month_screened_comments | w/ Screened |
text_multiform_btn | Perform Action |
text_multiform_check | Select: |
text_multiform_conf_delete | Delete selected comments? |
text_multiform_des | Mass action on selected comments: |
text_multiform_opt_delete | Delete |
text_multiform_opt_deletespam | Delete as Spam |
text_multiform_opt_freeze | Freeze |
text_multiform_opt_screen | Screen |
text_multiform_opt_track | Track This |
text_multiform_opt_unfreeze | Unfreeze |
text_multiform_opt_unscreen | Unscreen |
text_multiform_opt_untrack | Untrack This |
text_noentries_day | There were no entries on this day. |
text_noentries_recent | There are no entries to display. |
text_nosubject | (no subject) |
text_permalink | Link |
text_post_comment | Leave a comment |
text_post_comment_friends | Leave a comment |
text_poster_anonymous | (Anonymous) |
text_read_comments | 1 comment // # comments |
text_read_comments_friends | 1 comment // # comments |
text_reply_back | Read Comments |
text_reply_nocomments | Comments have been disabled for this post. |
text_reply_nocomments_header | Comments Disabled: |
text_replyform_header | Comment Form |
text_skiplinks_back | Previous # |
text_skiplinks_forward | Next # |
text_tag_uses | 1 use // # uses |
text_tags | Tags: # |
text_tags_page_header | Visible Tags |
text_tell_friend | Tell a Friend |
text_unwatch_comments | Untrack This |
text_view_archive | Archive |
text_view_friends | Friends |
text_view_friends_comm | Members |
text_view_friends_filter | Friends (Custom filter) |
text_view_friendsfriends | Friends of Friends |
text_view_friendsfriends_filter | Friends of Friends (Custom filter) |
text_view_memories | Memories |
text_view_month | View Subjects |
text_view_recent | Recent Entries |
text_view_userinfo | User Info |
text_watch_comments | Track This |
text_website_default_name | My Website |
theme_bgcolor | (empty) |
theme_bordercolor | (empty) |
theme_linkcolor | (empty) |
use_shared_pic | 0 |
view_entry_disabled | 0 |
Convenience constructor to make populating an array of PalItems (like in palimg_modify) easy. | |
Constructor for making a UserLite object from a username | |
With each call, this function will alternate between the two values and return one of them. Useful for making tables whose rows alternate in background color. | |
Returns the given URL back if it's a valid URL. | |
Returns CSS for the userpic div in the logged out version of the control strip. | |
Escapes all HTML tags and entities from the text | |
Declare that you're done printing CSS and the output thus buffered should be cleaned and printed. | |
Escapes all HTML tags (but not entities) from text | |
URL escape | |
Gets the top-level Page instance that LiveJournal ran the Page.print() method on. | |
Picks the phrase with the proper plural form from those in the property $prop, passing $n to lang_map_plural(int) to get the proper form for the current language, and then substituting the # character with $n. Also, returned string is HTML-escaped. | |
Returns a URL to the specified view for the specified user. Views use the same names as elsewhere. (recent, friends, archive, month, userinfo) | |
Returns a URL to the specified view for the specified user. Views use the same names as elsewhere. (recent, friends, archive, month, userinfo) | |
If the value isn't blank, return in HTML attribute format with a leading space. HTML of name is not escaped. | |
If the value isn't blank, return in HTML attribute format with a leading space. HTML of name is not escaped. | |
Convert the string to an integer and return | |
Returns the current datetime in the timezone of the journal being viewed. | |
Returns a string saying "at {the data and time given}". Used in the core implementation of EntryPage and ReplyPage. i18nc layers should override this. | |
Get a human-readable caption for a metadata key. Layers shouldn't override this, but should instead set the relevant string properties. | |
Make an ordinal number from a cardinal number | |
Make an ordinal number from a cardinal number. Don't override this, since the core layer implementation just calls [func[lang_ordinal(int)]], which i18nc layers should override. | |
Returns text describing that the user wrote something. i18nc layers should override this. | |
Get some words representing a view | |
Returns a unique string for the remote user. | |
Return a URL to the specified filename (relative to the palimg root) with its palette table made into a gradient. All palette entries between the inclusive indexes of $start and $end will fade from the colors in $start and $end. The palette indexes for the start and end can be between 0 and 255. | |
Return a URL to the specified filename (relative to the palimg root) with its palette table altered, once for each provided PalItem. Restrictions: only 7 palette entries may be modified, and the PalItem indexes must be 0-15. | |
Return a URL to the specified filename (relative to the palimg root) with its palette table tinted. The given 'bright' color will be the new white, and darkest color remains black. | |
Return a URL to the specified filename (relative to the palimg root) with its palette table tinted. The given 'bright' color will be the new white, and the given 'dark' color is the new black. | |
Prints the CSS for custom control strip colors, if the option is enabled. This should be called by print_stylesheet(). | |
Prints a stylesheet, the URL of which can be referenced by Page.stylesheet_url. This is another S2 entry point, in addition to Page.print(). | |
This function is the first thing called and is the place to set properties based on the values of other properties. It's called before the style system looks at its builtin properties, so if you need to conditionally setup something based on your own custom properties, do it here. You can't print from this function. | |
Returns a random integer between 1 and $high, inclusive. | |
Returns a random integer between $low and $high, inclusive. | |
Set the HTTP Content-type response header (for example, if outputting XML). Must be called before printing any data. | |
Declare that you're about to start printing out CSS that should be buffered, then later cleaned when you call end_css(). WARNING: this is not re-entrant. You can't call start_css recursively. | |
Return the given integer as a string | |
Similar to ehtml, but the HTML tags are stripped rather than escaped. | |
Returns if the style (layout and theme) calling it is active based on a hook. If hook isn't defined, returns true always. | |
Deprecated function. Use ljuser() from now on. | |
Returns true if the user viewing the page is both logged in, and is a friend of the journal being viewed. Always returns false for communities, since they cannot have friends. | |
Returns true if the user viewing the page is both logged in, and is a member of the community being viewed. Always returns false for personal journals, since they cannot have members. | |
Returns true if the user viewing the page is both logged in, and is the owner of the content in question. Useful for returning links to manage information, or edit entries. | |
Returns true if the user viewing the page is logged in. It's recommended that your page links to the site login page if the user isn't logged in. | |
Deprecated function. Use viewer_sees_hbox_(top|bottom) or viewer_sees_vbox from now on. | |
Returns true if reader will see the built in control strip. | |
True if the user has selected to see opaque content boxes between entries. | |
True if opaque horizontal site-specific content box should be displayed to the user at the bottom of the page. | |
True if opaque horizontal site-specific content box should be displayed to the user at the top of the page. | |
True if opaque vertical site-specific content box should be displayed to the user. | |
Integers representing the days of the week. This will start on Monday (2) or Sunday (1) depending on the property setting for start-of-week and go to Sunday (1) or Saturday (7) | |
Returns the number padded with zeroes so it has the amount of digits indicated. | |
Returns the number padded with zeroes so it has the amount of digits indicated. |
Represents a color.
HTML hex encoded: #rrggbb | |
Blue value, 0-255. (Read-only) | |
Green value, 0-255. (Read-only) | |
Red value, 0-255. (Read-only) |
Constructor for color class. Lets you make a Color object from a string of form #rrggbb | |
Returns color averaged with $other color. | |
Returns color blended with $other color by percentage value (int between 0 and 100). | |
Get the blue value. | |
Set the blue value. (0-255) | |
Returns identical color. | |
Returns a new color with lightness decreased by 30. | |
Returns a new color with lightness decreased by amount given. | |
Get the green value. | |
Set the green value. (0-255) | |
Get the hue value. (0-255) | |
Set the hue value. (0-255) | |
Returns inverse of color. | |
Returns a new color with lightness increased by 30. | |
Returns a new color with lightness increased by amount given. | |
Get the lightness value. (0-255) | |
Set the lightness value. (0-255) | |
Get the red value. | |
Set the red value. (0-255) | |
Get the saturation value. (0-255) | |
Set the saturation value. (0-255) | |
Set the HSL value for a color class. |
Child class of EntryLite. A comment to a journal entry, or to another comment.
Direct link to comment, via HTML name anchors (Read-only) | |
True if comment was just posted by the current user. (Read-only) | |
True if comment has been deleted. Deleted comments still show up if they are the parent of a thread. (Read-only) | |
Visual depth of entry. Top-level journal entries are always depth zero. Comments have a depth greater than or equal to one, depending on where the thread is rooted at. | |
The DOM 'id' attribute you should put on your outer-most element (Read-only) | |
True if comment is in frozen state. (Read-only) | |
True if all information is available for this comment. False if only the subject, poster, and date are available. (collapsed threads) | |
Journal the entry has been posted to | |
An array of keys which you should pass to EntryLite.get_link(string) to produce an entry 'toolbar'. Does not contain nav_next and nav_prev for entries; you should retrieve those separately and put them somewhere appropriate for your layout. | |
Post metadata. Keys: 'music', 'mood' (Read-only) | |
URL to parent comment, or blank if a top-level comment. (Read-only) | |
A URL at which this specific entry can be viewed, for linking purposes. (Read-only) | |
Author of the entry, or null if an anonymous comment | |
Comments replying to this comment. | |
URL to reply to this comment. (Read-only) | |
True if comment is in screened state. (Read-only) | |
The number of elapsed seconds from the time of the journal entry until he comment was made. (Read-only) | |
Subject. May contain HTML. Don't do substring chops on this. (Read-only) | |
Subject icon, or null. | |
The system time (in GMT) this entry or comment was posted. | |
Array of tags applied to this entry. (Read-only) | |
Server stored ID number for this comment. | |
Entry Text; Use EntryLite.print_text() to print this so that the entry's trust level is not affected by your layer's trust level. (Read-only) | |
Indicates that this entry's text contains some content that must be printed trusted, with EntryLite.print_text(), rather than printed directly from an untrusted context. Use this to fall back to a plain trusted print if you are doing something unusual with EntryLite.text. Most layers can just ignore this and always use EntryLite.print_text(). (Read-only) | |
URL to view threaded rooted at this comment, or blank if comment has no children. (Read-only) | |
The user-specified time of the post, or the GMT time if it's a comment. | |
The local time the comment appeared, in the commenter's timezone. Or undef if no anonymous comment, or commenter's timezone is unknown. (Read-only) | |
The local time the comment appeared, in the remote user's (reader's) timezone. Or undef if no remote user, or remote user hasn't set their timezone. (Read-only) | |
The userpic selected to relate to this entry. |
Get a link to some action related to this entry or comment. You can iterate over EntryLite.link_keyseq to get keys to pass in here to produce a 'toolbar' of links. | |
For Entries that can contain HTML subjects, this returns the subjeft without HTML. Comments can't have HTML in subjects, so this is equivalent to just using $.subject. The returned 'plain' subject may still contain HTML entities, so don't do substring chops on it either. | |
Returns a string containing a div of class 'ljtags' with the tags for the entry. If there are no tags on the entry, returns a blank string. The string is formatted according to the 'text_tags' property. | |
Print the link bar for this entry or comment. | |
Prints the select checkbox in CSS class 'ljcomsel' with DOM id 'ljcomsel_$talkid' for a multi-action form started with EntryPage.print_multiform_start(). | |
Prints the area in which the quickreply box will go. If no container is available, quickreply will not work. | |
Prints the area in which the quickreply box will go. You may 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, and the link CSS class in 'class'. You may also specify the url of an image to use as a button in 'img_url'. | |
Print the entry text. Doesn't print anything in some contexts, such as on a month view or in a collapsed comment. | |
Show the time of this post, with most useful information for user, and with tooltip for more. | |
time_post, with customized date/time formats. |
Information about comments attached to something.
Current number of comments available to be read by the viewer. | |
Set to false if comments disabled journal-wide or just on this item. | |
Set to true if entry has reached a comment maximum. | |
URL pointer to the 'Post Comments' view. (Read-only) | |
URL pointer to the 'Read Comments' view. (Read-only) | |
Set to true if there are screened comments and remote user can unscreen them. | |
Indicates whether the Post Comment link for this entry should be shown. | |
Indicates whether the Read Comments link for this entry should be shown. |
Print all comment related links | |
Print the formatted link to the 'Post Comments' view | |
Print the formatted link to the 'Read Comments' view |
Represents a date.
Day; 1-31. | |
Month; 1-12. | |
Year; 4 digits. |
Compare two dates. Returns a negative number if d is before the subject in time, positive if it is after, or zero if the two dates are equal. When comparing a Date with a DateTime, the time on the bare Date value is assumed to be midnight. | |
Compare two dates. Returns a negative number if d is before the subject in time, positive if it is after, or zero if the two dates are equal. When comparing a Date with a DateTime, the time on the bare Date value is assumed to be midnight. | |
Returns date formatted as normal. // SeeAlso: siteapi.core1.dateformats | |
Returns date formatted as indicated by $fmt. One of: short, med, long, med_day, long_day. Or a custom format. Default is 'short'. // SeeAlso: siteapi.core1.dateformats | |
Returns the day of the week this date falls on, from Sunday=1 to Saturday=7 |
Child class of Date. Represents both a date and time.
Day; 1-31. | |
Hour; 0-23. | |
Minute; 0-59. | |
Month; 1-12. | |
Second; 0-59. | |
Year; 4 digits. |
Compare two dates. Returns a negative number if d is before the subject in time, positive if it is after, or zero if the two dates are equal. When comparing a Date with a DateTime, the time on the bare Date value is assumed to be midnight. | |
Compare two dates. Returns a negative number if d is before the subject in time, positive if it is after, or zero if the two dates are equal. When comparing a Date with a DateTime, the time on the bare Date value is assumed to be midnight. | |
Returns date formatted as normal. // SeeAlso: siteapi.core1.dateformats | |
Returns date formatted as indicated by $fmt. One of: short, med, long, med_day, long_day. Or a custom format. Default is 'short'. // SeeAlso: siteapi.core1.dateformats | |
Returns the day of the week this date falls on, from Sunday=1 to Saturday=7 | |
Returns time formatted as normal. // SeeAlso: siteapi.core1.dateformats | |
Returns time formatted as indicated by $fmt, or normal if blank. // SeeAlso: siteapi.core1.dateformats |
Child class of Page. View entries by specifc day
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
Date of the current day | |
Array of entries available to be seen by the viewer of the page | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
True if there are entries on the specified day | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
Next day | |
URL to next day (Read-only) | |
Previous day | |
URL to previous day (Read-only) | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
An array of view identifiers which can be used to order the views hash. (Read-only) |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
Child class of EntryLite. A journal entry
Comment information on this entry | |
Visual depth of entry. Top-level journal entries are always depth zero. Comments have a depth greater than or equal to one, depending on where the thread is rooted at. | |
The DOM 'id' attribute you should put on your outer-most element (Read-only) | |
Is this the last entry of a day? | |
Server stored ID number for this entry | |
Journal the entry has been posted to | |
An array of keys which you should pass to EntryLite.get_link(string) to produce an entry 'toolbar'. Does not contain nav_next and nav_prev for entries; you should retrieve those separately and put them somewhere appropriate for your layout. | |
Post metadata. Keys: 'music', 'mood' (Read-only) | |
Mood icon, or null. | |
Is this entry on a different day to the previous one? | |
A URL at which this specific entry can be viewed, for linking purposes. (Read-only) | |
Author of the entry, or null if an anonymous comment | |
The security level of the entry ('private', 'protected'), or blank if public. (Read-only) | |
A little icon which should be displayed somewhere on an entry to represent the security setting | |
Subject. May contain HTML. Don't do substring chops on this. (Read-only) | |
The system time (in GMT) this entry or comment was posted. | |
Array of tags applied to this entry. (Read-only) | |
Entry Text; Use EntryLite.print_text() to print this so that the entry's trust level is not affected by your layer's trust level. (Read-only) | |
Indicates that this entry's text contains some content that must be printed trusted, with EntryLite.print_text(), rather than printed directly from an untrusted context. Use this to fall back to a plain trusted print if you are doing something unusual with EntryLite.text. Most layers can just ignore this and always use EntryLite.print_text(). (Read-only) | |
The user-specified time of the post, or the GMT time if it's a comment. | |
The userpic selected to relate to this entry. |
Get a link to some action related to this entry or comment. You can iterate over EntryLite.link_keyseq to get keys to pass in here to produce a 'toolbar' of links. | |
For Entries that can contain HTML subjects, this returns the subjeft without HTML. Comments can't have HTML in subjects, so this is equivalent to just using $.subject. The returned 'plain' subject may still contain HTML entities, so don't do substring chops on it either. | |
Returns a string containing a div of class 'ljtags' with the tags for the entry. If there are no tags on the entry, returns a blank string. The string is formatted according to the 'text_tags' property. | |
Return entry's subject as plain text, with all HTML removed. | |
Prints a small horizontal bar of site-specific content between entries in a journal. | |
Print the link to the next entry in this journal. | |
Print the link to the previous entry in this journal. | |
Print the link bar for this entry or comment. | |
Print the entry text. Doesn't print anything in some contexts, such as on a month view or in a collapsed comment. | |
Show the time of this post, with most useful information for user, and with tooltip for more. | |
time_post, with customized date/time formats. | |
True if opaque horizontal site-specific content boxes between entries should be displayed to the user. |
Base class for both journal entries and comments.
Visual depth of entry. Top-level journal entries are always depth zero. Comments have a depth greater than or equal to one, depending on where the thread is rooted at. | |
The DOM 'id' attribute you should put on your outer-most element (Read-only) | |
Journal the entry has been posted to | |
An array of keys which you should pass to EntryLite.get_link(string) to produce an entry 'toolbar'. Does not contain nav_next and nav_prev for entries; you should retrieve those separately and put them somewhere appropriate for your layout. | |
Post metadata. Keys: 'music', 'mood' (Read-only) | |
A URL at which this specific entry can be viewed, for linking purposes. (Read-only) | |
Author of the entry, or null if an anonymous comment | |
Subject. May contain HTML. Don't do substring chops on this. (Read-only) | |
The system time (in GMT) this entry or comment was posted. | |
Array of tags applied to this entry. (Read-only) | |
Entry Text; Use EntryLite.print_text() to print this so that the entry's trust level is not affected by your layer's trust level. (Read-only) | |
Indicates that this entry's text contains some content that must be printed trusted, with EntryLite.print_text(), rather than printed directly from an untrusted context. Use this to fall back to a plain trusted print if you are doing something unusual with EntryLite.text. Most layers can just ignore this and always use EntryLite.print_text(). (Read-only) | |
The user-specified time of the post, or the GMT time if it's a comment. | |
The userpic selected to relate to this entry. |
Get a link to some action related to this entry or comment. You can iterate over EntryLite.link_keyseq to get keys to pass in here to produce a 'toolbar' of links. | |
For Entries that can contain HTML subjects, this returns the subjeft without HTML. Comments can't have HTML in subjects, so this is equivalent to just using $.subject. The returned 'plain' subject may still contain HTML entities, so don't do substring chops on it either. | |
Returns a string containing a div of class 'ljtags' with the tags for the entry. If there are no tags on the entry, returns a blank string. The string is formatted according to the 'text_tags' property. | |
Print the link bar for this entry or comment. | |
Print the entry text. Doesn't print anything in some contexts, such as on a month view or in a collapsed comment. | |
Show the time of this post, with most useful information for user, and with tooltip for more. | |
time_post, with customized date/time formats. |
Child class of Page. A page with a single journal entry and associated comments.
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Represents what comment page is being displayed. | |
Comments to journal entry, or at least some of them. | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
Journal entry being viewed | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
Set to true if the multi-action is to be printed, which requires both comments and applicable permissions for the remote user. | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
True if viewing a specific sub-thread of the comments. Style may which to hide the journal entry at this point, since the focus is the comments. | |
An array of view identifiers which can be used to order the views hash. (Read-only) |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a full comment | |
Prints a collapsed comment | |
Prints comments | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Prints the line of the multiform giving instructions, options, and the submit button, using the text of the different $*text_multiform_ properties. | |
Prints end of form tag to do a multi-comment action. | |
Prints start of form tag and hidden elements to do a multi-comment action (multiple delete, screen, unscreen, etc...) | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
Child class of UserLite. Represents a friends or friendof list
Background color selected for friend | |
Links to various machine-readable data sources relating to this user | |
An array of data views which can be used to order the data_link hash | |
Foreground color selected for friend | |
Type of account: P (personal), C (community), Y (syndicated), S (shared), I (external identity) etc (Read-only) | |
Array of keys which can be passed into the get_link | |
User's formatted name, ex: John Q. Public (Read-only) | |
Canonical Username, ex: johnqpub. Note that if journal_type is an external identity, there will be no username, so this field will be a display version of their URL, longer than 15 characters, and with characters other than a-z, 0-9 and underscore. (Read-only) |
Returns URL of user's journal. | |
Returns true if the two user objects refer to the same user. Use this rather than comparing usernames, since usernames aren't globally unique. | |
Returns a link based on the given key, or null if the link is unavailable | |
Returns an LJ user tag for the user. | |
Returns an LJ user tag for the user. The color of the link will be link_color. | |
Print the link bar for this user/journal. | |
Returns URL to user's tag management page. |
Child class of RecentPage. Friends most recent entries
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
Array of entries available to be seen by the viewer of the page. | |
If true, some kind of filter is in effect. If this filter has a name, it will be included in FriendsPage.filter_name | |
The name of the filter in effect, if it has a name. This is only used when 'custom' FriendsPage.filter_active is true. | |
A mapping from friend username to color association information. There will only be keys for friends whose entries are in the entries array. | |
The 'mode' of this view. An empty string indicates a normal friends view, while 'friendsfriends' indicates the Friends-of-friends view. | |
A user-selected title for their friends page. (Read-only) | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
An array of view identifiers which can be used to order the views hash. (Read-only) |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
Represents an image.
Default alternative text for image | |
Extra params for img tag (Read-only) | |
Height in pixels | |
URL of the image (Read-only) | |
Width in pixels |
Return the HTML tag for this image | |
Return an HTML tag for this Image with given alttext | |
Return the HTML for an image, Supported keys are 'href' to create a link to the image source and 'a_attr' which adds attributes to the anchor tag if a link is to be printed. | |
Print an HTML tag for this Image | |
Print an HTML tag for this Image with given alttext | |
Print the HTML for an image, Supported keys are 'href' to create a link to the image source and 'a_attr' which adds attributes to the anchor tag if a link is to be printed. | |
Sets the URL, doing any necessary escaping. |
An integer number. This isn't really a class, as suggested by its lower-case name. Parameters of type int pass by value, unlike all variables of real object types, which pass by reference. Instead, this is just a pseudo-class which provides convenience methods on instances of integers. The other pseudo-class is string.
Compare one integer with another. Returns a negative number if n is less than the subject, positive if greater or zero if the two are numerically equal. | |
Return the integer as a string formatted at least $digits characters long, left-padded with zeroes. |
Represents a range of items which optionally contain items.
True if the subitems in this range represent the entire set. In this case, all of the URL members are blank. | |
The currently-active item. | |
The index of the first subitem in this range. | |
The number of subitems in this range. | |
The index of the last subitem in this range. | |
The total number of items that are navigable to. | |
The number of subitems. | |
URL for the 'first' link. Blank if already on the first page. (Read-only) | |
URL for the 'last' link. Blank if already on the last page. (Read-only) | |
URL for the 'next' link. Blank if there isn't a next URL. (Read-only) | |
URL for the 'previous' link. Blank if there isn't a previous URL. (Read-only) |
Prints the item range links | |
Prints the item range links with the given $labeltext | |
Returns the URL to use to link to the nth item |
A link or button
The caption for the link (Read-only) | |
A suggestion from the server as to which icon to use. layouts/users can override this of course. alt text works similarly to Link.caption. | |
URL which the link points to (Read-only) |
Return the button HTML link. | |
Output this Link as a clickable button using Link.icon |
Child class of Page. A page showing an error or confirmation message.
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
A list of links, indicated by key, that should be displayed alongside this error. They should ideally be displayed in a similar way to the entry links displayed on the entry page. | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
An associative array of links to be displayed alongside this message. Iterate over MessagePage.link_keyseq to find the keys. | |
The body of the message. Do not print this directly; use MessagePage.print_body() instead. (Read-only) | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The title of the message. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
An array of view identifiers which can be used to order the views hash. (Read-only) |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Print the links from the MessagePage.links and MessagePage.link_keyseq members. Layouts will probably want to override this. | |
Print the message. Call this rather than printing MessagePage.message directly. | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
Child class of YearDay. Summaries of posts on a given day on the MonthPage.
Date of day | |
Day of month number | |
Only populated on the month view. Entry text not present. | |
True if there are entries on this day. | |
Number of entries made on this day | |
A URL to view the day, if there are entries, else blank. (Read-only) |
Print a list of entry summaries including subjects |
A month the user has journal entries, along with information to link to it.
Date of month, with day of zero. | |
The 'redir_key' parameter for a Redirector instance. (Read-only) | |
URL for the MonthPage month view. (Read-only) |
Child class of Page. A page which contains a list of posts made in that month
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
Date of this month, with day of zero. | |
One entry for each day of the month. | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
Other months this journal has entries. | |
Date of next month, with day of zero, or null if none. | |
URL of next month, or empty string if none. (Read-only) | |
Date of previous month, with day of zero, or null if none. | |
URL of previous month, or empty string if none. (Read-only) | |
Necessary to make a form which POSTs to a redirector | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
An array of view identifiers which can be used to order the views hash. (Read-only) |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
Base template for all views
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
An array of view identifiers which can be used to order the views hash. (Read-only) |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
A specification for a numbered palette index in a GIF or PNG to be changed to a certain color
Color to put at specified index. | |
Integer palette index. |
Navigation position within a RecentPage or FriendsPage and URLs to move about.
Number of items we'd be potentially seeing going backward. | |
Number of items we'd be skipping going back more. | |
URL to go backward in time, or blank if furthest back server will allow. (Read-only) | |
Indicates how many entries we're currently seeing | |
Number of items we'd be potentially seeing going forward. | |
Number of items we'd be skipping going forward. | |
URL to go forward in time, or blank if furthest forward. (Read-only) | |
Indicates how many entries are being skipped back. | |
Currently version 1. A new method of navigation has been frequently discussed, so this is planning for the future |
Child class of Page. Most recent entries page, formally known as the LASTN view in the previous style system
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
Array of entries available to be seen by the viewer of the page. | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
An array of view identifiers which can be used to order the views hash. (Read-only) |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
A redirector makes either a GET URL which redirects to a pretty URL or an HTML form which posts to a URL that redirects to a pretty URL. This class exists because it's often desirable to use a form to end up at a URL, instead of doing a GET request. It's also used in cases where finding the previous or next URL would incur database overhead which would be wasteful, considering most people don't click previous/next links. Instead, the system will give you a Redirector object which has a URL that'll do the lookup for you later, followed by a redirect.
(Read-only) | |
(Read-only) | |
(Read-only) | |
(Read-only) |
Prints a form close tag. | |
Returns a GET URL, given a redir_key | |
Prints the necessary hidden elements for a form. Called automatically by Redirector.start_form(). | |
Starts an inline HTML form, then calls Redirector.print_hiddens(). You can also make it yourself, using Redirector.url, if you need special form attributes. |
This class will be used more in the future to set options on the reply form before it's printed out by the system. The system has to print it since it contains sensitive information which can't be made available to S2.
Whether user has enabled subject icons or not. Currently read-only until policy is decided on whether layers should be able to change it (rather than changing it in the user preferences) (Read-only) |
Prints the reply form |
Child class of Page. A page to reply to a journal entry or comment
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
The journal entry for this talk page | |
The reply form. | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
The object which is being replied to, either the entry or a comment | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
An array of view identifiers which can be used to order the views hash. (Read-only) |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
A series of characters. This isn't really a class, as suggested by its lower-case name. Parameters of type string pass by value, unlike all variables of real object types, which pass by reference. Instead, this is just a pseudo-class which provides convenience methods on instances of strings. The other pseudo-class is int.
Compare one string with another. Returns a negative number if n is alphabetically before the subject, positive if greater or zero if the two are equal. Note that this function currently does a simple ASCII compare, not a proper unicode-aware sort. | |
Return true if string contains $sub | |
If the string is syntactically valid as a CSS keyword (only letters and spaces) returns it, else returns an empty string. | |
Same as string.css_keyword() except also imposes a whitelist of valid keywords given in $allowed. | |
Analyses the string as a space-separated list of CSS keywords and returns a string containing the items that are syntactically acceptable. | |
Same as string.css_keyword_list() except also imposes a whitelist of valid keywords given in $allowed. | |
If the string contains a valid CSS length value, returns a canonical version. Else returns an empty string. | |
Returns the string escaped and quoted as a CSS string literal, safe for insertion into a stylesheet. | |
If the string contains a valid HTTP or HTTPS URL it is returned. Otherwise, an empty string is returned. | |
Returns true if string ends in $sub | |
Return the number of characters in the string. | |
Returns string in lower case. | |
Returns the string repeated n times | |
Returns true if string begins with $sub | |
Returns up to $length characters from string, skipping $start characters from the beginning. | |
Returns string in upper case | |
Return string with the first character capitalized. |
Represents a tag in its most basic form.
Textual representation of this tag. (Read-only) | |
URL to view entries with this tag. (Read-only) |
Child class of Tag. A rich structure with lots of information about a Tag.
Textual representation of this tag. (Read-only) | |
How many times this tag has used this security. The keys are which security, one of: public, private, friends, group. The value is the count of times the tag is used on entries with that security level. (Read-only) | |
URL to view entries with this tag. (Read-only) | |
Count of how many times this tag has been used. (Read-only) | |
The visibility level for this tag. Based on the entries it's used on. Can be one of: public, private, friends, group. (Read-only) |
Child class of Page. A detail page listing a user's tags.
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
List of tags visible to the user viewing the page. | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
An array of view identifiers which can be used to order the views hash. (Read-only) |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
Child class of UserLite. A more information-rich userinfo structure
Links to various machine-readable data sources relating to this user | |
An array of data views which can be used to order the data_link hash | |
Information about default userpic | |
Type of account: P (personal), C (community), Y (syndicated), S (shared), I (external identity) etc (Read-only) | |
Array of keys which can be passed into the get_link | |
User's formatted name, ex: John Q. Public (Read-only) | |
Canonical Username, ex: johnqpub. Note that if journal_type is an external identity, there will be no username, so this field will be a display version of their URL, longer than 15 characters, and with characters other than a-z, 0-9 and underscore. (Read-only) | |
URL of a page listing this user's userpics (Read-only) | |
'pretty' name of user's website (Read-only) | |
URL pointer to user's website (Read-only) |
Returns URL of user's journal. | |
Returns true if the two user objects refer to the same user. Use this rather than comparing usernames, since usernames aren't globally unique. | |
Returns a link based on the given key, or null if the link is unavailable | |
Returns an LJ user tag for the user. | |
Returns an LJ user tag for the user. The color of the link will be link_color. | |
Print the link bar for this user/journal. | |
Returns URL to user's tag management page. |
A user-defined link to an outside resource.
Not Implemented: An array of child UserLink objects. (Read-only) | |
Is this link a heading or category name? If so, it has no url and a list of children. (Read-only) | |
The title or label for the link (Read-only) | |
The url to which the link points (Read-only) |
A 'lite' version of a User which the system often has more readily-available than a full version.
Links to various machine-readable data sources relating to this user | |
An array of data views which can be used to order the data_link hash | |
Type of account: P (personal), C (community), Y (syndicated), S (shared), I (external identity) etc (Read-only) | |
Array of keys which can be passed into the get_link | |
User's formatted name, ex: John Q. Public (Read-only) | |
Canonical Username, ex: johnqpub. Note that if journal_type is an external identity, there will be no username, so this field will be a display version of their URL, longer than 15 characters, and with characters other than a-z, 0-9 and underscore. (Read-only) |
Returns URL of user's journal. | |
Returns true if the two user objects refer to the same user. Use this rather than comparing usernames, since usernames aren't globally unique. | |
Returns a link based on the given key, or null if the link is unavailable | |
Returns an LJ user tag for the user. | |
Returns an LJ user tag for the user. The color of the link will be link_color. | |
Print the link bar for this user/journal. | |
Returns URL to user's tag management page. |
Information on how to link to a day in the year archive
Date of day | |
Day of month number | |
Number of entries made on this day | |
A URL to view the day, if there are entries, else blank. (Read-only) |
A month on the YearPage.
If this is false, you probably don't want to display this month. | |
The number of the month | |
Date of next month, with day of zero, or null if none. | |
A url to link to in order to view the next month. (Read-only) | |
Date of previous month, with day of zero, or null if none. | |
A url to link to in order to view the previous month. (Read-only) | |
A url to link to in order to view this month. (Read-only) | |
An array of the weeks of the month (for ease of building a row-per-week calendar) | |
The number of the year |
Returns month formatted long (February 1980) // SeeAlso: siteapi.core1.dateformats | |
Returns time formatted as indicated by $fmt, or 'long' if blank. // SeeAlso: siteapi.core1.dateformats |
Child class of Page. Entire calendar page for a single year.
Arguments from the URL's query string (after the question mark). S2 code can only access arguments starting with a period, and this period is not included in the hash key. (Read-only) | |
The base URL of the journal being viewed. (Read-only) | |
Links to various machine-readable data sources relating to this page | |
An array of data views which can be used to order the data_link hash | |
A sub-title selected by the user for their whole journal. (Read-only) | |
A title selected by the user for their whole journal. (Read-only) | |
Extra tags supplied by the server to go in the <head> section of the output HTML document. Layouts should include this in the head section if they are writing HTML. (Read-only) | |
User whose journal is being viewed | |
Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) | |
An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) | |
12 months objects, even if no entries are in that month. | |
The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) | |
A DateTime object filled with the time (GMT) when the page was created. (Read-only) | |
The view type (recent, friends, archive, month, day, entry) (Read-only) | |
Links to top-level views where id equals the name of the view being linked to. (if one of views == $.view, already looking at that view) (Read-only) | |
An array of view identifiers which can be used to order the views hash. (Read-only) | |
The year being viewed | |
Information for linking to other years |
Returns information about the latest month the user posted (or the current month, if no posts), so that the page may include a mini-calendar or similar features. | |
The main entry point that LiveJournal calls. Layouts should override this to create HTML that's the same for all view types, and use $this->title, $this->head and $this->body to include view-specific content into the template. | |
Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. | |
Call from Page.print() to render parts of the view that are specific to the view, eg print the recent set of journal entries, recent friends entries, or rows of user information | |
Prints a control strip for the user's convenience | |
Layers can override this to add extra HTML to the head section of the HTML document. Note that layouts are not intended to override this method. | |
Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage and DayPage to change how entries display. | |
Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") | |
Prints an horizontal bar of site-specific content at the bottom of a journal. | |
Prints an horizontal bar of site-specific content at the top of a journal. | |
Print server side supplied head content. This is a fixed function, so you can't override it. See Page.print_custom_head() if you want to supply custom head content. | |
Print the list of UserLink objects specified by the user. | |
Print the calendar cell for the given month | |
Prints the area in which the quickreply box will go. Options you may specify are 'target' which will be the target id, and 'class' which will be the CSS class used by the container. If no container is available, quickreply will not work. | |
Prints a link to reply to the comment. You may specify the link text in the 'linktext' option, the link CSS class in 'class', and the target container in the 'target' option. You may also specify the url of an image to use as a button in 'img_url'. | |
Prints all defined stylesheets, including default and user-defined ones. | |
Prints a trusted string by key. | |
Prints an vertical bar of site-specific content on a journal. | |
Print the navigation links to move between years | |
Return a relevant combination of Page.global_title and Page.view_title(). May be overridden in layout layers or left untouched for the core layer to handle. | |
Return a title for this particular page, such as "Friends' Recent Entries" for the friends view, or a date for the day view. Should be overridden in i18n layers. Ideally, layout layers should never override this. See Page.title(). | |
Returns an array of tags that the logged in user can see for the journal being viewed. |
Represents a week on the YearMonth on the YearPage.
An array of the days of the week (0=sunday) | |
How many days at the end of the week are blank? (From next month) | |
How many days at the start of the week are blank? (From previous month) |
Print formatted week |
Information on how to link to a year in the year archive
If this is the year currently being displayed, this will be true. | |
URL to link to for this year. (Read-only) | |
Number of the year, eg 2001. |