Plugin Directory

Changeset 1834179


Ignore:
Timestamp:
03/06/2018 05:35:58 AM (8 years ago)
Author:
maxfoundry
Message:

Version 1.1

Location:
share-button
Files:
7 deleted
13 edited
66 copied

Legend:

Unmodified
Added
Removed
  • share-button/tags/1.1/classes/blocks/count_block.php

    r1827649 r1834179  
    110110        if ($total < $min_count)
    111111        {
    112             return $collectionObj; 
     112            return $collectionObj;
    113113        }
    114114
     
    263263        $min_count->label = __('Minimum count to show shares','mbsocial');
    264264
    265         $admin->addField( $min_count, 'start', 'end');
     265        $admin->addField( $min_count, 'start', 'end', false);
    266266
    267267        // *** COUNT SIZE *** //
  • share-button/tags/1.1/classes/blocks/display_block.php

    r1827649 r1834179  
    582582    }
    583583
    584  protected function getDisplayRules()
     584 /*protected function getDisplayRules()
    585585 {
    586586     $data = $this->data;
     
    588588
    589589     return array();
    590 
    591 
    592  }
     590 } */
    593591
    594592    protected function addRule($args)
  • share-button/tags/1.1/classes/blocks/network-block.php

    r1827649 r1834179  
    99use \MaxButtons\maxField as maxField;
    1010use \MaxButtons\maxBlocks as maxBlocks;
     11use \MaxButtons\maxInstall as maxInstall;
    1112
    1213class networkBlock extends block
     
    103104        $icon_type = $network->get('icon_type');
    104105
     106        /*$fa5_present = method_exists('maxInstall', 'searchNewFa');
     107        var_dump($fa5_present);
     108        var_dump($icon_type);
     109        $fa5_present = true;
     110        if ($icon_type == 'fa' && $fa5_present)
     111        {
     112                $conversion_path = MB()->get_plugin_path() . '/assets/libraries/font-awesome-5/shims.json';
     113                $conversion_array = json_decode(file_get_contents($conversion_path), ARRAY_A);
     114
     115                $icon = str_replace('fa-', '', $icon);
     116                $icon_type = '';
     117
     118                $icon = maxInstall::searchNewFA($icon, $conversion_array);
     119                var_dump($icon);
     120        } */
     121
    105122        $network_name = $network->get_nice_name();
    106123
     
    108125        {
    109126            case 'fa':
     127            case 'fab':
    110128            case 'nucleo':
    111                 $output = "<i class='mb-icon " . $icon_type . " " . $icon . "' title='" . $network_name . "'  > </i>";
     129                $output = "<span class='mb-icon'><i class='" . $icon_type . " " . $icon . "' title='" . $network_name . "'  > </i></span>";
    112130            break;
    113131            case 'svg':
    114132            case 'png':
    115                 $output = "<img class='mb-icon " . $icon_type . "' src='" . $icon . "' alt='" . $network_name . "'>";
     133                $output = "<span class='mb-icon " . $icon_type . "'><img  src='" . $icon . "' alt='" . $network_name . "'></span>";
    116134            break;
    117135
     
    188206                        $img = $this->getImage(null, true);
    189207                    }
    190                     else // are there any other cases? Page / Archive should give back their main url like this.
     208                    elseif (is_category() )
     209                    {
     210                        $obj = get_queried_object();
     211                        $category_id = $obj->cat_ID;
     212                        $url = get_category_link($category_id);
     213                        $title = $obj->category_nicename;
     214
     215                    }
     216                    else // are there any other cases? Page should give back their main url like this.
    191217                    {
    192218                        $url = get_permalink();
  • share-button/tags/1.1/classes/class-collection.php

    r1827649 r1834179  
    223223        $this->display_mode = $display;
    224224
    225         if (! is_admin() )
     225
     226        if (! is_admin() && is_singular() )
    226227        {
    227228            global $post;
     
    607608            return;
    608609
     610        MB()->load_library('fontawesome');  // always load lib since change is about 100% this includes FA.
     611
    609612        maxUtils::startTime('collection-display-' . self::$count);
    610613
  • share-button/tags/1.1/classes/class-social.php

    r1827649 r1834179  
    175175        $submenu_function = array($this, 'load_admin_page');
    176176
    177         add_menu_page($page_title, $menu_title, $admin_capability, $menu_slug, $function, $icon_url, 81);
     177        add_menu_page($page_title, $menu_title, $admin_capability, $menu_slug, $function, $icon_url, 82);
    178178
    179179    }
  • share-button/tags/1.1/classes/network/simple.php

    r1827649 r1834179  
    5353{
    5454    protected $network = 'facebook';
     55
    5556    protected $icon = 'fa-facebook';
    5657    protected $color = '#3b5998';
     
    8485        $this->share_url = 'https://www.linkedin.com/shareArticle?mini=true&url={url}';
    8586        $this->profile_url = 'https://www.linkedin.com/in/{profile}';
    86         // Linkedin counts where killed 
     87        // Linkedin counts where killed
    8788        //$this->count_api = 'https://www.linkedin.com/countserv/count/share?url={url}&format=json';
    8889        //$this->countable = true;
  • share-button/tags/1.1/css/admin.css

    r1827649 r1834179  
    4141    border-bottom: 2px solid #008e00;
    4242    border-top: 2px solid #114989;*/ }
    43     #maxbuttons.maxbuttons-social .options.networks .item.facebook i {
     43    #maxbuttons.maxbuttons-social .options.networks .item.facebook .mb-icon {
    4444      background-color: #3b5998; }
    45       #maxbuttons.maxbuttons-social .options.networks .item.facebook i:hover {
     45      #maxbuttons.maxbuttons-social .options.networks .item.facebook .mb-icon:hover {
    4646        background-color: #2d4373; }
    47     #maxbuttons.maxbuttons-social .options.networks .item.twitter i {
     47    #maxbuttons.maxbuttons-social .options.networks .item.twitter .mb-icon {
    4848      background-color: #00aced; }
    49       #maxbuttons.maxbuttons-social .options.networks .item.twitter i:hover {
     49      #maxbuttons.maxbuttons-social .options.networks .item.twitter .mb-icon:hover {
    5050        background-color: #0087ba; }
    51     #maxbuttons.maxbuttons-social .options.networks .item.googleplus i {
     51    #maxbuttons.maxbuttons-social .options.networks .item.googleplus .mb-icon {
    5252      background-color: #dd4b39; }
    53       #maxbuttons.maxbuttons-social .options.networks .item.googleplus i:hover {
     53      #maxbuttons.maxbuttons-social .options.networks .item.googleplus .mb-icon:hover {
    5454        background-color: #c23321; }
    55     #maxbuttons.maxbuttons-social .options.networks .item.linkedin i {
     55    #maxbuttons.maxbuttons-social .options.networks .item.linkedin .mb-icon {
    5656      background-color: #007bb6; }
    57       #maxbuttons.maxbuttons-social .options.networks .item.linkedin i:hover {
     57      #maxbuttons.maxbuttons-social .options.networks .item.linkedin .mb-icon:hover {
    5858        background-color: #005983; }
    59     #maxbuttons.maxbuttons-social .options.networks .item.youtube i {
     59    #maxbuttons.maxbuttons-social .options.networks .item.youtube .mb-icon {
    6060      background-color: #bb0000; }
    61       #maxbuttons.maxbuttons-social .options.networks .item.youtube i:hover {
     61      #maxbuttons.maxbuttons-social .options.networks .item.youtube .mb-icon:hover {
    6262        background-color: #880000; }
    63     #maxbuttons.maxbuttons-social .options.networks .item.instagram i {
     63    #maxbuttons.maxbuttons-social .options.networks .item.instagram .mb-icon {
    6464      background-color: #517fa4; }
    65       #maxbuttons.maxbuttons-social .options.networks .item.instagram i:hover {
     65      #maxbuttons.maxbuttons-social .options.networks .item.instagram .mb-icon:hover {
    6666        background-color: #406582; }
    67     #maxbuttons.maxbuttons-social .options.networks .item.flickr i {
     67    #maxbuttons.maxbuttons-social .options.networks .item.flickr .mb-icon {
    6868      background-color: #ff0084; }
    69       #maxbuttons.maxbuttons-social .options.networks .item.flickr i:hover {
     69      #maxbuttons.maxbuttons-social .options.networks .item.flickr .mb-icon:hover {
    7070        background-color: #cc006a; }
    71     #maxbuttons.maxbuttons-social .options.networks .item.thumblr i {
     71    #maxbuttons.maxbuttons-social .options.networks .item.thumblr .mb-icon {
    7272      background-color: #32506d; }
    73       #maxbuttons.maxbuttons-social .options.networks .item.thumblr i:hover {
     73      #maxbuttons.maxbuttons-social .options.networks .item.thumblr .mb-icon:hover {
    7474        background-color: #22364a; }
    75     #maxbuttons.maxbuttons-social .options.networks .item.pinterest i {
     75    #maxbuttons.maxbuttons-social .options.networks .item.pinterest .mb-icon {
    7676      background-color: #cb2027; }
    77       #maxbuttons.maxbuttons-social .options.networks .item.pinterest i:hover {
     77      #maxbuttons.maxbuttons-social .options.networks .item.pinterest .mb-icon:hover {
    7878        background-color: #9f191f; }
    79     #maxbuttons.maxbuttons-social .options.networks .item.email i, #maxbuttons.maxbuttons-social .options.networks .item.print i {
     79    #maxbuttons.maxbuttons-social .options.networks .item.email .mb-icon, #maxbuttons.maxbuttons-social .options.networks .item.print .mb-icon {
    8080      background-color: #5e5e5e; }
    81       #maxbuttons.maxbuttons-social .options.networks .item.email i:hover, #maxbuttons.maxbuttons-social .options.networks .item.print i:hover {
     81      #maxbuttons.maxbuttons-social .options.networks .item.email .mb-icon:hover, #maxbuttons.maxbuttons-social .options.networks .item.print .mb-icon:hover {
    8282        background-color: #454545; }
    83     #maxbuttons.maxbuttons-social .options.networks .item.vkontakte i {
     83    #maxbuttons.maxbuttons-social .options.networks .item.vkontakte .mb-icon {
    8484      background-color: #4c75a3; }
    85       #maxbuttons.maxbuttons-social .options.networks .item.vkontakte i:hover {
     85      #maxbuttons.maxbuttons-social .options.networks .item.vkontakte .mb-icon:hover {
    8686        background-color: #3c5c80; }
    87     #maxbuttons.maxbuttons-social .options.networks .item.digg i {
     87    #maxbuttons.maxbuttons-social .options.networks .item.digg .mb-icon {
    8888      background-color: #000; }
    89       #maxbuttons.maxbuttons-social .options.networks .item.digg i:hover {
     89      #maxbuttons.maxbuttons-social .options.networks .item.digg .mb-icon:hover {
    9090        background-color: black; }
    91     #maxbuttons.maxbuttons-social .options.networks .item.blogloving i {
     91    #maxbuttons.maxbuttons-social .options.networks .item.blogloving .mb-icon {
    9292      background-color: #000; }
    93       #maxbuttons.maxbuttons-social .options.networks .item.blogloving i:hover {
     93      #maxbuttons.maxbuttons-social .options.networks .item.blogloving .mb-icon:hover {
    9494        background-color: black; }
    95     #maxbuttons.maxbuttons-social .options.networks .item.stumbleupon i {
     95    #maxbuttons.maxbuttons-social .options.networks .item.stumbleupon .mb-icon {
    9696      background-color: #eb4924; }
    97       #maxbuttons.maxbuttons-social .options.networks .item.stumbleupon i:hover {
     97      #maxbuttons.maxbuttons-social .options.networks .item.stumbleupon .mb-icon:hover {
    9898        background-color: #ca3412; }
    99     #maxbuttons.maxbuttons-social .options.networks .item.reddit i {
     99    #maxbuttons.maxbuttons-social .options.networks .item.reddit .mb-icon {
    100100      background-color: #ff4500; }
    101       #maxbuttons.maxbuttons-social .options.networks .item.reddit i:hover {
     101      #maxbuttons.maxbuttons-social .options.networks .item.reddit .mb-icon:hover {
    102102        background-color: #cc3700; }
    103     #maxbuttons.maxbuttons-social .options.networks .item.whatsapp i {
     103    #maxbuttons.maxbuttons-social .options.networks .item.whatsapp .mb-icon {
    104104      background-color: #4dc247; }
    105       #maxbuttons.maxbuttons-social .options.networks .item.whatsapp i:hover {
     105      #maxbuttons.maxbuttons-social .options.networks .item.whatsapp .mb-icon:hover {
    106106        background-color: #3ba135; }
    107     #maxbuttons.maxbuttons-social .options.networks .item.buffer i {
     107    #maxbuttons.maxbuttons-social .options.networks .item.buffer .mb-icon {
    108108      background-color: #242424; }
    109       #maxbuttons.maxbuttons-social .options.networks .item.buffer i:hover {
     109      #maxbuttons.maxbuttons-social .options.networks .item.buffer .mb-icon:hover {
    110110        background-color: #0b0b0b; }
    111     #maxbuttons.maxbuttons-social .options.networks .item.rss i {
     111    #maxbuttons.maxbuttons-social .options.networks .item.rss .mb-icon {
    112112      background-color: #F99000; }
    113       #maxbuttons.maxbuttons-social .options.networks .item.rss i:hover {
     113      #maxbuttons.maxbuttons-social .options.networks .item.rss .mb-icon:hover {
    114114        background-color: #c67300; }
    115     #maxbuttons.maxbuttons-social .options.networks .item.snapchat i {
     115    #maxbuttons.maxbuttons-social .options.networks .item.snapchat .mb-icon {
    116116      background-color: #fffc00; }
    117       #maxbuttons.maxbuttons-social .options.networks .item.snapchat i:hover {
     117      #maxbuttons.maxbuttons-social .options.networks .item.snapchat .mb-icon:hover {
    118118        background-color: #ccca00; }
    119     #maxbuttons.maxbuttons-social .options.networks .item.vimeo i {
     119    #maxbuttons.maxbuttons-social .options.networks .item.vimeo .mb-icon {
    120120      background-color: #1ab7ea; }
    121       #maxbuttons.maxbuttons-social .options.networks .item.vimeo i:hover {
     121      #maxbuttons.maxbuttons-social .options.networks .item.vimeo .mb-icon:hover {
    122122        background-color: #1295bf; }
    123123    #maxbuttons.maxbuttons-social .options.networks .item .legend-circle {
     
    155155        max-height: 100%;
    156156        padding: 0; }
     157    #maxbuttons.maxbuttons-social .options.networks .item svg {
     158      position: relative;
     159      width: 100%; }
    157160    #maxbuttons.maxbuttons-social .options.networks .item .config_button {
    158161      display: inline-block;
  • share-button/tags/1.1/css/buttons.css

    r1773299 r1834179  
    7171  .social-colors.buffer a:hover {
    7272    background-color: #0b0b0b; }
     73.social-colors.rss a {
     74  background-color: #F99000; }
     75  .social-colors.rss a:hover {
     76    background-color: #c67300; }
     77.social-colors.snapchat a {
     78  background-color: #fffc00; }
     79  .social-colors.snapchat a:hover {
     80    background-color: #ccca00; }
     81.social-colors.vimeo a {
     82  background-color: #1ab7ea; }
     83  .social-colors.vimeo a:hover {
     84    background-color: #1295bf; }
    7385
    7486/* Default Sharing Setup */
     
    101113  .maxcollection.vertical {
    102114    width: auto; }
    103 
    104 /*# sourceMappingURL=buttons.css.map */
  • share-button/tags/1.1/js/maxbuttons-social.js

    r1827649 r1834179  
    4040        $(document).on('click', '.style_modal a', function (e) { e.preventDefault(); $(e.target).parents('label').click(); return false; });
    4141
    42         $(window).on('beforeunload', $.proxy(function () { if (this.form_updated) return maxcol_wp.leave_page; }, this));
     42        $(window).on('beforeunload', $.proxy(function () { if (this.form_updated) return maxajax.leave_page; }, this));
    4343
    4444        $('#maxbuttons.maxbuttons-social').on('change', 'input,select', $.proxy( function (e, param)
     
    210210        var selection = $(parent).find('input:checked').val();
    211211
    212         if (options == '[]') // defaults
     212        /*if (options == '[]') // defaults
    213213        {
    214214                    if (selection == 'static')
     
    227227
    228228                    options = JSON.stringify(options);
    229         }
     229        } */
    230230
    231231        // checked radio button
     
    270270                            case 'radio':
    271271                                $(field).children('[value="' + value + '"]').prop('checked',true);
     272
    272273                                $(field).each( function () {
    273274                                        if ( $(this).val() == value)
     
    518519            var index = $(this.mbCustomTarget).find('input[name="mbcustom_index[]"]').val();
    519520
    520 console.log('index' + index);
    521 
    522521            if ( $(options).length > 0)
    523522            {
     
    559558            var option = $(options).find('select[name="mbcustom_network[' + index + ']"]').val();
    560559            $(clone).find('select[name="mbcustom_network[' + index + ']"]').val(option);
    561             console.log('clone existing settings');
    562560        }
    563561        else
    564562        {
    565                 console.log('grabbing next settings');
     563
    566564                var nextdex = 0;
    567565                $('input[name="mbcustom_index[]"]').each(function()
     
    574572                var clone = $('.mbcustom-helper .mbcustom-options').clone();
    575573
    576 console.log('next index ' + nextdex);
    577574             // put next index at clone
    578575             $(clone).find('input, select, label').each(function() {
    579                     //console.log( $(this).attr('name').replace(/-1/i, nextdex)  );
    580576
    581577                    if (typeof $(this).attr('name') !== 'undefined')
  • share-button/tags/1.1/readme.txt

    r1829205 r1834179  
    22Contributors: maxfoundry, basszje
    33Tags: wordpress share buttons, wordpress social share, social icons, facebook, twitter, instagram
    4 Requires at least: 4.0
     4Requires at least: 4.8
    55Tested up to: 4.9.4
    66Requires PHP: 5.3
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPL V2
    99
     
    5656== Changelog ==
    5757
     58= 1.1 =
     59
     60* Preparation for seamlessly moving to FA5
     61* Fixed menu removal problem on older WP versions
     62* Fixed issue with category / terms not sharing URL
     63* Fixed issue with defaults on display options
     64
    5865= 1.0 =
    5966
  • share-button/tags/1.1/scss/_networks.scss

    r1827649 r1834179  
    4444
    4545    .item {
    46         @include socialcolors('i');
     46    //  @include socialcolors('svg');
     47        @include socialcolors('.mb-icon'); // transfer period
     48
    4749        display: inline-block;
    4850        vertical-align: bottom;
     
    112114                    padding: 0;
    113115            }
     116        }
     117
     118        svg {
     119         position: relative;
     120         width: 100%;
    114121        }
    115122
  • share-button/tags/1.1/share-button.php

    r1827649 r1834179  
    44Plugin URI: http://maxbuttons.com/share-button
    55Description: Wordpress Share Buttons lets you easily setup Social Share Buttons on your site
    6 Version: 1.0
     6Version: 1.1
    77Author: Max Foundry
    88Author URI: http://maxfoundry.com
     
    1616
    1717define("MBSOCIAL_ROOT_FILE", __FILE__);
    18 define('MBSOCIAL_VERSION_NUM', '1.0');
    19 define('MBSOCIAL_RELEASE',"24 feb 2018");
     18define('MBSOCIAL_VERSION_NUM', '1.1');
     19define('MBSOCIAL_RELEASE',"7 Mar 2018");
    2020define('MBSOCIAL_REQUIRED_MB', '6.28');
    2121
  • share-button/trunk/classes/blocks/count_block.php

    r1827649 r1834179  
    110110        if ($total < $min_count)
    111111        {
    112             return $collectionObj; 
     112            return $collectionObj;
    113113        }
    114114
     
    263263        $min_count->label = __('Minimum count to show shares','mbsocial');
    264264
    265         $admin->addField( $min_count, 'start', 'end');
     265        $admin->addField( $min_count, 'start', 'end', false);
    266266
    267267        // *** COUNT SIZE *** //
  • share-button/trunk/classes/blocks/display_block.php

    r1827649 r1834179  
    582582    }
    583583
    584  protected function getDisplayRules()
     584 /*protected function getDisplayRules()
    585585 {
    586586     $data = $this->data;
     
    588588
    589589     return array();
    590 
    591 
    592  }
     590 } */
    593591
    594592    protected function addRule($args)
  • share-button/trunk/classes/blocks/network-block.php

    r1827649 r1834179  
    99use \MaxButtons\maxField as maxField;
    1010use \MaxButtons\maxBlocks as maxBlocks;
     11use \MaxButtons\maxInstall as maxInstall;
    1112
    1213class networkBlock extends block
     
    103104        $icon_type = $network->get('icon_type');
    104105
     106        /*$fa5_present = method_exists('maxInstall', 'searchNewFa');
     107        var_dump($fa5_present);
     108        var_dump($icon_type);
     109        $fa5_present = true;
     110        if ($icon_type == 'fa' && $fa5_present)
     111        {
     112                $conversion_path = MB()->get_plugin_path() . '/assets/libraries/font-awesome-5/shims.json';
     113                $conversion_array = json_decode(file_get_contents($conversion_path), ARRAY_A);
     114
     115                $icon = str_replace('fa-', '', $icon);
     116                $icon_type = '';
     117
     118                $icon = maxInstall::searchNewFA($icon, $conversion_array);
     119                var_dump($icon);
     120        } */
     121
    105122        $network_name = $network->get_nice_name();
    106123
     
    108125        {
    109126            case 'fa':
     127            case 'fab':
    110128            case 'nucleo':
    111                 $output = "<i class='mb-icon " . $icon_type . " " . $icon . "' title='" . $network_name . "'  > </i>";
     129                $output = "<span class='mb-icon'><i class='" . $icon_type . " " . $icon . "' title='" . $network_name . "'  > </i></span>";
    112130            break;
    113131            case 'svg':
    114132            case 'png':
    115                 $output = "<img class='mb-icon " . $icon_type . "' src='" . $icon . "' alt='" . $network_name . "'>";
     133                $output = "<span class='mb-icon " . $icon_type . "'><img  src='" . $icon . "' alt='" . $network_name . "'></span>";
    116134            break;
    117135
     
    188206                        $img = $this->getImage(null, true);
    189207                    }
    190                     else // are there any other cases? Page / Archive should give back their main url like this.
     208                    elseif (is_category() )
     209                    {
     210                        $obj = get_queried_object();
     211                        $category_id = $obj->cat_ID;
     212                        $url = get_category_link($category_id);
     213                        $title = $obj->category_nicename;
     214
     215                    }
     216                    else // are there any other cases? Page should give back their main url like this.
    191217                    {
    192218                        $url = get_permalink();
  • share-button/trunk/classes/class-collection.php

    r1827649 r1834179  
    223223        $this->display_mode = $display;
    224224
    225         if (! is_admin() )
     225
     226        if (! is_admin() && is_singular() )
    226227        {
    227228            global $post;
     
    607608            return;
    608609
     610        MB()->load_library('fontawesome');  // always load lib since change is about 100% this includes FA.
     611
    609612        maxUtils::startTime('collection-display-' . self::$count);
    610613
  • share-button/trunk/classes/class-social.php

    r1827649 r1834179  
    175175        $submenu_function = array($this, 'load_admin_page');
    176176
    177         add_menu_page($page_title, $menu_title, $admin_capability, $menu_slug, $function, $icon_url, 81);
     177        add_menu_page($page_title, $menu_title, $admin_capability, $menu_slug, $function, $icon_url, 82);
    178178
    179179    }
  • share-button/trunk/classes/network/simple.php

    r1827649 r1834179  
    5353{
    5454    protected $network = 'facebook';
     55
    5556    protected $icon = 'fa-facebook';
    5657    protected $color = '#3b5998';
     
    8485        $this->share_url = 'https://www.linkedin.com/shareArticle?mini=true&url={url}';
    8586        $this->profile_url = 'https://www.linkedin.com/in/{profile}';
    86         // Linkedin counts where killed 
     87        // Linkedin counts where killed
    8788        //$this->count_api = 'https://www.linkedin.com/countserv/count/share?url={url}&format=json';
    8889        //$this->countable = true;
  • share-button/trunk/css/admin.css

    r1827649 r1834179  
    4141    border-bottom: 2px solid #008e00;
    4242    border-top: 2px solid #114989;*/ }
    43     #maxbuttons.maxbuttons-social .options.networks .item.facebook i {
     43    #maxbuttons.maxbuttons-social .options.networks .item.facebook .mb-icon {
    4444      background-color: #3b5998; }
    45       #maxbuttons.maxbuttons-social .options.networks .item.facebook i:hover {
     45      #maxbuttons.maxbuttons-social .options.networks .item.facebook .mb-icon:hover {
    4646        background-color: #2d4373; }
    47     #maxbuttons.maxbuttons-social .options.networks .item.twitter i {
     47    #maxbuttons.maxbuttons-social .options.networks .item.twitter .mb-icon {
    4848      background-color: #00aced; }
    49       #maxbuttons.maxbuttons-social .options.networks .item.twitter i:hover {
     49      #maxbuttons.maxbuttons-social .options.networks .item.twitter .mb-icon:hover {
    5050        background-color: #0087ba; }
    51     #maxbuttons.maxbuttons-social .options.networks .item.googleplus i {
     51    #maxbuttons.maxbuttons-social .options.networks .item.googleplus .mb-icon {
    5252      background-color: #dd4b39; }
    53       #maxbuttons.maxbuttons-social .options.networks .item.googleplus i:hover {
     53      #maxbuttons.maxbuttons-social .options.networks .item.googleplus .mb-icon:hover {
    5454        background-color: #c23321; }
    55     #maxbuttons.maxbuttons-social .options.networks .item.linkedin i {
     55    #maxbuttons.maxbuttons-social .options.networks .item.linkedin .mb-icon {
    5656      background-color: #007bb6; }
    57       #maxbuttons.maxbuttons-social .options.networks .item.linkedin i:hover {
     57      #maxbuttons.maxbuttons-social .options.networks .item.linkedin .mb-icon:hover {
    5858        background-color: #005983; }
    59     #maxbuttons.maxbuttons-social .options.networks .item.youtube i {
     59    #maxbuttons.maxbuttons-social .options.networks .item.youtube .mb-icon {
    6060      background-color: #bb0000; }
    61       #maxbuttons.maxbuttons-social .options.networks .item.youtube i:hover {
     61      #maxbuttons.maxbuttons-social .options.networks .item.youtube .mb-icon:hover {
    6262        background-color: #880000; }
    63     #maxbuttons.maxbuttons-social .options.networks .item.instagram i {
     63    #maxbuttons.maxbuttons-social .options.networks .item.instagram .mb-icon {
    6464      background-color: #517fa4; }
    65       #maxbuttons.maxbuttons-social .options.networks .item.instagram i:hover {
     65      #maxbuttons.maxbuttons-social .options.networks .item.instagram .mb-icon:hover {
    6666        background-color: #406582; }
    67     #maxbuttons.maxbuttons-social .options.networks .item.flickr i {
     67    #maxbuttons.maxbuttons-social .options.networks .item.flickr .mb-icon {
    6868      background-color: #ff0084; }
    69       #maxbuttons.maxbuttons-social .options.networks .item.flickr i:hover {
     69      #maxbuttons.maxbuttons-social .options.networks .item.flickr .mb-icon:hover {
    7070        background-color: #cc006a; }
    71     #maxbuttons.maxbuttons-social .options.networks .item.thumblr i {
     71    #maxbuttons.maxbuttons-social .options.networks .item.thumblr .mb-icon {
    7272      background-color: #32506d; }
    73       #maxbuttons.maxbuttons-social .options.networks .item.thumblr i:hover {
     73      #maxbuttons.maxbuttons-social .options.networks .item.thumblr .mb-icon:hover {
    7474        background-color: #22364a; }
    75     #maxbuttons.maxbuttons-social .options.networks .item.pinterest i {
     75    #maxbuttons.maxbuttons-social .options.networks .item.pinterest .mb-icon {
    7676      background-color: #cb2027; }
    77       #maxbuttons.maxbuttons-social .options.networks .item.pinterest i:hover {
     77      #maxbuttons.maxbuttons-social .options.networks .item.pinterest .mb-icon:hover {
    7878        background-color: #9f191f; }
    79     #maxbuttons.maxbuttons-social .options.networks .item.email i, #maxbuttons.maxbuttons-social .options.networks .item.print i {
     79    #maxbuttons.maxbuttons-social .options.networks .item.email .mb-icon, #maxbuttons.maxbuttons-social .options.networks .item.print .mb-icon {
    8080      background-color: #5e5e5e; }
    81       #maxbuttons.maxbuttons-social .options.networks .item.email i:hover, #maxbuttons.maxbuttons-social .options.networks .item.print i:hover {
     81      #maxbuttons.maxbuttons-social .options.networks .item.email .mb-icon:hover, #maxbuttons.maxbuttons-social .options.networks .item.print .mb-icon:hover {
    8282        background-color: #454545; }
    83     #maxbuttons.maxbuttons-social .options.networks .item.vkontakte i {
     83    #maxbuttons.maxbuttons-social .options.networks .item.vkontakte .mb-icon {
    8484      background-color: #4c75a3; }
    85       #maxbuttons.maxbuttons-social .options.networks .item.vkontakte i:hover {
     85      #maxbuttons.maxbuttons-social .options.networks .item.vkontakte .mb-icon:hover {
    8686        background-color: #3c5c80; }
    87     #maxbuttons.maxbuttons-social .options.networks .item.digg i {
     87    #maxbuttons.maxbuttons-social .options.networks .item.digg .mb-icon {
    8888      background-color: #000; }
    89       #maxbuttons.maxbuttons-social .options.networks .item.digg i:hover {
     89      #maxbuttons.maxbuttons-social .options.networks .item.digg .mb-icon:hover {
    9090        background-color: black; }
    91     #maxbuttons.maxbuttons-social .options.networks .item.blogloving i {
     91    #maxbuttons.maxbuttons-social .options.networks .item.blogloving .mb-icon {
    9292      background-color: #000; }
    93       #maxbuttons.maxbuttons-social .options.networks .item.blogloving i:hover {
     93      #maxbuttons.maxbuttons-social .options.networks .item.blogloving .mb-icon:hover {
    9494        background-color: black; }
    95     #maxbuttons.maxbuttons-social .options.networks .item.stumbleupon i {
     95    #maxbuttons.maxbuttons-social .options.networks .item.stumbleupon .mb-icon {
    9696      background-color: #eb4924; }
    97       #maxbuttons.maxbuttons-social .options.networks .item.stumbleupon i:hover {
     97      #maxbuttons.maxbuttons-social .options.networks .item.stumbleupon .mb-icon:hover {
    9898        background-color: #ca3412; }
    99     #maxbuttons.maxbuttons-social .options.networks .item.reddit i {
     99    #maxbuttons.maxbuttons-social .options.networks .item.reddit .mb-icon {
    100100      background-color: #ff4500; }
    101       #maxbuttons.maxbuttons-social .options.networks .item.reddit i:hover {
     101      #maxbuttons.maxbuttons-social .options.networks .item.reddit .mb-icon:hover {
    102102        background-color: #cc3700; }
    103     #maxbuttons.maxbuttons-social .options.networks .item.whatsapp i {
     103    #maxbuttons.maxbuttons-social .options.networks .item.whatsapp .mb-icon {
    104104      background-color: #4dc247; }
    105       #maxbuttons.maxbuttons-social .options.networks .item.whatsapp i:hover {
     105      #maxbuttons.maxbuttons-social .options.networks .item.whatsapp .mb-icon:hover {
    106106        background-color: #3ba135; }
    107     #maxbuttons.maxbuttons-social .options.networks .item.buffer i {
     107    #maxbuttons.maxbuttons-social .options.networks .item.buffer .mb-icon {
    108108      background-color: #242424; }
    109       #maxbuttons.maxbuttons-social .options.networks .item.buffer i:hover {
     109      #maxbuttons.maxbuttons-social .options.networks .item.buffer .mb-icon:hover {
    110110        background-color: #0b0b0b; }
    111     #maxbuttons.maxbuttons-social .options.networks .item.rss i {
     111    #maxbuttons.maxbuttons-social .options.networks .item.rss .mb-icon {
    112112      background-color: #F99000; }
    113       #maxbuttons.maxbuttons-social .options.networks .item.rss i:hover {
     113      #maxbuttons.maxbuttons-social .options.networks .item.rss .mb-icon:hover {
    114114        background-color: #c67300; }
    115     #maxbuttons.maxbuttons-social .options.networks .item.snapchat i {
     115    #maxbuttons.maxbuttons-social .options.networks .item.snapchat .mb-icon {
    116116      background-color: #fffc00; }
    117       #maxbuttons.maxbuttons-social .options.networks .item.snapchat i:hover {
     117      #maxbuttons.maxbuttons-social .options.networks .item.snapchat .mb-icon:hover {
    118118        background-color: #ccca00; }
    119     #maxbuttons.maxbuttons-social .options.networks .item.vimeo i {
     119    #maxbuttons.maxbuttons-social .options.networks .item.vimeo .mb-icon {
    120120      background-color: #1ab7ea; }
    121       #maxbuttons.maxbuttons-social .options.networks .item.vimeo i:hover {
     121      #maxbuttons.maxbuttons-social .options.networks .item.vimeo .mb-icon:hover {
    122122        background-color: #1295bf; }
    123123    #maxbuttons.maxbuttons-social .options.networks .item .legend-circle {
     
    155155        max-height: 100%;
    156156        padding: 0; }
     157    #maxbuttons.maxbuttons-social .options.networks .item svg {
     158      position: relative;
     159      width: 100%; }
    157160    #maxbuttons.maxbuttons-social .options.networks .item .config_button {
    158161      display: inline-block;
  • share-button/trunk/css/buttons.css

    r1773299 r1834179  
    7171  .social-colors.buffer a:hover {
    7272    background-color: #0b0b0b; }
     73.social-colors.rss a {
     74  background-color: #F99000; }
     75  .social-colors.rss a:hover {
     76    background-color: #c67300; }
     77.social-colors.snapchat a {
     78  background-color: #fffc00; }
     79  .social-colors.snapchat a:hover {
     80    background-color: #ccca00; }
     81.social-colors.vimeo a {
     82  background-color: #1ab7ea; }
     83  .social-colors.vimeo a:hover {
     84    background-color: #1295bf; }
    7385
    7486/* Default Sharing Setup */
     
    101113  .maxcollection.vertical {
    102114    width: auto; }
    103 
    104 /*# sourceMappingURL=buttons.css.map */
  • share-button/trunk/js/maxbuttons-social.js

    r1827649 r1834179  
    4040        $(document).on('click', '.style_modal a', function (e) { e.preventDefault(); $(e.target).parents('label').click(); return false; });
    4141
    42         $(window).on('beforeunload', $.proxy(function () { if (this.form_updated) return maxcol_wp.leave_page; }, this));
     42        $(window).on('beforeunload', $.proxy(function () { if (this.form_updated) return maxajax.leave_page; }, this));
    4343
    4444        $('#maxbuttons.maxbuttons-social').on('change', 'input,select', $.proxy( function (e, param)
     
    210210        var selection = $(parent).find('input:checked').val();
    211211
    212         if (options == '[]') // defaults
     212        /*if (options == '[]') // defaults
    213213        {
    214214                    if (selection == 'static')
     
    227227
    228228                    options = JSON.stringify(options);
    229         }
     229        } */
    230230
    231231        // checked radio button
     
    270270                            case 'radio':
    271271                                $(field).children('[value="' + value + '"]').prop('checked',true);
     272
    272273                                $(field).each( function () {
    273274                                        if ( $(this).val() == value)
     
    518519            var index = $(this.mbCustomTarget).find('input[name="mbcustom_index[]"]').val();
    519520
    520 console.log('index' + index);
    521 
    522521            if ( $(options).length > 0)
    523522            {
     
    559558            var option = $(options).find('select[name="mbcustom_network[' + index + ']"]').val();
    560559            $(clone).find('select[name="mbcustom_network[' + index + ']"]').val(option);
    561             console.log('clone existing settings');
    562560        }
    563561        else
    564562        {
    565                 console.log('grabbing next settings');
     563
    566564                var nextdex = 0;
    567565                $('input[name="mbcustom_index[]"]').each(function()
     
    574572                var clone = $('.mbcustom-helper .mbcustom-options').clone();
    575573
    576 console.log('next index ' + nextdex);
    577574             // put next index at clone
    578575             $(clone).find('input, select, label').each(function() {
    579                     //console.log( $(this).attr('name').replace(/-1/i, nextdex)  );
    580576
    581577                    if (typeof $(this).attr('name') !== 'undefined')
  • share-button/trunk/readme.txt

    r1829205 r1834179  
    22Contributors: maxfoundry, basszje
    33Tags: wordpress share buttons, wordpress social share, social icons, facebook, twitter, instagram
    4 Requires at least: 4.0
     4Requires at least: 4.8
    55Tested up to: 4.9.4
    66Requires PHP: 5.3
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPL V2
    99
     
    5656== Changelog ==
    5757
     58= 1.1 =
     59
     60* Preparation for seamlessly moving to FA5
     61* Fixed menu removal problem on older WP versions
     62* Fixed issue with category / terms not sharing URL
     63* Fixed issue with defaults on display options
     64
    5865= 1.0 =
    5966
  • share-button/trunk/scss/_networks.scss

    r1827649 r1834179  
    4444
    4545    .item {
    46         @include socialcolors('i');
     46    //  @include socialcolors('svg');
     47        @include socialcolors('.mb-icon'); // transfer period
     48
    4749        display: inline-block;
    4850        vertical-align: bottom;
     
    112114                    padding: 0;
    113115            }
     116        }
     117
     118        svg {
     119         position: relative;
     120         width: 100%;
    114121        }
    115122
  • share-button/trunk/share-button.php

    r1827649 r1834179  
    44Plugin URI: http://maxbuttons.com/share-button
    55Description: Wordpress Share Buttons lets you easily setup Social Share Buttons on your site
    6 Version: 1.0
     6Version: 1.1
    77Author: Max Foundry
    88Author URI: http://maxfoundry.com
     
    1616
    1717define("MBSOCIAL_ROOT_FILE", __FILE__);
    18 define('MBSOCIAL_VERSION_NUM', '1.0');
    19 define('MBSOCIAL_RELEASE',"24 feb 2018");
     18define('MBSOCIAL_VERSION_NUM', '1.1');
     19define('MBSOCIAL_RELEASE',"7 Mar 2018");
    2020define('MBSOCIAL_REQUIRED_MB', '6.28');
    2121
Note: See TracChangeset for help on using the changeset viewer.