' . __( 'Donate', 'artiss-vine-embed' ) . '' ) ); $links = array_merge( $links, array( '' . __( 'Support', 'artiss-vine-embed' ) . '' ) ); } return $links; } add_filter( 'plugin_row_meta', 'ave_set_plugin_meta', 10, 2 ); /** * Detect plugin activation * * Upon detection of activation set an option with the current version in it * This is for potential use in future to identify which version is being * upgraded from * * @since 1.0 */ function ave_plugin_activate() { update_option( 'ave_version', artiss_vine_embed_version ); } register_activation_hook( WP_PLUGIN_DIR . '/artiss-vine-embed/artiss-vine-embed.php', 'ave_plugin_activate' ); /** * Admin Screen Initialisation * * Set up admin menu * * @since 1.1 */ function ave_menu_initialise() { // Add options sub-menu global $ave_options_hook; $ave_options_hook = add_submenu_page( 'upload.php', __( 'Artiss Vine Embed Options', 'artiss-vine-embed' ), __( 'Vine Embeds', 'artiss-vine-embed' ), 'edit_posts', 'ave-options', 'ave_options' ); add_action( 'load-' . $ave_options_hook, 'ave_add_options_help' ); } add_action( 'admin_menu', 'ave_menu_initialise' ); /** * Include options screen * * XHTML screen to prompt and update settings * * @since 1.1 */ function ave_options() { include_once( WP_PLUGIN_DIR . '/artiss-vine-embed/includes/options-general.php' ); } /** * Add Options Help * * Add help tab to options screen * * @since 1.1 * * @uses ave_options_help Return help text */ function ave_add_options_help() { global $ave_options_hook; $screen = get_current_screen(); if ( $screen->id != $ave_options_hook ) { return; } $screen -> add_help_tab( array( 'id' => 'ave-options-help-tab', 'title' => __( 'Help', 'artiss-vine-embed' ), 'content' => ave_options_help() ) ); } /** * Options Help * * Return help text for options screen * * @since 1.1 * * @return string Help Text */ function ave_options_help() { $help_text = '

' . __( 'This screen allows you to specify the default output options for the Artiss Vine Embed plugin.', 'artiss-vine-embed' ) . '

'; $help_text .= '

' . __( 'Remember to click the Save Settings button at the bottom of the screen for new settings to take effect.', 'artiss-vine-embed' ) . '

'; $help_text .= '

' . __( 'For more information:', 'artiss-vine-embed' ) . '

'; $help_text .= '

' . __( 'Artiss Vine Embed Documentation', 'artiss-vine-embed' ) . '

'; $help_text .= '

' . __( 'Artiss Vine Embed Support', 'artiss-vine-embed' ) . '

'; $help_text .= '

' . __( 'This plugin, and all support, is supplied for free, but donations are always welcome.', 'artiss-vine-embed' ) . '

'; return $help_text; } ?>