Changeset 11823


Ignore:
Timestamp:
Jul 24, 2011, 6:13:53 PM (9 years ago)
Author:
flop25
Message:

main color (not grey) in config
header, elements of footer, elements of tittlebar and the menubar in "bubbles"
created 2 new classes : two_columns, one_column
width corrected

Location:
extensions/stripped_black_bloc
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/admin/admin.inc.php

    r11699 r11823  
    1414if(isset($_POST['submit_stripped_black_bloc']))
    1515{
     16        $config_send['color_main']=(isset($_POST['f_color_main']) and !empty($_POST['f_color_main'])) ? $_POST['f_color_main'] : 'E6554F';
    1617        $config_send['thumbnail']=(isset($_POST['f_thumbnail'])) ? $_POST['f_thumbnail'] : 'piwigo';
    1718        $config_send['column_width']=(isset($_POST['f_column_width'])) ? $_POST['f_column_width'] : 170;
  • extensions/stripped_black_bloc/admin/admin.tpl

    r11699 r11823  
    77    <legend>{'Displaying options'|@translate}</legend>
    88    <ul>
     9    <li>
     10      <label for="color_main"><span class="property">{'color main'|@translate}</span>&nbsp;</label>
     11      <input type="text" id="color_main" name="f_color_main" size="6" maxlength="6" value="{$options.color_main}" style="text-align:center;">
     12      </li>
     13    <li>
    914    <li>
    1015      <label for="column_width"><span class="property">{'Width of columns'|@translate}</span>&nbsp;</label>
  • extensions/stripped_black_bloc/admin/maintain.inc.php

    r11699 r11823  
    88  {
    99    $config = array(
     10        'color_main'                                            => 'E6554F',
    1011        'column_width'                                          => 170,
    1112        'thumbnail_width'                                               => 150,
     
    1516    $query = '
    1617INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    17 VALUES ("stripped_black_bloc" , "'.pwg_db_real_escape_string(serialize($config)).'" ,  "column_width#thumbnail_width#thumbnail(generated - auto - piwigo)");';
     18VALUES ("stripped_black_bloc" , "'.pwg_db_real_escape_string(serialize($config)).'" , "color_main#column_width#thumbnail_width#thumbnail(generated - auto - piwigo)");';
    1819
    1920    pwg_query($query);
  • extensions/stripped_black_bloc/admin/upgrade.inc.php

    r11699 r11823  
    88{
    99        $config = array(
     10        'color_main'                                            => 'E6554F',
    1011        'column_width'                                          => 170,
    1112        'thumbnail_width'                                               => 150,
     
    1516    $query = '
    1617INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    17 VALUES ("stripped_black_bloc" , "'.pwg_db_real_escape_string(serialize($config)).'" , "column_width#thumbnail_width#thumbnail(generated - auto - piwigo)");';
     18VALUES ("stripped_black_bloc" , "'.pwg_db_real_escape_string(serialize($config)).'" , "color_main#column_width#thumbnail_width#thumbnail(generated - auto - piwigo)");';
    1819
    1920    pwg_query($query);
     21                load_conf_from_db();
    2022}
    21 load_conf_from_db();
     23elseif (count(unserialize( $conf['stripped_black_bloc'] ))!=4) {
     24        $config = array(
     25        'color_main'                                            => 'E6554F',
     26        'column_width'                                          => 170,
     27        'thumbnail_width'                                               => 150,
     28        'thumbnail'                                     => 'piwigo' //generated - auto - piwigo
     29      );
     30     
     31
     32        conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config)));
     33                load_conf_from_db();
     34}
    2235?>
  • extensions/stripped_black_bloc/language/en_UK/theme.lang.php

    r11699 r11823  
    33$lang['Stripped & Columns Theme Configuration'] = 'Stripped & Columns, Configuration Page';
    44$lang['Page'] = 'Page';
     5$lang['color main'] = "Not grey color :";
    56$lang['Displaying options'] = "Display options";
    67$lang['Width of columns'] = "Width of columns";
  • extensions/stripped_black_bloc/language/fr_FR/theme.lang.php

    r11699 r11823  
    33$lang['Stripped & Columns Theme Configuration'] = 'Stripped & Columns, Page de configuration';
    44$lang['Page'] = 'Page';
     5$lang['color main'] = "Couleur non grise :";
    56$lang['Displaying options'] = "Options d'affichage";
    67$lang['Width of columns'] = "Largeur des colonnes";
  • extensions/stripped_black_bloc/local_head.tpl

    r11709 r11823  
    33{html_head}{literal}
    44<style>
     5#theHeader a, .titrePage a, .footer_login a, .navigationBar a {
     6        color: {/literal}{if $stripped_black_bloc.color_main}#{$stripped_black_bloc.color_main}{/if}{literal};
     7}
    58.bloc {
    69        width: {/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px;
     
    912        max-width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px;
    1013}
    11 .content_block, .bloc_stuff {
    12         max-width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width*2 }{/if}{literal}px;
     14.content_block, .bloc_stuff, .two_columns {
     15        width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.column_width*2-10}{/if}{literal}px;
    1316}
    14 .stuffs_thumbnails, .stuffs_thumbnails #thumbnails {
    15         width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width }{/if}{literal}px;
     17.stuffs_thumbnails, .stuffs_thumbnails #thumbnails, .one_column {
     18        width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width-10 }{/if}{literal}px;
    1619}
    1720</style>
  • extensions/stripped_black_bloc/theme.css

    r11709 r11823  
    3131    min-height: 490px;
    3232                display:block;
     33                width:auto;
    3334}
    3435#menubar {
     
    6465.bloc {
    6566    display: block;
    66     margin: 3px;
     67    margin-top: 3px;
     68                margin-bottom:3px;
    6769    padding: 5px;
    6870    width: 150px;
     
    110112        padding:20px;
    111113}
     114#subcontent .stuffs_block, .content_block {
     115        padding:0;
     116}
     117#theHeader h1 {
     118        padding:0;
     119}
     120       
    112121/****************
    113122 color backgroung etc
     
    142151  background: transparent
    143152}
    144 #theHeader, .titrePage, .titrePage a, .footer_login a, .navigationBar a {
     153#theHeader a, .titrePage a, .footer_login a, .navigationBar a {
    145154    color: #E6554F;
    146155}
     
    160169        border:none;
    161170}
     171#menubar {
     172        color: #FFFFFF;
     173        background-image: url("img/btn.png");
     174        border-radius: 5px 5px 5px 5px;
     175        font-family: Helvetica,Arial,sans-serif;
     176        font-size: 12px;
     177        font-weight: bold;
     178        text-decoration: none;
     179        white-space: normal;
     180        border: 1px solid #424242;
     181        padding:5px;
     182}
     183#menubar dd{
     184        font-weight:normal;
     185}
     186.browsePath, #theHeader, .titrePage .categoryActions, #imageTitle, .randomButtons, #footer_left, #copyright {
     187        color: #FFFFFF;
     188        background-image: url("img/btn.png");
     189        background-color:transparent;
     190        border-radius: 5px 5px 5px 5px;
     191        font-family: Helvetica,Arial,sans-serif;
     192        font-size: 9px;
     193        font-weight: bold;
     194        text-decoration: none;
     195        text-transform: uppercase;
     196        white-space: normal;
     197        border: 1px solid #424242;
     198        padding:5px;
     199}
     200#tabZone {
     201        color: #FFFFFF;
     202        background-image: url("img/btn.png");
     203        border-radius: 5px 5px 5px 5px;
     204        font-family: Helvetica,Arial,sans-serif;
     205        font-size: 9px;
     206        font-weight: bold;
     207        text-decoration: none;
     208        text-transform: uppercase;
     209        white-space: normal;
     210        border: 1px solid #424242;
     211        padding:5px;
     212        background-color:transparent;
     213}
     214#tabZone * {
     215        color: #FFFFFF;
     216        background-color:transparent;
     217}
  • extensions/stripped_black_bloc/themeconf.inc.php

    r11709 r11823  
    2525// Need upgrade?
    2626
    27 global $conf;
    28 
    29 if (!isset($conf['stripped_black_bloc']))
    30   include(PHPWG_THEMES_PATH.'stripped_black_bloc/admin/upgrade.inc.php');
     27include(PHPWG_THEMES_PATH.'stripped_black_bloc/admin/upgrade.inc.php');
    3128
    3229add_event_handler('loc_begin_page_header', 'set_config_values_stripped_black_bloc');
     
    105102function stripped_black_bloc_prefilter_index($content, &$smarty)
    106103{
     104  $search = '#Menu</span>#'; 
     105  $replacement = "{'Show/hide menu'|@translate}</span>";
     106       
     107  $content = preg_replace($search, $replacement, $content);
    107108  $search = '#\{if \!empty\(\$navbar\) \}[\s]*\{include file=\'navigation_bar\.tpl\'\|@get_extent:\'navbar\'\}[\s]*\{/if\}#'; 
    108109  $replacement = '';
Note: See TracChangeset for help on using the changeset viewer.