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 |
is_page_adaptive | 0 |
lang_current | en |
lang_dayname_long | [ - (empty),
- Sunday,
- Monday,
- Tuesday,
- Wednesday,
- Thursday,
- Friday,
- Saturday,
] |
lang_dayname_short | [ - (empty),
- Sun,
- Mon,
- Tue,
- Wed,
- Thu,
- Fri,
- Sat,
] |
lang_dayname_shorter | [ - (empty),
- S,
- M,
- T,
- W,
- T,
- F,
- S,
] |
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 | [ - (empty),
- January,
- February,
- March,
- April,
- May,
- June,
- July,
- August,
- September,
- October,
- November,
- December,
] |
lang_monthname_short | [ - (empty),
- Jan,
- Feb,
- Mar,
- Apr,
- May,
- Jun,
- Jul,
- Aug,
- Sep,
- Oct,
- Nov,
- Dec,
] |
linked_stylesheet | (empty) |
linklist_support | 1 |
page_day_sortorder | forward |
page_friends_items | 10 |
page_month_textsubjects | 1 |
page_recent_items | 10 |
page_year_sortorder | forward |
reg_firstdayofweek | sunday |
show_title_on_categorypage | 0 |
show_title_on_tagpage | 0 |
tag_cloud_tags | all |
tags_aware | 0 |
text_addcomment_id | add_comment |
text_categories_page_header | Categories |
text_categories_section_header | Categories |
text_category_tip | Category was added automatically. |
text_category_tiplink | Read all entries about |
text_comment_collapse | Collapse |
text_comment_date | Date: |
text_comment_deleted | (Deleted comment) |
text_comment_edittime | Edited at |
text_comment_expand | Expand |
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_screened | (Screened comment) |
text_comment_thread | Thread |
text_comments_id | comments |
text_copyr_agree | Hereinafter I give my permission to reproduce in any form |
text_copyr_disagree | The reproduction is prohibited in any form |
text_day_next | Next Day |
text_day_prev | Previous Day |
text_delete_repost | Delete repost |
text_duplicate_entry | Duplicate Entry |
text_edit_entry | Edit Entry |
text_edit_tags | Edit Tags |
text_entries_bycategory | Entries by category |
text_entries_bytag | Entries by tag // Entries by tags |
text_entries_bytag_and | and |
text_entries_bytag_or | or |
text_entry_next | Next Entry |
text_entry_prev | Previous Entry |
text_fbpost_supportlink | Need help? |
text_feedpromo_control_hide | Hide advert |
text_feedpromo_control_title | Feed Promo |
text_feedpromo_control_why | Why am I seeing this? |
text_flag | Flag |
text_hidespam | Hide spam |
text_i_like_this | Please click Track this if you want to receive all comments to this entry |
text_icon_alt_delayed | [delayed post] |
text_icon_alt_groups | [custom friends groups post] |
text_icon_alt_private | [private post] |
text_icon_alt_protected | [protected post] |
text_icon_alt_reposted | [reposted post] |
text_icon_alt_sticky | [sticky post] |
text_links | Links |
text_max_comments | Maximum comments reached |
text_mem_add | Add to Memories |
text_meta_groups | Custom Friends Groups |
text_meta_location | Current Location |
text_meta_mood | Current Mood |
text_meta_music | Current Music |
text_meta_origin_url | Original entry at |
text_month_form_btn | View |
text_month_next | Next Month |
text_month_prev | Previous Month |
text_month_screened_comments | w/ Screened |
text_multiform_btn | Perform Action |
text_multiform_check | Select: |
text_multiform_check_clean | Select |
text_multiform_conf_delete | Delete selected comments? |
text_multiform_des | Mass action on comments: |
text_multiform_no_action | You have not selected one of the actions |
text_multiform_no_comments | You have not selected any comments |
text_multiform_opt_all | All |
text_multiform_opt_delete | Delete |
text_multiform_opt_deletespam | Delete as Spam |
text_multiform_opt_edit | Edit |
text_multiform_opt_freeze | Freeze |
text_multiform_opt_please | (Select action) |
text_multiform_opt_screen | Screen |
text_multiform_opt_selected | Selected |
text_multiform_opt_spam | Spam |
text_multiform_opt_track | Track This |
text_multiform_opt_unfreeze | Unfreeze |
text_multiform_opt_unscreen | Unscreen |
text_multiform_opt_unscreen_to_reply | Unscreen to reply |
text_multiform_opt_unspam | Unspam |
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_page_summary | Page Summary |
text_permalink | Link |
text_post_comment | Leave a comment |
text_post_comment_friends | Leave a comment |
text_poster_anonymous | (Anonymous) |
text_rating_position | # position in rating |
text_rating_position_short | Top # |
text_rating_type | entry is in top# rating |
text_read_all_comments | Read # comment // Read # comments |
text_read_all_spam_comments | Read # suspicious comment // Read # suspicious comments |
text_read_comments | # comment // # comments |
text_read_comments_friends | # comment // # comments |
text_read_spam_comments | # suspicious comment // # suspicious 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_share | Share |
text_share_email | Send by e-mail |
text_share_facebook | Post to Facebook |
text_share_this | Share |
text_share_twitter | Tweet this |
text_showspam | Show spam |
text_skiplinks_back | Previous # |
text_skiplinks_forward | Next # |
text_spam_comment | (Suspicious comment) |
text_syndicate | Syndicate |
text_tag_uses | # post // # posts |
text_tags | Tags: # |
text_tags_page_header | Visible Tags |
text_tags_section_header | Tags |
text_tell_friend | Tell a Friend |
text_threeposts_title_bytag_community | Posts from This Community by “#” Tag |
text_threeposts_title_bytag_journal | Posts from This Journal by “#” Tag |
text_threeposts_title_featured_community | Featured Posts from This Community |
text_threeposts_title_featured_journal | Featured Posts from This Journal |
text_threeposts_title_recent_community | Recent Posts from This Community |
text_threeposts_title_recent_journal | Recent Posts from This Journal |
text_totop | Back to top |
text_unwatch_comments | Untrack This |
text_view_all_comments | View all comments |
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_games | My Games |
text_view_memories | Memories |
text_view_month | View Subjects |
text_view_recent | Recent Entries |
text_view_usergames | My Games |
text_view_userinfo | Profile |
text_watch_comments | Track This |
text_we_like_this | View people who like it |
text_website_default_name | My Website |
text_year_next | Next Year |
text_year_prev | Previous Year |
theme_bgcolor | (empty) |
theme_bordercolor | (empty) |
theme_linkcolor | (empty) |
title_comments_widget | Comments |
use_shared_pic | 0 |
view_comment_subject | 0 |
view_entry_disabled | 0 |
Event(string username) : Event | Constructor for making a Event object from a username |
Institution(string username) : Institution | Constructor for making a Institution object from a username |
PalItem(int index, Color c) : PalItem | Convenience constructor to make populating an array of PalItems (like in palimg_modify(string,PalItem[])) easy. |
Person(string username) : Person | Constructor for making a Person object from a username |
ThreePosts(Entry e, ThreePostsEntry[] entries) : void | |
User(string username) : User | Constructor for making a User object from a username |
UserExtended(string username) : UserExtended | Constructor for making a UserExtended object from a username |
UserLite(string username) : UserLite | Constructor for making a UserLite object from a username |
_ruMonth(Date time) : string | |
alternate(string a, string b) : string | 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. |
bool_as_string(bool input) : string | |
clean_url(string s) : string | Returns the given URL back if it's a valid URL. |
comment_count(Comment[] comments) : int | |
control_strip_logged_out_full_userpic_css() : string | Returns CSS for the loggedout_userpic div in the logged out version of the control strip. |
control_strip_logged_out_userpic_css() : string | Returns CSS for the userpic div in the logged out version of the control strip. |
ehtml(string s) : string | Escapes all HTML tags and entities from the text |
end_css() : void | Declare that you're done printing CSS and the output thus buffered should be cleaned and printed. |
etags(string s) : string | Escapes all HTML tags (but not entities) from text |
eurl(string s) : string | URL escape |
get_categorypage_title(string category, string class) : string | |
get_extra(string{} extra) : string | |
get_extra_by_selector(string{} extra, string selector) : string | |
get_fbmigration() : string | Returns div with facebook-migration markup |
get_feedpromo_control(string tag, string class, string entry_selector, int promoid, int itemid, int journalid) : string | |
get_first_image(Entry e) : string | |
get_first_image_url(Entry e) : string | |
get_fromfacebook_supportlink(bool is_fbpost) : string | |
get_fullimage_wrapper() : string | |
get_lang_text_multi(string lang, string[] variables) : string{} | Returns list of values of lang variables. Lang in lowercase, example 'ru' |
get_lj_bubble() : string | |
get_lj_entry_likus(string tag, int journal_id, int post_id, string post_uri) : string | |
get_lj_entry_likus(string tag, string class, int journal_id, int post_id, string post_uri) : string | |
get_ljart_artists() : User[] | Returns all LJArt artists |
get_metadata(string s) : string{} | Extracts metadata from p-tags |
get_page() : Page | Gets the top-level Page instance that LiveJournal ran the Page.print() method on. |
get_page_header(string class) : string | |
get_page_header(string content, string class) : string | |
get_partnermaterial_label(string tag, string class) : string | |
get_plural_phrase(int n, string prop) : string | 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. |
get_rating_position_label(int pos, string tag, string class, string delimeter) : string | |
get_reaction_markup(string tag, string class, int journal_id, int post_id, int comment_id) : string | |
get_reaction_stats_markup(string tag, string class, int journal_id, int post_id, int comment_id) : string | |
get_reactions_widget(int journal_id, int post_id, int comment_id, bool comments_enabled, string class) : string | |
get_reactions_widget(int journal_id, int post_id, int comment_id, bool comments_enabled, string class, string tag) : string | |
get_reactions_widget(int journal_id, int post_id, int comment_id, string class) : string | |
get_recent_comments_list(string{} params) : string | |
get_remote() : User | Returns an object of remote user in trusted styles only. See also: viewer_logged_in(), viewer_is_owner() etc. |
get_remote_lang() : string | Returns remote's language |
get_remote_ljart_town() : string | Returns remote's LJArt town |
get_tagspage_title(Tag[] tags, string tagfilter_mode, string class) : string | |
get_telegram_userpromo() : string | |
get_threeposts_title(Entry e) : string | |
get_url(UserLite user, string view) : string | Returns a URL to the specified view for the specified user. Views use the same names as elsewhere. (recent, friends, archive, month, userinfo) |
get_url(string user, string view) : string | Returns a URL to the specified view for the specified user. Views use the same names as elsewhere. (recent, friends, archive, month, userinfo) |
html_get_img_urls(string s) : string[] | Returns an array of URLs of images from given HTML |
htmlattr(string name, int value) : string | If the value isn't blank, return in HTML attribute format with a leading space. HTML of name is not escaped. |
htmlattr(string name, string value) : string | If the value isn't blank, return in HTML attribute format with a leading space. HTML of name is not escaped. |
int(string s) : int | Convert the string to an integer and return |
is_amp() : bool | True if exists get param amp=1 for Accelerated Mobile Pages |
is_enabled(string s) : bool | Return enabled/disabled flag |
is_likes_display() : bool | Return value of likes_display enabled |
is_pocket() : bool | True if useragent belongs to service Pocket |
journal_current_datetime() : DateTime | Returns the current datetime in the timezone of the journal being viewed. |
lang_at_datetime(DateTime d) : string | Returns a string saying "at {the data and time given}". Used in the core implementation of EntryPage and ReplyPage. i18nc layers should override this. |
lang_map_plural(int n) : int | |
lang_metadata_title(string which) : string | Get a human-readable caption for a metadata key. Layers shouldn't override this, but should instead set the relevant string properties. |
lang_ordinal(int num) : string | Make an ordinal number from a cardinal number |
lang_ordinal(string num) : string | Make an ordinal number from a cardinal number. Don't override this, since the core layer implementation just calls lang_ordinal(int), which i18nc layers should override. |
lang_page_of_pages(int pg, int pgs) : string | |
lang_user_wrote(UserLite u) : string | Returns text describing that the user wrote something. i18nc layers should override this. |
lang_viewname(string viewid) : string | Get some words representing a view |
ljart_artist_specs() : string[] | Returns list of specializations of ljart artists |
ljart_event_types() : string[] | Returns list of types of ljart events |
ljart_institut_types() : string[] | Returns list of types of ljart institut |
need_adaptive() : bool | Returns if the page must be shown as adaptive |
pageview_unique_string() : string | Returns a unique string for the remote user. |
palimg_gradient(string filename, PalItem start, PalItem end) : string | 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. |
palimg_modify(string filename, PalItem[] items) : string | 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. |
palimg_tint(string filename, Color bright) : string | 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. |
palimg_tint(string filename, Color bright, Color dark) : string | 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. |
print_custom_control_strip_css() : void | Prints the CSS for custom control strip colors, if the option is enabled. This should be called by print_stylesheet(). |
print_stylesheet() : void | 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(). |
prop_init() : void | 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. |
rand(int high) : int | Returns a random integer between 1 and $high, inclusive. |
rand(int low, int high) : int | Returns a random integer between $low and $high, inclusive. |
remove_unusable_images(string[] images) : string[] | |
search_url() : string | Returns url to search google or rambler depending on cyr/noncyr |
secs_to_string(int sec) : string | |
server_sig() : void | |
set_content_type(string text) : void | Set the HTTP Content-type response header (for example, if outputting XML). Must be called before printing any data. |
set_handler(string eventname, string[][] commands) : void | |
start_css() : void | 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. |
string(int i) : string | Return the given integer as a string |
striphtml(string s) : string | Similar to ehtml, but the HTML tags are stripped rather than escaped. |
style_is_active() : bool | Returns if the style (layout and theme) calling it is active based on a hook. If hook isn't defined, returns true always. |
truncate_to_paragraph(string s, string m) : string | Truncates given string to p/br tag or first delimiter. Depends on the mode (p|br|first) |
userinfoicon(UserLite user) : Image | |
userlite_as_string(UserLite ul) : string | Deprecated function. Use ljuser() from now on. |
userlite_base_url(UserLite ul) : string | |
viewer_can_post() : bool | Returns true if the user can post in journal |
viewer_is_cyrillic() : bool | Returns true if the user is cyrillic. |
viewer_is_friend() : bool | 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. |
viewer_is_friendof() : bool | Returns true if the user viewing the page is both logged in, and journal is a friend of user. Always returns false for communities. |
viewer_is_maintainer() : bool | Returns true if the user viewing community page, and is the maintainer of this community.
Useful for returning links to manage information, or edit entries. |
viewer_is_member() : bool | 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. |
viewer_is_moderator() : bool | Returns true if the user viewing community page, and is the moderator of this community.
Useful for returning links to manage information, or edit entries. |
viewer_is_owner() : bool | 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. |
viewer_logged_in() : bool | 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. |
viewer_sees_ad_box(string type) : bool | True if opaque sidebar site-specific content box should be displayed to the user. |
viewer_sees_ads() : bool | Deprecated function. Use viewer_sees_hbox_(top|bottom) or viewer_sees_vbox from now on. |
viewer_sees_control_strip() : bool | Returns true if reader will see the built in control strip. |
viewer_sees_ebox() : bool | True if the user has selected to see opaque content boxes between entries. |
viewer_sees_hbox_bottom() : bool | True if opaque horizontal site-specific content box should be displayed to the user at the bottom of the page. |
viewer_sees_hbox_top() : bool | True if opaque horizontal site-specific content box should be displayed to the user at the top of the page. |
viewer_sees_sidebar_ads() : bool | |
viewer_sees_sidebar_ads(string[] sidebar_slots) : bool | |
viewer_sees_tour() : bool | Returns true if reader will see the tour. |
viewer_sees_vbox() : bool | True if opaque vertical site-specific content box should be displayed to the user. |
weekdays() : int[] | 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) |
zeropad(int n, int digits) : string | Returns the number padded with zeroes so it has the amount of digits indicated. |
zeropad(string n, int digits) : string | Returns the number padded with zeroes so it has the amount of digits indicated. |
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
TagDetail[] tags | List of categories visible to the user viewing the page. |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
Represents a color.
Members
int _show_expand_collapse | Is there an expand link or not. |
string anchor | Direct link to comment, via HTML name anchors (Read-only) |
bool can_marked_as_spam | Comments can be marked as spam (Read-only) |
bool comment_posted | True if comment was just posted by the current user. (Read-only) |
bool deleted | True if comment has been deleted. Deleted comments still show up if they are the parent of a thread. (Read-only) |
int depth | 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. |
string dom_id | The DOM 'id' attribute you should put on your outer-most element (Read-only) |
bool edited | True if the comment has been edited. (Read-only) |
DateTime edittime | The GMT time the comment was edited. Or undef if the comment hasn't been edited. (Read-only) |
DateTime edittime_poster | The local time the comment was edited, in the commenter's timezone. Or undef if anonymous comment, or commenter's timezone is unknown, or the comment hasn't been edited. (Read-only) |
DateTime edittime_remote | The local time the comment was edited, in the remote user's (reader's) timezone. Or undef if no remote user, or remote user hasn't set their timezone, or the comment hasn't been edited. (Read-only) |
bool frozen | True if comment is in frozen state. (Read-only) |
bool full | True if all information is available for this comment. False if only the subject, poster, and date are available. (collapsed threads) |
string html | HTML code for this comment. |
bool is_fbpost | Indicates that this entry from facebook post (Read-only) |
bool is_instagram | Indicates that this entry is digest from instagram (Read-only) |
UserLite journal | Journal the entry has been posted to |
string[] link_keyseq | An array of keys which you should pass to EntryLite.get_link(string key) 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. |
string{} metadata | Post metadata. Keys: 'music', 'mood' (Read-only) |
string parent_url | URL to parent comment, or blank if a top-level comment. (Read-only) |
string permalink_url | A URL at which this specific entry can be viewed, for linking purposes. (Read-only) |
UserLite poster | Author of the entry, or null if an anonymous comment |
int rating_position | Position of entry in rating (Read-only) |
Comment[] replies | Comments replying to this comment. |
string reply_url | URL to reply to this comment. (Read-only) |
string reposted_by | The string about reposter (Read-only) |
bool screened | True if comment is in screened state. (Read-only) |
int seconds_since_entry | The number of elapsed seconds from the time of the journal entry until the comment was initially posted. (Read-only) |
bool spam | This is spam message. (Read-only) |
string subject | Subject. May contain HTML. Don't do substring chops on this. (Read-only) |
Image subject_icon | Subject icon, or null. |
DateTime system_time | The system time (in GMT) this entry or comment was posted. |
Tag[] tags | Array of tags applied to this entry. (Read-only) |
int talkid | Server stored ID number for this comment. |
string text | 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) |
bool text_must_print_trusted | 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) |
string thread_url | URL to view threaded rooted at this comment, or blank if comment has no children. (Read-only) |
DateTime time | The user-specified time of the post, or the GMT time if it's a comment. |
DateTime time_poster | The local time the comment appeared, in the commenter's timezone. Or undef if anonymous comment, or commenter's timezone is unknown. (Read-only) |
DateTime time_remote | 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) |
Image userpic | The userpic selected to relate to this entry. |
Methods
edittime_display() : string | Show the time that this comment was edited, with most useful information for user. Empty string if the comment hasn't been edited. |
edittime_display(string datefmt, string timefmt) : string | edittime_display, with customized date/time formats. |
expand_link() : string | Returns a link to expand a collapsed comment. Uses the value of the 'text_comment_expand' property as the text. Will not work in untrusted layers. |
expand_link(string{} opts) : string | Returns a link to expand a collapsed comment. Can pass options 'text', 'title', 'class', and 'img_url' (and other 'img_*' options). Will not work in untrusted layers. |
formatted_subject(string{} opts) : string | formats subject - outputs subject as html-link, gets hash of attributes - class and(or) style |
get_link(string key) : Link | 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. |
get_plain_subject() : string | For Entries that can contain HTML subjects, this returns the subject 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. |
get_tags_text() : string | 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_edit_text() : void | Print the text that says when this comment was edited. |
print_expand_collapse_links() : void | Prints links to expand and to collapse this comment. |
print_expand_collapse_links(string{} template) : string | Prints links to expand and to collapse this comment (output with template). |
print_expand_link() : string | Prints a link to expand a collapsed comment. Uses the value of the 'text_comment_expand' property as the text. |
print_expand_link(string{} opts) : string | Prints a link to expand a collapsed comment. Can pass options 'text', 'title', 'class', and 'img_url' (and other 'img_*' options). |
print_give_button(string type) : string | Get a button or link to Give features. Type can be 'button' or 'link' |
print_give_button(string type, string img_url) : string | Get a button or link to Give features. Type can be 'button' or 'link' |
print_linkbar() : void | Print the link bar for this entry or comment. |
print_multiform_check() : void | Prints the select checkbox in CSS class 'ljcomsel' with DOM id 'ljcomsel_$talkid' for a multi-action form started with EntryPage.print_multiform_start(). |
print_multiform_check(string{} opts) : string | Return the select checkbox in CSS class 'ljcomsel' with DOM id 'ljcomsel_$talkid' for a multi-action form started with EntryPage.print_multiform_start(). |
print_reply_container() : void | Prints the area in which the quickreply box will go. If no container is available, quickreply will not work. |
print_reply_container(string{} opts) : string | 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. |
print_reply_link(string{} opts) : string | 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_text() : void | Print the entry text. Doesn't print anything in some contexts, such as on a month view or in a collapsed comment. |
render_linkbar() : string | Render the link bar for this entry or comment and return it as string. |
render_text() : string | Returns the text of comment. |
time_display() : string | Show the time of this post, with most useful information for user, and with tooltip for more. |
time_display(string datefmt, string timefmt) : string | time_display, with customized date/time formats. |
time_display(string datefmt, string timefmt, bool edittime) : string | Same as EntryLite::time_display, except can pass in if we want the edit time or not. |
Information about comments attached to something.
Represents a date.
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
Date date | Date of the current day |
Entry[] entries | Array of entries available to be seen by the viewer of the page |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
bool has_entries | True if there are entries on the specified day |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
Date next_date | Next day |
string next_url | URL to next day (Read-only) |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
Date prev_date | Previous day |
string prev_url | URL to previous day (Read-only) |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
Members
CommentInfo comments | Comment information on this entry |
bool delayed | Indicates that this entry is delayed (Read-only) |
Image delayed_icon | A little icon which should be displyaed somewhere on an entry to represent the delayed entry |
int depth | 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. |
string dom_id | The DOM 'id' attribute you should put on your outer-most element (Read-only) |
bool end_day | Is this the last entry of a day? |
string event | Entry is event |
string event_date_from | |
string event_date_to | |
string event_desc | Short description of event |
string event_image | Url to small image of event |
string event_location | Location of event |
string event_paid | Event is paid or free |
string event_price | Price of event if paid |
string event_time_from | |
string event_time_to | |
string event_town | Town of event |
string event_type | Type of event |
string event_users | Members of event |
bool golden | Indicates that this entry marked as gold post (Read-only) |
bool is_fbpost | Indicates that this entry from facebook post (Read-only) |
bool is_instagram | Indicates that this entry is digest from instagram (Read-only) |
int itemid | Server stored ID number for this entry |
UserLite journal | Journal the entry has been posted to |
string[] link_keyseq | An array of keys which you should pass to EntryLite.get_link(string key) 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. |
string{} metadata | Post metadata. Keys: 'music', 'mood' (Read-only) |
Image mood_icon | Mood icon, or null. |
bool new_day | Is this entry on a different day to the previous one? |
bool partner | Indicates that this entry contains partner content (Read-only) |
string permalink_url | A URL at which this specific entry can be viewed, for linking purposes. (Read-only) |
string portfolio | Entry used for portfolio of artist |
string portfolio_thumbnail | Url to image for portfolio of artist |
UserLite poster | Author of the entry, or null if an anonymous comment |
bool promo | Indicates that this entry is promo (Read-only) |
string promo_type | Promoted object type (entry/site) (Read-only) |
int promoid | Promoid if entry is promo (Read-only) |
int rating_position | Position of entry in rating (Read-only) |
bool repost | Indicates that this entry is repost (Read-only) |
Image repost_icon | A little icon which should be displyaed somewhere on an entry to represent the reposted entry |
string reposted_by | The string about reposter (Read-only) |
string security | The security level of the entry ('private', 'protected'), or blank if public. (Read-only) |
Image security_icon | A little icon which should be displayed somewhere on an entry to represent the security setting |
bool sticky | Indicates that this entry is sticky (Read-only) |
Image sticky_icon | A little icon which should be displyaed somewhere on an entry to represent the sticky setting |
string subject | Subject. May contain HTML. Don't do substring chops on this. (Read-only) |
DateTime system_time | The system time (in GMT) this entry or comment was posted. |
Tag[] tags | Array of tags applied to this entry. (Read-only) |
string text | 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) |
bool text_must_print_trusted | 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) |
string threeposts_source | Source of threeposts: tag, url, recent |
string threeposts_tag | Tag for threeposts if threeposts_source eq tag |
DateTime time | The user-specified time of the post, or the GMT time if it's a comment. |
Image userpic | The userpic selected to relate to this entry. |
int version | Version of post - old or new editor (post_2017) (Read-only) |
Methods
formatted_subject(string{} opts) : string | formats subject - outputs subject as html-link, gets hash of attributes - class and(or) style |
get_authors_comments() : Comment[] | Returns community authors last comments |
get_categories_adjusted() : string[] | Return categories for the entry. |
get_categories_widget() : string | Return markup of entry categories |
get_cutted_text() : string | Returns text withiout text that has been cutted. Doesn't print anything in some contexts, such as on a month view or in a collapsed comment. |
get_eventrates() : UserLite[] | Id list of users who rates this entry. |
get_eventratescounters() : int | How many users rates this entry. |
get_link(string key) : Link | 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. |
get_lj_embeds() : string[] | Returns an array of tags <lj-embed> |
get_plain_subject() : string | For Entries that can contain HTML subjects, this returns the subject 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. |
get_tags_text() : string | 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. |
get_threeposts() : ThreePostsEntry[] | Returns ThreePostsEntry[] params from a Entry object |
is_eventrate_enable() : bool | True if users can rate entry. |
is_myvoice() : bool | Is my voice already counted by the system. |
plain_subject() : string | Return entry's subject as plain text, with all HTML removed. |
print_ebox() : void | Prints a small horizontal bar of site-specific content between entries in a journal. |
print_give_button(string type) : string | Get a button or link to Give features. Type can be 'button' or 'link' |
print_give_button(string type, string img_url) : string | Get a button or link to Give features. Type can be 'button' or 'link' |
print_link_next() : void | Print the link to the next entry in this journal. |
print_link_prev() : void | Print the link to the previous entry in this journal. |
print_linkbar() : void | Print the link bar for this entry or comment. |
print_metadata() : void | |
print_text() : void | Print the entry text. Doesn't print anything in some contexts, such as on a month view or in a collapsed comment. |
render_linkbar() : string | Render the link bar for this entry or comment and return it as string. |
time_display() : string | Show the time of this post, with most useful information for user, and with tooltip for more. |
time_display(string datefmt, string timefmt) : string | time_display, with customized date/time formats. |
truncate_text(int limit) : string | Truncates entry text to limit chars and adds ellipsis |
viewer_sees_ebox() : bool | True if opaque horizontal site-specific content boxes between entries should be displayed to the user. |
Base class for both journal entries and comments.
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
ItemRange comment_pages | Represents what comment page is being displayed. |
Comment[] comments | Comments to journal entry, or at least some of them. |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
Entry entry | Journal entry being viewed |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
bool multiform_on | Set to true if the multi-action is to be printed, which requires both comments and applicable permissions for the remote user. |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
bool viewing_thread | 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. |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_comment(Comment comment) : void | Prints a full comment |
print_comment_full(Comment comment) : void | Prints a expanded comment |
print_comment_partial(Comment comment) : void | Prints a collapsed comment |
print_comments(Comment[] comments) : void | Prints comments |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_multiform_actionline() : void | Prints the line of the multiform giving instructions, options, and the submit button, using the text of the different $*text_multiform_ properties. |
print_multiform_end() : void | Prints end of form tag to do a multi-comment action. |
print_multiform_start() : void | Prints start of form tag and hidden elements to do a multi-comment action (multiple delete, screen, unscreen, etc...) |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_comment(Comment c, int _show_expand_collapse) : string | Return comment as string |
render_comment_full(Comment comment) : string | Return content of a expanded comment |
render_comment_partial(Comment comment) : string | Return content of a collapsed comment |
render_comments(Comment[] comments) : Comment{} | Return a list of comments |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
string category | |
string category_medius_url | |
bool categoryfilter_active | |
Tag[] categoryfilter_categories | |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
Entry[] entries | Array of entries available to be seen by the viewer of the page. |
bool filter_active | If true, some kind of filter is in effect. If this filter has a name, it will be included in FriendsPage.filter_name |
string 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. |
Friend{} friends | A mapping from friend username to color association information. There will only be keys for friends whose entries are in the entries array. |
string friends_mode | The 'mode' of this view. An empty string indicates a normal friends view, while 'friendsfriends' indicates the Friends-of-friends view. |
string friends_title | A user-selected title for their friends page. (Read-only) |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
RecentNav nav | |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
bool tagfilter_active | |
string tagfilter_mode | |
Tag[] tagfilter_tags | |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
Represents an image.
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.
Represents a range of items which optionally contain items.
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
string[] link_keyseq | 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. |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
Link{} links | An associative array of links to be displayed alongside this message. Iterate over MessagePage.link_keyseq to find the keys. |
string message | The body of the message. Do not print this directly; use MessagePage.print_body() instead. (Read-only) |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string title | The title of the message. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_links() : void | Print the links from the MessagePage.links and MessagePage.link_keyseq members. Layouts will probably want to override this. |
print_message() : void | Print the message. Call this rather than printing MessagePage.message directly. |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
A month the user has journal entries, along with information to link to it.
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
Date date | Date of this month, with day of zero. |
MonthDay[] days | One entry for each day of the month. |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
MonthEntryInfo[] months | Other months this journal has entries. |
Date next_date | Date of next month, with day of zero, or null if none. |
string next_url | URL of next month, or empty string if none. (Read-only) |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
Date prev_date | Date of previous month, with day of zero, or null if none. |
string prev_url | URL of previous month, or empty string if none. (Read-only) |
Redirector redir | Necessary to make a form which POSTs to a redirector |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
Delimeters for options page.
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
A specification for a numbered palette index in a GIF or PNG to be changed to a certain color
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
string category | |
string category_medius_url | |
bool categoryfilter_active | |
Tag[] categoryfilter_categories | |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
Entry[] entries | Array of entries available to be seen by the viewer of the page. |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
RecentNav nav | |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
bool tagfilter_active | |
string tagfilter_mode | |
Tag[] tagfilter_tags | |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
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.
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.
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
Entry entry | The journal entry for this talk page |
ReplyForm form | The reply form. |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
EntryLite replyto | The object which is being replied to, either the entry or a comment |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
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.
Represents a tag in its most basic form.
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
TagDetail[] tags | List of tags visible to the user viewing the page. |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |
A user-defined link to an outside resource.
Members
string{} args | 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) |
string base_url | The base URL of the journal being viewed. (Read-only) |
Link{} data_link | Links to various machine-readable data sources relating to this page |
string[] data_links_order | An array of data views which can be used to order the data_link hash |
string global_subtitle | A sub-title selected by the user for their whole journal. (Read-only) |
string global_title | A title selected by the user for their whole journal. (Read-only) |
string head_content | 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 journal | User whose journal is being viewed |
string journal_facebook_link | Url to linked Facebook account (Read-only) |
string journal_telegram_channel_link | Url to linked Telegram channel (Read-only) |
string journal_twitter_link | Url to linked Twitter account (Read-only) |
string journal_type | Journal type, ex: 'P' (personal), 'C' (community), etc. (Read-only) |
string journal_vkontakte_link | Url to linked Vkontakte account (Read-only) |
UserLink[] linklist | An array of UserLink objects defined by the user to be displayed on their journal. (Read-only) |
YearMonth[] months | 12 months objects, even if no entries are in that month. |
string page_id | The page identifier- what to pass to /identity/login.bml so that it returns to this page after a successfull authorization. (Read-only) |
bool showspam | Set to true if need show only spam messages. |
string stylesheet_url | The URL to use in a link element for the server-supported external stylesheet to put stuff in it) (Read-only) |
DateTime time | A DateTime object filled with the time (GMT) when the page was created. (Read-only) |
string view | The view type (recent, friends, archive, month, day, entry) (Read-only) |
bool view_my_games | View my games on profilepage. |
string{} view_url | 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) |
string[] views_order | An array of view identifiers which can be used to order the views hash. (Read-only) |
int year | The year being viewed |
YearYear[] years | Information for linking to other years |
Methods
appview(string{} opts) : string | Returns rendered aplication(s) view(s). |
bool_as_string(bool input) : string | Returns bool as string. This allows to print the bool variable value |
get_alien_post(string url) : Entry | Returns any public entry from any journal having give_posts_to_alien prop. Recipient must have get_alien_posts prop |
get_entries_by_ids(int[] ids) : Entry{} | Returns entries by the specified ids |
get_entries_by_tag_lite(string tag, int count, bool preload_text) : Entry[] | Returns last 'count' entries with the specified tag; lite version of method get_entries_by_tags; make object Entry with minimum parameters |
get_entries_by_tags(string[] taglist, string mode, int count) : Entry[] | Returns last 'count' entries with the specified tag(s); returns the entries containing all of them or any of them, depending on 'mode'; does not work in untrusted journals |
get_entry_by_id(int id) : Entry | Returns entry by the specified id |
get_first_image(Entry e) : string | Returns first image in entry as img tag |
get_first_image_url(Entry e) : string | Returns url of the first image in entry |
get_fullimage_wrapper() : string | Returns markup for full size image view |
get_last_entries(string ljname, int count) : Entry[] | Returns last 'count' entries from selected journal for LJTimes verticals. |
get_latest_month() : YearMonth | 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. |
get_lj_bubble() : string | Returns div with lj-buble markup |
get_lj_entry_likus() : string | Returns div with lj-likus markup |
get_reaction_markup() : string | Returns standard markup for `nglj-like-react` directive |
get_reaction_stats_markup() : string | Returns standard markup for `nglj-like-reaction-stats` directive |
get_reactions_widget() : string | Returns reactions widget |
init_appviews() : void | Include JS/CSS for application view(s). |
is_journalpromo() : bool | Return true if journal promo is not empty and was not shown. |
journalpromo() : string | Returns rendered journal promo. |
need_res(string[] resources) : void | Appends resoures to header content with correct timestamp. |
need_res(string{} options, string[] resources) : void | Appends resoures to header content with correct timestamp. |
print() : void | 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. |
print_ad(string type) : void | Deprecated function. Use print_hbox_(top|bottom) or print_vbox from now on. |
print_ad_box(string type) : void | Prints an side bar of site-specific content on a journal. |
print_body() : void | 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 |
print_button(string type, string title, string class) : string | Returns a structure for button |
print_button(string type, string title, string class, string{} args) : string | Returns a structure for button |
print_control_strip() : void | Prints a control strip for the user's convenience |
print_custom_head() : void | 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. |
print_entry(Entry e) : void | Output a journal entry. Layouts should override this and the inherited versions in RecentPage, FriendsPage
and DayPage to change how entries display. |
print_entry_poster(Entry e) : void | Output a line of text which says who posted an entry (just "user", or "user posting in somejournal") |
print_hbox_bottom() : void | Prints an horizontal bar of site-specific content at the bottom of a journal. |
print_hbox_top() : void | Prints an horizontal bar of site-specific content at the top of a journal. |
print_head() : void | 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_linklist() : void | Print the list of UserLink objects specified by the user. |
print_month(YearMonth m) : void | Print the calendar cell for the given month |
print_pagewide_slot() : void | Prints page-wide slot. |
print_reply_container(string{} opts) : void | 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. |
print_reply_link(string{} opts) : void | 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'. |
print_show_spam_button() : void | Show Spam Button. |
print_stylesheets() : void | Prints all defined stylesheets, including default and user-defined ones. |
print_svg(string name) : string | Returns a contents of svg file |
print_trusted(string key) : void | Prints a trusted string by key. |
print_vbox() : void | Prints an vertical bar of site-specific content on a journal. |
print_yacontext_slot() : void | Prints slot for slot yandex context. |
print_yacontext_slot(string custom_class, string slot) : void | Prints slot for slot yandex context. |
print_year_links() : void | Print the navigation links to move between years |
remove_unusable_images(string[] images) : string[] | Removes userheads and polls images from array of images urls |
render_appview(string{} opts) : void | Print rendered application(s) view(s). |
render_journalpromo() : bool | Print rendered journal promo and return true if journal promo is not empty. |
render_resource(int{} opts) : string | Returns a string containing external resources and meta information (js, css, meta, rss). |
render_widget(string{} opts) : void | Prints rendered widget body. |
str_comment_page(string type) : string | Return current number page as string for current page comments. Parameter type may be "desc" or "title" |
svg_icon(string name) : string | Returns a structure for one svg icon |
svg_icon(string name, string class) : string | Returns a structure for one svg icon |
title() : string | 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. |
view_title() : string | 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(). |
viewer_sees_journalpromo() : bool | Return true if journal promo is not empty. |
viewer_sees_sidebar_ads() : bool | Returns true if viewer sees any slots in sidebar |
visible_category_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
visible_tag_list() : TagDetail[] | Returns an array of tags that the logged in user can see for the journal being viewed. |
widget(string{} opts) : string | Returns rendered widget body. |