blanktheme

Changeset 406

Show
Ignore:
Timestamp:
06/10/09 08:26:30 (8 months ago)
Author:
mateo
Message:

[blanktheme] Minor utility extensions to the plugins and styles

Location:
trunk/themes/blanktheme
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/themes/blanktheme/plugins/function.bt_htmloutput.php

    r402 r406  
    2626    // variables to use 
    2727    // parameters 
    28     $section = $params['section']; 
    29     unset($params); 
     28    if (!isset($params['section']) || empty($params['section'])) { 
     29        return ''; 
     30    } 
     31 
    3032    // blanktheme vars 
    3133    $body      = $smarty->_tpl_vars['body']; 
     
    3739    // assign the respective output 
    3840    $output    = ''; 
    39     switch ($section) 
     41    switch ($params['section']) 
    4042    { 
    4143        case 'fontresize': 
     
    6264        case 'head': 
    6365            // head stylesheets 
    64             $output = '<link rel="stylesheet" href="'.$smarty->stylepath.'/layout_'.$body.'.css" type="text/css"/> 
    65                        <!--[if lte IE 7]>' 
     66/* 
     67            $output = '<link rel="stylesheet" href="'.$smarty->themepath.'/yaml/core/slim_base.css" type="text/css"/> 
     68                       <link rel="stylesheet" href="'.$smarty->stylepath.'/screen/basemod.css" type="text/css"/> 
     69                       <link rel="stylesheet" href="'.$smarty->stylepath.'/screen/content.css" type="text/css"/> 
     70*/ 
     71            $output = '<link rel="stylesheet" href="'.$smarty->stylepath.'/layout_'.$body.'.css" type="text/css"/>' 
     72                     .'<!--[if lte IE 7]>' 
    6673                     .'<link rel="stylesheet" href="'.$smarty->stylepath.'/patches/patch_'.$body.'.css" type="text/css" />' 
    6774//                     .'<link rel="stylesheet" href="'.$smarty->themepath.'/yaml/core/slim_iehacks.css" type="text/css" />' 
     
    116123            } 
    117124            */ 
     125            if (!isset($params['noempty']) || !$params['noempty']) { 
     126                $output = !empty($output) ? $output : 'bt-empty'; 
     127            } 
    118128            break; 
    119129    } 
  • trunk/themes/blanktheme/plugins/function.bt_userlinks.php

    r402 r406  
    103103    if (is_array($option)) { 
    104104        $return .= '<li'. (($option[0] == $current)?' id='.$currentclass:'') .'>'; 
    105         $return .= '<a'. ((isset($option[3]) && is_array($option[3]))?' class="navparent"':''). ' title="'. DataUtil::formatForDisplay($option[1]). '" href="'.DataUtil::formatForDisplay($option[2]).'">'. ($span ? '<span>' : ''). DataUtil::formatForDisplay($option[1]). ($span ? '</span>' : ''). '</a>'; 
     105        if (!empty($option[2])) { 
     106            $return .= '<a'. ((isset($option[3]) && is_array($option[3]))?' class="navparent"':''). ' title="'. DataUtil::formatForDisplay($option[1]). '" href="'.DataUtil::formatForDisplay($option[2]).'">'. ($span ? '<span>' : ''). DataUtil::formatForDisplay($option[1]). ($span ? '</span>' : ''). '</a>'; 
     107        } else { 
     108            $return .= ($span ? '<span>' : ''). DataUtil::formatForDisplay($option[1]). ($span ? '</span>' : ''); 
     109        } 
    106110        // Render the optional suboptions recursively 
    107111        if (isset($option[3]) && is_array($option[3])) { 
  • trunk/themes/blanktheme/style/screen/basemod.css

    r404 r406  
    193193  #nav_main ul li a:active { 
    194194    background: #3b69ad; 
     195    border: none; 
    195196    color: #fff; 
    196197    text-decoration: none; 
  • trunk/themes/blanktheme/style/screen/content.css

    r405 r406  
    184184  /* Miscellaneous */ 
    185185 
     186  a img, 
     187  button img { 
     188    vertical-align: middle; 
     189  } 
     190 
    186191  fieldset { 
    187192    border: 1px solid #D9DAD5; 
     
    592597    margin-bottom: 15px; 
    593598  } 
    594   .pn-block h4 { 
     599  .pn-block .pn-block-title { 
    595600    font-weight: 700; 
    596601    line-height: 22px; 
    597602    margin: 0; 
    598603    padding: 3px 4px; 
     604  } 
     605  .pn-block .pn-block-content { 
     606    padding: 5px; 
    599607  } 
    600608  .pn-block ul, 
 
 
Powered by Trac
Design by Arcsin