Changeset 2823


Ignore:
Timestamp:
Nov 4, 2008, 2:46:17 AM (15 years ago)
Author:
rvelices
Message:
  • removed some unused constants from constants.php
  • removed some unused css rules
  • removed unused code
Location:
branches/2.0
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/common.inc.php

    r2765 r2823  
    144144
    145145// template instance
    146 if
    147   (
    148       defined('IN_ADMIN') and IN_ADMIN
    149   )
    150 {
    151   // Admin template
    152   //$template = new Template(PHPWG_ROOT_PATH.'template/'.$user['admin_template'], $user['admin_theme'] );
     146if ( defined('IN_ADMIN') and IN_ADMIN )
     147{// Admin template
    153148  list($user['admin_template'], $user['admin_theme']) =
    154149    explode ('/', $conf['admin_layout']);
     
    157152}
    158153else
    159 {
    160   // Classic template
     154{ // Classic template
    161155  $template = new Template(PHPWG_ROOT_PATH.'template/'
    162156    . $user['template'], $user['theme'] );
  • branches/2.0/include/constants.php

    r2774 r2823  
    3333define('REQUIRED_PHP_VERSION', '5.0.0');
    3434define('REQUIRED_MYSQL_VERSION', '4.1.22');
    35 
    36 // Error codes
    37 define('GENERAL_MESSAGE', 200);
    38 define('GENERAL_ERROR', 202);
    39 define('CRITICAL_MESSAGE', 203);
    40 define('CRITICAL_ERROR', 204);
    4135
    4236// Access codes
  • branches/2.0/include/functions_user.inc.php

    r2756 r2823  
    211211  // calculation of the number of picture to display per page
    212212  $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
    213 
    214   if (is_admin($user['status']))
    215   {
    216     list($user['admin_template'], $user['admin_theme']) =
    217       explode ('/', $conf['admin_layout']);
    218   }
    219213
    220214  list($user['template'], $user['theme']) = explode('/', $user['template']);
     
    13741368  else
    13751369  {
    1376     if ($force_one_condition)
    1377     {
    1378       $sql = '1 = 1';
    1379     }
    1380     else
    1381     {
    1382       $sql = '';
    1383     }
     1370    $sql = $force_one_condition ? '1 = 1' : '';
    13841371  }
    13851372
  • branches/2.0/template/yoga/default-layout.css

    r2794 r2823  
    4747}
    4848
    49 /** General defaults **/
    5049INPUT, SELECT {
    5150        margin: 0;
     
    5857}
    5958
    60 /** forms **/
    6159
    6260FORM { padding: 0; margin: 0; }
     
    7169        margin-top: 1em;
    7270        margin-bottom: 0;
    73 }
    74 
    75 TEXTAREA.description {
    76         height: 6em;
    77         width: 40em;
    78         overflow: auto;
    7971}
    8072
     
    275267#theHeader {text-align: center;}
    276268
    277 #theNotificationPage dl,
    278 #thePopuphelpPage dl { margin: 0 25px 25px; }
    279 #content #comments ul.thumbnailCategories li { width:99%; }
     269#theNotificationPage DL,
     270#thePopuphelpPage DL { margin: 0 25px 25px; }
     271#content #comments UL.thumbnailCategories LI { width:99%; }
    280272/* jQuery datepicker */
    281 img.ui-datepicker-trigger {
     273IMG.ui-datepicker-trigger {
    282274        cursor : pointer;
    283275}
  • branches/2.0/template/yoga/picture.css

    r2760 r2823  
    5656#linkPrev {
    5757        float: left;
     58        margin-right: 10px;
     59        margin-left: 5px;
    5860}
    5961
    6062#linkNext {
    6163        float: right;
    62 }
    63 
    64 #linkPrev IMG {
    65         margin-right: 10px;
    66         margin-left: 5px;
    67 }
    68 
    69 #linkNext IMG {
    7064        margin-right: 5px;
    7165        margin-left: 10px;
     
    8478}
    8579
    86 .thumbnailCategories li { list-style: none; }
     80.thumbnailCategories LI { list-style: none; }
    8781
    8882.rateButton, .rateButtonSelected, .rateButtonStarFull, .rateButtonStarEmpty  {
  • branches/2.0/template/yoga/theme/dark/theme.css

    r2648 r2823  
    22
    33/* text color */
    4 BODY, H1, H3, DT,
     4BODY, H1, H3,
    55INPUT.rateButtonSelected /* <= why IE doesn't inherit this ? */ {
    66        color:#d0d0d0;
Note: See TracChangeset for help on using the changeset viewer.