Plugin Directory

Changeset 625672


Ignore:
Timestamp:
11/15/2012 12:37:16 PM (13 years ago)
Author:
kdmurthy
Message:

Removed lambda methods

Location:
schemeable-sliding-panel/trunk/css
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • schemeable-sliding-panel/trunk/css/slide-tab.css.php

    r615591 r625672  
    5353
    5454#sliding-panel .tab {
    55     font-family: <?php $ff('tab'); ?>;
    56     font-size: <?php $fs('tab'); ?>;
    57     font-weight: <?php $fw('tab'); ?>;
    58     font-style: <?php $fst('tab'); ?>;
     55    font-family: <?php sliding_panel_ff('tab'); ?>;
     56    font-size: <?php sliding_panel_fs('tab'); ?>;
     57    font-weight: <?php sliding_panel_fw('tab'); ?>;
     58    font-style: <?php sliding_panel_fst('tab'); ?>;
    5959}
    6060
    6161
    6262#sliding-panel .tab ul.login {
    63     color: <?php $c('tab_link_hover'); ?>;
     63    color: <?php sliding_panel_c('tab_link_hover'); ?>;
    6464}
    6565
     
    6969
    7070#sliding-panel .tab ul.login li a {
    71   color: <?php $c('tab_link'); ?>;
     71  color: <?php sliding_panel_c('tab_link'); ?>;
    7272}
    7373
    7474#sliding-panel .tab ul.login li a:hover {
    75   color: <?php $c('tab_link_hover'); ?>;
     75  color: <?php sliding_panel_c('tab_link_hover'); ?>;
    7676}
    7777
  • schemeable-sliding-panel/trunk/css/slide.css.php

    r615591 r625672  
    11<?php header("Content-type: text/css; charset: UTF-8"); ?>
    22<?php
     3function sliding_panel_c($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_color']; }
     4function sliding_panel_ff($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_family']; }
     5function sliding_panel_fs($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_size']; }
     6function sliding_panel_fw($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_weight']; }
     7function sliding_panel_fst($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_style']; }
     8function sliding_panel_e($name) { global $sliding_panel_options; return empty($sliding_panel_options[$name . '_color']); }
    39function sliding_panel_extract_options($pairs, $atts) {
    410    $atts = (array)$atts;
     
    1521      $sliding_panel_options = array( 'tab_images' => 'Tab Images', );
    1622    $options = isset($sliding_panel_options['options']) ? $sliding_panel_options['options'] : array();
    17     $content_display = isset($options['content_display']) ? $options['content_display'] : 'Overlay over Content' ;
    18     $overlay = ($content_display != 'Slide Down');
     23    $sliding_panel_content_display = isset($options['content_display']) ? $options['content_display'] : 'Overlay over Content' ;
     24    $overlay = ($sliding_panel_content_display != 'Slide Down');
    1925    $schemes = get_schemes();
    2026    $defaults = array_shift( array_values( $schemes ) );
    2127    $sliding_panel_options = sliding_panel_extract_options($defaults, $sliding_panel_options);
    22     $c = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_color']; };
    23     $ff = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_family']; };
    24     $fs = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_size']; };
    25     $fw = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_weight']; };
    26     $fst = function($name) { global $sliding_panel_options; echo $sliding_panel_options[$name . '_font_style']; };
    27     $e = function($name) { global $sliding_panel_options; return empty($sliding_panel_options[$name . '_color']); };
    2828?>
    2929/*
     
    8686/* sliding panel */
    8787#sliding-panel {
    88 <?php if($content_display == 'Fixed'): ?>
     88<?php if($sliding_panel_content_display == 'Fixed'): ?>
    8989    position: fixed;   /*Panel will overlap  content */
    90 <?php elseif($content_display == 'Overlay over Content'): ?>
     90<?php elseif($sliding_panel_content_display == 'Overlay over Content'): ?>
    9191    position: absolute;   /*Panel will overlap  content */
    9292<?php else: ?>
     
    193193
    194194#sliding-panel #panel {
    195     color: <?php $c('text'); ?>;
    196     background-color:   <?php $c('background'); ?>;
     195    color: <?php sliding_panel_c('text'); ?>;
     196    background-color:   <?php sliding_panel_c('background'); ?>;
    197197}
    198198
    199199#sliding-panel h1 {
    200     color: <?php $c('h1'); ?>;
     200    color: <?php sliding_panel_c('h1'); ?>;
    201201}
    202202
    203203#sliding-panel h2,
    204204#sliding-panel .widget h3 {
    205     color: <?php $c('h2'); ?>;
     205    color: <?php sliding_panel_c('h2'); ?>;
    206206}
    207207
    208208#sliding-panel #panel a {
    209     color: <?php $c('link'); ?>;
     209    color: <?php sliding_panel_c('link'); ?>;
    210210}
    211211
    212212#sliding-panel #panel a:hover {
    213     color: <?php $c('link_hover'); ?>;
     213    color: <?php sliding_panel_c('link_hover'); ?>;
    214214}
    215215
    216216#sliding-panel #panel .content input.field {
    217     background-color: <?php $c('field_bg'); ?>;
    218     color: <?php $c('field'); ?>;
     217    background-color: <?php sliding_panel_c('field_bg'); ?>;
     218    color: <?php sliding_panel_c('field'); ?>;
    219219}
    220220
    221221#sliding-panel #panel .content .left {
    222     border-left: 1px solid <?php $c('panel_border'); ?>;
     222    border-left: 1px solid <?php sliding_panel_c('panel_border'); ?>;
    223223}
    224224
    225225#sliding-panel #panel .content .border {
    226     border-left: 1px solid <?php $c('panel_border'); ?>;
     226    border-left: 1px solid <?php sliding_panel_c('panel_border'); ?>;
    227227}
    228228
    229229#sliding-panel #panel .content input.field {
    230     border-color: <?php $c('field_border'); ?>;
     230    border-color: <?php sliding_panel_c('field_border'); ?>;
    231231}
    232232
    233233#sliding-panel #panel .content input:focus.field {
    234     background-color: <?php $c('field_bg_focus'); ?>;
     234    background-color: <?php sliding_panel_c('field_bg_focus'); ?>;
    235235}
    236236
     
    255255
    256256#sliding-panel input[type=submit].bt_login {
    257     background: <?php $c('login_bg'); ?>;
    258     border-color: <?php $c('login_border'); ?>;
    259     color: <?php $c('login'); ?>;
     257    background: <?php sliding_panel_c('login_bg'); ?>;
     258    border-color: <?php sliding_panel_c('login_border'); ?>;
     259    color: <?php sliding_panel_c('login'); ?>;
    260260}
    261261
    262262#sliding-panel input[type=submit].bt_login:hover {
    263    color: <?php $c('login_hover'); ?>
     263   color: <?php sliding_panel_c('login_hover'); ?>
    264264}
    265265
    266266#sliding-panel input[type=submit].bt_lostpwd {
    267     background: <?php $c('lostpwd_bg'); ?>;
    268     border-color: <?php $c('lostpwd_border'); ?>;
    269     color: <?php $c('lostpwd'); ?>;
     267    background: <?php sliding_panel_c('lostpwd_bg'); ?>;
     268    border-color: <?php sliding_panel_c('lostpwd_border'); ?>;
     269    color: <?php sliding_panel_c('lostpwd'); ?>;
    270270}
    271271
    272272#sliding-panel input[type=submit].bt_lostpwd:hover {
    273    color: <?php $c('lostpwd_hover'); ?>
     273   color: <?php sliding_panel_c('lostpwd_hover'); ?>
    274274}
    275275
    276276#sliding-panel input[type=submit].bt_register {
    277     background: <?php $c('register_bg'); ?>;
    278     border-color: <?php $c('register_border'); ?>;
    279     color: <?php $c('register'); ?>;
     277    background: <?php sliding_panel_c('register_bg'); ?>;
     278    border-color: <?php sliding_panel_c('register_border'); ?>;
     279    color: <?php sliding_panel_c('register'); ?>;
    280280}
    281281
    282282#sliding-panel input[type=submit].bt_register:hover {
    283    color: <?php $c('register_hover'); ?>
     283   color: <?php sliding_panel_c('register_hover'); ?>
    284284}
    285285
     
    289289#sliding-panel #panel {
    290290<?php if(empty($sliding_panel_options['panel_background_repeat'])): ?>
    291   background: url(<?php echo $sliding_panel_options['panel_background']; ?>) no-repeat left top  <?php $c('background'); ?>;
     291  background: url(<?php echo $sliding_panel_options['panel_background']; ?>) no-repeat left top  <?php sliding_panel_c('background'); ?>;
    292292<?php else: ?>
    293   background: url(<?php echo $sliding_panel_options['panel_background']; ?>) repeat left top  <?php $c('background'); ?>;
     293  background: url(<?php echo $sliding_panel_options['panel_background']; ?>) repeat left top  <?php sliding_panel_c('background'); ?>;
    294294<?php endif; ?>
    295295}
     
    299299#sliding-panel #panel .content {
    300300<?php if(empty($sliding_panel_options['content_background_repeat'])): ?>
    301   background: url(<?php echo $sliding_panel_options['content_background']; ?>) no-repeat left top <?php $c('background'); ?>;
     301  background: url(<?php echo $sliding_panel_options['content_background']; ?>) no-repeat left top <?php sliding_panel_c('background'); ?>;
    302302<?php else: ?>
    303   background: url(<?php echo $sliding_panel_options['content_background']; ?>) repeat left top  <?php $c('background'); ?>;
     303  background: url(<?php echo $sliding_panel_options['content_background']; ?>) repeat left top  <?php sliding_panel_c('background'); ?>;
    304304<?php endif; ?>
    305305}
     
    309309
    310310#sliding-panel {
    311     font-family: <?php $ff('panel'); ?>;
    312     font-size: <?php $fs('panel'); ?>;
     311    font-family: <?php sliding_panel_ff('panel'); ?>;
     312    font-size: <?php sliding_panel_fs('panel'); ?>;
    313313}
    314314
     
    317317    display: block ;
    318318    margin: 10px 0 10px 0;
    319     font-family: <?php $ff('h1'); ?>;
    320     font-size: <?php $fs('h1'); ?>;
    321     font-weight: <?php $fw('h1'); ?>;
    322     font-style: <?php $fst('h1'); ?>;
     319    font-family: <?php sliding_panel_ff('h1'); ?>;
     320    font-size: <?php sliding_panel_fs('h1'); ?>;
     321    font-weight: <?php sliding_panel_fw('h1'); ?>;
     322    font-style: <?php sliding_panel_fst('h1'); ?>;
    323323    line-height: 100%;
    324324}
     
    329329    text-align: left;
    330330    display: block;
    331     font-family: <?php $ff('h2'); ?>;
    332     font-size: <?php $fs('h2'); ?>;
    333     font-weight: <?php $fw('h2'); ?>;
    334     font-style: <?php $fst('h2'); ?>;
     331    font-family: <?php sliding_panel_ff('h2'); ?>;
     332    font-size: <?php sliding_panel_fs('h2'); ?>;
     333    font-weight: <?php sliding_panel_fw('h2'); ?>;
     334    font-style: <?php sliding_panel_fst('h2'); ?>;
    335335    line-height: 100%;
    336336}
     
    339339#sliding-panel input[type=submit].bt_lostpwd,
    340340#sliding-panel input[type=submit].bt_register {
    341     font-family: <?php $ff('btn'); ?>;
    342     font-size: <?php $fs('btn'); ?>;
    343     font-weight: <?php $fw('btn'); ?>;
    344     font-style: <?php $fst('btn'); ?>;
     341    font-family: <?php sliding_panel_ff('btn'); ?>;
     342    font-size: <?php sliding_panel_fs('btn'); ?>;
     343    font-weight: <?php sliding_panel_fw('btn'); ?>;
     344    font-style: <?php sliding_panel_fst('btn'); ?>;
    345345}
    346346
    347347#sliding-panel a span,
    348348#sliding-panel h2 span {
    349    color: <?php $c('text') ?>;
     349   color: <?php sliding_panel_c('text') ?>;
    350350}
    351351
Note: See TracChangeset for help on using the changeset viewer.