Add link in mobile theme [RESOLVED]
Hello,
I've a got a new link in my custom theme but how can I add this link in the mobile theme?
In my hooks from normal default theme I've got these lines:
<?php class YourThemeNameThemeHooks implements Gdn_IPlugin { public function setup() { return true; } public function base_render_before($sender) { if ($sender->Menu) { // Use this instead, if it should be visible only for logged in users // if ($sender->Menu && Gdn::session()->isValid()) { $sender->Menu->addLink( '', t('Google Calendar'), // The text of the link. 'http://www.gghf.be/vanilla/page/google-calendar' // The link to your page. ); } } }
How can I adapt these lines to mobile theme ?
Comments
Ok it is solved.
I don't know why but now it's ok.