{"id":69,"date":"2011-04-13T20:43:36","date_gmt":"2011-04-13T18:43:36","guid":{"rendered":"http:\/\/my-opinions.info\/?p=69"},"modified":"2011-05-16T02:11:44","modified_gmt":"2011-05-16T00:11:44","slug":"glavnaja-stranica-drupal","status":"publish","type":"post","link":"https:\/\/uw-t.com\/en\/drupal\/glavnaja-stranica-drupal","title":{"rendered":"Home in Drupal (home page of drupal)"},"content":{"rendered":"<p>In order that would make the home page you can create a unique file in the template with the name of <strong>page-front.tpl.php,<\/strong> but if you create a template and you simply need to determine a home page or not, you can use <strong>drupal_is_front_page.<\/strong> If the current home page - TRUE, otherwise - FALSE. So we can write <\/p>\n<pre lang=\"php\"><?php\r\nif(drupal_is_front_page())\r\necho \"\u042d\u0442\u043e \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\";\r\nelse \"\u041d\u0435 \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\";\r\n?><\/pre>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>In order that would make the home page you can create a unique file in the template with the name of page-front.tpl.php, but if you create a template and you simply need to determine a home page or not, you can use drupal_is_front_page. If the current home page - TRUE, otherwise - FALSE. So we &hellip; <a href=\"https:\/\/uw-t.com\/en\/drupal\/glavnaja-stranica-drupal\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Home in Drupal (home page of 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-69","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\/69","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=69"}],"version-history":[{"count":6,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/posts\/69\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uw-t.com\/en\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}