Changeset 927:247142804de0 for inc/public/lib.tpl.context.php
- Timestamp:
 - 10/28/12 07:34:51 (13 years ago)
 - Branch:
 - default
 - File:
 - 
          
- 1 edited
 
- 
          inc/public/lib.tpl.context.php (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
inc/public/lib.tpl.context.php
r923 r927 341 341 342 342 # First post image helpers 343 public static function EntryFirstImageHelper($size,$with_category,$class="",$no_tag=false )343 public static function EntryFirstImageHelper($size,$with_category,$class="",$no_tag=false,$content_only=false) 344 344 { 345 345 global $core, $_ctx; … … 363 363 if ($_ctx->posts) 364 364 { 365 $subject = $_ctx->posts->post_excerpt_xhtml.$_ctx->posts->post_content_xhtml;365 $subject = ($content_only ? '' : $_ctx->posts->post_excerpt_xhtml).$_ctx->posts->post_content_xhtml; 366 366 if (preg_match_all($pattern,$subject,$m) > 0) 367 367 {  
Note: See TracChangeset
          for help on using the changeset viewer.
      