Changeset 2101


Ignore:
Timestamp:
Sep 21, 2007, 1:45:23 AM (17 years ago)
Author:
rvelices
Message:
  • removed unused code from the calendar
  • removed some unused css rules, simplified css a bit and made some rule grouping (nothing important)
Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/calendar_base.class.php

    r1903 r2101  
    44// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    55// +-----------------------------------------------------------------------+
    6 // | branch        : BSF (Best So Far)
    7 // | file          : $RCSfile$
     6// | file          : $Id$
    87// | last update   : $Date$
    98// | last modifier : $Author$
     
    134133   * @param array date_components
    135134   * @param array items - hash of items to put in the bar (e.g. 2005,2006)
    136    * @param array selected_item - item currently selected (e.g. 2005)
    137135   * @param string class_prefix - html class attribute prefix for span elements
    138136   * @param bool show_any - adds any link to the end of the bar
     
    141139   * @return string the navigation bar
    142140   */
    143   function get_nav_bar_from_items($date_components, $items, $selected_item,
     141  function get_nav_bar_from_items($date_components, $items,
    144142                                  $class_prefix, $show_any,
    145143                                  $show_empty=false, $labels=null)
     
    168166        $label = $labels[$item];
    169167      }
    170       if (isset($selected_item) and $item == $selected_item)
    171       {
    172         $nav_bar .= '<span class="'.$class_prefix.'Sel">';
    173         $nav_bar .= $label;
    174       }
    175       elseif ($nb_images==-1)
     168      if ($nb_images==-1)
    176169      {
    177170        $nav_bar .= '<span class="'.$class_prefix.'Empty">';
     
    200193    {
    201194      $label = l10n('calendar_any');
    202       if (isset($selected_item) and 'any' === $selected_item)
    203       {
    204         $nav_bar .= '<span class="'.$class_prefix.'Sel">';
    205         $nav_bar .= $label;
    206       }
    207       else
    208       {
    209         $nav_bar .= '<span class="'.$class_prefix.'">';
    210         $url = duplicate_index_url(
    211           array('chronology_date'=>array_merge($date_components,array('any'))),
    212           array( 'start' )
    213             );
    214         $nav_bar .= '<a href="'.$url.'">';
    215         $nav_bar .= $label;
    216         $nav_bar .= '</a>';
    217       }
     195      $nav_bar .= '<span class="'.$class_prefix.'">';
     196      $url = duplicate_index_url(
     197        array('chronology_date'=>array_merge($date_components,array('any'))),
     198        array( 'start' )
     199          );
     200      $nav_bar .= '<a href="'.$url.'">';
     201      $nav_bar .= $label;
     202      $nav_bar .= '</a>';
    218203      $nav_bar.= '</span>';
    219204    }
     
    272257      $dates,
    273258      $level_items,
    274       null,
    275259      'calItem',
    276260      true,
  • trunk/include/calendar_monthly.class.php

    r1900 r2101  
    258258
    259259    $nav_bar .= $this->get_nav_bar_from_items( $chronology_date,
    260             $year_data['children'], null, 'calCal', false, false, $lang['month'] );
     260            $year_data['children'], 'calCal', false, false, $lang['month'] );
    261261
    262262    $template->assign_block_vars( 'calendar.calbar',
     
    309309
    310310    $nav_bar .= $this->get_nav_bar_from_items( $chronology_date,
    311                      $month_data['children'], null, 'calCal', false );
     311                     $month_data['children'], 'calCal', false );
    312312
    313313    $template->assign_block_vars( 'calendar.calbar',
  • trunk/include/picture_comment.inc.php

    r2030 r2101  
    5656
    5757  include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
    58  
     58
    5959  $comment_action = insert_user_comment($comm, @$_POST['key'], $infos );
    6060
     
    6666      array_push( $infos, l10n('comment_added'));
    6767      break;
    68     case 'reject': 
     68    case 'reject':
    6969      set_status_header(403);
    7070      array_push($infos, l10n('comment_not_added') );
     
    7474  }
    7575
     76  $block_var = ($comment_action=='reject') ? 'errors.error' : 'infos.info';
    7677  foreach ($infos as $info)
    7778  {
    7879    $template->assign_block_vars(
    79         'information',
    80         array( 'INFORMATION'=>$info )
     80        $block_var,
     81        array( 'TEXT'=>$info )
    8182      );
    8283  }
     
    137138        'comments.comment',
    138139        array(
    139           'COMMENT_AUTHOR' => trigger_event('render_comment_author', 
     140          'COMMENT_AUTHOR' => trigger_event('render_comment_author',
    140141            empty($row['author'])
    141142            ? l10n('guest')
  • trunk/template/yoga/content.css

    r1900 r2101  
    3737
    3838#content .pageNumberSelected {
    39     font-style: italic;
     39        font-style: italic;
     40        font-weight: bold;
    4041}
    4142
     
    181182  text-align: left;
    182183  vertical-align: top;
     184  color: #000;
    183185}
    184186
     
    190192  text-align: left;
    191193  vertical-align: top;
     194  color: #fff;
    192195}
    193196
  • trunk/template/yoga/default-colors.css

    r1900 r2101  
    22
    33/* others */
    4 .pleaseNote {
    5     background: #9c9c9c;
    6     color: #ffff99;
    7     padding: 1ex;
    8     font-weight: bold;
    9 }
    104
    115#imageToolBar * {
     
    148
    159/* So that non-links are slightly greyed out */
    16 #content .navigationBar {
    17     color: #696969;
    18 }
    19 #content .pageNumberSelected {
    20     color: #000000;
     10#content .navigationBar, SPAN.calItemEmpty, TD.calDayCellEmpty {
     11        color: #b0b0b0;
    2112}
    2213
     
    6960}
    7061
    71 .errors UL LI
    72 {
    73   font-weight: normal;
    74 }
    75 
    7662/**
    7763 * Informations box in administration
     
    7965.infos {
    8066  text-align: left;
     67  color: #002000;
    8168  background-color: #98fb98; /* palegreen */
    8269  background-image: url(icon/admin/infos.png);
    8370  background-repeat: no-repeat;
    8471  background-position: top right;
    85   color: #006400; /* darkgreen */
    8672  font-weight: bold;
    8773  margin: 5px;
    8874  padding: 10px 50px 10px 10px;
     75}
     76
     77.infos UL LI
     78{
     79  font-weight: normal;
    8980}
    9081
     
    118109  font-style: italic;
    119110}
     111
     112/*calendar*/
     113SPAN.calItem, SPAN.calItemEmpty,
     114TD.calDayCellEmpty, TD.calDayCellFull {
     115        border: 1px solid gray;
     116}
     117
     118
  • trunk/template/yoga/picture.tpl

    r1964 r2101  
    1 <!-- BEGIN information -->
    2 <div class="pleaseNote">{information.INFORMATION}</div>
    3 <!-- END information -->
     1<!-- BEGIN errors -->
     2<div class="errors">
     3<ul>
     4  <!-- BEGIN error -->
     5  <li>{errors.error.TEXT}</li>
     6  <!-- END error -->
     7</ul>
     8</div>
     9<!-- END errors -->
     10<!-- BEGIN infos -->
     11<div class="infos">
     12<ul>
     13  <!-- BEGIN info -->
     14  <li>{infos.info.TEXT}</li>
     15  <!-- END info -->
     16</ul>
     17</div>
     18<!-- END infos -->
    419
    520<div id="imageHeaderBar">
  • trunk/template/yoga/theme/clear/theme.css

    r2045 r2101  
    3535
    3636FIELDSET, INPUT, SELECT, TEXTAREA,
    37 #content DIV.comment  A.illustration IMG, #infos,
     37#content DIV.comment  A.illustration IMG,
    3838#content DIV.thumbnailCategory {
    3939  border: 1px solid gray;
     
    7676}
    7777
    78 /* others */
    79 .pleaseNote {
    80     background: #9c9c9c;
    81     color: #ffff99;
    82     padding: 1ex;
    83     font-weight: bold;
    84 }
    85 
    8678/*calendar elements*/
    87 SPAN.calItemEmpty { color: silver; }
    88 
    8979SPAN.calItem, SPAN.calItemEmpty
    9080{
     
    9282}
    9383
    94 /* nice looking month calendar*/
    95 TD.calDayCellEmpty, TD.calDayCellFull { border: 1px solid #7E7262;}
    96 
    97 TD.calDayCellEmpty { color: silver; }
    98 
    99 .calBackDate { color: #000; }
    100 .calForeDate { color: #fff; }
    10184.virtual_cat { background: #fff !important; }
    10285#mbMenu #quicksearch > p { text-align: left; }
  • trunk/template/yoga/theme/dark/theme.css

    r2045 r2101  
    99H2, #menubar DT, .throw {
    1010  color: #fff48e;
    11 }
    12 
    13 #content .navigationBar {
    14   color: #aaaaaa;
    15 }
    16 #content .pageNumberSelected {
    17   color: #000000;
    1811}
    1912
     
    7669
    7770FIELDSET, INPUT, SELECT, TEXTAREA,
    78 #content DIV.comment  A.illustration IMG, #infos,
     71#content DIV.comment  A.illustration IMG,
    7972#content DIV.thumbnailCategory {
    8073  border: 1px solid gray;
     
    116109}
    117110
    118 /* others */
    119 .pleaseNote {
    120   background: #9c9c9c;
    121   color: #ffff99;
    122   padding: 1ex;
    123   font-weight: bold;
    124 }
    125111#the_page {
    126112  border: 1px solid #e0e0e0;
     
    131117}
    132118
    133 /*calendar elements*/
    134 SPAN.calItemEmpty { color: silver; }
    135 
    136 SPAN.calItem, SPAN.calItemEmpty
    137 {
    138   border: 1px solid gray;
    139 }
    140 
    141 /* nice looking month calendar*/
    142 TD.calDayCellEmpty, TD.calDayCellFull { border: 1px solid gray;}
    143 
    144 TD.calDayCellEmpty { color: silver; }
    145 
    146 .calBackDate { color: #000; }
    147 .calForeDate { color: #fff; }
    148119.virtual_cat { background: #3f3f3f !important; }
    149120#mbMenu #quicksearch > p { text-align: left; }
  • trunk/template/yoga/theme/p0w0/theme.css

    r2045 r2101  
    1919/* Texts Only */
    2020BODY, H1, H3, DT, H2, .throw { color: #369; }
    21 H2, #menubar DT, .throw, TD H3, #theAdminPage H3, .calForeDate {
     21H2, #menubar DT, .throw, TD H3, #theAdminPage H3 {
    2222  color: #fff;
    2323}
     
    4343.infoTable,
    4444#theAdminPage #content,
    45 #content .navigationBar,
    4645input#qsearchInput { color: #369; }
    4746#content .infos { color: #036; }
     
    9089  color: #f92;
    9190}
    92 .pleaseNote {
    93   color: #ff9;
    94   font-weight: bold;
    95 }
    96 TD.calDayCellEmpty,
    97 SPAN.calItemEmpty { color: silver; }
    98 .calBackDate { color: #000; }
     91
    9992
    10093/******************************************************************************/
     
    130123input#qsearchInput { background-color: #cde; }
    131124.virtual_cat { background: #fff !important; }
    132 .pleaseNote, .selected_tab { background-color: #69c !important; }
     125.selected_tab { background-color: #69c !important; }
    133126/******************************************************************************/
    134127/* Borders, Margins, Padding Only */
     
    194187}
    195188FIELDSET, INPUT, SELECT, TEXTAREA,
    196 #content DIV.comment  A.illustration IMG, #infos,
     189#content DIV.comment  A.illustration IMG,
    197190#content DIV.thumbnailCategory {
    198191  border: 1px solid #69c;
     
    219212  margin: 0px;
    220213}
    221 .pleaseNote {
    222   padding: 1ex;
    223 }
    224 SPAN.calItem, SPAN.calItemEmpty { border: 1px solid gray; }
    225 TD.calDayCellEmpty, TD.calDayCellFull { border: 1px solid gray;}
    226214#theAdminPage #content table td { padding: 2px 8px; }
    227215ul.tabsheet { border-color: #369 !important; }
  • trunk/template/yoga/theme/wipi/theme.css

    r2045 r2101  
    4949 content: '';
    5050}
    51 #content .navigationBar {
    52   color: #aaaaaa;
    53 }
    5451#content .pageNumberSelected {
    5552  color: #f92;
     
    192189}
    193190FIELDSET, INPUT, SELECT, TEXTAREA,
    194 #content DIV.comment  A.illustration IMG, #infos,
     191#content DIV.comment  A.illustration IMG,
    195192#content DIV.thumbnailCategory {
    196193  border: 1px solid gray;
     
    239236  border-bottom: none;
    240237}
    241 /* others */
    242 .pleaseNote {
    243   background: #9c9c9c;
    244   color: #ffff99;
    245   padding: 1ex;
    246   font-weight: bold;
    247 }
    248238#the_page {
    249239  border: 1px dotted #f92;
     
    257247  color: #69c;
    258248}
    259 /*calendar elements*/
    260 SPAN.calItemEmpty { color: silver; }
    261 
    262 SPAN.calItem, SPAN.calItemEmpty
    263 {
    264   border: 1px solid gray;
    265 }
     249
    266250label {
    267251        cursor:pointer
     
    299283}
    300284
    301 /* nice looking month calendar*/
    302 TD.calDayCellEmpty, TD.calDayCellFull { border: 1px solid gray;}
    303 
    304 TD.calDayCellEmpty { color: silver; }
    305 
    306 .calBackDate { color: #000; }
    307 .calForeDate { color: #fff; }
     285
    308286.virtual_cat { background: #222 !important; }
    309287
Note: See TracChangeset for help on using the changeset viewer.