Ignore:
Timestamp:
05/15/08 22:46:07 (4 years ago)
Author:
hverton
Message:

cleaned up the download bar code
updated the image generation code. font2image now creates new images in the files cache, which are included in the header as normal .png files (makes them cachable by browsers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/PLi-Fusion/PLiTheme/php-files/themes/PLiTheme/templates/templates/_header.tpl

    r1346 r1409  
    204204        <td class='sub-cap-right'><img src='{$smarty.const.THEME}images/blank.gif' width='5' height='21' alt='' style='display:block' /></td> 
    205205    </tr> 
    206     <tr> 
    207         <td colspan='3'> 
    208             <div id='bars' style='float:right;height:100px;margin-top:-121px;'> 
    209                 <table class='bargraph'> 
    210                     <tr> 
    211                         <td> 
    212                         </td> 
    213                         {section name=index loop=$downloadbars} 
    214                             <td width='40'> 
    215                                 <img src='/themes/PLiThemeCentered/images/bar-{$smarty.section.index.rownum}.gif' style='width:16px;height:{$downloadbars[index].value}px;' alt='{$downloadbars[index].download_count}' title='{$downloadbars[index].download_count}'/> 
    216                             </td> 
    217                         {/section} 
    218                     </tr> 
    219                     <tr> 
    220                         <th> 
    221                             <img src='{$bartitle}' alt='' /> 
    222                         </th> 
    223                         {section name=index loop=$downloadbars} 
    224                             <th width='40'> 
    225                                 <a href='/downloads.php?cat_id={$downloadbars[index].download_cat}&download_id={$downloadbars[index].download_id}' title=''><img src='{$downloadbars[index].image_url}' alt='' /></a> 
    226                             </th> 
    227                         {/section} 
    228                     </tr> 
    229                 </table> 
    230             </div> 
    231         </td> 
    232     </tr> 
    233206</table> 
     207<div style='margin-left:auto;margin-right:auto;width:{$smarty.const.THEME_WIDTH}px;height:120px;margin-top:-121px;'> 
     208    <div id='bars' style='float:right;height:100px;'> 
     209        <table class='bargraph'> 
     210            <tr> 
     211                <td> 
     212                </td> 
     213                {section name=index loop=$downloadbars} 
     214                    <td width='40'> 
     215                        <img src='/themes/PLiThemeCentered/images/bar-{$smarty.section.index.rownum}.gif' style='width:16px;height:{$downloadbars[index].value}px;' alt='{$downloadbars[index].download_count}' title='{$downloadbars[index].download_count} {$locale.087}'/> 
     216                    </td> 
     217                {/section} 
     218            </tr> 
     219            <tr style=''> 
     220                <th> 
     221                    <img src='{$bartitle}' height='{$bartitle_height}' width='{$bartitle_width}' alt='' style='vertical-align:top;' /> 
     222                </th> 
     223                {section name=index loop=$downloadbars} 
     224                    <th width='40'> 
     225                        <a href='/downloads.php?cat_id={$downloadbars[index].download_cat}&amp;download_id={$downloadbars[index].download_id}' title=''><img src='{$downloadbars[index].image_url}' height='{$downloadbars[index].image_height}' src='{$downloadbars[index].image_url}' width='{$downloadbars[index].image_width}' alt='' style='vertical-align:top;' /></a> 
     226                    </th> 
     227                {/section} 
     228            </tr> 
     229        </table> 
     230    </div> 
     231</div> 
    234232{***************************************************************************} 
    235233{* End of Template                                                         *} 
Note: See TracChangeset for help on using the changeset viewer.