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/theme.php

    r1346 r1409  
    7070$variables['downloadbars'] = downloadbars(); 
    7171 
    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 } 
    79  
    8072// bar counter title 
    8173$variables['bartitle'] = bartitle($variables['downloadbars']); 
     74$size = getimagesize(PATH_ROOT.$variables['bartitle']); 
     75$variables['bartitle_height'] =$size[1]; 
     76$variables['bartitle_width'] = $size[0]; 
    8277 
    8378// unread forum post indicator 
Note: See TracChangeset for help on using the changeset viewer.