WordPress.org

Plugin Directory

Changeset 1646130


Ignore:
Timestamp:
04/26/17 23:40:36 (3 months ago)
Author:
micropat
Message:

1.7.10

  • Fix vertical floating bar's class name and media query from the previous release
Location:
add-to-any/trunk
Files:
2 edited

Legend:

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

    r1645343 r1646130  
    44Requires at least: 3.7 
    55Tested up to: 4.7 
    6 Stable tag: 1.7.9 
     6Stable tag: 1.7.10 
    77 
    88Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too. 
     
    346346 
    347347== Changelog == 
     348 
     349= 1.7.10 = 
     350* Fix vertical floating bar's class name and media query from the previous release 
    348351 
    349352= 1.7.9 = 
  • add-to-any/trunk/add-to-any.php

    r1645343 r1646130  
    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.9 
     6Version: 1.7.10 
    77Author: AddToAny 
    88Author URI: https://www.addtoany.com/ 
     
    675675        // Vertical type? 
    676676        if ( $vertical_type ) { 
     677            // Prevent overwriting of $args 
     678            $vertical_args = $args; 
     679             
    677680            // Top position 
    678681            $position = ( isset( $options['floating_vertical_position'] ) ) ? $options['floating_vertical_position'] . 'px' : '100px'; 
     
    680683            $offset = ( isset( $options['floating_vertical_offset'] ) ) ? $options['floating_vertical_offset'] . 'px' : '0px'; 
    681684            // Icon size 
    682             $args['icon_size'] = ( isset( $options['floating_vertical_icon_size'] ) ) ? $options['floating_vertical_icon_size'] : '32'; 
     685            $vertical_args['icon_size'] = ( isset( $options['floating_vertical_icon_size'] ) ) ? $options['floating_vertical_icon_size'] : '32'; 
    683686         
    684687            // Add a2a_vertical_style className to Kit classes 
    685             $args['kit_additional_classes'] = trim( $args['kit_additional_classes'] . ' a2a_floating_style a2a_vertical_style' ); 
     688            $vertical_args['kit_additional_classes'] = trim( $args['kit_additional_classes'] . ' a2a_floating_style a2a_vertical_style' ); 
    686689             
    687690            // Add declarations to Kit style attribute 
    688691            if ( 'left_docked' === $vertical_type ) { 
    689                 $args['kit_style'] = 'left:' . $offset . ';top:' . $position . ';'; 
     692                $vertical_args['kit_style'] = 'left:' . $offset . ';top:' . $position . ';'; 
    690693            } elseif ( 'right_docked' === $vertical_type ) { 
    691                 $args['kit_style'] = 'right:' . $offset . ';top:' . $position . ';'; 
     694                $vertical_args['kit_style'] = 'right:' . $offset . ';top:' . $position . ';'; 
    692695            } 
    693696             
    694             $floating_html .= ADDTOANY_SHARE_SAVE_KIT( $args ); 
     697            $floating_html .= ADDTOANY_SHARE_SAVE_KIT( $vertical_args ); 
    695698        } 
    696699         
    697700        // Horizontal type? 
    698701        if ( $horizontal_type ) { 
     702            // Prevent overwriting of $args values 
     703            $horizontal_args = $args; 
     704             
    699705            // Left or right position 
    700706            $position = ( isset( $options['floating_horizontal_position'] ) ) ? $options['floating_horizontal_position'] . 'px' : '0px'; 
     
    702708            $offset = ( isset( $options['floating_horizontal_offset'] ) ) ? $options['floating_horizontal_offset'] . 'px' : '0px'; 
    703709            // Icon size 
    704             $args['icon_size'] = ( isset( $options['floating_horizontal_icon_size'] ) ) ? $options['floating_horizontal_icon_size'] : '32'; 
     710            $horizontal_args['icon_size'] = ( isset( $options['floating_horizontal_icon_size'] ) ) ? $options['floating_horizontal_icon_size'] : '32'; 
    705711 
    706712            // Add a2a_default_style className to Kit classes 
    707             $args['kit_additional_classes'] = trim( $args['kit_additional_classes'] . ' a2a_floating_style a2a_default_style' ); 
     713            $horizontal_args['kit_additional_classes'] = trim( $args['kit_additional_classes'] . ' a2a_floating_style a2a_default_style' ); 
    708714             
    709715            // Add declarations to Kit style attribute 
    710716            if ( 'left_docked' === $horizontal_type ) { 
    711                 $args['kit_style'] = 'bottom:' . $offset . ';left:' . $position . ';'; 
     717                $horizontal_args['kit_style'] = 'bottom:' . $offset . ';left:' . $position . ';'; 
    712718            } elseif ( 'right_docked' === $horizontal_type ) { 
    713                 $args['kit_style'] = 'bottom:' . $offset . ';right:' . $position . ';'; 
     719                $horizontal_args['kit_style'] = 'bottom:' . $offset . ';right:' . $position . ';'; 
    714720            } 
    715721             
    716             $floating_html .= ADDTOANY_SHARE_SAVE_KIT( $args ); 
     722            $floating_html .= ADDTOANY_SHARE_SAVE_KIT( $horizontal_args ); 
    717723        } 
    718724    } 
Note: See TracChangeset for help on using the changeset viewer.