Changeset 16034


Ignore:
Timestamp:
Jun 25, 2012, 11:18:57 PM (12 years ago)
Author:
flop25
Message:

multiple changes for 2.4
adding the pattern system
border radius css3 added

Location:
extensions/floPure
Files:
2 added
17 edited

Legend:

Unmodified
Added
Removed
  • extensions/floPure/Pure_autumn/theme.css

    r11927 r16034  
    360360  -moz-border-radius-topleft:15px;
    361361  -moz-border-radius-topright:0;
    362 background-color: #843317;
     362  background-color: #843317;
     363  border-radius: 15px 0 15px 0;
    363364
    364365-webkit-background-clip: border;
     
    375376  -moz-border-radius-topright:0;
    376377background-color: #a49d4c;
     378  border-radius: 15px 0 15px 0;
    377379
    378380-webkit-background-clip: border;
     
    388390  -moz-border-radius-topleft:15px;
    389391  -moz-border-radius-topright:0;
     392  border-radius: 15px 0 15px 0;
    390393background-color: #a46b29;
    391394-webkit-background-clip: border;
     
    400403  -moz-border-radius-topleft:15px;
    401404  -moz-border-radius-topright:0;
     405  border-radius: 15px 0 15px 0;
    402406background-color: #7B8D78;
    403407-webkit-background-clip: border;
     
    421425}
    422426/***                   miniatures            **********/
    423 
     427.thumbnails .wrap1 {
     428    width: auto !important;
     429}
    424430
    425431#content UL.thumbnails SPAN.wrap2 {
     
    433439-webkit-border-bottom-right-radius: 15px;
    434440-webkit-border-top-left-radius: 15px;
     441  border-radius: 15px 0 15px 0;
    435442}
    436443.thumb_1 .wrap2 {
     
    470477-webkit-border-bottom-right-radius: 15px;
    471478-webkit-border-top-left-radius: 15px;
     479  border-radius: 15px 0 15px 0;
    472480}
    473481.wrap2 IMG, .illustration IMG {
  • extensions/floPure/Pure_autumn/themeconf.inc.php

    r10108 r16034  
    2626function Pure_autumn_prefilter_cat($content, &$smarty)
    2727{
    28   $search = '#<li>[\s]*<div class="thumbnailCategory">#';
    29  
    30   $replacement = '<li class="{cycle values="cat_1,cat_2,cat_3,cat_4"}" >
     28  $pwgversion=str_replace('.','',PHPWG_VERSION);
     29  $pwgversion_array=explode('.', PHPWG_VERSION);
     30  if ($pwgversion_array[0].$pwgversion_array[1]=="23")
     31  {
     32    $search = '#<li>[\s]*<div class="thumbnailCategory">#';
     33    $replacement = '<li class="{cycle values="cat_1,cat_2,cat_3,cat_4"}" >
    3134        <div class="thumbnailCategory">';
    32 
     35  }
     36  elseif ($pwgversion_array[0].$pwgversion_array[1]=="24")
     37  {
     38    $search = '#<li class="\{if \$smarty\.foreach\.comment_loop\.index is odd\}odd\{else\}even\{/if\}">#';
     39    $replacement = '<li class="{cycle values="cat_1,cat_2,cat_3,cat_4"}" >';
     40  }
    3341  return preg_replace($search, $replacement, $content);
    3442}
     
    4654function Pure_autumn_prefilter_thumbnails($content, &$smarty)
    4755{
     56  $pwgversion=str_replace('.','',PHPWG_VERSION);
     57  $pwgversion_array=explode('.', PHPWG_VERSION);
     58  if ($pwgversion_array[0].$pwgversion_array[1]=="23")
     59  {
    4860  $search = '#<li>[\s]*<span class="wrap1">#';
    4961 
    5062  $replacement = '<li class="thumb_{"1"|mt_rand:5}"  >
    5163        <span class="wrap1">';
     64  }
     65  elseif ($pwgversion_array[0].$pwgversion_array[1]=="24")
     66  {
     67  $search = '#<li>[\s]*<span class="wrap1">#';
     68 
     69  $replacement = '<li class="thumb_{"1"|mt_rand:5}"  >
     70        <span class="wrap1">';
     71  }
    5272
    5373  return preg_replace($search, $replacement, $content);
  • extensions/floPure/Pure_clear_blue/theme.css

    r9716 r16034  
    2626
    2727/* backgrounds */
    28 BODY, H3, .throw {
     28BODY, .throw {
    2929  background-color: #EDF0F3;   
    3030}
  • extensions/floPure/Pure_default/iconset.css

    r10041 r16034  
    55        border:none;
    66}
    7 .pwg-state-disabled .pwg-icon-arrow-e{ background-position: 0 -144px; width: 22px; height: 22px; }
    8 .pwg-state-disabled .pwg-icon-arrow-w{ background-position: 0 -360px; width: 22px; height: 22px; }
    9 .pwg-state-disabled .pwg-icon-arrowstop-e{ background-position: 0 -504px; width: 22px; height: 22px; }
    10 .pwg-state-disabled .pwg-icon-arrowstop-w{ background-position: 0 -648px; width: 22px; height: 22px; }
     7.pwg-icon-apropos{ background-position: 0 0; width: 22px; height: 22px; }
     8.pwg-icon-arrow-e{ background-position: 0 -37px; width: 22px; height: 22px; }
     9.pwg-state-disabled .pwg-icon-arrow-e{ background-position: 0 -74px; width: 22px; height: 22px; }
     10.pwg-icon-arrow-n{ background-position: 0 -111px; width: 22px; height: 22px; }
     11.pwg-icon-arrow-w{ background-position: 0 -148px; width: 22px; height: 22px; }
     12.pwg-state-disabled .pwg-icon-arrow-w{ background-position: 0 -185px; width: 22px; height: 22px; }
     13.pwg-icon-arrowstop-e{ background-position: 0 -222px; width: 22px; height: 22px; }
     14.pwg-state-disabled .pwg-icon-arrowstop-e{ background-position: 0 -259px; width: 22px; height: 22px; }
     15.pwg-icon-arrowstop-w{ background-position: 0 -296px; width: 22px; height: 22px; }
     16.pwg-state-disabled .pwg-icon-arrowstop-w{ background-position: 0 -333px; width: 22px; height: 22px; }
     17.pwg-icon-caddie-add{ background-position: 0 -370px; width: 24px; height: 24px; }
     18.pwg-icon-calendar{ background-position: 0 -409px; width: 22px; height: 22px; }
     19.pwg-icon-camera-calendar{ background-position: 0 -446px; width: 24px; height: 24px; }
     20.pwg-icon-camera-info{ background-position: 0 -485px; width: 22px; height: 22px; }
     21.pwg-icon-category-edit{ background-position: 0 -522px; width: 22px; height: 22px; }
     22.pwg-icon-category-view-flat{ background-position: 0 -559px; width: 22px; height: 22px; }
     23.pwg-icon-category-view-normal{ background-position: 0 -596px; width: 22px; height: 22px; }
     24.pwg-icon-chat{ background-position: 0 -633px; width: 22px; height: 22px; }
     25.pwg-icon-clock-minus{ background-position: 0 -670px; width: 22px; height: 22px; }
     26.pwg-icon-clock-plus{ background-position: 0 -707px; width: 22px; height: 22px; }
     27.pwg-icon-close{ background-position: 0 -744px; width: 24px; height: 24px; }
     28.pwg-icon-cloud{ background-position: 0 -783px; width: 22px; height: 22px; }
     29.pwg-icon-edit{ background-position: 0 -820px; width: 22px; height: 22px; }
     30.pwg-icon-favorite-add{ background-position: 0 -857px; width: 22px; height: 22px; }
     31.pwg-icon-favorite-del{ background-position: 0 -894px; width: 22px; height: 22px; }
     32.pwg-icon-filter-del{ background-position: 0 -931px; width: 24px; height: 24px; }
     33.pwg-icon-filter{ background-position: 0 -970px; width: 24px; height: 24px; }
     34.pwg-icon-help{ background-position: 0 -1009px; width: 22px; height: 22px; }
     35.pwg-icon-home{ background-position: 0 -1046px; width: 22px; height: 22px; }
     36.pwg-icon-letters{ background-position: 0 -1083px; width: 22px; height: 22px; }
     37.pwg-icon-lost-password{ background-position: 0 -1120px; width: 24px; height: 24px; }
     38.pwg-icon-pause{ background-position: 0 -1159px; width: 22px; height: 22px; }
     39.pwg-icon-play{ background-position: 0 -1196px; width: 22px; height: 22px; }
     40.pwg-icon-register{ background-position: 0 -1233px; width: 24px; height: 24px; }
     41.pwg-icon-repeat-play{ background-position: 0 -1272px; width: 22px; height: 22px; }
     42.pwg-icon-repeat-stop{ background-position: 0 -1309px; width: 22px; height: 22px; }
     43.pwg-icon-representative{ background-position: 0 -1346px; width: 22px; height: 22px; }
     44.pwg-icon-map, .pwg-icon-globe , .pwg-icon-rss{ background-position: 0 -1383px; width: 22px; height: 22px; }
     45.pwg-icon-save{ background-position: 0 -1420px; width: 24px; height: 24px; }
     46.pwg-icon-search{ background-position: 0 -1459px; width: 22px; height: 22px; }
     47#derivativeSwitchLink{width: 48px !important; height: 24px; }
     48.pwg-icon-sizes{ background-position: 0 -1496px; width: 48px; height: 24px; }
     49.pwg-icon-slideshow{ background-position: 0 -1535px; width: 22px; height: 22px; }
     50.pwg-icon-small_resizable{ background-position: 0 -1572px; width: 16px; height: 16px; }
     51.pwg-icon-sort{ background-position: 0 -1603px; width: 24px; height: 24px; }
     52.pwg-icon-stop{ background-position: 0 -1642px; width: 22px; height: 22px; }
     53.pwg-icon-tag{ background-position: 0 -1679px; width: 22px; height: 22px; }
     54.pwg-icon-upload{ background-position: 0 -1716px; width: 22px; height: 22px; }
    1155
    12 .pwg-icon-apropos{ background-position: 0 0; width: 22px; height: 22px; }
    13 .pwg-icon-arrow-e{ background-position: 0 -72px; width: 22px; height: 22px; }
    14 .pwg-icon-arrow-n{ background-position: 0 -216px; width: 22px; height: 22px; }
    15 .pwg-icon-arrow-w{ background-position: 0 -288px; width: 22px; height: 22px; }
    16 .pwg-icon-arrowstop-e{ background-position: 0 -432px; width: 22px; height: 22px; }
    17 .pwg-icon-arrowstop-w{ background-position: 0 -576px; width: 22px; height: 22px; }
    18 
    19 .pwg-icon-caddie-add{ background-position: 0 -720px; width: 24px; height: 24px; }
    20 .pwg-icon-calendar{ background-position: 0 -794px; width: 22px; height: 22px; }
    21 .pwg-icon-camera-calendar{ background-position: 0 -866px; width: 24px; height: 24px; }
    22 .pwg-icon-camera-info{ background-position: 0 -940px; width: 22px; height: 22px; }
    23 .pwg-icon-category-edit{ background-position: 0 -1012px; width: 22px; height: 22px; }
    24 .pwg-icon-category-view-flat{ background-position: 0 -1084px; width: 22px; height: 22px; }
    25 .pwg-icon-category-view-normal{ background-position: 0 -1156px; width: 22px; height: 22px; }
    26 .pwg-icon-chat{ background-position: 0 -1228px; width: 22px; height: 22px; }
    27 .pwg-icon-clock-minus{ background-position: 0 -1300px; width: 22px; height: 22px; }
    28 .pwg-icon-clock-plus{ background-position: 0 -1372px; width: 22px; height: 22px; }
    29 .pwg-icon-close{ background-position: 0 -1444px; width: 24px; height: 24px; }
    30 .pwg-icon-cloud{ background-position: 0 -1518px; width: 22px; height: 22px; }
    31 .pwg-icon-edit{ background-position: 0 -1590px; width: 22px; height: 22px; }
    32 .pwg-icon-favorite-add{ background-position: 0 -1662px; width: 22px; height: 22px; }
    33 .pwg-icon-favorite-del{ background-position: 0 -1734px; width: 22px; height: 22px; }
    34 .pwg-icon-help{ background-position: 0 -1806px; width: 22px; height: 22px; }
    35 .pwg-icon-home{ background-position: 0 -1878px; width: 22px; height: 22px; }
    36 .pwg-icon-letters{ background-position: -74px 0; width: 22px; height: 22px; }
    37 .pwg-icon-lost-password{ background-position: -74px -72px; width: 24px; height: 24px; }
    38 .pwg-icon-pause{ background-position: -74px -146px; width: 22px; height: 22px; }
    39 .pwg-icon-play{ background-position: -74px -218px; width: 22px; height: 22px; }
    40 .pwg-icon-register{ background-position: -74px -290px; width: 24px; height: 24px; }
    41 .pwg-icon-repeat-play{ background-position: -74px -364px; width: 22px; height: 22px; }
    42 .pwg-icon-repeat-stop{ background-position: -74px -436px; width: 22px; height: 22px; }
    43 .pwg-icon-representative{ background-position: -74px -508px; width: 22px; height: 22px; }
    44 .pwg-icon-rss{ background-position: -74px -580px; width: 22px; height: 22px; }
    45 .pwg-icon-save{ background-position: -74px -652px; width: 24px; height: 24px; }
    46 .pwg-icon-search{ background-position: -74px -726px; width: 22px; height: 22px; }
    47 .pwg-icon-slideshow{ background-position: -74px -798px; width: 22px; height: 22px; }
    48 .pwg-icon-small_resizable{ background-position: -74px -870px; width: 16px; height: 16px; }
    49 .pwg-icon-stop{ background-position: -74px -936px; width: 22px; height: 22px; }
    50 .pwg-icon-tag{ background-position: -74px -1008px; width: 22px; height: 22px; }
    51 .pwg-icon-upload{ background-position: -74px -1080px; width: 22px; height: 22px; }
  • extensions/floPure/Pure_default/local_head.tpl

    r12013 r16034  
     1{if isset($PHPWG_VERSION_01) and $PHPWG_VERSION_01!="24"}
    12{footer_script require='jquery'}
    23{literal}
     
    1920{/literal}
    2021{/footer_script}
     22{/if}
    2123{if isset($MENUBAR) and isset($ELEMENT_CONTENT)}
    2224{html_head}{literal}
  • extensions/floPure/Pure_default/theme.css

    r11928 r16034  
    4848    font-weight: bold;
    4949}
     50/*-*/
     51
     52#derivativeSwitchBox A, #sortOrderBox A {
     53        color: #000;
     54}
     55#derivativeSwitchBox, #sortOrderBox {
     56        font-size: 11px;
     57        color: #000;
     58        text-shadow: 0 0 2px #ccc;
     59        padding: 4px 8px;
     60        border: 1px solid rgba(255,255,255,0.25);
     61        background-color: rgb(255,255,255);
     62        background-color: rgba(255,255,255,0.92);
     63        background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#fff));
     64        border-radius: 3px;
     65        -webkit-border-radius: 3px;
     66        -moz-border-radius: 3px;
     67        box-shadow: 0 0 5px #555;
     68        -webkit-box-shadow: 0 0 5px #555;
     69        -moz-box-shadow: 0 0 5px #555;
     70}
     71#derivativeSwitchBox A:hover, #sortOrderBox A:hover {
     72        text-shadow: 0 0 1px #000;
     73}
     74
  • extensions/floPure/Pure_default/themeconf.inc.php

    r11928 r16034  
    1616  'activable' => false,
    1717);
     18
     19
     20add_event_handler('loc_begin_header', 'pwg_v');
     21function  pwg_v() {
     22  global $template;
     23  $pwgversion=str_replace('.','',PHPWG_VERSION);
     24  $pwgversion_array=explode('.', PHPWG_VERSION);
     25 $template->assign(
     26  array(
     27    'PHPWG_VERSION_01' => $pwgversion_array[0].$pwgversion_array[1],
     28  ));
     29}
     30
     31
     32// function load_pattern
     33// include the right ***.pattern.php
     34// not compatible 2.2and<2.2
     35
     36function load_pattern()
     37{
     38  global $pattern;
     39  $pwgversion=str_replace('.','',PHPWG_VERSION);
     40  $pwgversion_array=explode('.', PHPWG_VERSION);
     41  if (file_exists($pwgversion.'pattern.php'))
     42  {
     43    include($pwgversion.'.pattern.php');
     44    return true;
     45  }
     46  elseif (file_exists(PHPWG_ROOT_PATH.'themes/Pure_default/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php'))
     47  {
     48    include(PHPWG_ROOT_PATH.'themes/Pure_default/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php');
     49    return true;
     50  }
     51  else
     52  {
     53    $list_pattern_path=array();
     54    $dir=PHPWG_ROOT_PATH.'themes/Pure_default';
     55    $dh = opendir($dir);
     56    while (($file = readdir ($dh)) !== false ) {
     57      if ($file !== '.' && $file !== '..') {
     58        $path =$dir.'/'.$file;
     59        if (!is_dir ($path)) {
     60          if(strpos($file,'pattern.php')!==false) { //On ne prend que les .pattern.php
     61            $list_pattern_path[]=$file;
     62          }
     63        }
     64      }
     65    }
     66    closedir($dh);
     67    $f=0;
     68    for($i = 10; $i >=0; $i--)
     69    {
     70      if (in_array($pwgversion_array[0].$i.'.pattern.php',$list_pattern_path))
     71      {
     72        include($pwgversion_array[0].$i.'.pattern.php');
     73        return true;
     74        $f=1;
     75        break;
     76      }
     77    }
     78    if ($f=0)
     79    {
     80      return false;
     81    }
     82  }
     83 
     84}
     85if(!load_pattern())
     86{
     87  global $page;
     88  $page['errors'][]='Theme not compatible';
     89}
     90
     91
     92
    1893add_event_handler('loc_after_page_header', 'Pure_default_after_page_header');
    1994function Pure_default_after_page_header()
     
    53128function Pure_default_index()
    54129{
    55     global $template;
    56     $template->set_prefilter('index', 'Pure_default_prefilter_index');
     130  global $template;
     131  $template->set_prefilter('index', 'Pure_default_prefilter_index');
    57132}
    58133function Pure_default_prefilter_index($content, &$smarty)
    59134{
    60   $search = '#<div id="content" class="content">#'; 
    61   $replacement = '<div id="content" class="content">
    62   <table id="table_content" border="0" cellspacing="0" cellpadding="0">
    63     <tr>
    64       <td id="section_up_left">&nbsp;</td>
    65       <td id="section_up">&nbsp;</td>
    66       <td id="section_up_right">&nbsp;</td>
    67     </tr>
    68     <tr>
    69       <td id="section_left">&nbsp;</td>
    70       <td id="section_in">
    71 ';
    72   $content = preg_replace($search, $replacement, $content);
    73        
    74   $search = '#\{if \!empty\(\$PLUGIN_INDEX_CONTENT_END\)\}\{\$PLUGIN_INDEX_CONTENT_END\}\{/if\}#'; 
    75   $replacement = '{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if}
    76       </td>
    77           <td id="section_right">&nbsp;</td>
    78     </tr>
    79     <tr>
    80       <td id="section_bottom_left">&nbsp;</td>
    81       <td id="section_bottom" >&nbsp;</td>
    82       <td id="section_bottom_right" >&nbsp;</td>
    83     </tr>
    84   </table>
    85 ';
    86   return preg_replace($search, $replacement, $content);
    87 }
     135  global $pattern;
     136  $r=$pattern['Pure_default_prefilter_index']['R'];
     137  $ps=$pattern['Pure_default_prefilter_index']['S'];
     138  foreach($r as $i => $pr)
     139  {
     140    $content = preg_replace($ps[$i], $pr, $content);
     141  }
     142  return $content;
     143}
     144
    88145/************************************ picture.tpl ************************************/
    89146add_event_handler('loc_begin_picture', 'Pure_default_picture');
    90147function Pure_default_picture()
    91148{
    92     global $template;
    93     $template->set_prefilter('picture', 'Pure_default_prefilter_picture');
     149  global $template;
     150  $template->set_prefilter('picture', 'Pure_default_prefilter_picture');
    94151}
    95152function Pure_default_prefilter_picture($content, &$smarty)
    96153{
    97   $search = '#<div id="content" class="pictureContent">#'; 
    98   $replacement = '<div id="content" class="pictureContent">
    99   <table id="table_content" border="0" cellspacing="0" cellpadding="0">
    100     <tr>
    101       <td id="section_up_left">&nbsp;</td>
    102       <td id="section_up">&nbsp;</td>
    103       <td id="section_up_right">&nbsp;</td>
    104     </tr>
    105     <tr>
    106       <td id="section_left">&nbsp;</td>
    107       <td id="section_in">
    108 ';
    109   $content = preg_replace($search, $replacement, $content);
    110        
    111   $search = '#\{if \!empty\(\$PLUGIN_PICTURE_AFTER\)\}\{\$PLUGIN_PICTURE_AFTER\}\{/if\}#'; 
    112   $replacement = '{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}
    113       </td>
    114           <td id="section_right">&nbsp;</td>
    115     </tr>
    116     <tr>
    117       <td id="section_bottom_left">&nbsp;</td>
    118       <td id="section_bottom" >&nbsp;</td>
    119       <td id="section_bottom_right" >&nbsp;</td>
    120     </tr>
    121   </table>
    122 ';
    123   return preg_replace($search, $replacement, $content);
    124 }
    125 
     154  global $pattern;
     155  $r=$pattern['Pure_default_prefilter_picture']['R'];
     156  $ps=$pattern['Pure_default_prefilter_picture']['S'];
     157  foreach($r as $i => $pr)
     158  {
     159    $content = preg_replace($ps[$i], $pr, $content);
     160  }
     161  return $content;
     162}
    126163/**************************** identification.tpl *****************************************************************/
    127164function Pure_default_prefilter_identification($content, &$smarty)
    128165{
    129   $search = '#<form action="\{\$F_LOGIN_ACTION\}" method="post" name="login_form" class="properties">#'; 
    130   $replacement = '<div id="autre_content">
    131 <form action="{$F_LOGIN_ACTION}" method="post" name="login_form" class="properties">
    132 ';
    133   $content = preg_replace($search, $replacement, $content);
    134   $search = '#</div>[\s]*<\!-- content -->#'; 
    135   $replacement = '</div>
    136         </div> <!-- content -->';
    137   return preg_replace($search, $replacement, $content);
     166  global $pattern;
     167  $r=$pattern['Pure_default_prefilter_identification']['R'];
     168  $ps=$pattern['Pure_default_prefilter_identification']['S'];
     169  foreach($r as $i => $pr)
     170  {
     171    $content = preg_replace($ps[$i], $pr, $content);
     172  }
     173  return $content;
    138174}
    139175/**************************** nbm.tpl *****************************************************************/
    140176function Pure_default_prefilter_nbm($content, &$smarty)
    141177{
    142         $search = '#\{if not empty(\$errors)\}#'; 
    143         $replacement = '<div id="autre_content">
    144 {if not empty($errors)}
    145 ';
    146         $content = preg_replace($search, $replacement, $content);
    147         $search = '#\{/if\}[\s]*</div>#'; 
    148         $replacement = '{/if}
    149         </div>
    150         </div> <!-- content -->';
    151         return preg_replace($search, $replacement, $content);
     178  global $pattern;
     179  $r=$pattern['Pure_default_prefilter_nbm']['R'];
     180  $ps=$pattern['Pure_default_prefilter_nbm']['S'];
     181  foreach($r as $i => $pr)
     182  {
     183    $content = preg_replace($ps[$i], $pr, $content);
     184  }
     185  return $content;
    152186}
    153187/**************************** notification.tpl *****************************************************************/
    154188function Pure_default_prefilter_notification($content, &$smarty)
    155189{
    156         $search = '#<p>\{\'#'; 
    157         $replacement = '<div id="autre_content">
    158 <p>{\'';
    159         $content = preg_replace($search, $replacement, $content);
    160         $search = '#</dt>[\s]*</dl>#'; 
    161         $replacement = '</dt>
    162         </dl>
    163 </div>';
    164         return preg_replace($search, $replacement, $content);
     190  global $pattern;
     191  $r=$pattern['Pure_default_prefilter_notification']['R'];
     192  $ps=$pattern['Pure_default_prefilter_notification']['S'];
     193  foreach($r as $i => $pr)
     194  {
     195    $content = preg_replace($ps[$i], $pr, $content);
     196  }
     197  return $content;
    165198}
    166199/**************************** password.tpl *****************************************************************/
    167200function Pure_default_prefilter_password($content, &$smarty)
    168201{
    169         $search = '#<form action=#'; 
    170         $replacement = '<div id="autre_content">
    171 <form action=';
    172         $content = preg_replace($search, $replacement, $content);
    173         $search = '#</div>[\s]*<!-- content -->#'; 
    174         $replacement = '</div>
    175         </div> <!-- content -->';
    176         return preg_replace($search, $replacement, $content);
     202  global $pattern;
     203  $r=$pattern['Pure_default_prefilter_password']['R'];
     204  $ps=$pattern['Pure_default_prefilter_password']['S'];
     205  foreach($r as $i => $pr)
     206  {
     207    $content = preg_replace($ps[$i], $pr, $content);
     208  }
     209  return $content;
    177210}
    178211/**************************** tags.tpl *****************************************************************/
    179212function Pure_default_prefilter_tags($content, &$smarty)
    180213{
    181                 $search = '#</h2>[\s]*</div>#'; 
    182                 $replacement = '</h2>
    183   </div>
    184 <div id="autre_content">';
    185                 $content = preg_replace($search, $replacement, $content);
    186                 $search = '#</div>[\s]*<!-- content -->#'; 
    187                 $replacement = '</div>
    188                 </div> <!-- content -->';
    189                 return preg_replace($search, $replacement, $content);
     214  global $pattern;
     215  $r=$pattern['Pure_default_prefilter_tags']['R'];
     216  $ps=$pattern['Pure_default_prefilter_tags']['S'];
     217  foreach($r as $i => $pr)
     218  {
     219    $content = preg_replace($ps[$i], $pr, $content);
     220  }
     221  return $content;
    190222}
    191223/**************************** about.tpl *****************************************************************/
    192224function Pure_default_prefilter_about($content, &$smarty)
    193225{
    194                 $search = '#</h2>[\s]*</div>#'; 
    195                 $replacement = '</h2>
    196   </div>
    197 <div id="autre_content">';
    198                 $content = preg_replace($search, $replacement, $content);
    199                 $search = '#\{/if\}[\s]*</div>#'; 
    200                 $replacement = '{/if}
    201   </div>
    202   </div>';
    203                 return preg_replace($search, $replacement, $content);
     226  global $pattern;
     227  $r=$pattern['Pure_default_prefilter_about']['R'];
     228  $ps=$pattern['Pure_default_prefilter_about']['S'];
     229  foreach($r as $i => $pr)
     230  {
     231    $content = preg_replace($ps[$i], $pr, $content);
     232  }
     233  return $content;
    204234}
    205235/**************************** popuphelp.tpl *****************************************************************/
    206236function Pure_default_prefilter_popuphelp($content, &$smarty)
    207237{
    208                 $search = '#</h2>[\s]*</div>#'; 
    209                 $replacement = '</h2>
    210   </div>
    211 <div id="autre_content">';
    212                 $content = preg_replace($search, $replacement, $content);
    213                 $search = '#</div>[\s]*<!-- content -->#'; 
    214                 $replacement = '</div>
    215                 </div> <!-- content -->';
    216                 return preg_replace($search, $replacement, $content);
     238  global $pattern;
     239  $r=$pattern['Pure_default_prefilter_popuphelp']['R'];
     240  $ps=$pattern['Pure_default_prefilter_popuphelp']['S'];
     241  foreach($r as $i => $pr)
     242  {
     243    $content = preg_replace($ps[$i], $pr, $content);
     244  }
     245  return $content;
    217246}
    218247
  • extensions/floPure/Pure_freaky/theme.css

    r10105 r16034  
    3838}
    3939 */
    40 H2, #imageHeaderBar, #imageToolBar A:hover, .row1 , H3, .throw, #imageToolBar, #admin_content, .header_notes, .content,  #autre_content, .additional_info, #copyright {
     40H2, #imageHeaderBar, #imageToolBar A:hover, .row1 , .throw, #imageToolBar, #admin_content, .header_notes, .content,  #autre_content, .additional_info, #copyright {
    4141        background-image: url(images/content_in.png)!important;
    4242        background-repeat:repeat;
  • extensions/floPure/Pure_green_nature/theme.css

    r5914 r16034  
    2525}
    2626
    27 H2, #imageToolBar A:hover, .row1 , H3{
     27H2, #imageToolBar A:hover, .row1 {
    2828background-color: #76964B;
    2929}
  • extensions/floPure/Pure_grey/theme.css

    r10201 r16034  
    2828}
    2929/* backgrounds */
    30 BODY, H3, .throw, #content {
     30BODY, .throw, #content {
    3131        background-color: #414141;
    3232}
  • extensions/floPure/Pure_grey_plastic/theme.css

    r6865 r16034  
    3131}
    3232/* backgrounds */
    33 BODY, H3, .throw, #content {
     33BODY, .throw, #content {
    3434  background-color: #414141;
    3535}
  • extensions/floPure/Pure_sky/theme.css

    r9716 r16034  
    3838*/
    3939
    40 H3, .throw {
     40.throw {
    4141  background-color: #EDF0F3;   
    4242}
  • extensions/floPure/Pure_tr_clear_blue/theme.css

    r9716 r16034  
    5555}
    5656 */
    57 H3, .throw {
     57.throw {
    5858  background-color: #EDF0F3;   
    5959}
  • extensions/floPure/Pure_tr_green_nature/theme.css

    r6857 r16034  
    2222}
    2323*/
    24 H3, H2, .row1 {
     24H2, .row1 {
    2525background-color: #76964B;
    2626}
Note: See TracChangeset for help on using the changeset viewer.