{"id":15265,"date":"2007-12-19T01:00:00","date_gmt":"2007-12-18T23:00:00","guid":{"rendered":"https:\/\/teetak.gr\/?p=15265"},"modified":"2007-12-19T01:00:00","modified_gmt":"2007-12-18T23:00:00","slug":"active-item-detection","status":"publish","type":"post","link":"https:\/\/teetak.gr\/?p=15265","title":{"rendered":"Active Item Detection"},"content":{"rendered":"<p> <\/p>\n<h4>Active Item Detection for various color stylings<\/h4>\n<p> With the Active Item Detection the template knows which menu item you are currently browsing. For example set any CSS class depending on the active\/current menu item in the body tag. This makes it possible to give each page a different color styling. <br \/> <span class=\"info\">For native 1.5 versions of our templates we used of course the new template parameters feature for the template configuration.<\/span> Example how the template configuration can look like in Joomla 1.0.x: <\/p>\n<pre> \/* item color variation *\/ \"item1\"               => \"red\",          \/* red | blue | green | yellow *\/ \"item2\"               => \"blue\",         \/* red | blue | green | yellow *\/ \"item3\"               => \"green\",        \/* red | blue | green | yellow *\/ \"item4\"               => \"yellow\",       \/* red | blue | green | yellow *\/ ... <\/pre>\n<p> And the generated template HTML output can look like this, if you are currently in Home (item1)&#8230; <\/p>\n<pre>&lt;body class=&quot;blue&quot;&gt;...&lt;\/body&gt; <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Active Item Detection for various color stylings With the Active Item Detection the template knows which menu item you are currently browsing. For example set any<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_typography_data":[],"_editorskit_blocks_typography":"","_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}"},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/teetak.gr\/index.php?rest_route=\/wp\/v2\/posts\/15265"}],"collection":[{"href":"https:\/\/teetak.gr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teetak.gr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teetak.gr\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/teetak.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15265"}],"version-history":[{"count":0,"href":"https:\/\/teetak.gr\/index.php?rest_route=\/wp\/v2\/posts\/15265\/revisions"}],"wp:attachment":[{"href":"https:\/\/teetak.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teetak.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teetak.gr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}