Ignore:
Timestamp:
09/23/07 23:34:47 (5 years ago)
Author:
hverton
Message:

Replaced all button images by new {buttonlink} Smarty function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/PLiTheme/templates/source/main.pm.renderpm.tpl

    r782 r835  
    4242        <td class='tbl_top_mid' style='text-align:right'> 
    4343            {if !$is_preview} 
    44             <b> 
    45             <a href='{$smarty.const.FUSION_SELF}?folder={$folder}&amp;action=forward&amp;msg_id={$messages[id].pmindex_id}'><img src='{$smarty.const.THEME}forum/forward.gif' alt='' /></a>&nbsp; 
    46             {if $folder == "inbox" && $messages[id].pmindex_folder == 0} 
    47 {*              <a href='{$smarty.const.FUSION_SELF}?folder={$folder}&amp;action=reply&amp;user_id={$messages[id].from_user_id}&amp;msg_id={$messages[id].pmindex_id}'><img src='{$smarty.const.THEME}forum/reply.gif' alt='' /></a>&nbsp; *} 
    48                 <a href='{$smarty.const.FUSION_SELF}?folder={$folder}&amp;action=quote&amp;user_id={$messages[id].from_user_id}&amp;msg_id={$messages[id].pmindex_id}'><img src='{$smarty.const.THEME}forum/quote.gif' alt='' /></a>&nbsp; 
    49             {/if} 
    50             {if $folder == "archive" && $messages[id].pmindex_folder == 2} 
    51                 <a href='{$smarty.const.FUSION_SELF}?folder={$folder}&amp;action=restore&amp;msg_id={$messages[id].pmindex_id}'><img src='{$smarty.const.THEME}forum/restore.gif' alt='' /></a>&nbsp; 
    52             {else} 
    53                 <a href='{$smarty.const.FUSION_SELF}?folder={$folder}&amp;action=archive&amp;msg_id={$messages[id].pmindex_id}'><img src='{$smarty.const.THEME}forum/archive.gif' alt='' /></a>&nbsp; 
    54             {/if} 
    55             <a href='{$smarty.const.FUSION_SELF}?folder={$folder}&amp;action=delete&amp;msg_id={$messages[id].pmindex_id}'><img src='{$smarty.const.THEME}forum/delete.gif' alt='' /></a> 
    56             </b> 
     44                {buttonlink name=$locale.423 link=$smarty.const.FUSION_SELF|cat:"?folder="|cat:$folder|cat:"&amp;action=forward&amp;msg_id="|cat:$messages[id].pmindex_id}&nbsp; 
     45                {if $folder == "inbox" && $messages[id].pmindex_folder == 0} 
     46                    {* {buttonlink name=$locale.433 link=$smarty.const.FUSION_SELF|cat:"?folder="|cat:$folder|cat:"&amp;action=reply&amp;msg_id="|cat:$messages[id].pmindex_id}&nbsp; *} 
     47                    {buttonlink name=$locale.444 link=$smarty.const.FUSION_SELF|cat:"?folder="|cat:$folder|cat:"&amp;action=quote&amp;msg_id="|cat:$messages[id].pmindex_id}&nbsp; 
     48                {/if} 
     49                {if $folder == "archive" && $messages[id].pmindex_folder == 2} 
     50                    {buttonlink name=$locale.416 link=$smarty.const.FUSION_SELF|cat:"?folder="|cat:$folder|cat:"&amp;action=restore&amp;msg_id="|cat:$messages[id].pmindex_id} 
     51                {else} 
     52                    {buttonlink name=$locale.412 link=$smarty.const.FUSION_SELF|cat:"?folder="|cat:$folder|cat:"&amp;action=archive&amp;msg_id="|cat:$messages[id].pmindex_id}&nbsp; 
     53                {/if} 
     54                {buttonlink name=$locale.416 link=$smarty.const.FUSION_SELF|cat:"?folder="|cat:$folder|cat:"&amp;action=delete&amp;msg_id="|cat:$messages[id].pmindex_id} 
    5755            {/if} 
    5856        </td> 
     
    253251    <tr valign='bottom'> 
    254252        <td class='tbl_left_bottom'> 
    255         <a href='{$smarty.const.BASEDIR}pm.php?action=post&amp;user_id={if $messages[id].pmindex_user_id == $messages[id].pmindex_to_id}{$messages[id].pmindex_from_id}{else}{$messages[id].pmindex_to_id}{/if}&amp;msg_id=0'><img src='{$smarty.const.THEME}forum/pm.gif' alt='{$locale.517}' style='border:0px;margin-right:2px;' /></a> 
     253        {if $messages[id].pmindex_user_id == $messages[id].pmindex_to_id} 
     254            {buttonlink name=$locale.560 link=$smarty.const.FUSION_SELF|cat:"?action=post&amp;user_id="|cat:$messages[id].pmindex_from_id|cat:"&amp;msg_id=0"} 
     255        {else} 
     256            {buttonlink name=$locale.560 link=$smarty.const.FUSION_SELF|cat:"?action=post&amp;user_id="|cat:$messages[id].pmindex_to_id|cat:"&amp;msg_id=0"} 
     257        {/if} 
    256258        {if $messages[id].user_msn|default:"" != ""} 
    257             <a href='mailto:{$messages[id].user_msn}'><img src='{$smarty.const.THEME}forum/msn.gif' alt='{$messages[id].user_msn}' style='border:0px;margin-right:2px' /></a> 
     259            {buttonlink name=$locale.561 link="mailto:"|cat:$messages[id].user_msn} 
    258260        {/if} 
    259261        {if $messages[id].user_icq|default:"" != ""} 
    260             <a href='http://web.icq.com/wwp?Uin={$messages[id].user_icq}' target='_blank'><img src='{$smarty.const.THEME}forum/icq.gif' alt='{$messages[id].user_icq}' style='border:0px;margin-right:2px' /></a> 
     262            {buttonlink name=$locale.562 link="http://web.icq.com/wwp?Uin="|cat:$messages[id].user_icq new="yes"} 
    261263        {/if} 
    262264        {if $messages[id].user_web|default:"" != ""} 
    263             <a href='{$messages[id].user_web}' target='_blank'><img src='{$smarty.const.THEME}forum/web.gif' alt='{$messages[id].user_web}' style='border:0px;margin-right:2px' /></a> 
     265            {buttonlink name=$locale.563 link=$messages[id].user_web new="yes"} 
    264266        {/if} 
    265267        {if false && $messages[id].user_aim|default:"" != ""} 
    266             <a href='aim:goim?screenname={$messages[id].user_aim|replace:' ':'+'}' target='_blank'><img src='{$smarty.const.THEME}forum/aim.gif' alt='{$messages[id].user_aim}' style='border:0px;margin-right:2px' /></a> 
     268            {buttonlink name=$locale.564 link="aim:goim?screenname="|cat:$messages[id].user_aim|replace:' ':'+'} 
    267269        {/if} 
    268270        {* used the YAHOO field to store the Skype ID *} 
    269271        {if false && $messages[id].user_yahoo|default:"" != ""} 
    270             <a href='skype:{$messages[id].user_yahoo}?call' target='_blank'><img src='{$smarty.const.THEME}forum/skype.gif' alt='{$messages[id].user_yahoo}' style='border:0px;margin-right:2px' /></a> 
     272            {buttonlink name=$locale.565 link="skype:"|cat:$messages[id].user_yahoo|cat:"?call"} 
    271273        {/if} 
    272274        </td> 
Note: See TracChangeset for help on using the changeset viewer.