Changeset 12388 for extensions/TweetThis/main.inc.php
- Timestamp:
- Oct 8, 2011, 12:05:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/TweetThis/main.inc.php
r11514 r12388 45 45 if ( in_array( $conf['TweetThis'][0], array('none','horizontal','vertical') ) ) 46 46 { 47 $template->assign('TWEET_IFRAME', true); 48 $template->assign('TWEET_COUNTER', $conf['TweetThis'][0]); 47 $template->assign(array( 48 'TWEET_IFRAME' => true, 49 'TWEET_COUNTER' => $conf['TweetThis'][0], 50 )); 49 51 } 50 52 else 51 53 { 52 $template->assign('TWEET_IFRAME', false); 53 $template->assign('TWEET_COUNTER', 'none'); 54 $template->assign(array( 55 'TWEET_IFRAME' => false, 56 'TWEET_COUNTER' => 'none', 57 )); 54 58 } 55 59 56 // if the link is in the toolbar, we must use small estbuttons60 // if the link is in the toolbar, we must use smallier buttons 57 61 if ( script_basename() == 'index' OR $conf['TweetThis'][1] == 'toolbar') 58 62 { … … 110 114 $search = '<ul class="categoryActions">'; 111 115 $replace = ' 116 {combine_script id=\'scripts\' path=\'themes/default/js/scripts.js\'} 112 117 <li><a href="javascript:phpWGOpenWindow(\'http://twitter.com/share?count={$TWEET_COUNTER}\', \'{\'Share on Twitter\'|@translate}\', \'scrollbars=yes,width=550,height=370\')" 113 118 class="{if $TWEET_IFRAME}twitter-share-button{/if} pwg-button" title="{\'Share on Twitter\'|@translate}">
Note: See TracChangeset
for help on using the changeset viewer.