{"id":9822,"date":"2013-05-06T15:45:15","date_gmt":"2013-05-06T15:45:15","guid":{"rendered":"http:\/\/musilda.cz\/?p=326"},"modified":"2013-05-06T15:45:15","modified_gmt":"2013-05-06T15:45:15","slug":"funkce-get_header","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-get_header\/","title":{"rendered":"Funkce get_header"},"content":{"rendered":"

Funkce get_header() vkl\u00e1d\u00e1 soubor header.php do aktu\u00e1ln\u00edho souboru \u0161ablony. Jako argument m\u016f\u017eete pou\u017e\u00edt jm\u00e9no (name), \u010d\u00edm\u017e zavol\u00e1te nap\u0159\u00edklad soubor header-inzerce.php.<\/p>\n

<\/p>\n

Pou\u017eit\u00ed funkce:<\/p>\n

get_header( $name ); <\/pre>\n

$name – jm\u00e9no headeru, vol\u00e1 header-name.php, defauln\u011b je pr\u00e1zdn\u00fd<\/p>\n

P\u0159\u00edklad jednoduch\u00e9ho soouboru index.php<\/p>\n

\n\n

Nadpis str\u00e1nky<\/h2>\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

Funkce get_header() vkl\u00e1d\u00e1 soubor header.php do aktu\u00e1ln\u00edho souboru \u0161ablony. Jako argument m\u016f\u017eete pou\u017e\u00edt jm\u00e9no (name), \u010d\u00edm\u017e zavol\u00e1te nap\u0159\u00edklad soubor header-inzerce.php.<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,22],"tags":[171],"class_list":["post-9822","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags","tag-get_header"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/9822"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=9822"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/9822\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8523"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=9822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=9822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=9822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}