Example #1
0
/**
 * Helper function for returning the Help Sidebar content.
 *
 * @since  1.5.0
 *
 * @uses   ddw_gwnf_plugin_get_data()
 *
 * @param  string 	$gwnf_help_sidebar_content
 *
 * @return string HTML content for help sidebar.
 */
function ddw_gwnf_help_sidebar_content()
{
    $gwnf_help_sidebar_content = '<p><strong>' . __('More about the plugin author', 'genesis-widgetized-notfound') . '</strong></p>' . '<p>' . __('Social:', 'genesis-widgetized-notfound') . '<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_raw(ddw_gwnf_plugin_get_data('AuthorURI')) . '" target="_blank" title="@ deckerweb.de">deckerweb</a></p>' . '<p><a href="' . esc_url_raw(GWNF_URL_WPORG_PROFILE) . '" target="_blank" title="@ WordPress.org">@ WordPress.org</a></p>';
    return apply_filters('gwnf_filter_help_sidebar_content', $gwnf_help_sidebar_content);
}
 */
/**
 * Prevent direct access to this file.
 *
 * @since 1.5.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('GWNF_VERSION', ddw_gwnf_plugin_get_data('Version'));
/** Plugin directory */
define('GWNF_PLUGIN_DIR', dirname(__FILE__));
/** Plugin base directory */
define('GWNF_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
/** Set constant/ filter for plugin's languages directory */
define('GWNF_LANG_DIR', apply_filters('gwnf_filter_lang_dir', GWNF_PLUGIN_BASEDIR . '/languages/'));
/** Dev scripts & styles on Debug, minified on production */
define('GWNF_SCRIPT_SUFFIX', defined('WP_DEBUG') && WP_DEBUG || defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min');
register_activation_hook(__FILE__, 'ddw_gwnf_activation_check');
/**
 * Checks for activated Genesis Framework before allowing plugin to activate.
 *
 * @since 1.0.0
 *
 * @uses  load_plugin_textdomain()