Plugin Directory

Changeset 446909


Ignore:
Timestamp:
10/03/2011 09:06:53 PM (14 years ago)
Author:
0xTC
Message:
 
Location:
wp-tweet-button/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-tweet-button/trunk/inc/perpostsettings.inc.php

    r356478 r446909  
    3232            </div>
    3333            <div class="misc-pub-section">
    34                     <img src="<?php echo WP_PLUGIN_URL; ?>/wp-tweet-button/tweetn.png" id="tw_tweet_button_image" style="float:right;margin:-3px 10px 0 10px"/>
     34                    <img src="<?php $wpt_pluginpath = (empty($_SERVER['HTTPS'])) ? WP_PLUGIN_URL : str_replace("http://", "https://", WP_PLUGIN_URL); echo $wpt_pluginpath; ?>/wp-tweet-button/tweetn.png" id="tw_tweet_button_image" style="float:right;margin:-3px 10px 0 10px"/>
    3535                    <input style="min-width:20px;" onclick="var twimgp=document.getElementById('tw_tweet_button_image');twimgp.style.display=(this.checked)?'none':'block';" type="checkbox" value="1" <?php if ($tw_exclude_tweet_button == '1') echo 'checked="checked"'; ?> name="tw_exclude_tweet_button" id="tw_exclude_tweet_button"/>
    3636                    <label for="tw_exclude_tweet_button"><?php _e('Disable Tweet Button',$this->txtdom);?></label><br />
  • wp-tweet-button/trunk/inc/settings.inc.php

    r398385 r446909  
    188188                            <div style="float:left;">
    189189                            <input type="radio" value="none" class="floatleftm10" <?php if ($this->tw_get_option('tw_count') == 'none') echo 'checked="checked"'; ?> name="tw_count" id="tw_count_none" group="tw_count" />
    190                             <label for="tw_count_none" class="tweetbtnc" style="width:60px;background:transparent url('<?php echo WP_PLUGIN_URL; ?>/wp-tweet-button/tweetn.png') no-repeat  0 24px"><?php _e('No count',$this->txtdom);?></label>
     190                            <label for="tw_count_none" class="tweetbtnc" style="width:60px;background:transparent url('<?php $wpt_pluginpath = (empty($_SERVER['HTTPS'])) ? WP_PLUGIN_URL : str_replace("http://", "https://", WP_PLUGIN_URL); echo $wpt_pluginpath; ?>/wp-tweet-button/tweetn.png') no-repeat  0 24px"><?php _e('No count',$this->txtdom);?></label>
    191191                            </div>
    192192                        </td>
  • wp-tweet-button/trunk/readme.txt

    r398385 r446909  
    5959= How come the tweet count doesn't change right away? =
    6060
    61 Twitter uses a caching system that periodically updates the tweet counts. You browser also caches the iframe containing the count. Both these caches need to expire before any changes are made apparent.
     61Twitter uses a caching system that periodically updates the tweet counts. Your browser also caches the iframe containing the count. Both these caches need to expire before any changes are made apparent.
    6262
    6363= How do I add the post title or blog title in custom tweet texts? =
     
    129129
    130130== Changelog ==
     131
     132= 2.1.2 =
     133* Added SSL support.
    131134
    132135= 2.1.1 =
  • wp-tweet-button/trunk/wp-tweet-button.php

    r398385 r446909  
    22/*
    33Plugin Name: WP Tweet Button
    4 Version: 2.1.1
     4Version: 2.1.2
    55Plugin URI: http://0xtc.com/plugins/wp-tweet-button
    66Description: The WordPress implementation of the official Twitter Tweet Button.
     
    4646    var $hasbutton      = array();
    4747    var $postid;
     48    var $wpt_pluginpath;    // passive usage
    4849    /**
    4950    * The following are default settings for the plugin's configuration.
     
    12041205            $StyleStrBtn = '';
    12051206        } else {
     1207            $wpt_pluginpath = (empty($_SERVER['HTTPS'])) ? WP_PLUGIN_URL : str_replace("http://", "https://", WP_PLUGIN_URL);
    12061208            $StyleStrDiv = ' style="' . $this->tw_get_option('tw_style_c') .$dssep. $alignstr . '"';
    1207             $StyleStrBtn = ' style="width:55px;height:22px;background:transparent url(\''. WP_PLUGIN_URL.'/wp-tweet-button/tweetn.png\') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;"';
     1209            $StyleStrBtn = ' style="width:55px;height:22px;background:transparent url(\''. $wpt_pluginpath.'/wp-tweet-button/tweetn.png\') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;"';
    12081210        }
    12091211        if ($this->ismanual){$btnidattr='m';}else{$btnidattr='';}
Note: See TracChangeset for help on using the changeset viewer.