Changeset 1776005
- Timestamp:
- 11/27/2017 10:26:43 AM (8 years ago)
- Location:
- widget-pagination/trunk
- Files:
-
- 2 edited
-
admin/partials/widget-pagination-admin-display.php (modified) (11 diffs)
-
public/class-widget-pagination-public.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
widget-pagination/trunk/admin/partials/widget-pagination-admin-display.php
r1775939 r1776005 60 60 $options['pag_option_prevnext_threshold_cnt'] : (isset($options_pre_v1['pag_option_prevnext_threshold']) ? 61 61 $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']) ? 64 64 $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']) ? 67 67 $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']) ? 70 70 $options_pre_v1['pag_option_margin_bottom'] : ''); 71 71 $pag_options_scrollSpeed = isset($options['pag_option_autoscroll_speed_cnt']) ? … … 123 123 $options['pag_style_border-top-color'] : ''; 124 124 $style_options_borderClrBottom = isset($options['pag_style_border-bottom-color']) ? 125 $options['pag_style_border-bo rder-bottom-color'] : '';125 $options['pag_style_border-bottom-color'] : ''; 126 126 $style_options_borderClrLeft = isset($options['pag_style_border-left-color']) ? 127 127 $options['pag_style_border-left-color'] : ''; … … 300 300 <label class="radio"> 301 301 <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]' ?>" 303 303 <?php if ($pag_options_horAlign == 'left') 304 304 {echo 'checked="checked"';} ?> /><?php _e('left', $this->plugin_short) ?> … … 306 306 <label class="radio"> 307 307 <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]' ?>" 309 309 <?php if ($pag_options_horAlign == 'center') 310 310 {echo 'checked="checked"';} ?> /><?php _e('center', $this->plugin_short) ?> … … 312 312 <label class="radio"> 313 313 <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]' ?>" 315 315 <?php if ($pag_options_horAlign == 'right') 316 316 {echo 'checked="checked"';} ?> /><?php _e('right', $this->plugin_short) ?> … … 322 322 <tr> 323 323 <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' ?>" 325 325 ><?php _e('Top margin', $this->plugin_short) ?>:</label> 326 326 </th> 327 327 <td> 328 328 <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]' ?>" 331 331 value="<?php echo $pag_options_margTop ?>" 332 332 placeholder="<?php _e('e.g.', $this->plugin_short) ?> 10px <?php _e('or', $this->plugin_short) ?> 1.0em"/> … … 337 337 <tr> 338 338 <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' ?>" 340 340 ><?php _e('Bottom margin', $this->plugin_short) ?>:</label> 341 341 </th> 342 342 <td> 343 343 <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]' ?>" 346 346 value="<?php echo $pag_options_margBottom ?>" 347 347 placeholder="<?php _e('e.g.', $this->plugin_short) ?> 10px <?php _e('or', $this->plugin_short) ?> 0.5em" /> … … 633 633 <tr> 634 634 <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' ?>" 636 636 ><?php _e('Border colour top', $this->plugin_short) ?>:</label> 637 637 </th> 638 638 <td> 639 639 <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]' ?>" 642 642 value="<?php echo $style_options_borderClrTop ?>" /> 643 643 <span class="hint"> … … 649 649 <tr> 650 650 <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' ?>" 652 652 ><?php _e('Border colour bottom', $this->plugin_short) ?>:</label> 653 653 </th> 654 654 <td> 655 655 <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]' ?>" 658 658 value="<?php echo $style_options_borderClrBottom ?>" /> 659 659 <span class="hint"> … … 665 665 <tr> 666 666 <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' ?>" 668 668 ><?php _e('Border colour left', $this->plugin_short) ?>:</label> 669 669 </th> 670 670 <td> 671 671 <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]' ?>" 674 674 value="<?php echo $style_options_borderClrLeft ?>" /> 675 675 <span class="hint"> … … 681 681 <tr> 682 682 <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' ?>" 684 684 ><?php _e('Border colour right', $this->plugin_short) ?>:</label> 685 685 </th> 686 686 <td> 687 687 <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]' ?>" 690 690 value="<?php echo $style_options_borderClrRight ?>" /> 691 691 <span class="hint"> -
widget-pagination/trunk/public/class-widget-pagination-public.php
r1775993 r1776005 167 167 'next_label' => $options['pag_option_next'], 168 168 'prevnext_threshold' => $options['pag_option_prevnext_threshold_cnt'], 169 'hor_align' => $options['pag_option_hor_align'],170 169 'autoscroll_speed' => $options['pag_option_autoscroll_speed_cnt']); 171 170 … … 241 240 } 242 241 243 $horalign = $options['pag_option_ hor_align'];242 $horalign = $options['pag_option_text-align']; 244 243 $pagcss .= "text-align: $horalign;"; 245 244 246 $margintop = $options['pag_option_margin _top'];245 $margintop = $options['pag_option_margin-top']; 247 246 $pagcss .= "margin-top: $margintop;"; 248 247 249 $marginbottom = $options['pag_option_margin _bottom'];248 $marginbottom = $options['pag_option_margin-bottom']; 250 249 $pagcss .= "margin-bottom: $marginbottom;"; 251 250
Note: See TracChangeset
for help on using the changeset viewer.