Changeset 937:37a5159c95f8 for inc/public/lib.tpl.context.php
- Timestamp:
- 10/29/12 17:52:42 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/lib.tpl.context.php
r930 r937 351 351 return preg_replace(array_keys($GLOBALS['__smilies']),array_values($GLOBALS['__smilies']),$str); 352 352 } 353 353 354 354 # First post image helpers 355 public static function EntryFirstImageHelper($size,$with_category,$class="",$no_tag=false,$content_only=false )355 public static function EntryFirstImageHelper($size,$with_category,$class="",$no_tag=false,$content_only=false,$cat_only=false) 356 356 { 357 357 global $core, $_ctx; … … 373 373 374 374 # We first look in post content 375 if ( $_ctx->posts)375 if (!$cat_only && $_ctx->posts) 376 376 { 377 377 $subject = ($content_only ? '' : $_ctx->posts->post_excerpt_xhtml).$_ctx->posts->post_content_xhtml;
Note: See TracChangeset
for help on using the changeset viewer.