Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Add link in mobile theme [RESOLVED]

edited January 2016 in Vanilla 2.0 - 2.8


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. '' // The link to your page. ); } } }

How can I adapt these lines to mobile theme ?


Sign In or Register to comment.