Please upgrade here. These earlier versions are no longer being updated and have security issues.

Add link in mobile theme [RESOLVED]

legrandselegrandse
edited January 2016 in Vanilla 2.0 - 2.8

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

Sign In or Register to comment.