Changeset 1410 in ExiteCMS


Ignore:
Timestamp:
05/15/08 22:46:52 (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)

Location:
themes/PLi-Fusion/PLiThemeCentered/php-files/themes/PLiThemeCentered
Files:
4 edited

Legend:

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

    r1346 r1410  
    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> 
    234  
     207<div style='margin-left:auto;margin-right:auto;width:{$smarty.const.THEME_WIDTH}px;height:120px;margin-top:-120px;'> 
     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> 
     220                <th> 
     221                    <img src='{$bartitle}' 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}&download_id={$downloadbars[index].download_id}' title=''><img src='{$downloadbars[index].image_url}' alt='' style='vertical-align:top;' /></a> 
     226                    </th> 
     227                {/section} 
     228            </tr> 
     229        </table> 
     230    </div> 
     231</div> 
    235232{***************************************************************************} 
    236233{* End of Template                                                         *} 
  • themes/PLi-Fusion/PLiThemeCentered/php-files/themes/PLiThemeCentered/templates/templates/_stylesheets.tpl

    r1346 r1410  
    3232 
    3333                        /* wiki links */ 
    34 a.wiki_link:link,a.wiki_link:visited { color:#000; text-decoration:none; border-width:0px 0px 2px 0px; border-style:dotted; border-color:#ff0000; } 
     34a.wiki_link:link,a.wiki_link:visited { color:#000; text-decoration:none; border-width:0px 0px 1px 0px; border-style:dotted; border-color:#ff0000; } 
    3535 
    3636                        /* image anchors */ 
  • themes/PLi-Fusion/PLiThemeCentered/php-files/themes/PLiThemeCentered/theme.php

    r1346 r1410  
    6969// download bar information 
    7070$variables['downloadbars'] = downloadbars(); 
    71  
    72 // create download titles and link information 
    73 // (in opposite order, bar div's are shown from right to left!) 
    74 $barcount = count($variables['downloadbars']); 
    75 $variables['downloadtitles'] = array(); 
    76 foreach($variables['downloadbars'] as $bar) { 
    77     $variables['downloadtitles'][--$barcount] = array('download_id' => $bar['download_id'], 'download_title' => $bar['download_title'], 'download_count' => $bar['download_count']); 
    78 } 
    7971 
    8072// bar counter title 
  • themes/PLi-Fusion/PLiThemeCentered/php-files/themes/PLiThemeCentered/theme_functions.php

    r1346 r1410  
    8686    // get the download statistics for the required download records 
    8787    $total = 0; 
    88     $result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_bar > '0' ORDER BY download_bar DESC"); 
     88    $result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_bar > '0' ORDER BY download_bar ASC"); 
    8989    while ($data = dbarray($result)) { 
    9090        $access = true; 
Note: See TracChangeset for help on using the changeset viewer.