Changeset 3120
- Timestamp:
- Feb 4, 2009, 3:30:48 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_default.inc.php
r3049 r3120 107 107 $tpl_var = 108 108 array( 109 'ID' 110 'TN_SRC' 111 'TN_ALT' 112 'TN_TITLE' 113 'ICON_TS' 114 'URL' => $url,109 'ID' => $row['id'], 110 'TN_SRC' => $thumbnail_url, 111 'TN_ALT' => $row['file'], 112 'TN_TITLE' => get_thumbnail_title($row), 113 'ICON_TS' => get_icon($row['date_available']), 114 'URL' => $url, 115 115 116 116 /* Fields for template-extension usage */ 117 117 'FILE_PATH' => $row['path'], 118 'FILE_POSTED' => format_date($row['date_available'], 'mysql_datetime'), 119 'FILE_CREATED' => (empty($row['date_creation'])) ? 120 '-': format_date($row['date_creation'], 'mysql_date'), 121 'FILE_DESC' => (empty($row['comment'])) ? '-' : $row['comment'], 122 'FILE_AUTHOR' => (empty($row['author'])) ? '-' : $row['author'], 118 'FILE_POSTED' => $row['date_available'], 119 'FILE_CREATED' => $row['date_creation'], 120 'FILE_DESC' => $row['comment'], 121 'FILE_AUTHOR' => $row['author'], 123 122 'FILE_HIT' => $row['hit'], 124 'FILE_SIZE' => (empty($row['filesize'])) ? '-' : $row['filesize'], 125 'FILE_WIDTH' => (empty($row['width'])) ? '-' : $row['width'], 126 'FILE_HEIGHT' => (empty($row['height'])) ? '-' : $row['height'], 127 'FILE_METADATE' => (empty($row['date_metadata_update'])) ? 128 '-': format_date($row['date_metadata_update'], 'mysql_date'), 129 'FILE_RATE' => (empty($row['rate'])) ? '-' : $row['rate'], 130 'FILE_HAS_HD' => ($row['has_high'] and $user['enabled_high']=='true') ? 123 'FILE_SIZE' => $row['filesize'], 124 'FILE_WIDTH' => $row['width'], 125 'FILE_HEIGHT' => $row['height'], 126 'FILE_METADATE' => $row['date_metadata_update'], 127 'FILE_HAS_HD' => ($row['has_high'] and $user['enabled_high']=='true') ? 131 128 true:false, /* lack of include/functions_picture.inc.php */ 132 129 ); -
trunk/include/functions_tag.inc.php
r3049 r3120 190 190 $items = array_intersect($items, $images); 191 191 } 192 193 return array_unique($items); 192 return $items; 194 193 break; 195 194 } -
trunk/include/smarty/libs/Smarty.class.php
r3000 r3120 21 21 * For questions, help, comments, discussion, etc., please join the 22 22 * Smarty mailing list. Send a blank e-mail to 23 * smarty-discussion-subscribe@googlegroups.com 23 * smarty-discussion-subscribe@googlegroups.com 24 24 * 25 25 * @link http://www.smarty.net/ … … 1058 1058 // var non-existant, return valid reference 1059 1059 $_tmp = null; 1060 return $_tmp; 1060 return $_tmp; 1061 1061 } 1062 1062 } … … 1117 1117 { 1118 1118 static $_cache_info = array(); 1119 1119 1120 1120 $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->error_reporting) 1121 1121 ? $this->error_reporting : error_reporting() & ~E_NOTICE); … … 1304 1304 return; 1305 1305 } else { 1306 if ($this->debugging) { 1307 // capture time for debugging info 1308 $_params = array(); 1309 require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); 1310 $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time); 1311 } 1306 1312 error_reporting($_smarty_old_error_level); 1307 1313 if (isset($_smarty_results)) { return $_smarty_results; } … … 1933 1939 return eval($code); 1934 1940 } 1935 1941 1936 1942 /** 1937 1943 * Extracts the filter name from the given callback 1938 * 1944 * 1939 1945 * @param callback $function 1940 1946 * @return string … … 1951 1957 } 1952 1958 } 1953 1959 1954 1960 /**#@-*/ 1955 1961 -
trunk/template/yoga/header.tpl
r3095 r3120 7 7 {if isset($meta_ref) } 8 8 {if isset($INFO_AUTHOR)} 9 <meta name="author" content="{$INFO_AUTHOR| replace:'"':' '}">9 <meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}"> 10 10 {/if} 11 11 {if isset($related_tags)} … … 13 13 {/if} 14 14 {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}"> 16 16 {else} 17 17 <meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}"> -
trunk/template/yoga/mainpage_categories.tpl
r3032 r3120 7 7 <div class="illustration"> 8 8 <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}"> 10 10 </a> 11 11 </div> … … 15 15 {$cat.ICON_TS} 16 16 </h3> 17 18 19 20 21 22 23 24 25 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> 26 26 </div> 27 27 </div> -
trunk/template/yoga/picture_content.tpl
r3041 r3120 5 5 <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" 6 6 {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}" 8 8 {/if}> 9 9 {if isset($high) }
Note: See TracChangeset
for help on using the changeset viewer.