{"id":119,"date":"2011-04-21T00:52:01","date_gmt":"2011-04-20T22:52:01","guid":{"rendered":"http:\/\/my-opinions.info\/?p=119"},"modified":"2011-04-21T00:52:01","modified_gmt":"2011-04-20T22:52:01","slug":"peremennye-v-teme-drupal","status":"publish","type":"post","link":"https:\/\/uw-t.com\/en\/drupal\/peremennye-v-teme-drupal","title":{"rendered":"Variables in the subject Drupal"},"content":{"rendered":"<p><strong>page.tpl.php<\/strong><\/p>\n<p>Basic template for a page.Accessible variables:<\/p>\n<ul>\n<li><strong>$head_title is a header of page<\/strong><\/li>\n<li><strong>$head is all information in head<\/strong><\/li>\n<li><strong>$styles are styles<\/strong><\/li>\n<li><strong>$scripts are scripts<\/strong><\/li>\n<li><strong>$classes are classes for body<\/strong><\/li>\n<li><strong>$header is a cap which we took away in a separate template<\/strong><\/li>\n<li><strong>$REGION_NAME are variables with the names of regions<\/strong><\/li>\n<li><strong>$messages are system reports<\/strong><\/li>\n<li><strong>$tabs - \u0442\u0430\u0431\u044b<\/strong><\/li>\n<li><strong>$content is content<\/strong><\/li>\n<li><strong>$feed_icons are icons of RSS<\/strong><\/li>\n<li><strong>$footer is basement which we took away in a separate template<\/strong><\/li>\n<li><strong>$base_path is a base path of site<\/strong><\/li>\n<li><strong>$is_front is a main page or no<\/strong><\/li>\n<li><strong>$logged_in is whether a \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d user<\/strong><\/li>\n<li><strong>$is_admin - admin or no<\/strong><\/li>\n<li><strong>$language is an object, containing data about a current language<\/strong><\/li>\n<li><strong>$node - \u043d\u043e\u0434\u0430<\/strong><\/li>\n<li><strong>$front_page is a pointer to main<\/strong><\/li>\n<li><strong>$logo is a logotype<\/strong><\/li>\n<li><strong>$site_name is the name of site<\/strong><\/li>\n<li><strong>$site_slogan is a slogan of site<\/strong><\/li>\n<li><strong>$mission is a mission of site<\/strong><\/li>\n<li><strong>$search_box is a block of search<\/strong><\/li>\n<li><strong>$closure - a variable is inserted before the closing tag \/of body, in      it some modules write scripts. Thank you \u0445\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440\u0443 juliv\/<!--more--><\/strong><\/li>\n<\/ul>\n<p><strong>node.tpl.php<\/strong><\/p>\n<p>Template of output of content.Accessible variables:<\/p>\n<ul>\n<li><strong>$node is an object of \u043d\u043e\u0434\u044b<\/strong><\/li>\n<li><strong>$classes are classes for \u043d\u043e\u0434\u044b<\/strong><\/li>\n<li><strong>$user_picture - \u0430\u0432\u0430\u0442\u0430\u0440 user<\/strong><\/li>\n<li><strong>$picture is a picture of \u043d\u043e\u0434\u044b, redefined by the modules<\/strong><\/li>\n<li><strong>$page is a page of \u043d\u043e\u0434\u044b or list of \u0442\u0438\u0437\u0435\u0440\u043e\u0432<\/strong><\/li>\n<li><strong>$unpublished - published or no<\/strong><\/li>\n<li><strong>$display_submitted - by whom and when published<\/strong><\/li>\n<li><strong>$terms are categories<\/strong><\/li>\n<li><strong>$content is content<\/strong><\/li>\n<li><strong>$links are Refs.s<\/strong><\/li>\n<li><strong>$title is a header<\/strong><\/li>\n<li><strong>$date is a date of creation<\/strong><\/li>\n<li><strong>$name is the name of author<\/strong><\/li>\n<li><strong>$node_url is reference on \u043d\u043e\u0434\u0443<\/strong><\/li>\n<li><strong>$comment_count is an amount of \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u043e\u0432<\/strong><\/li>\n<li><strong>$type is a type of material<\/strong><\/li>\n<li><strong>$uid - id author<\/strong><\/li>\n<li><strong>$zebra is a class for a zebra<\/strong><\/li>\n<li><strong>$teaser - \u0442\u0438\u0437\u0435\u0440 or whole \u043d\u043e\u0434\u0430<\/strong><\/li>\n<li><strong>$sticky - \u043f\u0440\u0438\u043b\u0435\u043f\u043b\u0435\u043d\u0430 or no<\/strong><\/li>\n<li><strong>$status is status of \u043d\u043e\u0434\u044b<\/strong><\/li>\n<li><strong>$comment - whether \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u044b is included<\/strong><\/li>\n<li><strong>$is_front - on main or no<\/strong><\/li>\n<li><strong>$logged_in - \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d or no<\/strong><\/li>\n<li><strong>$is_admin - admin or no<\/strong><\/li>\n<\/ul>\n<p><strong>region.tpl.php<\/strong><\/p>\n<p>Template of output of region.Accessible variables:<\/p>\n<ul>\n<li><strong>$classes are classes for a region<\/strong><\/li>\n<li><strong>$content is content<\/strong><\/li>\n<li><strong>$region is the name of region<\/strong><\/li>\n<li><strong>$is_front - on main or no<\/strong><\/li>\n<li><strong>$logged_in - \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d or no<\/strong><\/li>\n<li><strong>$is_admin - admin or no<\/strong><\/li>\n<\/ul>\n<p><strong>block.tpl.php<\/strong><\/p>\n<p>Template of output of block.Accessible variables:<\/p>\n<ul>\n<li><strong>$block is an object of block<\/strong><\/li>\n<li><strong>$classes are classes of block<\/strong><\/li>\n<li><strong>$title is a header<\/strong><\/li>\n<li><strong>$content is content<\/strong><\/li>\n<li><strong>$edit_links are Refs.s of editing of block<\/strong><\/li>\n<li><strong>$zebra is a zebra<\/strong><\/li>\n<li><strong>$block_id - id block<\/strong><\/li>\n<li><strong>$is_front - on main or no<\/strong><\/li>\n<li><strong>$logged_in - \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d or no<\/strong><\/li>\n<li><strong>$is_admin - admin or no<\/strong><\/li>\n<\/ul>\n<p><strong>comment - wrapper.tpl.php<\/strong><\/p>\n<p>Template of block of output of comments.Accessible variables:<\/p>\n<ul>\n<li><strong>$classes are classes<\/strong><\/li>\n<li><strong>$node - \u043d\u043e\u0434\u0430<\/strong><\/li>\n<li><strong>$content is content<\/strong><\/li>\n<li><strong>$display_mode is a method of displaying of \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u043e\u0432<\/strong><\/li>\n<li><strong>$display_order is an order of displaying of \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u043e\u0432<\/strong><\/li>\n<li><strong>$comment_controls_state - whether there is a form of management of      \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u043c\u043c\u0438<\/strong><\/li>\n<\/ul>\n<p><strong>comment.tpl.php<\/strong><\/p>\n<p>Template of displaying of one comment.Accessible variables:<\/p>\n<ul>\n<li><strong>$classes are classes<\/strong><\/li>\n<li><strong>$picture - \u0430\u0432\u0430\u0442\u0430\u0440 author<\/strong><\/li>\n<li><strong>$title is a header<\/strong><\/li>\n<li><strong>$new - new or no<\/strong><\/li>\n<li><strong>$unpublished - published or no<\/strong><\/li>\n<li><strong>$author is an author<\/strong><\/li>\n<li><strong>$created is a date of creation<\/strong><\/li>\n<li><strong>$content is content<\/strong><\/li>\n<li><strong>$links are Refs.s<\/strong><\/li>\n<\/ul>\n<p><strong>header.tpl.php<\/strong><\/p>\n<p>Template of cap of site. All variables for this template we defined in preprocess - header.incthe Accessible variables:<\/p>\n<ul>\n<li><strong>$front_page is a main page or no<\/strong><\/li>\n<li><strong>$logo is a logotype of site<\/strong><\/li>\n<li><strong>$search_box is a block of search<\/strong><\/li>\n<li><strong>$header_line is a region with the name of header_line<\/strong><\/li>\n<\/ul>\n<p><strong>footer.tpl.php<\/strong><\/p>\n<p>Template of basement of site. All variables for this template we defined in preprocess - footer.incthe Accessible variables:<\/p>\n<ul>\n<li><strong>$footer_line is a region with the name of footer_line<\/strong><\/li>\n<li><strong>$page_bottom is a region with the name of page_bottom<\/strong><\/li>\n<\/ul>\n<p>Source of http:\/\/habrahabr.ru\/blogs\/drupal\/ 86463\/<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>page.tpl.php Basic template for a page.Accessible variables: $head_title is a header of page $head is all information in head $styles are styles $scripts are scripts $classes are classes for body $header is a cap which we took away in a separate template $REGION_NAME are variables with the names of regions $messages are system reports $tabs &hellip; <a href=\"https:\/\/uw-t.com\/en\/drupal\/peremennye-v-teme-drupal\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Variables in the subject Drupal<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-drupal"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":1,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":120,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/posts\/119\/revisions\/120"}],"wp:attachment":[{"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}