* @copyright Copyright (c) 2011-2014, David Decker - DECKERWEB * @license http://www.opensource.org/licenses/gpl-license.php GPL-2.0+ * @link http://genesisthemes.de/en/wp-plugins/woocommerce-admin-bar-addition/ * @link http://deckerweb.de/twitter * * @since 1.0.0 */ /** * Prevent direct access to this file. * * @since 2.6.0 */ if (!defined('WPINC')) { exit('Sorry, you are not allowed to access this file directly.'); } $wcaba_info = (array) ddw_wcaba_info_values(); /** Display these links only for these locales: de_DE, de_AT, de_CH, de_LU */ if (defined('WCABA_DE_DISPLAY') && WCABA_DE_DISPLAY && ddw_wcaba_detect_locales('de_DE', 'de_AT', 'de_CH', 'de_LU', 'gsw')) { /** WooCommerce German Extension plugin */ if (class_exists('Woocommerce_German_Market')) { $menu_items['wcgermany'] = array('parent' => $settings, 'title' => __('Preferences DE', 'woocommerce-admin-bar-addition'), 'href' => admin_url('admin.php?page=woocommerce_settings&tab=preferences_de'), 'meta' => array('target' => '', 'title' => _x('Preferences DE', 'Translators: For the tooltip', 'woocommerce-admin-bar-addition'))); $menu_items['preferences-de'] = array('parent' => $extensions, 'title' => __('Preferences DE', 'woocommerce-admin-bar-addition'), 'href' => admin_url('admin.php?page=woocommerce_settings&tab=preferences_de'), 'meta' => array('target' => '', 'title' => _x('Preferences DE', 'Translators: For the tooltip', 'woocommerce-admin-bar-addition'))); } // end-if German Extension plugin /** German language plugin - only if DE plugin not active */ if (!defined('WCDE_EXTENSIONS_DIR') || !class_exists('WooCommerce_de_DE')) { $menu_items['wclanguages-de'] = array('parent' => $wcgroup, 'title' => __('German language plugin', 'woocommerce-admin-bar-addition'), 'href' => esc_url($wcaba_info['de_plugin']), 'meta' => array('title' => _x('German language plugin for WooCommerce - with complete translations and formal/informal version support!', 'Translators: For the tooltip', 'woocommerce-admin-bar-addition'))); } // end-if German language plugin /** Downloadable German language packs */ $menu_items['languages-de'] = array('parent' => $wcgroup, 'title' => __('German language files', 'woocommerce-admin-bar-addition'), 'href' => esc_url($wcaba_info['de_files']), 'meta' => array('title' => _x('German language files', 'Translators: For the tooltip', 'woocommerce-admin-bar-addition')));
/** * Helper function for returning the Help Sidebar content - extra for plugin setting page. * * @since 2.6.0 * * @uses ddw_wcaba_info_values * * @return string Extra HTML content for help sidebar. */ function ddw_wcaba_help_sidebar_content_extra() { $wcaba_info = (array) ddw_wcaba_info_values(); $wcaba_help_sidebar_content_extra = '<p><strong>' . __('Actions', 'woocommerce-admin-bar-addition') . '</strong></p>' . '<p>→ <a href="' . esc_url($wcaba_info['url_wporg_forum']) . '" target="_new">' . __('Support Forum', 'woocommerce-admin-bar-addition') . '</a></p>' . '<p style="margin-top: -5px;">→ <a href="' . esc_url($wcaba_info['url_donate']) . '" target="_new">' . __('Donate', 'woocommerce-admin-bar-addition') . '</a></p><br />'; return apply_filters('wcaba_filter_help_sidebar_content_extra', $wcaba_help_sidebar_content_extra); }