{"id":359,"date":"2012-07-10T06:25:25","date_gmt":"2012-07-10T06:25:25","guid":{"rendered":"https:\/\/www.frozenlogistic.com\/?p=359"},"modified":"2012-08-12T17:55:19","modified_gmt":"2012-08-12T17:55:19","slug":"template-structure","status":"publish","type":"post","link":"https:\/\/www.frozenlogistic.com\/?p=359","title":{"rendered":"Theme structure"},"content":{"rendered":"<p>Each theme&#8217;s subpage in GavernWP is created and based on one file from theme&#8217;s main catalog, e.g. <strong>single.php<\/strong> and at least four additional files from <strong>layouts<\/strong> catalog:<\/p>\n<ul>\n<li><strong>header.php<\/strong> &#8211; this file includes starting page&#8217;s structure i.e. a head section and the whole headline with elements such as: logo, main menu, etc.<\/li>\n<li><strong>before.php<\/strong> &#8211; there are all widget positions included in this file which are before page&#8217;s main content.<\/li>\n<li><strong>after.php<\/strong> &#8211; this file is an equivalent of <strong>before.php<\/strong> file but with one difference &#8211; it includes widget positions which are after page&#8217;s main content.<\/li>\n<li><strong>footer.php<\/strong> &#8211; similarly to <strong>header.php<\/strong> file, it includes a starting page&#8217;s structure as footer.php includes the ending page&#8217;s structure, i.e. a footer and and elements below.<\/li>\n<\/ul>\n<p>The above files with a file given from a main catalog, create a basic structure of each page. The remaining elements are generated by additional files or functions. The majority of of such files can be found in <strong>layouts<\/strong> catalog; e.g. files with names content.post.*.php, include constituents of each post. . Using these files allowed to restrict the amount of code in theme&#8217;s main files and simplify its modification as change e.g. an entry footer requires modification of one or two files only.<\/p>\n<p>Functions used for generating additional information displayed in posts are in <strong>gavern\/helpers\/helpers.layout.fragments.php<\/strong> file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Each theme&#8217;s subpage in GavernWP is created and based on one file from theme&#8217;s main catalog, e.g. single.php and at least four additional files from layouts catalog: header.php &#8211; this &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[51,50],"class_list":["post-359","post","type-post","status-publish","format-standard","hentry","category-theme-essentials","tag-structure","tag-theme"],"_links":{"self":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=359"}],"version-history":[{"count":5,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":442,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions\/442"}],"wp:attachment":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}