{"id":1380,"date":"2014-01-01T18:45:13","date_gmt":"2014-01-01T18:45:13","guid":{"rendered":"http:\/\/musilda.cz\/?p=1380"},"modified":"2014-01-01T18:45:13","modified_gmt":"2014-01-01T18:45:13","slug":"jak-barevne-odlisit-clanky-v-administraci","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/jak-barevne-odlisit-clanky-v-administraci\/","title":{"rendered":"Jak barevn\u011b odli\u0161it \u010dl\u00e1nky v administraci"},"content":{"rendered":"
Dne\u0161n\u00ed snippet je takov\u00e1 p\u0159\u00edjemn\u00e1 blb\u016fstka, kter\u00e1 vyu\u017e\u00edv\u00e1 css t\u0159\u00eddy u v\u00fdpisu \u010dl\u00e1nk\u016f v administraci. Pomoc\u00ed nich m\u016f\u017eete barevn\u011b odli\u0161it jednotliv\u00e9 stavy \u010dl\u00e1nk\u016f. Kdy\u017e se pod\u00edv\u00e1te do zdrojov\u00e9ho k\u00f3du v\u00fdpisu, zjist\u00edte, \u017ee \u0159\u00e1dek tabulky – tr, m\u00e1 css t\u0159\u00eddu, dle stavu \u010dl\u00e1nku, nap\u0159\u00edklad\u00a0status-draft.<\/p>\n
D\u00edky tomu m\u016f\u017eete p\u0159idat pomoc\u00ed akce admin_footer, jednoduch\u00fd css k\u00f3d, kter\u00fd zm\u011bn\u00ed zabarven\u00ed pozad\u00ed \u0159\u00e1dku, dle toho, zda je o napl\u00e1novan\u00fd \u010dl\u00e1nek, publikovan\u00fd, soukrom\u00fd, nebo rozepsan\u00fd.<\/p>\n
\nadd_action('admin_footer','posts_status_color');\nfunction posts_status_color(){\n?>\n\n.status-draft{background: #FCE3F2 !important;}\n.status-pending{background: #87C5D6 !important;}\n.status-future{background: #C6EBF5 !important;}\n.status-private{background:#F2D46F;}\n\n<?php\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Dne\u0161n\u00ed snippet je takov\u00e1 p\u0159\u00edjemn\u00e1 blb\u016fstka, kter\u00e1 vyu\u017e\u00edv\u00e1 css t\u0159\u00eddy u v\u00fdpisu \u010dl\u00e1nk\u016f v administraci. Pomoc\u00ed nich m\u016f\u017eete barevn\u011b odli\u0161it jednotliv\u00e9 stavy \u010dl\u00e1nk\u016f. Kdy\u017e se pod\u00edv\u00e1te do zdrojov\u00e9ho k\u00f3du v\u00fdpisu, zjist\u00edte, \u017ee \u0159\u00e1dek tabulky – tr, m\u00e1 css t\u0159\u00eddu, dle stavu \u010dl\u00e1nku, nap\u0159\u00edklad\u00a0status-draft.<\/p>\n","protected":false},"author":1,"featured_media":8624,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[356],"class_list":["post-1380","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-snippety","tag-snippets"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1380"}],"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=1380"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1380\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8624"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=1380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}