{"id":1078,"date":"2013-09-13T10:48:25","date_gmt":"2013-09-13T10:48:25","guid":{"rendered":"http:\/\/musilda.cz\/?p=1078"},"modified":"2013-09-13T10:48:25","modified_gmt":"2013-09-13T10:48:25","slug":"funkce-get_calendar","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-get_calendar\/","title":{"rendered":"Funkce get_calendar"},"content":{"rendered":"
Funkce get_calendar() zobraz\u00ed kalend\u00e1\u0159, ve kter\u00e9m budou dny, v nich\u017e byly publikovan\u00e9 \u010dl\u00e1nky zv\u00fdrazn\u011bny. Tuto funkci je mo\u017en\u00e9 pou\u017e\u00edt kdekoliv v \u0161ablon\u011b.<\/p>\n
Pou\u017eit\u00ed:<\/p>\n
\nget_calendar( $initial, $echo );\n<\/pre>\nParametry:<\/p>\n
$initial – m\u016f\u017ee nab\u00fdvat hodnot true a false, defaultn\u00ed je true. Hodnota true nastavi zobrazov\u00e1n\u00ed n\u00e1zv\u016f dn\u016f v kalend\u00e1\u0159i na prvn\u00ed p\u00edsmeno n\u00e1zvu dne. Monday bude tedy M. Pokud je false, budou n\u00e1zvy zobrazov\u00e1ny dle nastaven\u00ed lokalizace.<\/p>\n
$echo – parametr ur\u010duje, zda se kalend\u00e1\u0159 rovnou zobraz\u00ed(echo), nebo bude vr\u00e1cen jako promn\u011bnn\u00e1. Default true.<\/p>\n","protected":false},"excerpt":{"rendered":"
Funkce get_calendar() zobraz\u00ed kalend\u00e1\u0159, ve kter\u00e9m budou dny, v nich\u017e byly publikovan\u00e9 \u010dl\u00e1nky zv\u00fdrazn\u011bny. Tuto funkci je mo\u017en\u00e9 pou\u017e\u00edt kdekoliv v \u0161ablon\u011b.<\/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":[169],"class_list":["post-1078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags","tag-get_calendar"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1078"}],"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=1078"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1078\/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=1078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}