/** * Helper function for returning the Help Sidebar content. * * @since 1.2.0 * * @uses ddw_gwat_plugin_get_data() * * @return string HTML content for help sidebar. */ function ddw_gwat_help_sidebar_content() { $gwat_help_sidebar_content = '<p><strong>' . __('More about the plugin author', 'genesis-widgetized-archive') . '</strong></p>' . '<p>' . __('Social:', 'genesis-widgetized-archive') . '<br /><a href="http://twitter.com/deckerweb" target="_blank" title="@ Twitter">Twitter</a> | <a href="http://www.facebook.com/deckerweb.service" target="_blank" title="@ Facebook">Facebook</a> | <a href="http://deckerweb.de/gplus" target="_blank" title="@ Google+">Google+</a> | <a href="' . esc_url(ddw_gwat_plugin_get_data('AuthorURI')) . '" target="_blank" title="@ deckerweb.de">deckerweb</a></p>' . '<p><a href="' . esc_url(GWAT_URL_WPORG_PROFILE) . '" target="_blank" title="@ WordPress.org">@ WordPress.org</a></p>'; return apply_filters('gwat_filter_help_sidebar_content', $gwat_help_sidebar_content); }
*/ /** * Prevent direct access to this file. * * @since 1.2.0 */ if (!defined('ABSPATH')) { exit('Sorry, you are not allowed to access this file directly.'); } /** * Setting constants * * @since 1.0.0 */ /** Set plugin version */ define('GWAT_VERSION', ddw_gwat_plugin_get_data('Version')); /** Plugin directory */ define('GWAT_PLUGIN_DIR', trailingslashit(dirname(__FILE__))); /** Plugin base directory */ define('GWAT_PLUGIN_BASEDIR', trailingslashit(dirname(plugin_basename(__FILE__)))); /** Set constant/ filter for plugin's languages directory */ define('GWAT_LANG_DIR', apply_filters('gwat_filter_lang_dir', GWAT_PLUGIN_BASEDIR . 'languages/')); /** Dev scripts & styles on Debug, minified on production */ define('GWAT_SCRIPT_SUFFIX', defined('WP_DEBUG') && WP_DEBUG || defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'); register_activation_hook(__FILE__, 'ddw_gwat_activation_check'); /** * Checks for activated Genesis Framework before allowing plugin to activate * * @since 1.0.0 * * @uses load_plugin_textdomain()