Ignore:
Timestamp:
09/28/07 22:07:51 (5 years ago)
Author:
hverton
Message:

fixed SVN inconsistency due to a renaming error
updated the forum template because the theme images moved
added a CSS tag for thumbnails in renderpost, and removed hardcoded styles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/templates/forum.renderpost.tpl

    r845 r850  
    2626        <td class='tbl_top_mid'> 
    2727            {if $posts[pid].post_sticky} 
    28                 <img src='{$smarty.const.THEME}forum/stickythread.gif' alt='{$locale.572}' style='vertical-align:top;' />&nbsp;&nbsp; 
     28                <img src='{$smarty.const.THEME}images/stickythread.gif' alt='{$locale.572}' style='vertical-align:top;' />&nbsp;&nbsp; 
    2929            {/if} 
    3030            {if $posts[pid].thread_id != 0 && $posts[pid].post_id != 0} 
     
    3737            {/if} 
    3838        </td> 
     39        {if $posts[pid].show_ip} 
    3940        <td class='tbl_top_mid' style='text-align:right;'> 
     41        {else} 
     42        <td colspan='2' class='tbl_top_right' style='text-align:right;'> 
     43        {/if} 
    4044        {if $smarty.const.iMEMBER && $user_can_post} 
    4145            {if $posts[pid].user_can_edit} 
     
    5458        {/if} 
    5559        </td> 
    56         <td width='1%' class='tbl_top_right'> 
    57             {if $posts[pid].show_ip} 
    58                 {if $user_can_blacklist} 
    59                     <a href='{$smarty.const.ADMIN}blacklist.php{$aidlink}&amp;ip={$posts[pid].post_ip}'> 
    60                         <img src='{$smarty.const.THEME}forum/ip.gif' alt='{$locale.570}' title='{$posts[pid].post_ip}{$locale.570a}' style='border:0px;' /> 
    61                     </a> 
    62                 {else} 
    63                     <img src='{$smarty.const.THEME}forum/ip.gif' alt='{$locale.570}' title='{$posts[pid].post_ip}' style='border:0px;' /> 
    64                 {/if} 
    65             {/if} 
    66         </td> 
     60        {if $posts[pid].show_ip} 
     61        <td width='1%' class='tbl_top_right' valign='middle'> 
     62            {if $user_can_blacklist} 
     63                <a href='{$smarty.const.ADMIN}blacklist.php{$aidlink}&amp;ip={$posts[pid].post_ip}'> 
     64                    <img src='{$smarty.const.THEME}images/ip.gif' alt='{$locale.570}' title='{$posts[pid].post_ip}{$locale.570a}' style='border:0px;' /> 
     65                </a> 
     66            {else} 
     67                <img src='{$smarty.const.THEME}images/ip.gif' alt='{$locale.570}' title='{$posts[pid].post_ip}' style='border:0px;' /> 
     68            {/if} 
     69        </td> 
     70        {/if} 
    6771    </tr> 
    6872    <tr> 
     
    126130        </td> 
    127131        <td valign='top' colspan='3' height='{$height}' class='{if $posts[pid].unread}unread{else}tbl_right{/if}' style='border-bottom:none;'> 
    128         {$posts[pid].post_message|default:"&nbsp;"} 
     132        {$posts[pid].post_message|default:" "|escape:"entities"} 
    129133        {section name=id loop=$posts[pid].attachments} 
    130134            {if $smarty.section.id.first} 
     
    144148                    {else} 
    145149                        {if $posts[pid].attachments[id].has_thumbnail} 
    146                             <table cellpadding='0'cellspacing='0' bgcolor='#000000'> 
     150                            <table cellpadding='0'cellspacing='0' class='thumbnail'> 
    147151                                <tr> 
    148152                                    <td> 
     
    150154                                            <a href='{$smarty.const.BASEDIR}getfile.php?type=a&amp;file_id={$posts[pid].attachments[id].attach_id}' title='{$posts[pid].attachments[id].attach_comment}'>{$posts[pid].attachments[id].attach_realname} 
    151155                                        {else} 
    152                                             <a href='{$posts[pid].attachments[id].link}' alt='{$posts[pid].attachments[id].attach_comment}' target='_blank'>{$posts[pid].attachments[id].attach_realname} 
     156                                            <a href='{$posts[pid].attachments[id].link}' title='{$posts[pid].attachments[id].attach_comment}' target='_blank'> 
     157                                            <img src='{$posts[pid].attachments[id].thumbnail}' style='border:1px solid black;' alt='{$posts[pid].attachments[id].attach_realname}' title='{$posts[pid].attachments[id].attach_realname}' /> 
    153158                                        {/if} 
    154                                         <img src='{$posts[pid].attachments[id].thumbnail}' style='border:1px solid black;' alt='{$posts[pid].attachments[id].attach_realname}' title='{$posts[pid].attachments[id].attach_realname}' /></a> 
     159                                        </a> 
    155160                                    </td> 
    156161                                </tr> 
    157162                                <tr> 
    158                                     <td style='color:#ffffff;font-size:10px;text-align:center'> 
     163                                    <td> 
    159164                                        {$posts[pid].attachments[id].imagesize.x}x{$posts[pid].attachments[id].imagesize.y} {$posts[pid].attachments[id].size} 
    160165                                    </td> 
Note: See TracChangeset for help on using the changeset viewer.