Changeset 11928


Ignore:
Timestamp:
08/10/11 14:48:38 (8 years ago)
Author:
flop25
Message:

correction for 2.3 and the menu on picture page : adding the table layout on the picture page in order to harmonize the style

Location:
extensions/floPure/Pure_default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/floPure/Pure_default/local_head.tpl

    r10486 r11928  
    1717{/literal} 
    1818{/footer_script} 
     19{if isset($MENUBAR) and isset($ELEMENT_CONTENT)} 
     20{html_head}{literal} 
     21<style> 
     22#imageHeaderBar, #imageToolBar { 
     23        background-image:none; 
     24} 
     25</style> 
     26{/literal}{/html_head} 
     27{/if} 
  • extensions/floPure/Pure_default/theme.css

    r10109 r11928  
    4343} 
    4444 
     45/*--------image--------------*/ 
     46#imageHeaderBar .browsePath { 
     47    font-size: 120%; 
     48    font-weight: bold; 
     49} 
  • extensions/floPure/Pure_default/themeconf.inc.php

    r10295 r11928  
    8686  return preg_replace($search, $replacement, $content); 
    8787} 
     88/************************************ picture.tpl ************************************/ 
     89add_event_handler('loc_begin_picture', 'Pure_default_picture'); 
     90function Pure_default_picture() 
     91{ 
     92    global $template; 
     93    $template->set_prefilter('picture', 'Pure_default_prefilter_picture'); 
     94} 
     95function Pure_default_prefilter_picture($content, &$smarty) 
     96{ 
     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} 
    88125 
    89126/**************************** identification.tpl *****************************************************************/ 
Note: See TracChangeset for help on using the changeset viewer.