Ignore:
Timestamp:
Nov 8, 2006, 4:01:28 AM (17 years ago)
Author:
rvelices
Message:
  • merge category_recent_cats and category_subcats into category_cats (a lot

of common code,and now representative selection works for recent cats...)

  • some replacements of get_thumbnail_src with get_thumbnail_url
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/calendar_monthly.class.php

    • Property svn:keywords set to Author Date Id Revision
    r1558 r1597  
    44// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
    55// +-----------------------------------------------------------------------+
    6 // | branch        : BSF (Best So Far)
    7 // | file          : $RCSfile$
    8 // | last update   : $Date: 2006-01-27 02:11:43 +0100 (ven, 27 jan 2006) $
    9 // | last modifier : $Author: rvelices $
    10 // | revision      : $Revision: 1014 $
     6// | file          : $Id$
     7// | last update   : $Date$
     8// | last modifier : $Author$
     9// | revision      : $Revision$
    1110// +-----------------------------------------------------------------------+
    1211// | This program is free software; you can redistribute it and/or modify  |
     
    342341    $page['chronology_date'][CDAY]=$day;
    343342    $query = '
    344 SELECT file,tn_ext,path, width, height, DAYOFWEEK('.$this->date_field.')-1 as dow';
     343SELECT id, file,tn_ext,path, width, height, DAYOFWEEK('.$this->date_field.')-1 as dow';
    345344    $query.= $this->inner_sql;
    346345    $query.= $this->get_date_where();
     
    350349    unset ( $page['chronology_date'][CDAY] );
    351350
    352     $row = mysql_fetch_array(pwg_query($query));
    353     $items[$day]['tn_path'] = get_thumbnail_src($row['path'], @$row['tn_ext']);
     351    $row = mysql_fetch_assoc(pwg_query($query));
     352    $items[$day]['tn_url'] = get_thumbnail_url($row);
    354353    $items[$day]['file'] = $row['file'];
    355354    $items[$day]['path'] = $row['path'];
     
    449448        else
    450449        {// item not an image (tn is either mime type or an image)
    451           $thumb = get_thumbnail_src(
    452                 $items[$day]['path'], @$items[$day]['tn_ext'], false
    453               );
     450          $thumb = get_thumbnail_path($items[$day]);
    454451          $tn_size = @getimagesize($thumb);
    455452        }
     
    508505          );
    509506        $alt = $wday_labels[$dow] . ' ' . $day.
    510                ' ('.$items[$day]['nb_images'].')';
     507               ' ('.sprintf("%d ".l10n('pictures'), $items[$day]['nb_images']).')';
    511508        $template->assign_block_vars('calendar.thumbnails.row.col.full',
    512509              array(
    513510                'LABEL'     => $day,
    514                 'IMAGE'     => $items[$day]['tn_path'],
     511                'IMAGE'     => $items[$day]['tn_url'],
    515512                'U_IMG_LINK'=> $url,
    516513                'STYLE'     => $css_style,
     
    554551          'thumbnails.line.thumbnail',
    555552          array(
    556             'IMAGE'=>$data['tn_path'],
     553            'IMAGE'=>$data['tn_url'],
    557554            'IMAGE_ALT'=>$data['file'],
    558555            'IMAGE_TITLE'=>$thumbnail_title,
Note: See TracChangeset for help on using the changeset viewer.