Changeset 16049 for extensions
- Timestamp:
- Jun 26, 2012, 10:55:51 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/TweetThis/main.inc.php
r15122 r16049 37 37 { 38 38 $template->assign('TWEET_POSITON', $conf['TweetThis']['position']); 39 $template->assign('TWEET_URL', get_absolute_root_url().duplicate_picture_url()); 39 40 $template->set_prefilter('picture', 'tweet_add_button_prefilter'); 40 41 } … … 42 43 { 43 44 $template->assign('TWEET_POSITON', 'index'); 45 $template->assign('TWEET_URL', get_absolute_root_url().duplicate_index_url()); 44 46 $template->set_prefilter('index', 'tweet_add_button_prefilter'); 45 47 } … … 65 67 66 68 $replace = '{combine_script id=\'twitter_widgets\' path=\'http://platform.twitter.com/widgets.js} 67 <a href="https://twitter.com/share" class="twitter-share-button" data-lang="{$TWEET_LANG}" {if not empty($TWEET_VIA)}data-via="{$TWEET_VIA}"{/if} {if $TWEET_SIZE=="large"}data-size="large"{/if} {if not $TWEET_COUNT}data-count="none"{/if}>Tweet</a>'; 68 69 <a href="https://twitter.com/share" class="twitter-share-button" 70 data-url="{$TWEET_URL}" data-lang="{$TWEET_LANG}" {if not empty($TWEET_VIA)}data-via="{$TWEET_VIA}"{/if} 71 {if $TWEET_SIZE=="large"}data-size="large"{/if} {if not $TWEET_COUNT}data-count="none"{/if}>Tweet</a>'; 69 72 switch ($template->get_template_vars('TWEET_POSITON')) 70 73 {
Note: See TracChangeset
for help on using the changeset viewer.