Changeset 1645343 for add-to-any
- Timestamp:
- 04/25/2017 11:10:40 PM (14 months ago)
- Location:
- add-to-any/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (5 diffs)
-
add-to-any.php (modified) (5 diffs)
-
addtoany.admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-to-any/trunk/README.txt
r1629678 r1645343 4 4 Requires at least: 3.7 5 5 Tested up to: 4.7 6 Stable tag: 1.7. 86 Stable tag: 1.7.9 7 7 8 8 Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too. … … 105 105 = Something is wrong. What should I try first? = 106 106 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>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, search the WordPress plugin's <a href="https://wordpress.org/support/plugin/add-to-any/">support forum</a>. 108 108 109 109 Feel 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. … … 325 325 AddToAny supports the <a href="https://codex.wordpress.org/AJAX_in_Plugins#The_post-load_JavaScript_Event">standard `post-load` event</a>. 326 326 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 pluginauthors as needed.327 Ajax 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. 328 328 329 329 Use the following line to dispatch the `post-load` event for AddToAny and other plugins: … … 331 331 `jQuery( 'body' ).trigger( 'post-load' );` 332 332 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 337 333 = How can I set the plugin as a "Must-Use" plugin that is autoloaded and activated for all sites? = 338 334 … … 343 339 == Screenshots == 344 340 345 1. AddToAny vector share buttons (SVG icons) are pixel-perfect on Retina and high-PPI dispays341 1. AddToAny vector share buttons (SVG icons) are pixel-perfect and customizable 346 342 2. Mini share menu that drops down when visitors use the universal share button 347 343 3. Full universal share menu modal that includes all services 348 4. S tandard Settings349 5. Floating Settings344 4. Settings for Standard Share Buttons 345 5. Settings for Floating Share Bars 350 346 351 347 == 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) 352 353 353 354 = 1.7.8 = -
add-to-any/trunk/add-to-any.php
r1629678 r1645343 4 4 Plugin URI: https://www.addtoany.com/ 5 5 Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more. 6 Version: 1.7. 86 Version: 1.7.9 7 7 Author: AddToAny 8 8 Author URI: https://www.addtoany.com/ … … 605 605 606 606 // 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' ); 608 608 609 609 // If $args['buttons']['feed']['id'] is set … … 683 683 684 684 // 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' ); 686 686 687 687 // Add declarations to Kit style attribute … … 705 705 706 706 // 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' ); 708 708 709 709 // Add declarations to Kit style attribute … … 893 893 894 894 895 // [addtoany url="http ://example.com/page.html" title="SomeExample Page"]895 // [addtoany url="https://www.example.com/page.html" title="Example Page"] 896 896 function 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' => '', 900 900 'media' => '', 901 901 '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; 906 906 $linkmedia = ! empty( $attributes['media'] ) ? $attributes['media'] : false; 907 $buttons = ! empty( $buttons ) ? explode ( ',', $buttons ) : array();907 $buttons = ! empty( $buttons ) ? explode( ',', $buttons ) : array(); 908 908 909 909 $output_later = true; -
add-to-any/trunk/addtoany.admin.php
r1629678 r1645343 5 5 */ 6 6 function 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 ) ); 9 8 10 9 $options = get_option( 'addtoany_options' ); … … 18 17 isset( $options['floating_horizontal'] ) && 'none' != $options['floating_horizontal'] || 19 18 // 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' ) || 21 20 // 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' ) || 23 22 // 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' 25 24 ) { 26 25 // Add meta box
Note: See TracChangeset
for help on using the changeset viewer.