{"issue":{"title":"Topbar menu active status","user":{"login":"alfrekjv","id":695922,"url":"https://api.github.com/users/alfrekjv","avatar_url":"https://secure.gravatar.com/avatar/841ce7dcd7dad67592863c6f1c6064c8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"841ce7dcd7dad67592863c6f1c6064c8"},"created_at":"2011-12-09T02:49:09Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-27T18:23:21Z","id":2498079,"closed_at":null,"html_url":"https://github.com/ppi/website/issues/25","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"The topbar Menu needs to get implemented the active status, so users/visitors know where they are at a simple glance.\r\n\r\nCurrently there's an .active class (and it's attached to Home), it just need to be integrated on the code.\r\n\r\nAny volunteers? lol\r\n\r\nThanks a lot.","number":25,"url":"https://api.github.com/repos/ppi/website/issues/25","comments":2,"assignee":null},"comment":{"user":{"login":"alfrekjv","id":695922,"url":"https://api.github.com/users/alfrekjv","avatar_url":"https://secure.gravatar.com/avatar/841ce7dcd7dad67592863c6f1c6064c8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"841ce7dcd7dad67592863c6f1c6064c8"},"created_at":"2011-12-27T18:23:21Z","updated_at":"2011-12-27T18:23:21Z","id":3283862,"body":"Kewl, let me add that feature to close this ticket.\r\n------Original Message------\r\nFrom: Paul Dragoonis\r\nTo: Alfredo Juarez\r\nSubject: Re: [website] Topbar menu active status (#25)\r\nSent: Dec 27, 2011 12:21 PM\r\n\r\n@alfrekjv \r\n\r\nYou have access to the $request variable in ALL ppi views,\r\n\r\n$request['controller']\r\nand $request['method']\r\n\r\nwith this you can make ternaries for the main nav.\r\n\r\n\r\n``` php\r\n<a href=\"\"class=\"<?= $request['controller'] == 'something' ? 'active' : ''; ?>\" ></a>\r\n```\r\n\r\n--- \r\nReply to this email directly or view it on GitHub:\r\nhttps://github.com/ppi/website/issues/25#issuecomment-3283843\r\n\r\n\r\nJosé Alfredo Juárez Vega\r\nCEO JuvaSoft® Web Solutions\r\nCel. +52 1 (667) 786.22.16\r\nwww.juvasoft.com\r\n\r\nEnviado desde mi oficina móvil BlackBerry® de Telcel","url":"https://api.github.com/repos/ppi/website/issues/comments/3283862"},"action":"created"}