Ignore:
Timestamp:
Jul 17, 2012, 3:47:31 PM (12 years ago)
Author:
flop25
Message:

bug:2688
changing padding margin...
+10 px for .thumbnailCategory .description using a prefilter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/Sylvia/themeconf.inc.php

    r16799 r16800  
    2424function Sylvia_album_prefilter($content, &$smarty)
    2525{
    26     $search = '#\{html_style\}#';
    27     $replacement = '{html_style}
     26  $search = '#\{html_style\}#';
     27  $replacement = '{html_style}
    2828.thumbnailCategory .description .text{ldelim}
    2929        height: {$derivative_params->max_height()-30}px;
    3030}';
    31   return preg_replace($search, $replacement, $content);
     31  $content = preg_replace($search, $replacement, $content);
     32  $search = '#\.thumbnailCategory[\t ]*.description\{ldelim\}[\s]*height:[\t ]*\{\$derivative_params->max_height\(\)\+5#';
     33  $replacement = '.thumbnailCategory .description{ldelim}
     34        height: {$derivative_params->max_height()+15';
     35  $content = preg_replace($search, $replacement, $content);
     36  return $content;
    3237}
    3338?>
Note: See TracChangeset for help on using the changeset viewer.