function optionsMenu()
 {
     $sparkOps = parent::optionsMenu();
     if (!defined('UBERMENU_UPGRADE')) {
         $compare = 'comparison';
         $sparkOps->registerPanel($compare, __('Images, Widgets, Shortcodes & More UberMenu Features', 'ubermenu'), 200, false);
         $sparkOps->addCustomField($compare, 'ubermenu-pro-upgrade', 'ubermenu_pro_upgrade');
     }
     return $sparkOps;
 }
Ejemplo n.º 2
0
 function get_support_url()
 {
     if (self::$support_url) {
         return self::$support_url;
     }
     $url = UBERMENU_SUPPORT_URL;
     $data = array();
     $data['src'] = 'ubermenu_plugin';
     $data['product_id'] = 1;
     //Site Data
     $data['site_url'] = get_site_url();
     $data['version'] = UBERMENU_VERSION;
     $data['timezone'] = get_option('timezone_string');
     //Theme Data
     $theme = wp_get_theme();
     //uberp( $theme , 3 );
     $data['theme'] = $theme->get('Name');
     $data['theme_link'] = '<a target="_blank" href="' . $theme->get('ThemeURI') . '">' . $theme->get('Name') . ' v' . $theme->get('Version') . ' by ' . $theme->get('Author') . '</a>';
     $data['theme_slug'] = isset($theme->stylesheet) ? $theme->stylesheet : '';
     $data['theme_parent'] = $theme->get('Template');
     //User Data
     $current_user = wp_get_current_user();
     if ($current_user) {
         if ($current_user->user_firstname) {
             $data['first_name'] = $current_user->user_firstname;
         }
         if ($current_user->user_firstname) {
             $data['last_name'] = $current_user->user_lastname;
         }
         if ($current_user) {
             $data['email'] = $current_user->user_email;
         }
     }
     //$data['email']			= get_bloginfo( 'admin_email' );
     //License Data
     $license_code = ubermenu_op('purchase_code', 'updates', '');
     if ($license_code) {
         $data['license_code'] = $license_code;
     }
     if ($envato_username = ubermenu_op('envato_username', 'updates', '')) {
         $data['envato_username'] = $envato_username;
     }
     $query = http_build_query($data);
     $support_url = "{$url}?{$query}";
     self::$support_url = $support_url;
     return $support_url;
 }
Ejemplo n.º 3
0
 function set_settings_fields($fields)
 {
     self::$settings_fields = $fields;
 }
 function registerStylePresets()
 {
     parent::registerStylePresets();
     $this->registerStylePreset('shiny-black', __('Shiny Black', 'ubermenu'), $this->editionURL . 'styles/skins/shinyblack.css');
     $this->registerStylePreset('simple-green', __('Simple Green', 'ubermenu'), $this->editionURL . 'styles/skins/simplegreen.css');
     $this->registerStylePreset('earthy', __('Earthy', 'ubermenu'), $this->editionURL . 'styles/skins/earthy.css');
     $this->registerStylePreset('silver-tabs', __('Silver Tabs (No Menu Bar)', 'ubermenu'), $this->editionURL . 'styles/skins/silvertabs.css');
     $this->registerStylePreset('black-silver', __('Black and Silver', 'ubermenu'), $this->editionURL . 'styles/skins/blacksilver.css');
     $this->registerStylePreset('blue-silver', __('Blue and Silver', 'ubermenu'), $this->editionURL . 'styles/skins/bluesilver.css');
     $this->registerStylePreset('red-black', __('Red and Black', 'ubermenu'), $this->editionURL . 'styles/skins/redblack.css');
     $this->registerStylePreset('orange', __('Burnt Orange', 'ubermenu'), $this->editionURL . 'styles/skins/orange.css');
     $this->registerStylePreset('clean-white', __('Clean White', 'ubermenu'), $this->editionURL . 'styles/skins/cleanwhite.css');
     $this->registerStylePreset('trans-black', __('Transparent Black', 'ubermenu'), $this->editionURL . 'styles/skins/trans_black.css');
     $this->registerStylePreset('trans-black-hov', __('Transparent Black Hover', 'ubermenu'), $this->editionURL . 'styles/skins/trans_black_hover.css');
     $this->registerStylePreset('blank', '', '');
     $this->registerStylePreset('unsupported', __('--- Legacy Skins: for Non-Responsive Sites Only: ---', 'ubermenu'), '');
     $this->registerStylePreset('tt-silver', __('Two Tone Silver & Black', 'ubermenu'), $this->editionURL . 'styles/skins/twotone_silver_black.css');
     $this->registerStylePreset('tt-black', __('Two Tone Black & Black', 'ubermenu'), $this->editionURL . 'styles/skins/twotone_black_black.css');
     $this->registerStylePreset('tt-red', __('Two Tone Red & Black', 'ubermenu'), $this->editionURL . 'styles/skins/twotone_red_black.css');
     $this->registerStylePreset('tt-blue', __('Two Tone Blue & Black', 'ubermenu'), $this->editionURL . 'styles/skins/twotone_blue_black.css');
     $this->registerStylePreset('tt-green', __('Two Tone Green & Black', 'ubermenu'), $this->editionURL . 'styles/skins/twotone_green_black.css');
     $this->registerStylePreset('tt-purple', __('Two Tone Purple & Black', 'ubermenu'), $this->editionURL . 'styles/skins/twotone_purple_black.css');
     $this->registerStylePreset('tt-orange', __('Two Tone Orange & Black', 'ubermenu'), $this->editionURL . 'styles/skins/twotone_orange_black.css');
     $this->registerStylePreset('tt-silver-s', __('Two Tone Silver & Silver', 'ubermenu'), $this->editionURL . 'styles/skins/twotone_silver_silver.css');
     $this->registerStylePreset('custom', __('Custom - (Legacy Use)', 'ubermenu'), $this->editionURL . 'custom/custom.css');
 }
function uberMenu_easyIntegrate()
{
    UberMenu::easyIntegrate();
}