Plugin Directory

Changeset 858142


Ignore:
Timestamp:
02/14/2014 11:35:23 PM (12 years ago)
Author:
shen045
Message:

Update to Version 1.0.10: Added RSS and fixed twitter encoding.

Location:
crafty-social-buttons/trunk
Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • crafty-social-buttons/trunk/README.txt

    r851078 r858142  
    9292== Changelog ==
    9393
     94= 1.0.10 =
     95* Added RSS link button option
     96* Fixed problem with special characters in titles appearing wrongly in the Twitter share
     97
    9498= 1.0.9 =
    9599* Added YouTube link button option
     
    124128== Upgrade Notice ==
    125129
     130= 1.0.10 =
     131* Added RSS link button option
     132* Fixed problem with special characters in titles appearing wrongly in the Twitter share
     133
    126134= 1.0.9 =
    127135* Added YouTube link button option
     
    152160These are the things currently in the pipeline:
    153161
    154 * Add support for YouTube (for crafters who post video tutorials)
    155162* Adding an option to choose image sizes for the icons
    156163* Changing the post count feature to request data only after the page is loaded so it doesn't slow things down so much.
  • crafty-social-buttons/trunk/crafty-social-buttons.php

    r851078 r858142  
    1616 * Plugin URI:  http://github.com/sarahhenderson/crafty-social-buttons
    1717 * Description: Adds social sharing buttons and links to your site, including Ravelry, Etsy, Craftsy and Pinterest
    18  * Version:     1.0.9
     18 * Version:     1.0.10
    1919 * Author:      Sarah Henderson
    2020 * Author URI:  http://sarahhenderson.info
  • crafty-social-buttons/trunk/css/admin.min.css

    r851078 r858142  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.0.9 (04-02-2014) */
     2 * Version 1.0.10 (15-02-2014) */
    33
    44.crafty-social-buttons .csb-include-list{border:1px solid #ddd;background:#f1f1f1;margin-right:.5em;vertical-align:top;padding:.4em}.crafty-social-buttons .include-heading{text-align:left;font-weight:700}.crafty-social-buttons .csb-include-list ul{border:1px solid #ddd;background:#fff;padding:.5em;margin:0;min-height:60px}.crafty-social-buttons .csb-include-list ul li{display:inline-block;padding:0;margin:.3em;text-align:center;font-size:1.2em;cursor:move}.crafty-social-buttons .csb-image-preview{margin-top:.5em}.crafty-social-buttons select{width:200px}.crafty-social-buttons input[type=text]{width:350px}.crafty-social-buttons span.description{font-style:normal}.crafty-social-buttons span.description strong{font-style:italic}
  • crafty-social-buttons/trunk/css/public.min.css

    r851078 r858142  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.0.9 (04-02-2014) */
     2 * Version 1.0.10 (15-02-2014) */
    33
    44.crafty-social-buttons{margin:.3em 0}.crafty-social-buttons .crafty-social-caption{display:inline-block;padding-right:1em;vertical-align:top;font-size:1.2em}.crafty-social-buttons .size48 img,.crafty-social-buttons img{max-width:48px;max-height:48px}.crafty-social-buttons .size16 img{max-width:16px;max-height:16px}.crafty-social-buttons .size32 img{max-width:32px;max-height:32px}.crafty-social-buttons .size64 img{max-width:64px;max-height:64px}.crafty-social-buttons ul{display:inline-block;list-style-type:none;margin:0;padding:0}.crafty-social-buttons ul li{display:inline-block;margin:0 .2em;padding:0}.crafty-social-buttons .crafty-social-share-count:after,.crafty-social-buttons .crafty-social-share-count:before{right:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.crafty-social-buttons .crafty-social-share-count:after{border-color:rgba(224,221,221,0);border-right-color:#f5f5f5;border-width:5px;top:50%;margin-top:-5px}.crafty-social-buttons .crafty-social-share-count:before{border-color:rgba(85,94,88,0);border-right-color:#e0dddd;border-width:6px;top:50%;margin-top:-6px}.crafty-social-buttons .crafty-social-share-count{font:11px Arial,Helvetica,sans-serif;color:#555e58;padding:5px;-khtml-border-radius:6px;-o-border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;position:relative;background:#f5f5f5;border:1px solid #e0dddd}
  • crafty-social-buttons/trunk/js/admin.min.js

    r851078 r858142  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.0.9 (04-02-2014) */
     2 * Version 1.0.10 (15-02-2014) */
    33jQuery(document).ready(function(a){a("#csbsort1, #csbsort2").sortable({connectWith:".connectedSortable",update:function(){var b=a("#csbsort2 li").map(function(){return a(this).attr("id")}).get();a(".csb-services").val(b)}}).disableSelection(),a(".csb-services").val(a("#csbsort2 li").map(function(){return a(this).attr("id")}).get()),a(".csb-image-set").change(function(){var b=a(this).val();a(".csb-image-preview").attr("data-base"),a.each(a(".csb-services img"),function(c,d){var e=a(d).attr("src"),f=a(d).attr("data-image-set"),g=e.replace(f,b);0,a(d).attr("src",g),a(d).attr("data-image-set",b)})})});
  • crafty-social-buttons/trunk/services/class-SH_Flickr.php

    r833032 r858142  
    1818   
    1919    public function shareButton($url, $title = '', $showCount = false) {
    20 
    21         $html = '<a class="' . $this->cssClass() . '" href="http://flickr.com/share?'
    22             . 'url=' . $url
    23             . ($this->newWindow ? 'target="_blank"' : '') . '>';
    24    
    25         $html .= $this->buttonImage();
    26    
    27         if ($showCount) {
    28             $html .= '<span class="crafty-social-share-count">' . $this->shareCount($url) . '</span>'; 
    29         }
    30    
    31         $html .= '</a>';
    32    
    33         return $html;
     20        return '';
    3421    }
    3522   
  • crafty-social-buttons/trunk/services/class-SH_Instagram.php

    r833032 r858142  
    1818   
    1919    public function shareButton($url, $title = '', $showCount = false) {
    20 
    21         $html = '<a class="' . $this->cssClass() . '" href="http://instagram.com/share?'
    22             . 'url=' . $url . '" '
    23             . ($this->newWindow ? 'target="_blank"' : '')
    24             . '>';
    25    
    26         $html .= $this->buttonImage();
    27    
    28         if ($showCount) {
    29             $html .= '<span class="crafty-social-share-count">' . $this->shareCount($url) . '</span>'; 
    30         }
    31    
    32         $html .= '</a>';
    33    
    34         return $html;
     20        return '';
    3521    }
    3622   
  • crafty-social-buttons/trunk/services/class-SH_Twitter.php

    r833032 r858142  
    2222        $html = '<a class="' . $this->cssClass() . '" href="http://twitter.com/share?'
    2323            . 'url=' . $url
    24             . '&text=' . urlencode(trim($this->text . ' ' . $title)) . '" '
     24            . '&text=' . htmlspecialchars(urlencode(html_entity_decode(trim($this->text . ' ' . $title), ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8')
     25            . '" '
    2526            . ($this->newWindow ? 'target="_blank"' : '') . '>';
    2627   
Note: See TracChangeset for help on using the changeset viewer.