{"action":"created","issue":{"url":"https://api.github.com/repos/zenphoto/zenphoto/issues/982","labels_url":"https://api.github.com/repos/zenphoto/zenphoto/issues/982/labels{/name}","comments_url":"https://api.github.com/repos/zenphoto/zenphoto/issues/982/comments","events_url":"https://api.github.com/repos/zenphoto/zenphoto/issues/982/events","html_url":"https://github.com/zenphoto/zenphoto/issues/982","id":123232264,"number":982,"title":"suggestion for the controlLink function ","user":{"login":"rb26","id":16380312,"avatar_url":"https://avatars.githubusercontent.com/u/16380312?v=3","gravatar_id":"","url":"https://api.github.com/users/rb26","html_url":"https://github.com/rb26","followers_url":"https://api.github.com/users/rb26/followers","following_url":"https://api.github.com/users/rb26/following{/other_user}","gists_url":"https://api.github.com/users/rb26/gists{/gist_id}","starred_url":"https://api.github.com/users/rb26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rb26/subscriptions","organizations_url":"https://api.github.com/users/rb26/orgs","repos_url":"https://api.github.com/users/rb26/repos","events_url":"https://api.github.com/users/rb26/events{/privacy}","received_events_url":"https://api.github.com/users/rb26/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-21T08:42:09Z","updated_at":"2015-12-21T12:04:17Z","closed_at":null,"body":"bonjour\r\ncontrolLink in mobileTheme.php permit to switch from mobile theme to web display (and reverse), but  it opens the default accueil page.\r\nfor opening the same page in mobile or normal, I add a parameter in this function:\r\n`controlLink($text=NULL, $before=NULL, $after=Null, $parametres=Null )`\r\n\r\nand add this code:\r\n` if (!is_null($parametres)){ $param=str_replace(array(\"mobileTheme=on&\",\"mobileTheme=off&\"),\"\", $parametres);\r\n\t\t\t\t $enable.='&'.$param;}`\r\n\r\nthen I can pass the page to linked with:\r\n`mobileTheme::controlLink('Visiter en Mode Mobile',' ~ [ ',' ]',$_SERVER['QUERY_STRING'] );`\r\n\r\nit runs correctly, but perhaps a better way??\r\nrb\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/zenphoto/zenphoto/issues/comments/166285528","html_url":"https://github.com/zenphoto/zenphoto/issues/982#issuecomment-166285528","issue_url":"https://api.github.com/repos/zenphoto/zenphoto/issues/982","id":166285528,"user":{"login":"acrylian","id":2474309,"avatar_url":"https://avatars.githubusercontent.com/u/2474309?v=3","gravatar_id":"","url":"https://api.github.com/users/acrylian","html_url":"https://github.com/acrylian","followers_url":"https://api.github.com/users/acrylian/followers","following_url":"https://api.github.com/users/acrylian/following{/other_user}","gists_url":"https://api.github.com/users/acrylian/gists{/gist_id}","starred_url":"https://api.github.com/users/acrylian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acrylian/subscriptions","organizations_url":"https://api.github.com/users/acrylian/orgs","repos_url":"https://api.github.com/users/acrylian/repos","events_url":"https://api.github.com/users/acrylian/events{/privacy}","received_events_url":"https://api.github.com/users/acrylian/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T12:04:17Z","updated_at":"2015-12-21T12:04:17Z","body":"Have to admit this is once again a function/feature I never used myself. We will take a look.\r\n\r\nBest practice is of course not use a responsive website where this would be not necessary but of course our official themes are not yet ready for this. But it is coming."}}