diff -r f507feede89a -r 09a1c134465b web/wp-content/plugins/network-publisher/networkpub.php --- a/web/wp-content/plugins/network-publisher/networkpub.php Wed Dec 19 12:35:13 2012 -0800 +++ b/web/wp-content/plugins/network-publisher/networkpub.php Wed Dec 19 17:46:52 2012 -0800 @@ -3,7 +3,7 @@ Plugin Name: Network Publisher Plugin URI: http://wordpress.org/extend/plugins/network-publisher/ Description: Automatically publish your blog posts to multiple Social Networks including Twitter, Facebook Profile, Facebook Pages, LinkedIn, MySpace, Yammer, Yahoo, Identi.ca, and more. Click here for instructions. Email us at post@linksalpha.com if you have any queries. - Version: 5.6 + Version: 5.7.1 Author: linksalpha Author URI: http://www.linksalpha.com */ @@ -41,7 +41,7 @@ define('NETWORKPUB_CURRENTLY_PUBLISHING', __('You are currently Publishing your Blog to')); define('NETWORKPUB_SOCIAL_NETWORKS', __('Social Networks')); define('NETWORKPUB_SOCIAL_NETWORK', __('Social Network')); -define('NETWORKPUB_PLUGIN_VERSION', '5.6'); +define('NETWORKPUB_PLUGIN_VERSION', '5.7.1'); $networkpub_settings['api_key'] = array('label' => 'API Key:', 'type' => 'text', 'default' => ''); $networkpub_settings['id'] = array('label' => 'id', 'type' => 'text', 'default' => ''); @@ -50,7 +50,6 @@ /** * This is the intialization function */ - function networkpub_init() { networkpub_options(); //Following will run only if the user is admin of wordpress @@ -100,6 +99,7 @@ add_action('wp_head', 'networkpub_add_metatags'); add_filter('language_attributes', 'networkpub_html_schema'); + function networkpub_options() { $options = get_option(NETWORKPUB_WIDGET_NAME_INTERNAL); if (!array_key_exists('networkpub_auth_error_show', $options)) { @@ -141,6 +141,9 @@ if (!array_key_exists('networkpub_post_image_video', $options)) { $options['networkpub_post_image_video'] = 'image'; } + if (!array_key_exists('networkpub_install_extension_alert_show', $options)) { + $options['networkpub_install_extension_alert_show'] = 1; + } update_option(NETWORKPUB_WIDGET_NAME_INTERNAL, $options); } @@ -182,12 +185,30 @@ } //HTML $html = ''; + //Extension download + $networkpub_install_extension_alert_show = $options['networkpub_install_extension_alert_show']; + if($networkpub_install_extension_alert_show) { + global $is_gecko, $is_safari, $is_chrome; + $html .= ''; + $html .= ''; + $html .= ''; + if($is_gecko) { + $browser = 'firefox'; + } elseif($is_chrome) { + $browser = 'chrome'; + } elseif($is_safari) { + $browser = 'safari'; + } else { + $browser = ''; + } + $html .= ''; + } //Publish $curr_val_publish = get_post_meta($object->ID, '_networkpub_meta_publish', true); if ($curr_val_publish == '') { $curr_val_publish = 1; } - $html .= '
'; + $html .= '
'; $html_label = ' '; $html_label_type_disabled = ' '; if ($curr_val_publish) { @@ -219,6 +240,12 @@ $html .= ''; $html .= ''; $html .= '
'; + //Summary + $curr_val_summary = get_post_meta($object->ID, 'networkpub_postsummary', true); + $html .= '
'; + $html .= ''; + $html .= ''; + $html .= '
'; //Twitter handle $curr_val_twitterhandle = get_post_meta($object->ID, 'networkpub_twitterhandle', true); $html .= '
'; @@ -278,7 +305,7 @@ } else { $html .= '
'; } - $html .= '