Ignore:
Timestamp:
May 19, 2012, 1:12:51 PM (12 years ago)
Author:
mistic100
Message:

update for Piwigo 2.4
change previews with new Twitter appearance
remove all custom buttons, keep only official
new options: display counter and via

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/TweetThis/admin.tpl

    r11514 r15122  
    88
    99    <table class="twitter_buttons">
    10       <tr>
    11         <td><label>
    12           <img src="{$TWEET_PATH}images/tweeth.png"/>
    13           <input type="radio" name="button_style" value="horizontal" {if $button_style == 'horizontal'}checked="checked"{/if}/>
    14         </label></td>
    15         <td><label>
    16           <img src="{$TWEET_PATH}images/tweetv.png"/>
    17           <input type="radio" name="button_style" value="vertical" {if $button_style == 'vertical'}checked="checked"{/if}/>
    18         </label></td>
    19         <td><label>
    20           <img src="{$TWEET_PATH}images/tweetn.png"/>
    21           <input type="radio" name="button_style" value="none" {if $button_style == 'none'}checked="checked"{/if}/>
    22         </label></td>
    23         <td>&nbsp;</td>
     10      <tr class="property">
     11        <td>
     12          {'Button size'|@translate}
     13        </td>
     14        <td></td>
    2415      </tr>
    2516      <tr>
    2617        <td><label>
    27           <img src="http://twitter-badges.s3.amazonaws.com/twitter-a.png"/>
    28           <input type="radio" name="button_style" value="twitter-a" {if $button_style == 'twitter-a'}checked="checked"{/if}/>
     18          <img src="{$TWEET_PATH}images/small.png"/>
     19          <input type="radio" name="button_size" value="small" {if $button_size == 'small'}checked="checked"{/if}/>
    2920        </label></td>
    3021        <td><label>
    31           <img src="http://twitter-badges.s3.amazonaws.com/t_logo-a.png"/>
    32           <input type="radio" name="button_style" value="t_logo-a" {if $button_style == 't_logo-a'}checked="checked"{/if}/>
    33         </label></td>
    34         <td><label>
    35           <img src="http://twitter-badges.s3.amazonaws.com/t_small-a.png"/>
    36           <input type="radio" name="button_style" value="t_small-a" {if $button_style == 't_small-a'}checked="checked"{/if}/>
    37         </label></td>
    38         <td><label>
    39           <img src="http://twitter-badges.s3.amazonaws.com/t_mini-a.png"/>
    40           <input type="radio" name="button_style" value="t_mini-a" {if $button_style == 't_mini-a'}checked="checked"{/if}/>
     22          <img src="{$TWEET_PATH}images/large.png"/>
     23          <input type="radio" name="button_size" value="large" {if $button_size == 'large'}checked="checked"{/if}/>
    4124        </label></td>
    4225      </tr>
    43       <tr>
    44         <td><label>
    45           <img src="http://twitter-badges.s3.amazonaws.com/twitter-b.png"/>
    46           <input type="radio" name="button_style" value="twitter-b" {if $button_style == 'twitter-b'}checked="checked"{/if}/>
    47         </label></td>
    48         <td><label>
    49           <img src="http://twitter-badges.s3.amazonaws.com/t_logo-b.png"/>
    50           <input type="radio" name="button_style" value="t_logo-b" {if $button_style == 't_logo-b'}checked="checked"{/if}/>
    51         </label></td>
    52         <td><label>
    53           <img src="http://twitter-badges.s3.amazonaws.com/t_small-b.png"/>
    54           <input type="radio" name="button_style" value="t_small-b" {if $button_style == 't_small-b'}checked="checked"{/if}/>
    55         </label></td>
    56         <td><label>
    57           <img src="http://twitter-badges.s3.amazonaws.com/t_mini-b.png"/>
    58           <input type="radio" name="button_style" value="t_mini-b" {if $button_style == 't_mini-b'}checked="checked"{/if}/>
    59         </label></td>
     26      <tr class="property">
     27        <td>
     28          <label for="count">{'Display counter'|@translate}</label>
     29        </td>
     30        <td>
     31          <input type="checkbox" id="count" name="count" value="1" {$count_check}/>
     32        </td>
    6033      </tr>
    61       <tr>
    62         <td><label>
    63           <img src="http://twitter-badges.s3.amazonaws.com/twitter-c.png"/>
    64           <input type="radio" name="button_style" value="twitter-c" {if $button_style == 'twitter-c'}checked="checked"{/if}/>
    65         </label></td>
    66         <td><label>
    67           <img src="http://twitter-badges.s3.amazonaws.com/t_logo-c.png"/>
    68           <input type="radio" name="button_style" value="t_logo-c" {if $button_style == 't_logo-c'}checked="checked"{/if}/>
    69         </label></td>
    70         <td><label>
    71           <img src="http://twitter-badges.s3.amazonaws.com/t_small-c.png"/>
    72           <input type="radio" name="button_style" value="t_small-c" {if $button_style == 't_small-c'}checked="checked"{/if}/>
    73         </label></td>
    74         <td><label>
    75           <img src="http://twitter-badges.s3.amazonaws.com/t_mini-c.png"/>
    76           <input type="radio" name="button_style" value="t_mini-c" {if $button_style == 't_mini-c'}checked="checked"{/if}/>
    77         </label></td>
    78       </tr>
    79      
    8034      <tr class="property">
    81         <td colspan="2">
     35        <td>
    8236          {'Button position on picture page'|@translate}
    8337        </td>
    84         <td colspan="2">
     38        <td>
    8539          <label><input type="radio" name="position" value="top" {if $position == 'top'}checked="checked"{/if}/> {'Top'|@translate}</label>
    8640          <label><input type="radio" name="position" value="bottom" {if $position == 'bottom'}checked="checked"{/if}/> {'Bottom'|@translate}</label>
     
    8842        </td>
    8943      </tr>
     44      <tr class="property">
     45        <td>
     46          {'Via'|@translate}
     47        </td>
     48        <td>
     49          @ <input type="text" name="via" value="{$via}"/>
     50        </td>
     51      </tr>
    9052      <tr class="submit">
    91         <td colspan="4">
     53        <td colspan="2">
    9254          <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" />
    9355        </td>
Note: See TracChangeset for help on using the changeset viewer.