Пример #1
0
 */
/**
 * Prevent direct access to this file.
 *
 * @since 1.9.0
 */
if (!defined('WPINC')) {
    exit('Sorry, you are not allowed to access this file directly.');
}
/**
 * Setting constants.
 *
 * @since 1.2.0
 */
/** Set plugin version */
define('GPSP_VERSION', ddw_gpsp_plugin_get_data('Version'));
/** Plugin directory */
define('GPSP_PLUGIN_DIR', trailingslashit(dirname(__FILE__)));
/** Plugin base directory */
define('GPSP_PLUGIN_BASEDIR', trailingslashit(dirname(plugin_basename(__FILE__))));
register_activation_hook(__FILE__, 'ddw_gpsp_activation_check');
/**
 * Checks for activated Genesis Framework and its minimum version before allowing plugin to activate.
 *
 * @since 1.2.0
 *
 * @uses  load_plugin_textdomain()
 * @uses  get_template_directory()
 * @uses  deactivate_plugins()
 * @uses  wp_die()
 */
/**
 * Helper function for returning the Help Sidebar content.
 *
 * @since  1.0.0
 *
 * @uses   ddw_gpsp_info_values()
 * @uses   ddw_gpsp_plugin_get_data()
 *
 * @return string HTML content for help sidebar.
 */
function ddw_gpsp_help_sidebar_content()
{
    $gpsp_info = (array) ddw_gpsp_info_values();
    $gpsp_help_sidebar_content = '<p><strong>' . __('More about the plugin author', 'genesis-printstyle-plus') . '</strong></p>' . '<p>' . __('Social:', 'genesis-printstyle-plus') . '<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_gpsp_plugin_get_data('AuthorURI')) . '" target="_blank" title="@ deckerweb.de">deckerweb</a></p>' . '<p><a href="' . esc_url($gpsp_info['url_wporg_profile']) . '" target="_blank" title="@ WordPress.org">@ WordPress.org</a></p>';
    return apply_filters('gpsp_filter_help_sidebar_content', $gpsp_help_sidebar_content);
}