Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
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.