WordPress.org

Plugin Directory

Changeset 1760242


Ignore:
Timestamp:
11/07/17 17:12:04 (6 weeks ago)
Author:
shareaholic
Message:

tagging version 8.6.1

Location:
shareaholic
Files:
8 deleted
9 edited
49 copied

Legend:

Unmodified
Added
Removed
  • shareaholic/tags/8.6.1/admin.php

    r1753989 r1760242  
    401401        } 
    402402      } 
    403  
     403         
     404      foreach (array('share_buttons_display_on_excerpts', 'recommendations_display_on_excerpts') as $setting) { 
     405        if (isset($settings[$setting]) && 
     406            !isset($_POST['shareaholic'][$setting]) && 
     407            $settings[$setting] == 'on') { 
     408          $_POST['shareaholic'][$setting] = 'off'; 
     409        } elseif (!isset($_POST['shareaholic'][$setting])) { 
     410          $_POST['shareaholic'][$setting] = array(); 
     411        } 
     412      } 
     413       
     414      // Save "Locations" related preferences 
    404415      ShareaholicUtilities::update_options(array( 
    405416        'share_buttons' => $_POST['share_buttons'], 
    406         'recommendations' => $_POST['recommendations'], 
     417        'recommendations' => $_POST['recommendations'] 
    407418      )); 
     419       
     420      // Save "Excerpts" related preferences 
     421      if (isset($_POST['shareaholic']['share_buttons_display_on_excerpts'])) { 
     422        ShareaholicUtilities::update_options(array('share_buttons_display_on_excerpts' => $_POST['shareaholic']['share_buttons_display_on_excerpts'])); 
     423      } 
     424      if (isset($_POST['shareaholic']['recommendations_display_on_excerpts'])) { 
     425        ShareaholicUtilities::update_options(array('recommendations_display_on_excerpts' => $_POST['shareaholic']['recommendations_display_on_excerpts'])); 
     426      } 
    408427 
    409428      ShareaholicUtilities::log_event("UpdatedSettings"); 
  • shareaholic/tags/8.6.1/public.php

    r1733136 r1760242  
    331331     
    332332  /** 
    333    * This static function inserts the shareaholic canvas at the end of the post 
     333   * This static function inserts the shareaholic canvas in a post 
    334334   * 
    335335   * @param  string $content the wordpress content 
     
    341341    $page_type = ShareaholicUtilities::page_type(); 
    342342    foreach (array('share_buttons', 'recommendations') as $app) { 
     343       
     344      // check Excerpt prefs 
     345      if ('the_excerpt' == current_filter() && isset($settings["{$app}_display_on_excerpts"]) && $settings["{$app}_display_on_excerpts"] == 'off') { 
     346        return $content;  
     347      } 
     348         
     349      // check individual post prefs 
    343350      if (!get_post_meta($post->ID, "shareaholic_disable_{$app}", true)) { 
    344         if (isset($settings[$app]["{$page_type}_above_content"]) && 
    345             $settings[$app]["{$page_type}_above_content"] == 'on') { 
    346           // share_buttons_post_above_content 
     351        // check if ABOVE location is turned on 
     352        if (isset($settings[$app]["{$page_type}_above_content"]) && $settings[$app]["{$page_type}_above_content"] == 'on') { 
    347353          $id = $settings['location_name_ids'][$app]["{$page_type}_above_content"]; 
    348354          $content = self::canvas($id, $app, "{$page_type}_above_content") . $content; 
    349355        } 
    350  
    351         if (isset($settings[$app]["{$page_type}_below_content"]) && 
    352             $settings[$app]["{$page_type}_below_content"] == 'on') { 
    353           // share_buttons_post_below_content 
     356        // check if BELOW location is turned on 
     357        if (isset($settings[$app]["{$page_type}_below_content"]) && $settings[$app]["{$page_type}_below_content"] == 'on') { 
    354358          $id = $settings['location_name_ids'][$app]["{$page_type}_below_content"]; 
    355359          $content .= self::canvas($id, $app, "{$page_type}_below_content"); 
     
    357361      } 
    358362    } 
    359  
    360363    // something that uses the_content hook must return the $content 
    361364    return $content; 
  • shareaholic/tags/8.6.1/readme.txt

    r1758231 r1760242  
    44Requires at least: 3.0 
    55Tested up to: 4.9 
    6 Stable tag: 8.6.0 
     6Stable tag: 8.6.1 
    77 
    88World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE. 
     
    196196 
    197197== Changelog == 
     198= 8.6.1 (2017-11-07) = 
     199* New: Option to show or hide share buttons, related content, etc on excerpts 
     200 
    198201= 8.6.0 (2017-11-03) = 
    199202* Huge localization update! We (and the entire WordPress community) would appreciate your help in translating Shareaholic into your language! It is quite simple and fast. ([How-To Instructions here](https://translate.wordpress.org/projects/wp-plugins/shareaholic)) 
     
    679682 
    680683== Upgrade Notice == 
     684= 8.6.1 = 
     685New option to show or hide share buttons, related content, etc on excerpts 
     686 
    681687= 8.6.0 = 
    682688Huge localization update! 
    683689 
    684  
    685690= 8.5.3 = 
    686691Some hosting companies are incorrectly flagging "index.html" as malware. This is a standard file and there is absolutely no reason to panic or be concerned. This update fixes the cause of the false positive. Please upgrade ASAP as a precaution. 
  • shareaholic/tags/8.6.1/shareaholic.php

    r1758231 r1760242  
    44 * 
    55 * @package shareaholic 
    6  * @version 8.6.0 
     6 * @version 8.6.1 
    77 */ 
    88 
     
    1111Plugin URI: https://shareaholic.com/publishers/ 
    1212Description: The world's leading all-in-one Content Amplification Platform that helps grow your website traffic, engagement, conversions & monetization. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings. 
    13 Version: 8.6.0 
     13Version: 8.6.1 
    1414Author: Shareaholic 
    1515Author URI: https://shareaholic.com 
     
    6464    const REC_API_URL = 'http://recommendations.shareaholic.com'; 
    6565 
    66     const VERSION = '8.6.0'; 
     66    const VERSION = '8.6.1'; 
    6767 
    6868    /** 
  • shareaholic/tags/8.6.1/templates/footer.php

    r839226 r1760242  
    11<div style="margin-top:45px;"></div> 
    22<div class='clear'> 
    3   <small class="muted"> 
    4     <?php echo sprintf(__('%sShareaholic for WordPress v'. ShareaholicUtilities::get_version() .'%s | %sPrivacy Policy%s | %sTerms of Service%s | %sSupport Center%s | %sAPI%s | %sSocial Analytics%s', 'shareaholic'), '<a href="https://shareaholic.com/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/privacy/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/terms/?src=wp_admin" target="_new">', '</a>', '<a href="http://support.shareaholic.com/" target="_new">', '</a>', '<a href="https://shareaholic.com/api/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/publishers/analytics/'. ShareaholicUtilities::get_host() .'/30?src=wp_admin" target="_new">', '</a>'); ?> 
    5   </small> 
    6   <br /> 
    7   <small class="muted"> 
    8     <?php echo sprintf(__('If you like our work, show some love and %sgive us a good rating%s. Made with much love in Boston, Massachusetts.', 'shareaholic'), '<a href="http://wordpress.org/support/view/plugin-reviews/shareaholic?rate=5#postform" target="_new">', '</a>'); ?> 
    9   </small> 
     3  <p class="text-muted"> 
     4    <?php echo sprintf(__('%sShareaholic for WordPress v'. ShareaholicUtilities::get_version() .'%s | %sPrivacy Policy%s | %sTerms of Service%s | %sSupport Center%s | %sAPI%s', 'shareaholic'), '<a href="https://shareaholic.com/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/privacy/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/terms/?src=wp_admin" target="_new">', '</a>', '<a href="http://support.shareaholic.com/" target="_new">', '</a>', '<a href="https://shareaholic.com/api/?src=wp_admin" target="_new">', '</a>'); ?> 
     5  </p> 
     6  <p class="text-muted"> 
     7    <?php echo sprintf(__('If you like our work, show some love and %sgive us a 5 star rating%s. Made with much love in Boston, Massachusetts.', 'shareaholic'), '<a href="http://wordpress.org/support/view/plugin-reviews/shareaholic?rate=5#postform" target="_new">', '</a>'); ?> 
    108  <br /> 
    119  <br /> 
    12   <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fshareaholic&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=false&amp;height=80&amp;width=500&amp;appId=207766518608" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe> 
     10    <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fshareaholic&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=false&amp;height=80&amp;width=500&amp;appId=207766518608" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe> 
     11  </p> 
    1312</div> 
    1413 
  • shareaholic/tags/8.6.1/templates/settings.php

    r1701765 r1760242  
    2424   
    2525      <div class="app"> 
    26         <p><a href="<?php echo esc_url(admin_url("admin.php?shareaholic_redirect_url=shareaholic.com/signup/")); ?>" target="_blank" class="btn btn-info btn-block" role="button" style="font-size: 14px;"><?php echo sprintf(__('Shareaholic Dashboard', 'shareaholic')); ?></a> 
     26        <p><a href="<?php echo esc_url(admin_url("admin.php?shareaholic_redirect_url=shareaholic.com/signup/")); ?>" target="_blank" class="btn btn-warning btn-block" role="button" style="font-size: 14px;"><?php echo sprintf(__('Shareaholic Dashboard', 'shareaholic')); ?></a> 
    2727        </p> 
    2828        <p> 
     
    3232 
    3333      <div class="app"> 
    34         <h2><i class="icon icon-share_buttons"></i> <?php echo sprintf(__('Share Buttons', 'shareaholic')); ?></h2> 
     34        <h2><i class="icon icon-share_buttons"></i> <?php echo sprintf(__('In-Page Share Buttons', 'shareaholic')); ?></h2> 
    3535        <p> 
    36           <?php echo sprintf(__('Pick where you want your share buttons to be displayed. Click "customize" to customize look & feel, themes, share counters, alignment, and more.', 'shareaholic')); ?> 
     36          <?php echo sprintf(__('Pick where you want your in-page share buttons to be displayed. Click "customize" to customize look & feel, themes, share counters, alignment, and more.', 'shareaholic')); ?> 
    3737        </p> 
    3838     
     
    5959        </fieldset> 
    6060        <?php } ?> 
    61      
     61         
     62        <div class='fieldset-footer'> 
     63          <p> 
     64            <input type="checkbox" id="share_buttons_excerpts" name="shareaholic[share_buttons_display_on_excerpts]" class="check"   
     65            <?php if (isset($settings["share_buttons_display_on_excerpts"])) { ?> 
     66              <?php echo ($settings["share_buttons_display_on_excerpts"] == 'on' ? 'checked' : '') ?> 
     67            <?php } ?>> 
     68            <label for="share_buttons_excerpts">Display on excerpts</label> 
     69          </p> 
     70        </div> 
     71         
    6272        <div class='fieldset-footer'> 
    6373          <p> 
     
    7585          <?php echo sprintf(__('Pick where you want the app to be displayed. Click "Customize" to customize look & feel, themes, block lists, etc.', 'shareaholic')); ?> 
    7686        </p> 
    77         <p> 
    7887        <?php foreach(array('post', 'page', 'index', 'category') as $page_type) { ?> 
    7988          <?php foreach(array('below') as $position) { ?> 
     
    98107          </fieldset> 
    99108        <?php } ?> 
    100         </p> 
     109         
     110        <div class='fieldset-footer'> 
     111          <p> 
     112            <input type="checkbox" id="recommendations_excerpts" name="shareaholic[recommendations_display_on_excerpts]" class="check"   
     113            <?php if (isset($settings["recommendations_display_on_excerpts"])) { ?> 
     114              <?php echo ($settings["recommendations_display_on_excerpts"] == 'on' ? 'checked' : '') ?> 
     115            <?php } ?>> 
     116            <label for="recommendations_excerpts">Display on excerpts</label> 
     117          </p> 
     118        </div> 
     119 
    101120        <div class='fieldset-footer'> 
    102121          <p> 
  • shareaholic/tags/8.6.1/templates/why_to_sign_up.php

    r1701765 r1760242  
    2323    <ul> 
    2424      <li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Shareaholic Helpdesk', 'shareaholic'); ?></a></li> 
    25       <li><a href="https://shareaholic.com/tools/wordpress/translations" target="_blank"><?php _e('Submit a new or updated language translation', 'shareaholic'); ?></a></li> 
     25      <li><a href="https://translate.wordpress.org/projects/wp-plugins/shareaholic" target="_blank"><?php _e('Submit a new or updated language translation', 'shareaholic'); ?></a></li> 
    2626      <li><a href="https://shareaholic.com/tools/browser/" target="_blank"><?php _e('Get the Shareaholic Browser Extension to share content from anywhere on the web', 'shareaholic'); ?></a></li> 
    2727      <li><a href="https://support.shareaholic.com/hc/en-us/categories/200185046-Website-Monetization-Apps?utm_source=wp_plugin&utm_medium=appsett&utm_campaign=psa_faq" target="_blank"><?php _e('Monetization Options', 'shareaholic'); ?></a></li> 
  • shareaholic/tags/8.6.1/utilities.php

    r1739285 r1760242  
    8888      'api_key' => '', 
    8989      'verification_key' => '', 
     90      'recommendations_display_on_excerpts' => 'on', 
     91      'share_buttons_display_on_excerpts' => 'on' 
    9092    ); 
    9193  } 
     
    332334  public static function perform_update() { 
    333335     
     336    // Set plugin defaults, if not already set 
     337    $settings = ShareaholicUtilities::get_settings(); 
     338     
     339    if (empty($settings["share_buttons_display_on_excerpts"]) || !isset($settings["share_buttons_display_on_excerpts"])) { 
     340      ShareaholicUtilities::update_options(array('share_buttons_display_on_excerpts' => 'on')); 
     341    } 
     342    if (empty($settings["recommendations_display_on_excerpts"]) || !isset($settings["recommendations_display_on_excerpts"])) { 
     343      ShareaholicUtilities::update_options(array('recommendations_display_on_excerpts' => 'on')); 
     344    } 
     345         
    334346    if (!self::is_locked('perform_update')) { 
    335347      self::set_lock('perform_update'); 
  • shareaholic/trunk/admin.php

    r1753989 r1760242  
    401401        } 
    402402      } 
    403  
     403         
     404      foreach (array('share_buttons_display_on_excerpts', 'recommendations_display_on_excerpts') as $setting) { 
     405        if (isset($settings[$setting]) && 
     406            !isset($_POST['shareaholic'][$setting]) && 
     407            $settings[$setting] == 'on') { 
     408          $_POST['shareaholic'][$setting] = 'off'; 
     409        } elseif (!isset($_POST['shareaholic'][$setting])) { 
     410          $_POST['shareaholic'][$setting] = array(); 
     411        } 
     412      } 
     413       
     414      // Save "Locations" related preferences 
    404415      ShareaholicUtilities::update_options(array( 
    405416        'share_buttons' => $_POST['share_buttons'], 
    406         'recommendations' => $_POST['recommendations'], 
     417        'recommendations' => $_POST['recommendations'] 
    407418      )); 
     419       
     420      // Save "Excerpts" related preferences 
     421      if (isset($_POST['shareaholic']['share_buttons_display_on_excerpts'])) { 
     422        ShareaholicUtilities::update_options(array('share_buttons_display_on_excerpts' => $_POST['shareaholic']['share_buttons_display_on_excerpts'])); 
     423      } 
     424      if (isset($_POST['shareaholic']['recommendations_display_on_excerpts'])) { 
     425        ShareaholicUtilities::update_options(array('recommendations_display_on_excerpts' => $_POST['shareaholic']['recommendations_display_on_excerpts'])); 
     426      } 
    408427 
    409428      ShareaholicUtilities::log_event("UpdatedSettings"); 
  • shareaholic/trunk/public.php

    r1733136 r1760242  
    331331     
    332332  /** 
    333    * This static function inserts the shareaholic canvas at the end of the post 
     333   * This static function inserts the shareaholic canvas in a post 
    334334   * 
    335335   * @param  string $content the wordpress content 
     
    341341    $page_type = ShareaholicUtilities::page_type(); 
    342342    foreach (array('share_buttons', 'recommendations') as $app) { 
     343       
     344      // check Excerpt prefs 
     345      if ('the_excerpt' == current_filter() && isset($settings["{$app}_display_on_excerpts"]) && $settings["{$app}_display_on_excerpts"] == 'off') { 
     346        return $content;  
     347      } 
     348         
     349      // check individual post prefs 
    343350      if (!get_post_meta($post->ID, "shareaholic_disable_{$app}", true)) { 
    344         if (isset($settings[$app]["{$page_type}_above_content"]) && 
    345             $settings[$app]["{$page_type}_above_content"] == 'on') { 
    346           // share_buttons_post_above_content 
     351        // check if ABOVE location is turned on 
     352        if (isset($settings[$app]["{$page_type}_above_content"]) && $settings[$app]["{$page_type}_above_content"] == 'on') { 
    347353          $id = $settings['location_name_ids'][$app]["{$page_type}_above_content"]; 
    348354          $content = self::canvas($id, $app, "{$page_type}_above_content") . $content; 
    349355        } 
    350  
    351         if (isset($settings[$app]["{$page_type}_below_content"]) && 
    352             $settings[$app]["{$page_type}_below_content"] == 'on') { 
    353           // share_buttons_post_below_content 
     356        // check if BELOW location is turned on 
     357        if (isset($settings[$app]["{$page_type}_below_content"]) && $settings[$app]["{$page_type}_below_content"] == 'on') { 
    354358          $id = $settings['location_name_ids'][$app]["{$page_type}_below_content"]; 
    355359          $content .= self::canvas($id, $app, "{$page_type}_below_content"); 
     
    357361      } 
    358362    } 
    359  
    360363    // something that uses the_content hook must return the $content 
    361364    return $content; 
  • shareaholic/trunk/readme.txt

    r1758231 r1760242  
    44Requires at least: 3.0 
    55Tested up to: 4.9 
    6 Stable tag: 8.6.0 
     6Stable tag: 8.6.1 
    77 
    88World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE. 
     
    196196 
    197197== Changelog == 
     198= 8.6.1 (2017-11-07) = 
     199* New: Option to show or hide share buttons, related content, etc on excerpts 
     200 
    198201= 8.6.0 (2017-11-03) = 
    199202* Huge localization update! We (and the entire WordPress community) would appreciate your help in translating Shareaholic into your language! It is quite simple and fast. ([How-To Instructions here](https://translate.wordpress.org/projects/wp-plugins/shareaholic)) 
     
    679682 
    680683== Upgrade Notice == 
     684= 8.6.1 = 
     685New option to show or hide share buttons, related content, etc on excerpts 
     686 
    681687= 8.6.0 = 
    682688Huge localization update! 
    683689 
    684  
    685690= 8.5.3 = 
    686691Some hosting companies are incorrectly flagging "index.html" as malware. This is a standard file and there is absolutely no reason to panic or be concerned. This update fixes the cause of the false positive. Please upgrade ASAP as a precaution. 
  • shareaholic/trunk/shareaholic.php

    r1758231 r1760242  
    44 * 
    55 * @package shareaholic 
    6  * @version 8.6.0 
     6 * @version 8.6.1 
    77 */ 
    88 
     
    1111Plugin URI: https://shareaholic.com/publishers/ 
    1212Description: The world's leading all-in-one Content Amplification Platform that helps grow your website traffic, engagement, conversions & monetization. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings. 
    13 Version: 8.6.0 
     13Version: 8.6.1 
    1414Author: Shareaholic 
    1515Author URI: https://shareaholic.com 
     
    6464    const REC_API_URL = 'http://recommendations.shareaholic.com'; 
    6565 
    66     const VERSION = '8.6.0'; 
     66    const VERSION = '8.6.1'; 
    6767 
    6868    /** 
  • shareaholic/trunk/templates/footer.php

    r839226 r1760242  
    11<div style="margin-top:45px;"></div> 
    22<div class='clear'> 
    3   <small class="muted"> 
    4     <?php echo sprintf(__('%sShareaholic for WordPress v'. ShareaholicUtilities::get_version() .'%s | %sPrivacy Policy%s | %sTerms of Service%s | %sSupport Center%s | %sAPI%s | %sSocial Analytics%s', 'shareaholic'), '<a href="https://shareaholic.com/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/privacy/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/terms/?src=wp_admin" target="_new">', '</a>', '<a href="http://support.shareaholic.com/" target="_new">', '</a>', '<a href="https://shareaholic.com/api/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/publishers/analytics/'. ShareaholicUtilities::get_host() .'/30?src=wp_admin" target="_new">', '</a>'); ?> 
    5   </small> 
    6   <br /> 
    7   <small class="muted"> 
    8     <?php echo sprintf(__('If you like our work, show some love and %sgive us a good rating%s. Made with much love in Boston, Massachusetts.', 'shareaholic'), '<a href="http://wordpress.org/support/view/plugin-reviews/shareaholic?rate=5#postform" target="_new">', '</a>'); ?> 
    9   </small> 
     3  <p class="text-muted"> 
     4    <?php echo sprintf(__('%sShareaholic for WordPress v'. ShareaholicUtilities::get_version() .'%s | %sPrivacy Policy%s | %sTerms of Service%s | %sSupport Center%s | %sAPI%s', 'shareaholic'), '<a href="https://shareaholic.com/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/privacy/?src=wp_admin" target="_new">', '</a>', '<a href="https://shareaholic.com/terms/?src=wp_admin" target="_new">', '</a>', '<a href="http://support.shareaholic.com/" target="_new">', '</a>', '<a href="https://shareaholic.com/api/?src=wp_admin" target="_new">', '</a>'); ?> 
     5  </p> 
     6  <p class="text-muted"> 
     7    <?php echo sprintf(__('If you like our work, show some love and %sgive us a 5 star rating%s. Made with much love in Boston, Massachusetts.', 'shareaholic'), '<a href="http://wordpress.org/support/view/plugin-reviews/shareaholic?rate=5#postform" target="_new">', '</a>'); ?> 
    108  <br /> 
    119  <br /> 
    12   <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fshareaholic&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=false&amp;height=80&amp;width=500&amp;appId=207766518608" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe> 
     10    <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fshareaholic&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=false&amp;height=80&amp;width=500&amp;appId=207766518608" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe> 
     11  </p> 
    1312</div> 
    1413 
  • shareaholic/trunk/templates/settings.php

    r1701765 r1760242  
    2424   
    2525      <div class="app"> 
    26         <p><a href="<?php echo esc_url(admin_url("admin.php?shareaholic_redirect_url=shareaholic.com/signup/")); ?>" target="_blank" class="btn btn-info btn-block" role="button" style="font-size: 14px;"><?php echo sprintf(__('Shareaholic Dashboard', 'shareaholic')); ?></a> 
     26        <p><a href="<?php echo esc_url(admin_url("admin.php?shareaholic_redirect_url=shareaholic.com/signup/")); ?>" target="_blank" class="btn btn-warning btn-block" role="button" style="font-size: 14px;"><?php echo sprintf(__('Shareaholic Dashboard', 'shareaholic')); ?></a> 
    2727        </p> 
    2828        <p> 
     
    3232 
    3333      <div class="app"> 
    34         <h2><i class="icon icon-share_buttons"></i> <?php echo sprintf(__('Share Buttons', 'shareaholic')); ?></h2> 
     34        <h2><i class="icon icon-share_buttons"></i> <?php echo sprintf(__('In-Page Share Buttons', 'shareaholic')); ?></h2> 
    3535        <p> 
    36           <?php echo sprintf(__('Pick where you want your share buttons to be displayed. Click "customize" to customize look & feel, themes, share counters, alignment, and more.', 'shareaholic')); ?> 
     36          <?php echo sprintf(__('Pick where you want your in-page share buttons to be displayed. Click "customize" to customize look & feel, themes, share counters, alignment, and more.', 'shareaholic')); ?> 
    3737        </p> 
    3838     
     
    5959        </fieldset> 
    6060        <?php } ?> 
    61      
     61         
     62        <div class='fieldset-footer'> 
     63          <p> 
     64            <input type="checkbox" id="share_buttons_excerpts" name="shareaholic[share_buttons_display_on_excerpts]" class="check"   
     65            <?php if (isset($settings["share_buttons_display_on_excerpts"])) { ?> 
     66              <?php echo ($settings["share_buttons_display_on_excerpts"] == 'on' ? 'checked' : '') ?> 
     67            <?php } ?>> 
     68            <label for="share_buttons_excerpts">Display on excerpts</label> 
     69          </p> 
     70        </div> 
     71         
    6272        <div class='fieldset-footer'> 
    6373          <p> 
     
    7585          <?php echo sprintf(__('Pick where you want the app to be displayed. Click "Customize" to customize look & feel, themes, block lists, etc.', 'shareaholic')); ?> 
    7686        </p> 
    77         <p> 
    7887        <?php foreach(array('post', 'page', 'index', 'category') as $page_type) { ?> 
    7988          <?php foreach(array('below') as $position) { ?> 
     
    98107          </fieldset> 
    99108        <?php } ?> 
    100         </p> 
     109         
     110        <div class='fieldset-footer'> 
     111          <p> 
     112            <input type="checkbox" id="recommendations_excerpts" name="shareaholic[recommendations_display_on_excerpts]" class="check"   
     113            <?php if (isset($settings["recommendations_display_on_excerpts"])) { ?> 
     114              <?php echo ($settings["recommendations_display_on_excerpts"] == 'on' ? 'checked' : '') ?> 
     115            <?php } ?>> 
     116            <label for="recommendations_excerpts">Display on excerpts</label> 
     117          </p> 
     118        </div> 
     119 
    101120        <div class='fieldset-footer'> 
    102121          <p> 
  • shareaholic/trunk/templates/why_to_sign_up.php

    r1701765 r1760242  
    2323    <ul> 
    2424      <li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Shareaholic Helpdesk', 'shareaholic'); ?></a></li> 
    25       <li><a href="https://shareaholic.com/tools/wordpress/translations" target="_blank"><?php _e('Submit a new or updated language translation', 'shareaholic'); ?></a></li> 
     25      <li><a href="https://translate.wordpress.org/projects/wp-plugins/shareaholic" target="_blank"><?php _e('Submit a new or updated language translation', 'shareaholic'); ?></a></li> 
    2626      <li><a href="https://shareaholic.com/tools/browser/" target="_blank"><?php _e('Get the Shareaholic Browser Extension to share content from anywhere on the web', 'shareaholic'); ?></a></li> 
    2727      <li><a href="https://support.shareaholic.com/hc/en-us/categories/200185046-Website-Monetization-Apps?utm_source=wp_plugin&utm_medium=appsett&utm_campaign=psa_faq" target="_blank"><?php _e('Monetization Options', 'shareaholic'); ?></a></li> 
  • shareaholic/trunk/utilities.php

    r1739285 r1760242  
    8888      'api_key' => '', 
    8989      'verification_key' => '', 
     90      'recommendations_display_on_excerpts' => 'on', 
     91      'share_buttons_display_on_excerpts' => 'on' 
    9092    ); 
    9193  } 
     
    332334  public static function perform_update() { 
    333335     
     336    // Set plugin defaults, if not already set 
     337    $settings = ShareaholicUtilities::get_settings(); 
     338     
     339    if (empty($settings["share_buttons_display_on_excerpts"]) || !isset($settings["share_buttons_display_on_excerpts"])) { 
     340      ShareaholicUtilities::update_options(array('share_buttons_display_on_excerpts' => 'on')); 
     341    } 
     342    if (empty($settings["recommendations_display_on_excerpts"]) || !isset($settings["recommendations_display_on_excerpts"])) { 
     343      ShareaholicUtilities::update_options(array('recommendations_display_on_excerpts' => 'on')); 
     344    } 
     345         
    334346    if (!self::is_locked('perform_update')) { 
    335347      self::set_lock('perform_update'); 
Note: See TracChangeset for help on using the changeset viewer.