minimum_capability, 'mashsb-getting-started', array($this, 'getting_started_screen') ); // About Page add_submenu_page( 'mashsb-settings', __( 'Welcome to MashShare', 'mashsb' ), __( 'Welcome to MashShare', 'mashsb' ), $this->minimum_capability, 'mashsb-about', array($this, 'about_screen') ); } /** * Hide Individual Dashboard Pages * * @access public * @since 1.4 * @return void */ public function admin_head() { remove_submenu_page( 'mashsb-settings', 'mashsb-about' ); remove_submenu_page( 'mashsb-settings', 'mashsb-getting-started' ); if ( !mashsb_is_admin_page() ){ return false; } ?>
welcome_message(); $this->tabs(); ?>

Facebook and Twitter Share Buttons have been enabled on all your posts!
Use the instructions on this page to customize MashShare.

MashShare uses sharedcount.com to collect shares.
Register for sharedcount.com on MashShare > Settings > Sharecount', 'mashsb' )); ?>

Step 1: Go to

Step 2: Go to

Go to

MashShare - Most Shared Posts" into the desired widget location and save it.', 'mashsb' )); ?>

[mashshare].', 'mashsb' )); ?>

array( 'class' => array(), 'href' => array(), 'rel' => array(), 'title' => array(), 'target' => array(), ) ); echo wp_kses(sprintf(__( 'There are several parameters you can use for the shortcode. Get a list of all available shortcode parameters', 'mashsb'), 'http://docs.mashshare.net/article/67-shortcodes'), $allowedHtml); ?>

<?php do_shortcode(\'[mashshare]\'); ?>
', 'mashsb' )); ?>

open a ticket.', 'mashsb' )); ?>

MashShare is Active and Ready to Boost Your Social Media Traffic!', 'mashsb' )); ?>

welcome_message(); $this->tabs(); ?>

Async Cache Refresh method and your share counts will be aggregated only after page loading and never while page loads. This is a huge performance update.', 'mashsb' )); ?>

Share count dashboard

array( 'class' => array(), 'href' => array(), 'rel' => array(), 'title' => array(), 'target' => array(), ) ); echo wp_kses(sprintf(__( 'Are you a theme developer and want to use MashShare as your build in share count aggregator? Read the developer instructions.', 'mashsb' ), 'https://docs.mashshare.net/category/38-sample-functions'), $allowedHtml); ?>

Validate Open Graph Data button and check if the open graph data on your site is working as expected or conflicts with other open graph data.', 'mashsb' )); ?>

·

welcome_message(); $this->tabs(); ?>

contributors(); ?>

github',' mashsb'), 'https://github.com/mashshare/Mashshare')); ?>

get_contributors(); if( empty( $contributors ) ) return ''; $contributor_list = ''; return $contributor_list; } /** * Retreive list of contributors from GitHub. * * @access public * @since 3.0.0 * @return array $contributors List of contributors */ public function get_contributors() { $contributors = get_transient( 'mashsb_contributors' ); if( false !== $contributors ){ return $contributors; } $response = wp_remote_get( 'https://api.github.com/repos/mashshare/mashshare/contributors?per_page=999', array('sslverify' => false) ); if( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ){ return array(); } $contributors = json_decode( wp_remote_retrieve_body( $response ) ); if( !is_array( $contributors ) ){ return array(); } set_transient( 'mashsb_contributors', $contributors, 3600 ); return $contributors; } /** * Parse the MASHSB readme.txt file * * @since 3.0.0 * @return string $readme HTML formatted readme file */ public function parse_readme() { $file = file_exists( MASHSB_PLUGIN_DIR . 'readme.txt' ) ? MASHSB_PLUGIN_DIR . 'readme.txt' : null; if( !$file ) { $readme = '

' . __( 'No valid changelog was found.', 'mashsb' ) . '

'; } else { $readme = file_get_contents( $file ); $readme = nl2br( esc_html( $readme ) ); $readme = explode( '== Changelog ==', $readme ); $readme = end( $readme ); $readme = preg_replace( '/`(.*?)`/', '\\1', $readme ); $readme = preg_replace( '/[\040]\*\*(.*?)\*\*/', ' \\1', $readme ); $readme = preg_replace( '/[\040]\*(.*?)\*/', ' \\1', $readme ); $readme = preg_replace( '/= (.*?) =/', '

\\1

', $readme ); $readme = preg_replace( '/\[(.*?)\]\((.*?)\)/', '\\1', $readme ); } return $readme; } /** * Sends user to the Settings page on first activation of MASHSB as well as each * time MASHSB is upgraded to a new version * * @access public * @since 1.0.1 * @global $mashsb_options Array of all the MASHSB Options * @return void */ public function welcome() { global $mashsb_options; // Bail if no activation redirect if( !get_transient( '_mashsb_activation_redirect' ) ){ return; } // Delete the redirect transient delete_transient( '_mashsb_activation_redirect' ); // Bail if activating from network, or bulk if( is_network_admin() || isset( $_GET['activate-multi'] ) ) return; $upgrade = get_option( 'mashsb_version_upgraded_from' ); if( !$upgrade ) { // First time install wp_safe_redirect( admin_url( 'admin.php?page=mashsb-getting-started&redirect=1' ) ); exit; } else { // Update wp_safe_redirect( admin_url( 'admin.php?page=mashsb-about&redirect=1' ) ); exit; } } } new MASHSB_Welcome();