Changeset 16790


Ignore:
Timestamp:
Jul 16, 2012, 7:59:04 PM (8 years ago)
Author:
flop25
Message:

better display of the calendar page

Location:
extensions/stripped_black_bloc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/local_head.tpl

    r16787 r16790  
    33{combine_script id='jquery.cookie' load='header' require='jquery' path='themes/stripped_black_bloc/js/jquery.ck.min.js'}
    44{html_style}{literal}
    5 #theHeader a, .titrePage a, .footer_login a, .navigationBar a {
     5#theHeader a, .titrePage a, .footer_login a, .navigationBar a, #calendar_block A {
    66        color: {/literal}{if $stripped_black_bloc.color_main}#{$stripped_black_bloc.color_main}{/if}{literal};
    77}
     
    1919}
    2020.content_block, .bloc_stuff, .two_columns {
    21         width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.column_width*2-10}{/if}{literal}px;
     21        width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.column_width*2-20}{/if}{literal}px;
    2222}
    2323.stuffs_thumbnails, .stuffs_thumbnails #thumbnails, .one_column {
  • extensions/stripped_black_bloc/theme.css

    r16789 r16790  
    198198        padding:0;
    199199}
    200        
     200.calendarBar span {
     201    float: left;
     202}
    201203/****************
    202204 color backgroung etc
  • extensions/stripped_black_bloc/themeconf.inc.php

    r16787 r16790  
    8585function stripped_black_bloc_prefilter_index($content, &$smarty)
    8686{
     87  global $page;
    8788  $search = "#\{\'Menu\'\|@translate\}#"; 
    8889  $replacement = "{'Show/hide menu'|@translate}</span>";
     
    100101  $content = preg_replace($search, $replacement, $content);
    101102
    102   $search = '#{\$PLUGIN_INDEX_CONTENT_AFTER}</div>{/if}.*</div>#s'; 
     103  $search = '#\{\$PLUGIN_INDEX_CONTENT_AFTER\}</div>\{/if\}.*</div>#s'; 
    103104  $replacement = '{$PLUGIN_INDEX_CONTENT_AFTER}</div>{/if}
    104105        </div>
    105  {if !empty($navbar) }
     106  {if !empty($navbar) }
    106107  {include file=\'navigation_bar.tpl\'|@get_extent:\'navbar\'}
    107  {/if}';
    108   return preg_replace($search, $replacement, $content);
     108  {/if}';
     109  $content = preg_replace($search, $replacement, $content);
     110  if ( isset($page['chronology_view']))
     111  {
     112    $search = '#\{if isset\(\$chronology\.TITLE\)#s';
     113    $replacement = '<div class="bloc_stuff">
     114{if isset($chronology.TITLE)';
     115    $content = preg_replace($search, $replacement, $content);
     116    $search = '#\{if \!empty\(\$PLUGIN_INDEX_CONTENT_BEGIN\)\}#s';
     117    $replacement = '</div>
     118{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}';
     119    $content = preg_replace($search, $replacement, $content);
     120    $search = '#calendar_block"#s';
     121    if ($page['chronology_view']=='calendar')
     122    {
     123     $replacement = 'calendar_block" class="bloc_stuff" style="width:100%;padding:5px"';
     124    }
     125    else {
     126     $replacement = 'calendar_block" class="bloc_stuff" style="padding:5px 0"';
     127    }
     128    $content = preg_replace($search, $replacement, $content);
     129  }
     130
     131  return $content;
    109132}
    110133
Note: See TracChangeset for help on using the changeset viewer.