WordPress.org

Plugin Directory

Changeset 1645343


Ignore:
Timestamp:
04/25/17 23:10:40 (5 weeks ago)
Author:
micropat
Message:

1.7.9

  • Show optional meta box ("Show sharing buttons") below the WordPress editor by default, without having to save AddToAny settings first
  • Enable the shortcode_atts_addtoany hook to filter the default attributes of the [addtoany] shortcode
  • Accept kit_additional_classes argument in Floating and Follow button output functions (thanks Rocco Marco)
Location:
add-to-any/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • add-to-any/trunk/README.txt

    r1629678 r1645343  
    44Requires at least: 3.7 
    55Tested up to: 4.7 
    6 Stable tag: 1.7.8 
     6Stable tag: 1.7.9 
    77 
    88Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too. 
     
    105105= Something is wrong. What should I try first? = 
    106106 
    107 Try temporarily switching themes and deactivating other plugins to identify a potential conflict. If you find a conflict, try contacting that theme or plugin author. If an issue persists on a default theme with all other plugins deactivated, perform a google search across the WordPress forums using a query such as: <a href="https://www.google.com/#q=site:wordpress.org%2Fsupport+-reviews+addtoany+">site:wordpress.org/support -reviews addtoany [your issue issue here]</a> 
     107Try temporarily switching themes and deactivating other plugins to identify a potential conflict. If you find a conflict, try contacting that theme or plugin author. If an issue persists on a default theme with all other plugins deactivated, search the WordPress plugin's <a href="https://wordpress.org/support/plugin/add-to-any/">support forum</a>. 
    108108 
    109109Feel free to <a href="https://wordpress.org/support/plugin/add-to-any">post here</a>, where the community can hopefully help you. Describe the issue, what troubleshooting you have already done, provide a link to your site, and any other potentially relevant information. 
     
    325325AddToAny supports the <a href="https://codex.wordpress.org/AJAX_in_Plugins#The_post-load_JavaScript_Event">standard `post-load` event</a>. 
    326326 
    327 Ajax and infinite scroll plugins should always fire the `post-load` event after content insertion, so request <a href="https://codex.wordpress.org/AJAX_in_Plugins#The_post-load_JavaScript_Event">standard `post-load` support</a> from plugin authors as needed. 
     327Ajax and infinite scroll plugins/themes should always fire the `post-load` event after content insertion, so request <a href="https://codex.wordpress.org/AJAX_in_Plugins#The_post-load_JavaScript_Event">standard `post-load` support</a> from plugin & theme authors as needed. 
    328328 
    329329Use the following line to dispatch the `post-load` event for AddToAny and other plugins: 
     
    331331`jQuery( 'body' ).trigger( 'post-load' );` 
    332332 
    333 = Why does the menu appear behind embedded objects (like Flash)? = 
    334  
    335 Please read <a href="https://www.addtoany.com/buttons/customize/show_over_embeds">this document</a> for an explanation and possible fix. For WordPress, an easier fix is to have the plugin <a href="https://www.addtoany.com/buttons/customize/wordpress/hide_embeds">hide intersecting embedded objects</a>. 
    336  
    337333= How can I set the plugin as a "Must-Use" plugin that is autoloaded and activated for all sites? = 
    338334 
     
    343339== Screenshots == 
    344340 
    345 1. AddToAny vector share buttons (SVG icons) are pixel-perfect on Retina and high-PPI dispays 
     3411. AddToAny vector share buttons (SVG icons) are pixel-perfect and customizable 
    3463422. Mini share menu that drops down when visitors use the universal share button 
    3473433. Full universal share menu modal that includes all services 
    348 4. Standard Settings 
    349 5. Floating Settings 
     3444. Settings for Standard Share Buttons 
     3455. Settings for Floating Share Bars 
    350346 
    351347== Changelog == 
     348 
     349= 1.7.9 = 
     350* Show optional meta box ("Show sharing buttons") below the WordPress editor by default, without having to save AddToAny settings first 
     351* Enable the `shortcode_atts_addtoany` hook to filter the default attributes of the `[addtoany]` shortcode 
     352* Accept `kit_additional_classes` argument in Floating and Follow button output functions (thanks Rocco Marco) 
    352353 
    353354= 1.7.8 = 
  • add-to-any/trunk/add-to-any.php

    r1629678 r1645343  
    44Plugin URI: https://www.addtoany.com/ 
    55Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more. 
    6 Version: 1.7.8 
     6Version: 1.7.9 
    77Author: AddToAny 
    88Author URI: https://www.addtoany.com/ 
     
    605605     
    606606    // Add a2a_follow className to Kit classes 
    607     $args['kit_additional_classes'] = 'a2a_follow'; 
     607    $args['kit_additional_classes'] = trim( $args['kit_additional_classes'] . ' a2a_follow' ); 
    608608     
    609609    // If $args['buttons']['feed']['id'] is set 
     
    683683         
    684684            // Add a2a_vertical_style className to Kit classes 
    685             $args['kit_additional_classes'] = 'a2a_floating_style a2a_vertical_style'; 
     685            $args['kit_additional_classes'] = trim( $args['kit_additional_classes'] . ' a2a_floating_style a2a_vertical_style' ); 
    686686             
    687687            // Add declarations to Kit style attribute 
     
    705705 
    706706            // Add a2a_default_style className to Kit classes 
    707             $args['kit_additional_classes'] = 'a2a_floating_style a2a_default_style'; 
     707            $args['kit_additional_classes'] = trim( $args['kit_additional_classes'] . ' a2a_floating_style a2a_default_style' ); 
    708708             
    709709            // Add declarations to Kit style attribute 
     
    893893 
    894894 
    895 // [addtoany url="http://example.com/page.html" title="Some Example Page"] 
     895// [addtoany url="https://www.example.com/page.html" title="Example Page"] 
    896896function A2A_SHARE_SAVE_shortcode( $attributes ) { 
    897     extract( shortcode_atts( array( 
    898         'url'     => 'something', 
    899         'title'   => 'something else', 
     897    $attributes = shortcode_atts( array( 
     898        'url'     => '', 
     899        'title'   => '', 
    900900        'media'   => '', 
    901901        'buttons' => '', 
    902     ), $attributes ) ); 
    903      
    904     $linkname = isset( $attributes['title'] ) ? $attributes['title'] : false; 
    905     $linkurl = isset( $attributes['url'] ) ? $attributes['url'] : false; 
     902    ), $attributes, 'addtoany' ); 
     903     
     904    $linkname =  ! empty( $attributes['title'] ) ? $attributes['title'] : false; 
     905    $linkurl =  ! empty( $attributes['url'] ) ? $attributes['url'] : false; 
    906906    $linkmedia = ! empty( $attributes['media'] ) ? $attributes['media'] : false; 
    907     $buttons = ! empty( $buttons ) ? explode ( ',', $buttons ) : array(); 
     907    $buttons = ! empty( $buttons ) ? explode( ',', $buttons ) : array(); 
    908908     
    909909    $output_later = true; 
  • add-to-any/trunk/addtoany.admin.php

    r1629678 r1645343  
    55 */ 
    66function A2A_SHARE_SAVE_add_meta_box() { 
    7     // get_post_types() only included in WP 2.9/3.0 
    8     $post_types = ( function_exists( 'get_post_types' ) ) ? get_post_types( array( 'public' => true ) ) : array( 'post', 'page' ) ; 
     7    $post_types = get_post_types( array( 'public' => true ) ); 
    98     
    109    $options = get_option( 'addtoany_options' ); 
     
    1817            isset( $options['floating_horizontal'] ) && 'none' != $options['floating_horizontal'] || 
    1918            // for standard buttons in posts 
    20             'post' == $post_type && isset( $options['display_in_posts'] ) && $options['display_in_posts'] != '-1' || 
     19            'post' == $post_type && ( ! isset( $options['display_in_posts'] ) || $options['display_in_posts'] != '-1' ) || 
    2120            // for standard buttons in pages 
    22             'page' == $post_type && isset( $options['display_in_pages'] ) && $options['display_in_pages'] != '-1' || 
     21            'page' == $post_type && ( ! isset( $options['display_in_pages'] ) || $options['display_in_pages'] != '-1' ) || 
    2322            // for standard buttons in a custom post type 
    24             isset( $options['display_in_cpt_' . $post_type] ) && $options['display_in_cpt_' . $post_type] != '-1' 
     23            ! isset( $options['display_in_cpt_' . $post_type] ) || $options['display_in_cpt_' . $post_type] != '-1' 
    2524        ) { 
    2625            // Add meta box 
Note: See TracChangeset for help on using the changeset viewer.