Changeset 12388


Ignore:
Timestamp:
Oct 8, 2011, 12:05:14 PM (9 years ago)
Author:
mistic100
Message:

button on index now works

Location:
extensions/TweetThis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/TweetThis/main.inc.php

    r11514 r12388  
    4545  if ( in_array( $conf['TweetThis'][0], array('none','horizontal','vertical') ) )
    4646  {
    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    ));
    4951  }
    5052  else
    5153  {
    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    ));
    5458  }
    5559 
    56   // if the link is in the toolbar, we must use smallest buttons
     60  // if the link is in the toolbar, we must use smallier buttons
    5761  if ( script_basename() == 'index' OR  $conf['TweetThis'][1] == 'toolbar')
    5862  {
     
    110114      $search = '<ul class="categoryActions">';
    111115      $replace = '
     116{combine_script id=\'scripts\' path=\'themes/default/js/scripts.js\'}
    112117<li><a href="javascript:phpWGOpenWindow(\'http://twitter.com/share?count={$TWEET_COUNTER}\', \'{\'Share on Twitter\'|@translate}\', \'scrollbars=yes,width=550,height=370\')"
    113118        class="{if $TWEET_IFRAME}twitter-share-button{/if} pwg-button" title="{\'Share on Twitter\'|@translate}">
  • extensions/TweetThis/maintain.inc.php

    r11425 r12388  
    22function plugin_install()
    33{
    4   pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("TweetThis","twitter-a,toolbar","TweetThis config");');
     4  pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("TweetThis","horizontal,toolbar","TweetThis config");');
    55}
    66
Note: See TracChangeset for help on using the changeset viewer.