Changeset 2091


Ignore:
Timestamp:
Sep 14, 2007, 1:30:46 AM (17 years ago)
Author:
rvelices
Message:
  • merge content of layout.css and popuphelp.css (very few lines) into existing css -> faster page loading the first time (avoid 2 http requests)
  • optimized sql for $confdisplay_fromto in category_cats.inc.php
Location:
trunk
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_cats.inc.php

    r2079 r2091  
    164164    MAX(date_creation) AS date_creation_max
    165165  FROM '.IMAGE_CATEGORY_TABLE.'
    166     INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.'
    167       ON category_id = cat_id and user_id = '.$user['id'].'
    168166    INNER JOIN '.IMAGES_TABLE.' ON image_id = id
    169   WHERE category_id IN ('.implode(',', $category_ids).') 
     167  WHERE category_id IN ('.implode(',', $category_ids).')
    170168'.get_sql_condition_FandF
    171169  (
     
    173171      (
    174172        'visible_categories' => 'category_id',
    175         'visible_images' => 'image_id'
     173        'visible_images' => 'id'
    176174      ),
    177175    'AND'
     
    187185        );
    188186    }
    189     // echo '<pre>'; print_r($dates_of_category); echo '</pre>';
    190187  }
    191188}
     
    264261                                  ),
    265262          'DESCRIPTION' =>
    266             trigger_event('render_category_literal_description', 
    267               trigger_event('render_category_description', 
     263            trigger_event('render_category_literal_description',
     264              trigger_event('render_category_description',
    268265                @$category['comment'])),
    269266          'NAME'  => $name,
     
    277274          $from = $dates_of_category[ $category['id'] ]['from'];
    278275          $to   = $dates_of_category[ $category['id'] ]['to'];
    279        
     276
    280277          if (!empty($from))
    281278          {
    282279            $info = '';
    283          
     280
    284281            if ($from == $to)
    285282            {
  • trunk/template/yoga/default-layout.css

    r1900 r2091  
    216216}
    217217
    218 BODY#thePopuphelpPage #copyright {
    219   color: green;
    220   display: none;
    221 }
    222 
    223218FORM#addComment FIELDSET LABEL {
    224219  clear: both;
     
    253248
    254249#fullTagCloud {
    255   font-size: 140%;
     250  font-size: 120%;
    256251  text-align: justify;
    257252  padding: 0;
     
    264259}
    265260
    266 #content #fullTagCloud {
    267   font-size: 120%;
    268 }
    269261
    270262.tagLevel5 { font-size: 150%; }
     
    273265.tagLevel2 { font-size: 100%; }
    274266.tagLevel1 { font-size: 90%; }
     267
     268
     269/* Popup help page */
     270BODY#thePopuphelpPage #copyright {
     271  display: none;
     272}
     273
     274BODY#thePopuphelpPage #theHeader P {
     275  display: none;
     276}
     277
     278BODY#thePopuphelpPage #content P {
     279  text-align: justify;
     280  padding: 0.5em;
     281}
     282
     283BODY#thePopuphelpPage #content OL LI,
     284BODY#thePopuphelpPage #content UL LI
     285{
     286  margin-bottom: 0.5em;
     287}
     288
     289BODY#thePopuphelpPage P#pageBottomActions A {
     290  border: none;
     291}
  • trunk/template/yoga/layout.css

    r1912 r2091  
    66@import "thumbnails.css";
    77@import "picture.css";
    8 @import "popuphelp.css";
    98@import "default-layout.css";
    109/* Override properties with import local file */
    1110@import "local-layout.css";
    1211/* common css */
    13 @import "../../template-common/layout.css";
     12@import "../../template-common/default-layout.css";
     13/* Override properties with import local file */
     14@import "../../template-common/local-layout.css";
    1415
Note: See TracChangeset for help on using the changeset viewer.