Changeset 3121 for branches/2.0/template


Ignore:
Timestamp:
Feb 4, 2009, 3:33:50 AM (15 years ago)
Author:
rvelices
Message:

merge 3120 from trunk
optimizations (php only)

  • removed unnecessary call to array_unique in get_image_ids_for_tags
  • put back in smarty exec time counting (debug mode) for each included template
  • prefix some smarty modifiers with @ in some templates
  • do not call format_date (still very slow due to mktime and date even after prev commit) from category_default.inc.php - if used in templates format_date can be used as a smarty modifier
Location:
branches/2.0/template/yoga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/template/yoga/header.tpl

    r3090 r3121  
    77{if isset($meta_ref) }
    88{if isset($INFO_AUTHOR)}
    9 <meta name="author" content="{$INFO_AUTHOR|replace:'"':' '}">
     9<meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}">
    1010{/if}
    1111{if isset($related_tags)}
     
    1313{/if}
    1414{if isset($COMMENT_IMG)}
    15 <meta name="description" content="{$COMMENT_IMG|strip_tags:false|replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
     15<meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
    1616{else}
    1717<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
  • branches/2.0/template/yoga/mainpage_categories.tpl

    r3031 r3121  
    77                        <div class="illustration">
    88                        <a href="{$cat.URL}">
    9                                 <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|replace:'"':' '} - {'hint_category'|@translate}">
     9                                <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'hint_category'|@translate}">
    1010                        </a>
    1111                        </div>
     
    1515                                        {$cat.ICON_TS}
    1616                                </h3>
    17         <div class="text">
    18                                 {if isset($cat.INFO_DATES) }
    19                                 <p class="dates">{$cat.INFO_DATES}</p>
    20                                 {/if}
    21                                 <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
    22                                 {if not empty($cat.DESCRIPTION)}
    23                                 <p>{$cat.DESCRIPTION}</p>
    24                                 {/if}
    25         </div>
     17                <div class="text">
     18                                {if isset($cat.INFO_DATES) }
     19                                <p class="dates">{$cat.INFO_DATES}</p>
     20                                {/if}
     21                                <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
     22                                {if not empty($cat.DESCRIPTION)}
     23                                <p>{$cat.DESCRIPTION}</p>
     24                                {/if}
     25                </div>
    2626                        </div>
    2727                </div>
  • branches/2.0/template/yoga/picture_content.tpl

    r3040 r3121  
    55  <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}"
    66        {if isset($COMMENT_IMG)}
    7                 title="{$COMMENT_IMG|strip_tags:false|replace:'"':' '}" {else} title="{$current.TITLE|replace:'"':' '} - {$ALT_IMG}"
     7                title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}"
    88        {/if}>
    99{if isset($high) }
Note: See TracChangeset for help on using the changeset viewer.