public function render($args, $instance) { global $gantry; if ($gantry->browser->platform == 'iphone' || $gantry->browser->platform == 'android') { parent::render($args, $instance); } }
/** * Compatibility fix for Gantry Framework * * Clear the menu cache on each request to make sure * visibility options are re-evaluated each time. * * @since 0.2.2 * @return void */ function clear_gantry_menu_cache() { if (class_exists('GantryWidgetMenu')) { GantryWidgetMenu::clearMenuCache(); } }
<?php /** * @version 4.1.4 March 11, 2015 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ require_once dirname(__FILE__) . '/gantry_dropdown/theme.php'; GantryWidgetMenu::registerTheme(dirname(__FILE__) . '/gantry_dropdown', 'gantry_dropdown', __('Gantry Dropdown'), 'GantryDropdownMenuTheme'); require_once dirname(__FILE__) . '/gantry_splitmenu/theme.php'; GantryWidgetMenu::registerTheme(dirname(__FILE__) . '/gantry_splitmenu', 'gantry_splitmenu', __('Gantry SplitMenu'), 'GantrySplitMenuTheme');
<?php /** * @version 1.26 September 14, 2012 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2012 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ require_once dirname(__FILE__) . '/gantry_fusion/theme.php'; GantryWidgetMenu::registerTheme(dirname(__FILE__) . '/gantry_fusion', 'gantry_fusion', __('Gantry Fusion'), 'GantryFusionMenuTheme'); require_once dirname(__FILE__) . '/gantry_splitmenu/theme.php'; GantryWidgetMenu::registerTheme(dirname(__FILE__) . '/gantry_splitmenu', 'gantry_splitmenu', __('Gantry SplitMenu'), 'GantrySplitMenuTheme'); require_once dirname(__FILE__) . '/gantry_touch/theme.php'; GantryWidgetMenu::registerTheme(dirname(__FILE__) . '/gantry_touch', 'gantry_touch', __('Gantry Touch'), 'GantryTouchMenuTheme');