Plugin Directory

Changeset 1011972


Ignore:
Timestamp:
10/22/2014 08:48:41 AM (11 years ago)
Author:
shen045
Message:

Update to version 1.3.8 - adding Specific Feeds, Vimeo and Ebay link buttons

Location:
crafty-social-buttons/trunk
Files:
34 added
33 edited

Legend:

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

    r1001035 r1011972  
    2525Supported social services include:
    2626
     27*  Craftsy (link only)
    2728*   Digg
    28 *  Craftsy (link only)
     29*   Ebay (link only)
    2930*   Email (share only)
    3031*   Etsy (link only)
     
    3738*   Ravelry
    3839*   Reddit
     40*   Specific Feeds (link only)
    3941*   Stumble Upon
    4042*   Tumblr
    4143*   Twitter
     44*  Vimeo
    4245*  YouTube
    4346
     
    7477*   [csblink] for the *Link buttons*
    7578*   [csbshare] for the *Share buttons*
    76 *   [csbpageshare] for the *Page Share buttons* (to go outside loop)
    7779
    7880If your theme doesn't have a widget area where you want the buttons to be placed, you can include them by editing your theme template.  Just include one of these links in your template to generate the buttons:
     
    9395
    9496== Changelog ==
     97
     98= 1.3.8 =
     99* Added link buttons for Ebay, Vimeo and SpecificFeeds
     100* Stopped email links opening a blank window
     101* Added titles to share and link buttons
    95102
    96103= 1.3.7 =
     
    192199== Upgrade Notice ==
    193200
     201= 1.3.8 =
     202* Add link buttons for Ebay, Vimeo and SpecificFeeds (allows visitors to subscribe by email)
     203
    194204= 1.3.7 =
    195205* Fixes Facebook share counts not appearing
     
    248258These are the things currently in the pipeline:
    249259
     260* Adding the ability to hide buttons on specific pages
    250261* Choosing which post types the share buttons are added to
    251 * Adding more services (ebay, Xing, Vimeo)
    252262* (Anything else?  You tell me!)
  • crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Admin.php

    r975000 r1011972  
    763763
    764764}
    765 
    766 ?>
  • crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Plugin.php

    r975854 r1011972  
    335335            'link_caption_position' => 'inline-block',
    336336            'link_alignment'        => 'left',
    337             'link_services'         => 'Facebook,Google,Twitter,Ravelry,Etsy',
     337            'link_services'         => 'Facebook,Google,Twitter,Ravelry,Etsy,SpecificFeeds',
    338338            'new_window'            => true,
    339339        );
     
    341341    }
    342342
    343    
    344343}
    345 ?>
  • crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Shortcode.php

    r975711 r1011972  
    170170        // use wordpress functions for page/post details
    171171
    172         if ($sharePageUrl) {
     172        if ($sharePageUrl || !$post) {
    173173            $postId = "page";
    174174            $url = home_url( $wp->request );
     
    294294
    295295
    296 } // end Plugin class
    297 ?>
     296}
  • crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Widget.php

    r975000 r1011972  
    4848
    4949        $buttonType = isset($instance['buttonType']) ? $instance['buttonType'] : 'csblink';
     50        $before_widget = isset($instance['$before_widget']) ? $instance['$before_widget'] : '';
     51        $after_widget = isset($instance['$after_widget']) ? $instance['$after_widget'] : '';
    5052
    51         echo $before_widget;       
     53        echo $before_widget;
    5254        $shortcode = "[$buttonType]";
    5355   
     
    6163     * Processes the widget's options to be saved.
    6264     *
    63      * @param   array   new_instance    The previous instance of values before the update.
    64      * @param   array   old_instance    The new instance of values to be generated via the update.
     65     * @param    array    new_instance    The previous instance of values before the update.
     66     * @param    array    old_instance    The new instance of values to be generated via the update.
     67     *
     68     * @return array
    6569     */
    6670    public function update( $new_instance, $old_instance ) {
     
    7680     * Generates the administration form for the widget.
    7781     *
    78      * @param   array   instance    The array of keys and values for the widget.
     82     * @param    array    instance    The array of keys and values for the widget.
     83     *
     84     * @return string|void
    7985     */
    8086    public function form( $instance ) {
     
    8288        extract($instance);
    8389
    84         $buttonType = isset($instance['buttonType']) ? $buttonType : 'csblink';         
     90        $buttonType = isset($instance['buttonType']) ? $instance['buttonType'] : 'csblink';
    8591
    8692        include( plugin_dir_path( __FILE__ ) . '/views/widget.php' );
     
    99105        return self::$instance;
    100106    }
    101 
    102 
    103 
    104 }   
    105 ?>
     107}
  • crafty-social-buttons/trunk/crafty-social-buttons.php

    r1001035 r1011972  
    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.3.7
     18 * Version:     1.3.8
    1919 * Author:      Sarah Henderson
    2020 * Author URI:  http://sarahhenderson.info
     
    3030}
    3131
    32 // include our four main classes
     32// include our three main classes
    3333require_once( plugin_dir_path( __FILE__ ) . 'class-SH-Crafty-Social-Buttons-Plugin.php' );
    3434require_once( plugin_dir_path( __FILE__ ) . 'class-SH-Crafty-Social-Buttons-Shortcode.php' );
  • crafty-social-buttons/trunk/css/admin.min.css

    r1001035 r1011972  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.3.7 (03-10-2014) */
     2 * Version 1.3.8 (22-10-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

    r1001035 r1011972  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.3.7 (03-10-2014) */
     2 * Version 1.3.8 (22-10-2014) */
    33
    44div.crafty-social-buttons{margin:.3em 0;clear:both}div.crafty-social-buttons-align-left{text-align:left}div.crafty-social-buttons-align-center{text-align:center}div.crafty-social-buttons-align-right{text-align:right}div.crafty-social-buttons .crafty-social-caption{display:inline-block;padding-right:1em;vertical-align:top;font-size:1.2em}div.crafty-social-buttons-caption-block .crafty-social-caption{display:block;padding-right:0}div.crafty-social-buttons ul{display:inline-block;list-style-type:none;margin:0;padding:0}div.crafty-social-buttons ul li{display:inline-block;margin:0 .2em;padding:0}div.crafty-social-buttons .crafty-social-share-count:after,div.crafty-social-buttons .crafty-social-share-count:before{right:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute}div.crafty-social-buttons .crafty-social-share-count:after{border-color:transparent #f5f5f5 transparent transparent;border-width:5px;top:50%;margin-top:-5px}div.crafty-social-buttons .crafty-social-share-count:before{border-color:transparent #e0dddd transparent transparent;border-width:6px;top:50%;margin-top:-6px}div.crafty-social-buttons .crafty-social-share-count{font:18px 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;display:inline-block;vertical-align:top;margin-left:2px;min-width:24px;text-align:center}div.crafty-social-buttons.crafty-social-buttons-size-2 .crafty-social-share-count{min-width:14px;font-size:12px}div.crafty-social-buttons.crafty-social-buttons-size-3 .crafty-social-share-count{min-width:16px;font-size:14px}div.crafty-social-buttons.crafty-social-buttons-size-4 .crafty-social-share-count{min-width:20px;font-size:16px}div.crafty-social-buttons.crafty-social-buttons-size-5 .crafty-social-share-count{min-width:24px;font-size:18px}div.crafty-social-buttons.crafty-social-buttons-size-6 .crafty-social-share-count{min-width:24px;font-size:20px}
  • crafty-social-buttons/trunk/help/about-me-tab.php

    r801913 r1011972  
    11<p><strong>About Me</strong></p>
    22
    3 <p>Made with love by <a href="http://sarahhenderson.info">Sarah Henderson</a>, a freelance web developer from New Zealand.</p>
    4 <p>I recently learned to crochet and thought of starting up a crochet related blog to show off my new creations.  I got a bit sidetracked making pretty icons and WordPress plugins and thought that others in the crafty community might want to use them too.</p>
    5 <p>I have also created a WordPress plugin that creates a 'Pattern' post type with all the sections you normally find in a pattern.  I hope to make that available also soon.</p>
     3<p>Made with love by <a href="http://sarahhenderson.info">Sarah Henderson</a>,
     4    a freelance web developer from New Zealand.</p>
     5<p>I recently learned to crochet and thought of starting up a crochet related blog to show
     6    off my new creations.  I got a bit sidetracked making pretty icons and WordPress plugins
     7    and thought that others in the crafty community might want to use them too.</p>
    68
    79<p>For more information about this plugin, please visit
    810<a href="http://sarahhenderson.github.io/Crafty-Social-Buttons">the plugin's website.</a>
    911
    10 <p>I really hope you find this plugin useful. Please don't hesitate to <a href="mailto:[email protected]">contact me</a> with any issues you have, or any requests for new features.  If you want to contribute towards it's further development, (or you just want to say thank you), you can <a href="http://sarahhenderson.info/buy-me-a-coffee">buy me a coffee</a>.   
     12<p>I really hope you find this plugin useful. Please don't hesitate to
     13    <a href="mailto:[email protected]">contact me</a> with any issues you have,
     14    or any requests for new features.  If you want to contribute towards its further
     15    development, (or you just want to say thank you), you can
     16    <a href="http://sarahhenderson.info/buy-me-a-coffee">buy me a coffee</a>.
  • crafty-social-buttons/trunk/help/action-hook-tab.php

    r952089 r1011972  
    55    <li><code>&lt;?php do_action('crafty_social_share_buttons'); ?&gt;</code></strong></li>
    66    <li><code>&lt;?php do_action('crafty_social_link_buttons'); ?&gt;</code></strong></li>
    7     <li><code>&lt;?php do_action('crafty-social-share-page-buttons'); ?&gt;</code></li>
     7    <li><code>&lt;?php do_action('crafty-social-share-page-buttons'); ?&gt;</code> (for use outside the loop)</li>
    88</ul>
    99
  • crafty-social-buttons/trunk/help/link-tab.php

    r819149 r1011972  
    1414
    1515<dt>User IDs</dt>
    16 <dd>For any service you choose, you should enter your username in the box.  This is so the link will go directly to your profile (e.g. your facebook page, your Etsy shop) and not just to the homepage of the site.</dd>
     16<dd>For any service you choose, you should enter your username in the box and the URL to your page will
     17    be automatically generated.  If you do not have a standard URL (e.g. you have a custom or store URL)
     18    just enter the full url (starting with http://) in the box.</dd>
    1719
    18 <dt>Craftsy Links</dt>
    19 <dd>There are three ways to link to your Craftsy profile.
    20 <ol>
    21     <li><strong>User profile</strong>. The link will be in this form: www.craftsy.com/user/<strong>user-id/</strong>. You should enter just your user ID (all numbers).</li>
    22     <li><strong>Pattern store</strong>.  The link will be in this form: www.craftsy.com/user/<strong>user-id/pattern-store</strong>.  You should enter <code>user-id/pattern-store</code> (e.g. 12345/pattern-store).  The user-id part will be all numbers. </li>
    23     <li><strong>Instructor profile</strong>.  The link will be in this form: www.craftsy.com/<strong>instructors/user-id</strong>/.  You should enter <code>/instructors/user-id</code>. The user-id will be a combination of letters and numbers</li>
    24 </ol>
     20<dt>Specific Feeds</dt>
     21<dd><a href="http://www.specificfeeds.com/rss">SpecificFeeds</a> is a free service which allows
     22    your visitors to subscribe to your blog by RSS or Email.
     23    No configuration is necessary - your visitors will be automatically linked to the Specific Feeds
     24    follow page (<a href="http://www.specificfeeds.com/follow">http://www.specificfeeds.com/follow</a>).
     25    You can also generate a unique subscription url for your
     26    blog <a href="http://www.specificfeeds.com/rss">here</a>.
    2527</dd>
    2628<p>Done forget to hit <em>Save changes</em> when you're done!</p>
  • crafty-social-buttons/trunk/js/admin.min.js

    r1001035 r1011972  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.3.7 (03-10-2014) */
     2 * Version 1.3.8 (22-10-2014) */
    33jQuery(document).ready(function(a){a("#csbsort1, #csbsort2").sortable({connectWith:".connectedSortable",update:function(){var b;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.each(a(".csb-services img"),function(c,d){var e=a(d).attr("data-url"),f=a(d).attr("data-alt-url"),g=a(d).attr("data-filename"),h=e+b+"/"+g,i=f+b+"/"+g;a(d).attr("src",h),a(d).attr("data-image-set",b),a.ajax(h,{method:"get",error:function(){a(d).attr("src",i)}})})}),a("#share_image_size").bind("input",function(){var b=a(this).val();a.each(a(".csb-services img"),function(c,d){a(d).attr("width",b),a(d).attr("height",b)})}),a("#link_image_size").bind("input",function(){var b=a(this).val();a.each(a(".csb-services img"),function(c,d){a(d).attr("width",b),a(d).attr("height",b)})})});
  • crafty-social-buttons/trunk/js/public.min.js

    r1001035 r1011972  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.3.7 (03-10-2014) */
     2 * Version 1.3.8 (22-10-2014) */
    33jQuery(document).ready(function(a){var b=[];for(var c in window)0===c.indexOf("crafty_social_buttons_data_")&&b.push(window[c]);for(var d=function(b,c,d,e){var f=d+"&service="+b+"&key="+e;"page"==e&&(f+="&url="+c);var g=b.toLowerCase();a.ajax(f,{cache:!1,type:"get",dataType:"json",contentType:"application/json",success:function(b){b&&b.count&&($count=a(".crafty-social-share-count-"+g+"-"+e),$count.html(b.count),$count.show())},error:function(){}})},e=0,f=b.length;f>e;e++)for(var g=b[e],h=g.url,i=g.callbackUrl,c=g.key,j=0,k=g.services.length;k>j;j++){var l=g.services[j];d(l,h,i,c)}var m=function(a){var b="height=400,width=640";return a.indexOf("ravelry.com")>-1&&(b="fullscreen=yes"),newwindow=window.open(a,"share",b+",resizable=yes"),window.focus&&newwindow.focus(),!1},n=a(".crafty-social-buttons a.popup");a.each(n,function(b,c){a(c).hasClass("csb-email")||a(c).hasClass("csb-pinterest")||(c.onclick=function(){return m(this.href)})})});
  • crafty-social-buttons/trunk/services/class-SH_Craftsy.php

    r975000 r1011972  
    4343        return __('Hint','crafty-social-buttons').": www.craftsy.com/user/<strong>user-id</strong>/ ("
    4444        . __('numbers','crafty-social-buttons') .')'
    45         . __('For more options see Help > Link Buttons (link top right of screen)','crafty-social-buttons');
     45        . __('To link to pattern store or instructor page, enter the full url.','crafty-social-buttons');
    4646    }
    4747}
    48 ?>
  • crafty-social-buttons/trunk/services/class-SH_Digg.php

    r975000 r1011972  
    3535    }
    3636}
    37 ?>
  • crafty-social-buttons/trunk/services/class-SH_Email.php

    r982892 r1011972  
    1616        $this->imageUrl = $this->imagePath . "email.png";
    1717        $this->message = isset($settings['email_body']) ?  $settings['email_body'] : '';
     18        $this->newWindow = false;
    1819    }
    1920
     
    2930        return $url;
    3031    }
    31    
     32
    3233    public static function description() {
    3334        return __('Hint: Your email address','crafty-social-buttons');
    3435    }
    3536}
    36 ?>
  • crafty-social-buttons/trunk/services/class-SH_Etsy.php

    r975000 r1011972  
    4040    }
    4141}
    42 ?>
  • crafty-social-buttons/trunk/services/class-SH_Facebook.php

    r1001035 r1011972  
    6060    }
    6161}
    62 ?>
  • crafty-social-buttons/trunk/services/class-SH_Flickr.php

    r975000 r1011972  
    4040    }
    4141}
    42 
    43 ?>
  • crafty-social-buttons/trunk/services/class-SH_Google.php

    r975854 r1011972  
    8484    }
    8585}
    86 
    87 ?>
  • crafty-social-buttons/trunk/services/class-SH_Instagram.php

    r975000 r1011972  
    4040
    4141}
    42 
    43 ?>
  • crafty-social-buttons/trunk/services/class-SH_LinkedIn.php

    r975854 r1011972  
    5959    }
    6060}
    61 
    62 ?>
  • crafty-social-buttons/trunk/services/class-SH_Pinterest.php

    r977290 r1011972  
    1818
    1919    public function shareButton($url, $title = '', $showCount = false) {
    20        
    21         $html = "<a class=\"" . $this->cssClass() . "\" href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'>";
    2220
    23         $html .= $this->buttonImage();
     21        $linkTitle = $this->getShareButtonTitle();
     22
     23        $html = "<a title=\"" . $linkTitle . "\" class=\"" . $this->cssClass() . "\" href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'>";
     24
     25        $html .= $this->buttonImage($linkTitle);
    2426
    2527        $html .= $this->shareCountHtml($showCount);
     
    6567    }
    6668}
    67 
    68 ?>
  • crafty-social-buttons/trunk/services/class-SH_RSS.php

    r975000 r1011972  
    3131    }
    3232
     33    public function getLinkButtonTitle() {
     34        return "Subscribe via RSS";
     35    }
     36
    3337    public static function description() {
    3438        return __('Hint: enter full url for feed service (including http://) or leave blank to use built-in WordPress RSS feed url','crafty-social-buttons');
     
    3640
    3741}
    38 
    39 ?>
  • crafty-social-buttons/trunk/services/class-SH_Ravelry.php

    r975000 r1011972  
    4141    }
    4242}
    43 
    44 ?>
  • crafty-social-buttons/trunk/services/class-SH_Reddit.php

    r975854 r1011972  
    5656    }
    5757}
    58 
    59 ?>
  • crafty-social-buttons/trunk/services/class-SH_Social_Service.php

    r975854 r1011972  
    5858    public function shareButton($url, $title = '', $showCount = false) {
    5959
    60         $service_url = esc_url($this-> shareButtonUrl($url, $title));
     60        $url = esc_url($this-> shareButtonUrl($url, $title));
     61        $buttonTitle = $this->getShareButtonTitle();
     62        return $this->generateButtonHtml($url, $buttonTitle, $showCount);
     63    }
    6164
    62         $html = '<a class="' . $this->cssClass() . '" href="' . $service_url . '" '
     65
     66    public function linkButton($username) {
     67
     68        $url = esc_url($this->linkButtonUrl($username));
     69        $buttonTitle = $this->getLinkButtonTitle();
     70        return $this->generateButtonHtml($url, $buttonTitle, false);
     71    }
     72
     73    private function generateButtonHtml($url, $title = '', $showCount = false) {
     74
     75        $html = '<a href="' . $url . '"'
     76                . ' class="' . $this->cssClass() .'"'
     77                . ' title="' . $title . '" '
    6378                . ($this->newWindow ? 'target="_blank"' : '') . '>';
    6479
    65         $html .= $this->buttonImage();
     80        $html .= $this->buttonImage($title);
    6681
    6782        if ($this->hasShareCount()) {
     
    7489    }
    7590
    76 
    77     public function linkButton($username) {
    78 
    79         $url = esc_url($this->linkButtonUrl($username));
    80 
    81         $html = '<a class="' . $this->cssClass()
    82                 . '" href="'. $url. '" ' .
    83                 ($this->newWindow ? 'target="_blank"' : '') . '>';
    84 
    85         $html .= $this->buttonImage();
    86 
    87         $html .= '</a>';
    88 
    89         return $html;
    90     }
    91    
    9291    public function shareCount($url) {
    9392        return 0;
    9493    }
    95    
     94
     95    public function getShareButtonTitle() {
     96        return __("Share via ", 'crafty-social-buttons') . $this->service;
     97    }
     98    public function getLinkButtonTitle() {
     99        return $this->service;
     100    }
    96101    public static function canShare() {
    97102        return true;   
     
    110115    }
    111116
    112     protected function buttonImage() {
     117    protected function buttonImage($title = '') {
    113118        $imageUrl = $this->imagePath . trim(strtolower($this->service)) . $this->imageExtension;
    114         return '<img title="'.$this->service.'" '
    115         .'alt="'.$this->service.'" '
    116         .'width="'.$this->imageSize.'" '
    117         .'height="'.$this->imageSize.'" '
    118         .'src="' . $imageUrl .'" />';
     119        return '<img '
     120        .' alt="'.$title.'"'
     121        .' width="'.$this->imageSize.'"'
     122        .' height="'.$this->imageSize.'"'
     123        .' src="' . $imageUrl .'" />';
    119124    }
    120125
     
    131136   
    132137}
    133  
    134 ?>
  • crafty-social-buttons/trunk/services/class-SH_StumbleUpon.php

    r975854 r1011972  
    5555    }
    5656}
    57 ?>
  • crafty-social-buttons/trunk/services/class-SH_Tumblr.php

    r975000 r1011972  
    4343    }
    4444}
    45 
    46 ?>
  • crafty-social-buttons/trunk/services/class-SH_Twitter.php

    r975854 r1011972  
    6262    }
    6363}
    64 
    65 ?>
  • crafty-social-buttons/trunk/services/class-SH_YouTube.php

    r975000 r1011972  
    4040
    4141}
    42 
    43 ?>
  • crafty-social-buttons/trunk/views/admin.php

    r975000 r1011972  
    1 <div class="wrap <?php echo $this->plugin_slug; ?>">
     1<div class="wrap <?php echo $this->plugin_slug; ?>">
    22    <h2><?php _e('Crafty Social Buttons', $this->plugin_slug); ?></h2>
    33
  • crafty-social-buttons/trunk/views/widget.php

    r801913 r1011972  
    1 <p>
     1<p>
    22    <label for="<?php echo $this->get_field_id('buttonType'); ?>">Type:</label>
    33
Note: See TracChangeset for help on using the changeset viewer.