Plugin Directory

Changeset 1776005


Ignore:
Timestamp:
11/27/2017 10:26:43 AM (8 years ago)
Author:
jasie
Message:

renamed style part of options to be congruent with css

Location:
widget-pagination/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • widget-pagination/trunk/admin/partials/widget-pagination-admin-display.php

    r1775939 r1776005  
    6060                $options['pag_option_prevnext_threshold_cnt'] : (isset($options_pre_v1['pag_option_prevnext_threshold']) ?
    6161                $options_pre_v1['pag_option_prevnext_threshold'] : '');
    62         $pag_options_horAlign = isset($options['pag_option_hor_align']) ?
    63                 $options['pag_option_hor_align'] : (isset($options_pre_v1['pag_option_hor_align']) ?
     62        $pag_options_horAlign = isset($options['pag_option_text-align']) ?
     63                $options['pag_option_text-align'] : (isset($options_pre_v1['pag_option_hor_align']) ?
    6464                    $options_pre_v1['pag_option_hor_align'] : 'center');
    65         $pag_options_margTop = isset($options['pag_option_margin_top']) ?
    66                 $options['pag_option_margin_top'] : (isset($options_pre_v1['pag_option_margin_top']) ?
     65        $pag_options_margTop = isset($options['pag_option_margin-top']) ?
     66                $options['pag_option_margin-top'] : (isset($options_pre_v1['pag_option_margin_top']) ?
    6767                    $options_pre_v1['pag_option_margin_top'] : '0.5em');
    68         $pag_options_margBottom = isset($options['pag_option_margin_bottom']) ?
    69                 $options['pag_option_margin_bottom'] : (isset($options_pre_v1['pag_option_margin_bottom']) ?
     68        $pag_options_margBottom = isset($options['pag_option_margin-bottom']) ?
     69                $options['pag_option_margin-bottom'] : (isset($options_pre_v1['pag_option_margin_bottom']) ?
    7070                    $options_pre_v1['pag_option_margin_bottom'] : '');
    7171        $pag_options_scrollSpeed = isset($options['pag_option_autoscroll_speed_cnt']) ?
     
    123123                $options['pag_style_border-top-color'] : '';
    124124        $style_options_borderClrBottom = isset($options['pag_style_border-bottom-color']) ?
    125                 $options['pag_style_border-border-bottom-color'] : '';
     125                $options['pag_style_border-bottom-color'] : '';
    126126        $style_options_borderClrLeft = isset($options['pag_style_border-left-color']) ?
    127127                $options['pag_style_border-left-color'] : '';
     
    300300                                    <label class="radio">
    301301                                        <input type="radio" value="left"
    302                                                name="<?php echo $this->plugin_short . '[pag_option_hor_align]' ?>"
     302                                               name="<?php echo $this->plugin_short . '[pag_option_text-align]' ?>"
    303303                                            <?php if ($pag_options_horAlign == 'left')
    304304                                                {echo 'checked="checked"';} ?> /><?php _e('left', $this->plugin_short) ?>
     
    306306                                    <label class="radio">
    307307                                        <input type="radio" value="center"
    308                                                name="<?php echo $this->plugin_short . '[pag_option_hor_align]' ?>"
     308                                               name="<?php echo $this->plugin_short . '[pag_option_text-align]' ?>"
    309309                                            <?php if ($pag_options_horAlign == 'center')
    310310                                                {echo 'checked="checked"';} ?> /><?php _e('center', $this->plugin_short) ?>
     
    312312                                    <label class="radio">
    313313                                        <input type="radio" value="right"
    314                                                name="<?php echo $this->plugin_short . '[pag_option_hor_align]' ?>"
     314                                               name="<?php echo $this->plugin_short . '[pag_option_text-align]' ?>"
    315315                                            <?php if ($pag_options_horAlign == 'right')
    316316                                                {echo 'checked="checked"';} ?> /><?php _e('right', $this->plugin_short) ?>
     
    322322                            <tr>
    323323                                <th>
    324                                     <label for="<?php echo $this->plugin_short . '-pag_option_margin_top' ?>"
     324                                    <label for="<?php echo $this->plugin_short . '-pag_option_margin-top' ?>"
    325325                                           ><?php _e('Top margin', $this->plugin_short) ?>:</label>
    326326                                </th>
    327327                                <td>
    328328                                    <input type="text" size="5" maxlength="5"
    329                                            id="<?php echo $this->plugin_short . '-pag_option_margin_top' ?>"
    330                                            name="<?php echo $this->plugin_short . '[pag_option_margin_top]' ?>"
     329                                           id="<?php echo $this->plugin_short . '-pag_option_margin-top' ?>"
     330                                           name="<?php echo $this->plugin_short . '[pag_option_margin-top]' ?>"
    331331                                           value="<?php echo $pag_options_margTop ?>"
    332332                                           placeholder="<?php _e('e.g.', $this->plugin_short) ?> 10px <?php _e('or', $this->plugin_short) ?> 1.0em"/>
     
    337337                            <tr>
    338338                                <th>
    339                                     <label for="<?php echo $this->plugin_short . '-pag_option_margin_bottom' ?>"
     339                                    <label for="<?php echo $this->plugin_short . '-pag_option_margin-bottom' ?>"
    340340                                           ><?php _e('Bottom margin', $this->plugin_short) ?>:</label>
    341341                                </th>
    342342                                <td>
    343343                                    <input type="text" size="5" maxlength="5"
    344                                            id="<?php echo $this->plugin_short . '-pag_option_margin_bottom' ?>"
    345                                            name="<?php echo $this->plugin_short . '[pag_option_margin_bottom]' ?>"
     344                                           id="<?php echo $this->plugin_short . '-pag_option_margin-bottom' ?>"
     345                                           name="<?php echo $this->plugin_short . '[pag_option_margin-bottom]' ?>"
    346346                                           value="<?php echo $pag_options_margBottom ?>"
    347347                                           placeholder="<?php _e('e.g.', $this->plugin_short) ?> 10px <?php _e('or', $this->plugin_short) ?> 0.5em" />
     
    633633                            <tr>
    634634                                <th>
    635                                     <label for="<?php echo $this->plugin_short . '-pag_style_border-color_top' ?>"
     635                                    <label for="<?php echo $this->plugin_short . '-pag_style_border-top-color' ?>"
    636636                                           ><?php _e('Border colour top', $this->plugin_short) ?>:</label>
    637637                                </th>
    638638                                <td>
    639639                                    <input type="text" size="7" maxlength="7" class="color-picker"
    640                                            id="<?php echo $this->plugin_short . '-pag_style_border-color_top' ?>"
    641                                            name="<?php echo $this->plugin_short . '[pag_style_border-color_top]' ?>"
     640                                           id="<?php echo $this->plugin_short . '-pag_style_border-top-color' ?>"
     641                                           name="<?php echo $this->plugin_short . '[pag_style_border-top-color]' ?>"
    642642                                           value="<?php echo $style_options_borderClrTop ?>" />
    643643                                    <span class="hint">
     
    649649                            <tr>
    650650                                <th>
    651                                     <label for="<?php echo $this->plugin_short . '-pag_style_border-color_bottom' ?>"
     651                                    <label for="<?php echo $this->plugin_short . '-pag_style_border-bottom-color' ?>"
    652652                                           ><?php _e('Border colour bottom', $this->plugin_short) ?>:</label>
    653653                                </th>
    654654                                <td>
    655655                                    <input type="text" size="7" maxlength="7" class="color-picker"
    656                                            id="<?php echo $this->plugin_short . '-pag_style_border-color_bottom' ?>"
    657                                            name="<?php echo $this->plugin_short . '[pag_style_border-color_bottom]' ?>"
     656                                           id="<?php echo $this->plugin_short . '-pag_style_border-bottom-color' ?>"
     657                                           name="<?php echo $this->plugin_short . '[pag_style_border-bottom-color]' ?>"
    658658                                           value="<?php echo $style_options_borderClrBottom ?>" />
    659659                                    <span class="hint">
     
    665665                            <tr>
    666666                                <th>
    667                                     <label for="<?php echo $this->plugin_short . '-pag_style_border-color_left' ?>"
     667                                    <label for="<?php echo $this->plugin_short . '-pag_style_border-left-color' ?>"
    668668                                           ><?php _e('Border colour left', $this->plugin_short) ?>:</label>
    669669                                </th>
    670670                                <td>
    671671                                    <input type="text" size="7" maxlength="7" class="color-picker"
    672                                            id="<?php echo $this->plugin_short . '-pag_style_border-color_left' ?>"
    673                                            name="<?php echo $this->plugin_short . '[pag_style_border-color_left]' ?>"
     672                                           id="<?php echo $this->plugin_short . '-pag_style_border-left-color' ?>"
     673                                           name="<?php echo $this->plugin_short . '[pag_style_border-left-color]' ?>"
    674674                                           value="<?php echo $style_options_borderClrLeft ?>" />
    675675                                    <span class="hint">
     
    681681                            <tr>
    682682                                <th>
    683                                     <label for="<?php echo $this->plugin_short . '-pag_style_border-color_right' ?>"
     683                                    <label for="<?php echo $this->plugin_short . '-pag_style_border-right-color' ?>"
    684684                                           ><?php _e('Border colour right', $this->plugin_short) ?>:</label>
    685685                                </th>
    686686                                <td>
    687687                                    <input type="text" size="7" maxlength="7" class="color-picker"
    688                                            id="<?php echo $this->plugin_short . '-pag_style_border-color_right' ?>"
    689                                            name="<?php echo $this->plugin_short . '[pag_style_border-color_right]' ?>"
     688                                           id="<?php echo $this->plugin_short . '-pag_style_border-right-color' ?>"
     689                                           name="<?php echo $this->plugin_short . '[pag_style_border-right-color]' ?>"
    690690                                           value="<?php echo $style_options_borderClrRight ?>" />
    691691                                    <span class="hint">
  • widget-pagination/trunk/public/class-widget-pagination-public.php

    r1775993 r1776005  
    167167            'next_label'         => $options['pag_option_next'],
    168168            'prevnext_threshold' => $options['pag_option_prevnext_threshold_cnt'],
    169             'hor_align'          => $options['pag_option_hor_align'],
    170169            'autoscroll_speed'   => $options['pag_option_autoscroll_speed_cnt']);
    171170
     
    241240        }
    242241
    243         $horalign = $options['pag_option_hor_align'];
     242        $horalign = $options['pag_option_text-align'];
    244243        $pagcss .= "text-align: $horalign;";
    245244
    246         $margintop = $options['pag_option_margin_top'];
     245        $margintop = $options['pag_option_margin-top'];
    247246        $pagcss .= "margin-top: $margintop;";
    248247
    249         $marginbottom = $options['pag_option_margin_bottom'];
     248        $marginbottom = $options['pag_option_margin-bottom'];
    250249        $pagcss .= "margin-bottom: $marginbottom;";
    251250
Note: See TracChangeset for help on using the changeset viewer.