WordPress.org

Plugin Directory

Changeset 1534026 for add-to-any


Ignore:
Timestamp:
11/14/2016 10:50:21 PM (19 months ago)
Author:
micropat
Message:
  • Accept arguments in universal button template tag for additional classes and HTML contents
  • Override box shadow on buttons in some themes such as the new Twenty Seventeen default theme in WordPress 4.7
Location:
add-to-any/trunk
Files:
3 edited

Legend:

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

    r1516986 r1534026  
    11=== AddToAny Share Buttons ===
    22Contributors: micropat, addtoany
    3 Tags: AddToAny, share, sharing, social, share button, share buttons, share links, social media, media, marketing, post, posts, page, pages, images, image, admin, analytics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, seo, button, woocommerce, ecommerce, e-commerce, amazon, google, linkedin, reddit, facebook, like, twitter, tweet, google plus, pinterest, whatsapp, instagram, flickr, vimeo, youtube, feed, rss, addthis, share this, sharethis, icons, floating, wpml
     3Tags: AddToAny, share, sharing, social, share button, share buttons, social media, media, marketing, images, image, links, shortcode, widget, email, seo, button, woocommerce, ecommerce, e-commerce, amazon, google, linkedin, reddit, facebook, like, twitter, google plus, pinterest, whatsapp, instagram, vimeo, youtube, feed, addthis, share this, sharethis, icons, floating, wpml
    44Requires at least: 3.7
    5 Tested up to: 4.6
    6 Stable tag: 1.7.1
     5Tested up to: 4.7
     6Stable tag: 1.7.2
    77
    88Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
     
    6464
    6565* Over 10 years of development
    66 * Over 5 million downloads
     66* Over 5.5 million downloads
    6767* Translated into dozens of languages
    6868* Ongoing support from the community
     
    334334
    335335== Changelog ==
     336
     337= 1.7.2 =
     338* Accept arguments in universal button template tag for additional classes and HTML contents
     339* Override box shadow on buttons in some themes such as the new Twenty Seventeen default theme in WordPress 4.7
    336340
    337341= 1.7.1 =
  • add-to-any/trunk/add-to-any.php

    r1516986 r1534026  
    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.1
     6Version: 1.7.2
    77Author: AddToAny
    88Author URI: https://www.addtoany.com/
     
    115115   
    116116    // Add additional classNames to .a2a_kit
    117     if ( isset( $args['kit_additional_classes'] ) ) {
     117    if ( ! empty( $args['kit_additional_classes'] ) ) {
    118118        // Append space and className(s)
    119119        $kit_additional_classes .= ' ' . $args['kit_additional_classes'];
     
    393393        'html_wrap_open' => '',
    394394        'html_wrap_close' => '',
     395        'html_content' => '',
     396        'button_additional_classes' => '',
    395397        'icon_size' => isset( $options['icon_size'] ) ? $options['icon_size'] : '32',
    396398        'no_small_icons' => false,
     
    443445        }
    444446       
     447        // Add additional classNames to .a2a_dd
     448        $button_additional_classes = ! empty( $args['button_additional_classes'] ) ? ' ' . $args['button_additional_classes'] : '';
     449       
    445450        $style = '';
    446451       
     
    455460        }
    456461       
    457         if ( isset( $button_text ) && ( ! isset( $button_fname) || ! $button_fname || $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) ) {
     462        if ( ! empty( $html_content ) ) {
     463            $button = $html_content;
     464        } elseif ( isset( $button_text ) && ( ! isset( $button_fname) || ! $button_fname || $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) ) {
    458465            $button = $button_text;
    459466        } else {
     
    466473        }
    467474       
    468         $button_html = $html_container_open . $html_wrap_open . '<a class="a2a_dd' . $button_class . ' addtoany_share_save" href="https://www.addtoany.com/share' .$button_href_querystring . '"'
     475        $button_html = $html_container_open . $html_wrap_open . '<a class="a2a_dd' . $button_class . $button_additional_classes . ' addtoany_share_save" href="https://www.addtoany.com/share' .$button_href_querystring . '"'
    469476            . $button_data_url . $button_data_title . $button_data_media . $style . $button_target
    470477            . '>' . $button . '</a>';
     
    896903    if ( ! isset( $options['inline_css'] ) || $options['inline_css'] != '-1' && ! is_admin() ) {
    897904   
    898         wp_enqueue_style( 'A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.12' );
     905        wp_enqueue_style( 'A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.13' );
    899906   
    900907        // wp_add_inline_style requires WP 3.3+
  • add-to-any/trunk/addtoany.min.css

    r1324303 r1534026  
    1 .addtoany_share_save_container{clear:both;margin:16px 0}.addtoany_header{margin:0 0 16px}.addtoany_list{display:inline;line-height:16px}.addtoany_list a{border:0;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle}.addtoany_list a img{border:0;display:inline-block;height:auto;opacity:1;overflow:hidden;vertical-align:baseline;width:auto}.addtoany_list a span{display:inline-block;float:none}.addtoany_list.a2a_kit_size_32 a{font-size:32px}.addtoany_list.a2a_kit_size_32 a > span{border-radius:4px;display:inline-block;height:32px;line-height:32px;opacity:1;width:32px}.addtoany_list a .a2a_count{position:relative;vertical-align:top}.addtoany_list a:hover img,.addtoany_list a:hover span{opacity:.7}.addtoany_list a.addtoany_special_service:hover img,.addtoany_list a.addtoany_special_service:hover span{opacity:1}.addtoany_special_service{display:inline-block;vertical-align:middle}.addtoany_special_service a,.addtoany_special_service div,.addtoany_special_service iframe,.addtoany_special_service div.fb_iframe_widget,.addtoany_special_service span{margin:0;vertical-align:baseline!important}.addtoany_special_service iframe{display:inline;max-width:none}a.addtoany_share_save.addtoany_no_icon span.a2a_img_text{display:none}a.addtoany_share_save img{border:0;width:auto;height:auto}
     1.addtoany_share_save_container{clear:both;margin:16px 0}.addtoany_header{margin:0 0 16px}.addtoany_list{display:inline;line-height:16px}.addtoany_list a,.widget .addtoany_list a{border:0;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle}.addtoany_list a img{border:0;display:inline-block;height:auto;opacity:1;overflow:hidden;vertical-align:baseline;width:auto}.addtoany_list a span{display:inline-block;float:none}.addtoany_list.a2a_kit_size_32 a{font-size:32px}.addtoany_list.a2a_kit_size_32 a > span{border-radius:4px;display:inline-block;height:32px;line-height:32px;opacity:1;width:32px}.addtoany_list a .a2a_count{position:relative;vertical-align:top}.addtoany_list a:hover,.widget .addtoany_list a:hover{border:0;box-shadow:none}.addtoany_list a:hover img,.addtoany_list a:hover span{opacity:.7}.addtoany_list a.addtoany_special_service:hover img,.addtoany_list a.addtoany_special_service:hover span{opacity:1}.addtoany_special_service{display:inline-block;vertical-align:middle}.addtoany_special_service a,.addtoany_special_service div,.addtoany_special_service iframe,.addtoany_special_service div.fb_iframe_widget,.addtoany_special_service span{margin:0;vertical-align:baseline!important}.addtoany_special_service iframe{display:inline;max-width:none}a.addtoany_share_save.addtoany_no_icon span.a2a_img_text{display:none}a.addtoany_share_save img{border:0;width:auto;height:auto}
Note: See TracChangeset for help on using the changeset viewer.