Plugin Directory

Changeset 2082757


Ignore:
Timestamp:
05/07/2019 05:45:18 PM (7 years ago)
Author:
echelonso
Message:
  • Added rem sizing to helper css
  • Added text weight to helper css
  • Fixed state handlers not correctly adjusting the template tag widget form
Location:
echelon-so/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • echelon-so/trunk/features/helper-css/helper-css.php

    r2080435 r2082757  
    4444                'group'       => 'echelonso_helper_css_group',
    4545                'description' => __( 'Choose the color for the text.', 'echelon-so' ),
    46                 'priority'    => 24,
     46                'priority'    => 10,
    4747                'default'     => '0',
    4848                'options'     => array(
     
    5454            );
    5555           
     56            $fields['echelonso_helper_css_text_size'] = array(
     57                'name'        => __( 'Text Size', 'echelon-so' ),
     58                'type'        => 'select',
     59                'group'       => 'echelonso_helper_css_group',
     60                'description' => __( 'Choose the size for the text.', 'echelon-so' ),
     61                'priority'    => 20,
     62                'default'     => '0',
     63                'options'     => array(
     64                    '0' => __('Please Select', 'echelon-so'),
     65                    'eso-rem-1' => __('1rem', 'echelon-so'),
     66                    'eso-rem-15' => __('1.5rem', 'echelon-so'),
     67                    'eso-rem-2' => __('2rem', 'echelon-so'),
     68                    'eso-rem-25' => __('2.5rem', 'echelon-so'),
     69                    'eso-rem-3' => __('3rem', 'echelon-so'),
     70                    'eso-rem-35' => __('3.5rem', 'echelon-so'),
     71                    'eso-rem-4' => __('4rem', 'echelon-so'),
     72                    'eso-rem-45' => __('4.5rem', 'echelon-so'),
     73                    'eso-rem-5' => __('5rem', 'echelon-so'),
     74                )
     75            );
     76           
     77            $fields['echelonso_helper_css_text_weight'] = array(
     78                'name'        => __( 'Text Weight', 'echelon-so' ),
     79                'type'        => 'select',
     80                'group'       => 'echelonso_helper_css_group',
     81                'description' => __( 'Choose the weight for the text.', 'echelon-so' ),
     82                'priority'    => 30,
     83                'default'     => '0',
     84                'options'     => array(
     85                    '0' => __('Please Select', 'echelon-so'),
     86                    'eso-t-lighter' => __('Lighter', 'echelon-so'),
     87                    'eso-t-normal' => __('Normal', 'echelon-so'),
     88                    'eso-t-bold' => __('Bold', 'echelon-so'),
     89                )
     90            );
     91           
     92            $fields['echelonso_helper_css_text_color'] = array(
     93                'name'        => __( 'Text Color', 'echelon-so' ),
     94                'type'        => 'select',
     95                'group'       => 'echelonso_helper_css_group',
     96                'description' => __( 'Choose the color for the text.', 'echelon-so' ),
     97                'priority'    => 40,
     98                'default'     => '0',
     99                'options'     => array(
     100                    '0' => __('Please Select', 'echelon-so'),
     101                    'eso-color-1' => __('Color 1', 'echelon-so'),
     102                    'eso-color-2' => __('Color 2', 'echelon-so'),
     103                    'eso-color-3' => __('Color 3', 'echelon-so'),
     104                    'eso-color-4' => __('Color 4', 'echelon-so'),
     105                    'eso-color-5' => __('Color 5', 'echelon-so'),
     106                    'eso-color-dark' => __('Dark', 'echelon-so'),
     107                    'eso-text-white' => __('White', 'echelon-so'),
     108                )
     109            );
     110           
    56111            $fields['echelonso_helper_css_background_color'] = array(
    57112                'name'        => __( 'Background Color', 'echelon-so' ),
     
    59114                'group'       => 'echelonso_helper_css_group',
    60115                'description' => __( 'Choose the color for the background.', 'echelon-so' ),
    61                 'priority'    => 25,
     116                'priority'    => 50,
    62117                'default'     => '0',
    63118                'options'     => array(
     
    69124                    'eso-bg-5' => __('Color 5', 'echelon-so'),
    70125                    'eso-bg-dark' => __('Dark', 'echelon-so'),
    71                 )
    72             );
    73            
    74             $fields['echelonso_helper_css_text_color'] = array(
    75                 'name'        => __( 'Text Color', 'echelon-so' ),
    76                 'type'        => 'select',
    77                 'group'       => 'echelonso_helper_css_group',
    78                 'description' => __( 'Choose the color for the text.', 'echelon-so' ),
    79                 'priority'    => 26,
    80                 'default'     => '0',
    81                 'options'     => array(
    82                     '0' => __('Please Select', 'echelon-so'),
    83                     'eso-color-1' => __('Color 1', 'echelon-so'),
    84                     'eso-color-2' => __('Color 2', 'echelon-so'),
    85                     'eso-color-3' => __('Color 3', 'echelon-so'),
    86                     'eso-color-4' => __('Color 4', 'echelon-so'),
    87                     'eso-color-5' => __('Color 5', 'echelon-so'),
    88                     'eso-color-dark' => __('Dark', 'echelon-so'),
    89126                )
    90127            );
     
    112149            }
    113150           
    114             if ( !empty($style['echelonso_helper_css_background_color']) ) {
    115                 $attributes['class'][] = $style['echelonso_helper_css_background_color'];
     151            if ( !empty($style['echelonso_helper_css_text_size']) ) {
     152                $attributes['class'][] = $style['echelonso_helper_css_text_size'];
     153            }
     154           
     155            if ( !empty($style['echelonso_helper_css_text_weight']) ) {
     156                $attributes['class'][] = $style['echelonso_helper_css_text_weight'];
    116157            }
    117158           
    118159            if ( !empty($style['echelonso_helper_css_text_color']) ) {
    119160                $attributes['class'][] = $style['echelonso_helper_css_text_color'];
     161            }
     162           
     163            if ( !empty($style['echelonso_helper_css_background_color']) ) {
     164                $attributes['class'][] = $style['echelonso_helper_css_background_color'];
    120165            }
    121166           
  • echelon-so/trunk/inc/utilities.css

    r2080435 r2082757  
    1414.eso-t-left { text-align: left; }
    1515.eso-t-right { text-align: right; }
    16 .eso-t-strong { font-weight: bold; }
     16.eso-t-lighter { font-weight: lighter; }
     17.eso-t-normal { font-weight: normal; }
     18.eso-t-bold { font-weight: bold; }
    1719.eso-t-upper { text-transform: uppercase; }
    1820
     
    3032.eso-f-40 { font-size: 40px; }
    3133.eso-f-50 { font-size: 50px; }
     34
     35.eso-rem-1 { font-size: 1rem; }
     36.eso-rem-15 { font-size: 1.5rem; }
     37.eso-rem-2 { font-size: 2rem; }
     38.eso-rem-25 { font-size: 2.5rem; }
     39.eso-rem-3 { font-size: 3rem; }
     40.eso-rem-35 { font-size: 3.5rem; }
     41.eso-rem-4 { font-size: 4rem; }
     42.eso-rem-45 { font-size: 4.5rem; }
     43.eso-rem-5 { font-size: 5rem; }
    3244
    3345
  • echelon-so/trunk/widgets/eso-template-tag/eso-template-tag.php

    r2080435 r2082757  
    9090                        'template_tag[excerpt]' => array('hide'),
    9191                        'template_tag[title]' => array('hide'),
    92                         'template_tag[thumbnail]' => array('hide')
     92                        'template_tag[thumbnail]' => array('hide'),
     93                        'template_tag[content]' => array('hide'),
    9394                    )
    9495                ),
     
    123124                        'template_tag[excerpt]' => array('hide'),
    124125                        'template_tag[title]' => array('hide'),
    125                         'template_tag[thumbnail]' => array('hide')
     126                        'template_tag[thumbnail]' => array('hide'),
     127                        'template_tag[content]' => array('hide'),
    126128                    )
    127129                ),
     
    165167                        'template_tag[excerpt]' => array('hide'),
    166168                        'template_tag[title]' => array('hide'),
    167                         'template_tag[thumbnail]' => array('hide')
     169                        'template_tag[thumbnail]' => array('hide'),
     170                        'template_tag[content]' => array('hide'),
    168171                    )
    169172                ),
     
    192195                        'template_tag[excerpt]' => array('hide'),
    193196                        'template_tag[title]' => array('hide'),
    194                         'template_tag[thumbnail]' => array('hide')
     197                        'template_tag[thumbnail]' => array('hide'),
     198                        'template_tag[content]' => array('hide'),
    195199                    )
    196200                ),
     
    225229                        'template_tag[excerpt]' => array('show'),
    226230                        'template_tag[title]' => array('hide'),
    227                         'template_tag[thumbnail]' => array('hide')
     231                        'template_tag[thumbnail]' => array('hide'),
     232                        'template_tag[content]' => array('hide'),
    228233                    )
    229234                ),
     
    252257                        'template_tag[excerpt]' => array('hide'),
    253258                        'template_tag[title]' => array('hide'),
    254                         'template_tag[thumbnail]' => array('hide')
     259                        'template_tag[thumbnail]' => array('hide'),
     260                        'template_tag[content]' => array('hide'),
    255261                    )
    256262                ),
     
    279285                        'template_tag[excerpt]' => array('hide'),
    280286                        'template_tag[title]' => array('hide'),
    281                         'template_tag[thumbnail]' => array('hide')
     287                        'template_tag[thumbnail]' => array('hide'),
     288                        'template_tag[content]' => array('hide'),
    282289                    )
    283290                ),
     
    306313                        'template_tag[excerpt]' => array('hide'),
    307314                        'template_tag[title]' => array('show'),
    308                         'template_tag[thumbnail]' => array('hide')
     315                        'template_tag[thumbnail]' => array('hide'),
     316                        'template_tag[content]' => array('hide'),
    309317                    )
    310318                ),
     
    340348                        'template_tag[excerpt]' => array('hide'),
    341349                        'template_tag[title]' => array('hide'),
    342                         'template_tag[thumbnail]' => array('hide')
     350                        'template_tag[thumbnail]' => array('hide'),
     351                        'template_tag[content]' => array('hide'),
    343352                    )
    344353                ),
     
    372381                        'template_tag[excerpt]' => array('hide'),
    373382                        'template_tag[title]' => array('hide'),
    374                         'template_tag[thumbnail]' => array('show')
     383                        'template_tag[thumbnail]' => array('show'),
     384                        'template_tag[content]' => array('hide'),
    375385                    )
    376386                )
Note: See TracChangeset for help on using the changeset viewer.