Changeset 1773799
- Timestamp:
- 11/23/2017 07:51:36 AM (8 years ago)
- Location:
- widget-pagination/trunk
- Files:
-
- 2 edited
-
admin/partials/widget-pagination-admin-display.php (modified) (19 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
widget-pagination/trunk/admin/partials/widget-pagination-admin-display.php
r1773059 r1773799 43 43 //print 'options: <pre>' . print_r ($options, true) . '</pre>'; 44 44 45 $options_ before_v1 = get_option('wgpag_options');45 $options_pre_v1 = get_option('wgpag_options'); 46 46 //print 'old opt: <pre>' . print_r ($options_before_v1, true) . '</pre>'; 47 47 48 48 // Pagination Options (saved or default value) 49 $pag_options_pagItem = isset($options['pag_option_ptsh']) ? $options['pag_option_ptsh'] : 7; // pages to show 50 $pag_options_prevLabel = isset($options['pag_option_prev']) ? $options['pag_option_prev'] : '<'; 51 $pag_options_nextLabel = isset($options['pag_option_next']) ? $options['pag_option_next'] : '>'; 52 $pag_options_labelVis = isset($options['pag_option_prevnext_threshold']) ? $options['pag_option_prevnext_threshold'] : ''; 53 $pag_options_horAlign = isset($options['pag_option_hor_align']) ? $options['pag_option_hor_align'] : 'center'; 54 $pag_options_margTop = isset($options['pag_option_margin_top']) ? $options['pag_option_margin_top'] : '0.5em'; 55 $pag_options_margBottom = isset($options['pag_option_margin_bottom']) ? $options['pag_option_margin_bottom'] : ''; 56 $pag_options_scrollSpeed = isset($options['pag_option_autoscroll_speed']) ? $options['pag_option_autoscroll_speed'] : '0'; 57 58 $style_options_curItem_textClr = isset($options['cur_item_style_color']) ? $options['cur_item_style_color'] : ''; 59 $style_options_curItem_borderClr = isset($options['cur_item_style_border_color']) ? $options['cur_item_style_border_color'] : ''; 60 $style_options_curItem_bgClr = isset($options['cur_item_style_background_color']) ? $options['cur_item_style_background_color'] : '#F1F1F1'; 61 $style_options_curItem_fontSz = isset($options['cur_item_style_font_size']) ? $options['cur_item_style_font_size'] : ''; 62 63 $style_options_item_textClr = isset($options['item_style_color']) ? $options['item_style_color'] : ''; 64 $style_options_item_borderClr = isset($options['item_style_border_color']) ? $options['item_style_border_color'] : '#F1F1F1'; 65 $style_options_item_bgClr = isset($options['item_style_background_color']) ? $options['item_style_background_color'] : ''; 66 $style_options_item_fontSz = isset($options['item_style_font_size']) ? $options['item_style_font_size'] : ''; 67 68 $style_options_hovItem_textClr = isset($options['hover_item_style_color']) ? $options['hover_item_style_color'] : ''; 69 $style_options_hovItem_borderClr = isset($options['hover_item_style_border_color']) ? $options['hover_item_style_border_color'] : ''; 70 $style_options_hovItem_bgClr = isset($options['hover_item_style_background_color']) ? $options['hover_item_style_background_color'] : ''; 71 $style_options_hovItem_fontSz = isset($options['hover_item_style_font_size']) ? $options['hover_item_style_font_size'] : ''; 72 73 $pagStyle_options_bgClr = isset($options['pag_style_background_color']) ? $options['pag_style_background_color'] : ''; 74 $pagStyle_options_borderClrTop = isset($options['pag_style_border_color_top']) ? $options['pag_style_border_color_top'] : ''; 75 $pagStyle_options_borderClrBottom = isset($options['pag_style_border_color_bottom']) ? $options['pag_style_border_color_bottom'] : ''; 76 $pagStyle_options_borderClrLeft = isset($options['pag_style_border_color_left']) ? $options['pag_style_border_color_left'] : ''; 77 $pagStyle_options_borderClrRight = isset($options['pag_style_border_color_right']) ? $options['pag_style_border_color_right'] : ''; 49 $pag_options_pagItem = isset($options['pag_option_ptsh_cnt']) ? 50 $options['pag_option_ptsh_cnt'] : (isset($options_pre_v1['pag_option_ptsh']) ? 51 $options_pre_v1['pag_option_ptsh'] : 7); // pages to show 52 $pag_options_prevLabel = isset($options['pag_option_prev']) ? 53 $options['pag_option_prev'] : (isset($options_pre_v1['pag_option_prev']) ? 54 $options_pre_v1['pag_option_prev'] : '<'); 55 $pag_options_nextLabel = isset($options['pag_option_next']) ? 56 $options['pag_option_next'] : (isset($options_pre_v1['pag_option_next']) ? 57 $options_pre_v1['pag_option_next'] : '>'); 58 $pag_options_labelVis = isset($options['pag_option_prevnext_threshold_cnt']) ? 59 $options['pag_option_prevnext_threshold_cnt'] : (isset($options_pre_v1['pag_option_prevnext_threshold']) ? 60 $options_pre_v1['pag_option_prevnext_threshold'] : ''); 61 $pag_options_horAlign = isset($options['pag_option_hor_align']) ? 62 $options['pag_option_hor_align'] : (isset($options_pre_v1['pag_option_hor_align']) ? 63 $options_pre_v1['pag_option_hor_align'] : 'center'); 64 $pag_options_margTop = isset($options['pag_option_margin_top']) ? 65 $options['pag_option_margin_top'] : (isset($options_pre_v1['pag_option_margin_top']) ? 66 $options_pre_v1['pag_option_margin_top'] : '0.5em'); 67 $pag_options_margBottom = isset($options['pag_option_margin_bottom']) ? 68 $options['pag_option_margin_bottom'] : (isset($options_pre_v1['pag_option_margin_bottom']) ? 69 $options_pre_v1['pag_option_margin_bottom'] : ''); 70 $pag_options_scrollSpeed = isset($options['pag_option_autoscroll_speed_cnt']) ? 71 $options['pag_option_autoscroll_speed_cnt'] : (isset($options_pre_v1['pag_option_autoscroll_speed']) ? 72 $options_pre_v1['pag_option_autoscroll_speed'] : '0'); 73 74 // Styling Options (saved or default value) 75 $style_options_curItem_textClr = isset($options['cur_item_style_color']) ? 76 $options['cur_item_style_color'] : (isset($options_pre_v1['cur_item_style_color']) ? 77 $options_pre_v1['cur_item_style_color'] : ''); 78 $style_options_curItem_borderClr = isset($options['cur_item_style_border-color']) ? 79 $options['cur_item_style_border-color'] : (isset($options_pre_v1['cur_item_style_border-color']) ? 80 $options_pre_v1[''] : 'cur_item_style_border-color'); 81 $style_options_curItem_bgClr = isset($options['cur_item_style_background-color']) ? 82 $options['cur_item_style_background-color'] : (isset($options_pre_v1['cur_item_style_background-color']) ? 83 $options_pre_v1['cur_item_style_background-color'] : '#F1F1F1'); 84 $style_options_curItem_fontSz = isset($options['cur_item_style_font-size']) ? 85 $options['cur_item_style_font-size'] : (isset($options_pre_v1['cur_item_style_font-size']) ? 86 $options_pre_v1['cur_item_style_font-size'] : ''); 87 88 $style_options_item_textClr = isset($options['item_style_color']) ? 89 $options['item_style_color'] : (isset($options_pre_v1['item_style_color']) ? 90 $options_pre_v1['item_style_color'] : ''); 91 $style_options_item_borderClr = isset($options['item_style_border-color']) ? 92 $options['item_style_border-color'] : (isset($options_pre_v1['item_style_border-color']) ? 93 $options_pre_v1['item_style_border-color'] : '#F1F1F1'); 94 $style_options_item_bgClr = isset($options['item_style_background-color']) ? 95 $options['item_style_background-color'] : (isset($options_pre_v1['item_style_background-color']) ? 96 $options_pre_v1['item_style_background-color'] : ''); 97 $style_options_item_fontSz = isset($options['item_style_font-size']) ? 98 $options['item_style_font-size'] : (isset($options_pre_v1['item_style_font-size']) ? 99 $options_pre_v1['item_style_font-size'] : ''); 100 101 $style_options_hovItem_textClr = isset($options['hover_item_style_color']) ? 102 $options['hover_item_style_color'] : (isset($options_pre_v1['hover_item_style_color']) ? 103 $options_pre_v1['hover_item_style_color'] : ''); 104 $style_options_hovItem_borderClr = isset($options['hover_item_style_border-color']) ? 105 $options['hover_item_style_border-color'] : (isset($options_pre_v1['hover_item_style_border-color']) ? 106 $options_pre_v1['hover_item_style_border-color'] : ''); 107 $style_options_hovItem_bgClr = isset($options['hover_item_style_background-color']) ? 108 $options['hover_item_style_background-color'] : (isset($options_pre_v1['hover_item_style_background-color']) ? 109 $options_pre_v1['hover_item_style_background-color'] : ''); 110 $style_options_hovItem_fontSz = isset($options['hover_item_style_font-size']) ? 111 $options['hover_item_style_font-size'] : (isset($options_pre_v1['hover_item_style_font-size']) ? 112 $options_pre_v1['hover_item_style_font-size'] : ''); 113 114 $style_options_list_icon = isset($options['list_item_style_list-style']) ? 115 $options['list_item_style_list-style'] : (isset($options_pre_v1['list_item_style']) ? 116 $options_pre_v1['list_item_style'] : 'center'); 117 118 // these options are new (hence not in $options_pre_v1) 119 $style_options_bgClr = isset($options['pag_style_background-color']) ? 120 $options['pag_style_background-color'] : ''; 121 $style_options_borderClrTop = isset($options['pag_style_border-color_top']) ? 122 $options['pag_style_border-color_top'] : ''; 123 $style_options_borderClrBottom = isset($options['pag_style_border-color_bottom']) ? 124 $options['pag_style_border-color_bottom'] : ''; 125 $style_options_borderClrLeft = isset($options['pag_style_border-color_left']) ? 126 $options['pag_style_border-color_left'] : ''; 127 $style_options_borderClrRight = isset($options['pag_style_border-color_right']) ? 128 $options['pag_style_border-color_right'] : ''; 78 129 ?> 79 130 … … 146 197 <tr> 147 198 <th> 148 <label for="<?php echo $this->plugin_short . '-pag_option_ptsh ' ?>"199 <label for="<?php echo $this->plugin_short . '-pag_option_ptsh_cnt' ?>" 149 200 ><?php _e('Max. pagination items', $this->plugin_short) ?>:*</label> 150 201 </th> 151 202 <td> 152 203 <input type="number" step="1" min="1" 153 id="<?php echo $this->plugin_short . '-pag_option_ptsh ' ?>"154 name="<?php echo $this->plugin_short . '[pag_option_ptsh ]' ?>"204 id="<?php echo $this->plugin_short . '-pag_option_ptsh_cnt' ?>" 205 name="<?php echo $this->plugin_short . '[pag_option_ptsh_cnt]' ?>" 155 206 value="<?php echo $pag_options_pagItem ?>" /> 156 207 <span class="hint"> <?php echo $default ?>: 7</span> … … 192 243 <tr> 193 244 <th> 194 <label for="<?php echo $this->plugin_short . '-pag_option_prevnext_threshold ' ?>"245 <label for="<?php echo $this->plugin_short . '-pag_option_prevnext_threshold_cnt' ?>" 195 246 ><?php _e('Visibility of the labels', $this->plugin_short) ?>:*</label> 196 247 </th> 197 248 <td> 198 249 <input type="number" maxlength="5" step="1" 199 id="<?php echo $this->plugin_short . '-pag_option_prevnext_threshold ' ?>"200 name="<?php echo $this->plugin_short . '[pag_option_prevnext_threshold ]' ?>"250 id="<?php echo $this->plugin_short . '-pag_option_prevnext_threshold_cnt' ?>" 251 name="<?php echo $this->plugin_short . '[pag_option_prevnext_threshold_cnt]' ?>" 201 252 value="<?php echo $pag_options_labelVis ?>" 202 253 placeholder="<?php _e('e.g.', $this->plugin_short) ?> 3" /> … … 268 319 <tr> 269 320 <th> 270 <label for="<?php echo $this->plugin_short . '-pag_option_autoscroll_speed ' ?>"321 <label for="<?php echo $this->plugin_short . '-pag_option_autoscroll_speed_cnt' ?>" 271 322 ><?php _e('Auto-scroll speed', $this->plugin_short) ?>:</label> 272 323 </th> 273 324 <td> 274 325 <input type="number" maxlength="5" step="1" min="0" 275 id="<?php echo $this->plugin_short . '-pag_option_autoscroll_speed ' ?>"276 name="<?php echo $this->plugin_short . '[pag_option_autoscroll_speed ]' ?>"326 id="<?php echo $this->plugin_short . '-pag_option_autoscroll_speed_cnt' ?>" 327 name="<?php echo $this->plugin_short . '[pag_option_autoscroll_speed_cnt]' ?>" 277 328 value="<?php echo $pag_options_scrollSpeed ?>" /> <?php _e('ms', $this->plugin_short) ?> 278 329 <span class="hint"> … … 327 378 <tr> 328 379 <th> 329 <label for="<?php echo $this->plugin_short . '-cur_item_style_border _color' ?>"380 <label for="<?php echo $this->plugin_short . '-cur_item_style_border-color' ?>" 330 381 ><?php _e('Border colour', $this->plugin_short) ?>:</label> 331 382 </th> 332 383 <td> 333 384 <input type="text" size="7" maxlength="7" class="color-picker" 334 id="<?php echo $this->plugin_short . '-cur_item_style_border _color' ?>"335 name="<?php echo $this->plugin_short . '[cur_item_style_border _color]' ?>"385 id="<?php echo $this->plugin_short . '-cur_item_style_border-color' ?>" 386 name="<?php echo $this->plugin_short . '[cur_item_style_border-color]' ?>" 336 387 value="<?php echo $style_options_curItem_borderClr ?>" /> 337 388 <span class="hint"> … … 343 394 <tr> 344 395 <th> 345 <label for="<?php echo $this->plugin_short . '-cur_item_style_background _color' ?>"396 <label for="<?php echo $this->plugin_short . '-cur_item_style_background-color' ?>" 346 397 ><?php _e('Background colour', $this->plugin_short) ?>:</label> 347 398 </th> 348 399 <td> 349 400 <input type="text" size="7" maxlength="7" class="color-picker" 350 id="<?php echo $this->plugin_short . '-cur_item_style_background _color' ?>"351 name="<?php echo $this->plugin_short . '[cur_item_style_background _color]' ?>"401 id="<?php echo $this->plugin_short . '-cur_item_style_background-color' ?>" 402 name="<?php echo $this->plugin_short . '[cur_item_style_background-color]' ?>" 352 403 value="<?php echo $style_options_curItem_bgClr ?>" /> 353 404 <span class="hint"><?php echo $default ?>: #F1F1F1</span> … … 357 408 <tr> 358 409 <th> 359 <label for="<?php echo $this->plugin_short . '-cur_item_style_font _size' ?>"410 <label for="<?php echo $this->plugin_short . '-cur_item_style_font-size' ?>" 360 411 ><?php _e('Font size', $this->plugin_short) ?>:</label> 361 412 </th> 362 413 <td> 363 414 <input type="text" size="7" maxlength="5" 364 id="<?php echo $this->plugin_short . '-cur_item_style_font _size' ?>"365 name="<?php echo $this->plugin_short . '[cur_item_style_font _size]' ?>"415 id="<?php echo $this->plugin_short . '-cur_item_style_font-size' ?>" 416 name="<?php echo $this->plugin_short . '[cur_item_style_font-size]' ?>" 366 417 value="<?php echo $style_options_item_fontSz ?>" 367 418 placeholder="<?php _e('e.g.', $this->plugin_short) ?> 12px <?php _e('or', $this->plugin_short) ?> 0.9em" /> … … 395 446 <tr> 396 447 <th> 397 <label for="<?php echo $this->plugin_short . '-item_style_border _color' ?>"448 <label for="<?php echo $this->plugin_short . '-item_style_border-color' ?>" 398 449 ><?php _e('Border colour', $this->plugin_short) ?>:</label> 399 450 </th> 400 451 <td> 401 452 <input type="text" size="7" maxlength="7" class="color-picker" 402 id="<?php echo $this->plugin_short . '-item_style_border _color' ?>"403 name="<?php echo $this->plugin_short . '[item_style_border _color]' ?>"453 id="<?php echo $this->plugin_short . '-item_style_border-color' ?>" 454 name="<?php echo $this->plugin_short . '[item_style_border-color]' ?>" 404 455 value="<?php echo $style_options_item_borderClr ?>" /> 405 456 <span class="hint"><?php echo $default ?>: #F1F1F1</span> … … 409 460 <tr> 410 461 <th> 411 <label for="<?php echo $this->plugin_short . '-item_style_background _color' ?>"462 <label for="<?php echo $this->plugin_short . '-item_style_background-color' ?>" 412 463 ><?php _e('Background colour', $this->plugin_short) ?>:</label> 413 464 </th> 414 465 <td> 415 466 <input type="text" size="7" maxlength="7" class="color-picker" 416 id="<?php echo $this->plugin_short . '-item_style_background _color' ?>"467 id="<?php echo $this->plugin_short . '-item_style_background-color' ?>" 417 468 value="<?php echo $style_options_item_bgClr ?>" /> 418 469 <span class="hint"> … … 424 475 <tr> 425 476 <th> 426 <label for="<?php echo $this->plugin_short . '-item_style_font _size' ?>"477 <label for="<?php echo $this->plugin_short . '-item_style_font-size' ?>" 427 478 ><?php _e('Font size', $this->plugin_short) ?>:</label> 428 479 </th> 429 480 <td> 430 481 <input type="text" size="7" maxlength="5" 431 id="<?php echo $this->plugin_short . '-item_style_font _size' ?>"432 name="wgpag-item_style_font _size"482 id="<?php echo $this->plugin_short . '-item_style_font-size' ?>" 483 name="wgpag-item_style_font-size" 433 484 value="<?php echo $style_options_item_fontSz ?>" 434 485 placeholder="<?php _e('e.g.', $this->plugin_short) ?> 12px <?php _e('or', $this->plugin_short) ?> 0.9em" /> … … 462 513 <tr> 463 514 <th> 464 <label for="<?php echo $this->plugin_short . '-hover_item_style_border _color' ?>"515 <label for="<?php echo $this->plugin_short . '-hover_item_style_border-color' ?>" 465 516 ><?php _e('Border colour', $this->plugin_short) ?>:</label> 466 517 </th> 467 518 <td> 468 519 <input type="text" size="7" maxlength="7" class="color-picker" 469 id="<?php echo $this->plugin_short . '-hover_item_style_border _color' ?>"470 name="<?php echo $this->plugin_short . '[hover_item_style_border _color]' ?>"520 id="<?php echo $this->plugin_short . '-hover_item_style_border-color' ?>" 521 name="<?php echo $this->plugin_short . '[hover_item_style_border-color]' ?>" 471 522 value="<?php echo $style_options_hovItem_borderClr ?>" /> 472 523 <span class="hint"> … … 478 529 <tr> 479 530 <th> 480 <label for="<?php echo $this->plugin_short . '-hover_item_style_background _color' ?>"531 <label for="<?php echo $this->plugin_short . '-hover_item_style_background-color' ?>" 481 532 ><?php _e('Background colour', $this->plugin_short) ?>:</label> 482 533 </th> 483 534 <td> 484 535 <input type="text" size="7" maxlength="7" class="color-picker" 485 id="<?php echo $this->plugin_short . '-hover_item_style_background _color' ?>"486 name="<?php echo $this->plugin_short . '[hover_item_style_background _color]' ?>"536 id="<?php echo $this->plugin_short . '-hover_item_style_background-color' ?>" 537 name="<?php echo $this->plugin_short . '[hover_item_style_background-color]' ?>" 487 538 value="<?php echo $style_options_hovItem_bgClr ?>" /> 488 539 <span class="hint"> … … 494 545 <tr> 495 546 <th> 496 <label for="<?php echo $this->plugin_short . '-hover_item_style_font _size' ?>"547 <label for="<?php echo $this->plugin_short . '-hover_item_style_font-size' ?>" 497 548 ><?php _e('Font size', $this->plugin_short) ?>:</label> 498 549 </th> 499 550 <td> 500 551 <input type="text" size="7" maxlength="5" 501 id="<?php echo $this->plugin_short . '-hover_item_style_font _size' ?>"502 name="<?php echo $this->plugin_short . '[hover_item_style_font _size]' ?>"552 id="<?php echo $this->plugin_short . '-hover_item_style_font-size' ?>" 553 name="<?php echo $this->plugin_short . '[hover_item_style_font-size]' ?>" 503 554 value="<?php echo $style_options_hovItem_fontSz ?>" 504 555 placeholder="<?php _e('e.g.', $this->plugin_short) ?> 12px <?php _e('or', $this->plugin_short) ?> 0.9em" /> … … 516 567 <tr> 517 568 <th> 518 <label for="<?php echo $this->plugin_short . '-list_item_style ' ?>"569 <label for="<?php echo $this->plugin_short . '-list_item_style_icon' ?>" 519 570 ><?php _e('List style type', $this->plugin_short) ?>:</label> 520 571 </th> 521 572 <td> 522 <select id="<?php echo $this->plugin_short . '-list_item_style ' ?>"523 name="<?php echo $this->plugin_short . '[list_item_style ]' ?>">573 <select id="<?php echo $this->plugin_short . '-list_item_style_icon' ?>" 574 name="<?php echo $this->plugin_short . '[list_item_style_icon]' ?>"> 524 575 <option value="inherit" 525 <?php if ($ options['list_item_style']== 'inherit')576 <?php if ($style_options_list_icon == 'inherit') 526 577 {echo 'selected="selected"';} ?>> 527 578 <?php _e('from theme', $this->plugin_short) ?> </option> 528 579 <option value="none" 529 <?php if ($ options['list_item_style']== 'none')580 <?php if ($style_options_list_icon == 'none') 530 581 {echo 'selected="selected"';} ?>> 531 582 <?php _e('none', $this->plugin_short) ?> </option> 532 583 <option value="square" 533 <?php if ($ options['list_item_style']== 'square')584 <?php if ($style_options_list_icon == 'square') 534 585 {echo 'selected="selected"';} ?>> 535 586 ■ <?php _e('Square', $this->plugin_short) ?> </option> 536 587 <option value="disc" 537 <?php if ($ options['list_item_style']== 'disc')588 <?php if ($style_options_list_icon == 'disc') 538 589 {echo 'selected="selected"';} ?>> 539 590 ● <?php _e('Disc', $this->plugin_short) ?></option> 540 591 <option value="circle" 541 <?php if ($ options['list_item_style']== 'circle')592 <?php if ($style_options_list_icon == 'circle') 542 593 {echo 'selected="selected"';} ?>> 543 594 ○ <?php _e('Circle', $this->plugin_short) ?></option> … … 556 607 <tr> 557 608 <th> 558 <label for="<?php echo $this->plugin_short . '-pag_style_background _color' ?>"609 <label for="<?php echo $this->plugin_short . '-pag_style_background-color' ?>" 559 610 ><?php _e('Background colour', $this->plugin_short) ?>:</label> 560 611 </th> 561 612 <td> 562 613 <input type="text" size="7" maxlength="7" class="color-picker" 563 id="<?php echo $this->plugin_short . '-pag_style_background _color' ?>"564 name="<?php echo $this->plugin_short . '[pag_style_background _color]' ?>"565 value="<?php echo $ pagStyle_options_bgClr ?>" />614 id="<?php echo $this->plugin_short . '-pag_style_background-color' ?>" 615 name="<?php echo $this->plugin_short . '[pag_style_background-color]' ?>" 616 value="<?php echo $style_options_bgClr ?>" /> 566 617 <span class="hint"> 567 618 <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?> … … 572 623 <tr> 573 624 <th> 574 <label for="<?php echo $this->plugin_short . '-pag_style_border _color_top' ?>"625 <label for="<?php echo $this->plugin_short . '-pag_style_border-color_top' ?>" 575 626 ><?php _e('Border colour top', $this->plugin_short) ?>:</label> 576 627 </th> 577 628 <td> 578 629 <input type="text" size="7" maxlength="7" class="color-picker" 579 id="<?php echo $this->plugin_short . '-pag_style_border _color_top' ?>"580 name="<?php echo $this->plugin_short . '[pag_style_border _color_top]' ?>"581 value="<?php echo $ pagStyle_options_borderClrTop ?>" />630 id="<?php echo $this->plugin_short . '-pag_style_border-color_top' ?>" 631 name="<?php echo $this->plugin_short . '[pag_style_border-color_top]' ?>" 632 value="<?php echo $style_options_borderClrTop ?>" /> 582 633 <span class="hint"> 583 634 <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?> … … 588 639 <tr> 589 640 <th> 590 <label for="<?php echo $this->plugin_short . '-pag_style_border _color_bottom' ?>"641 <label for="<?php echo $this->plugin_short . '-pag_style_border-color_bottom' ?>" 591 642 ><?php _e('Border colour bottom', $this->plugin_short) ?>:</label> 592 643 </th> 593 644 <td> 594 645 <input type="text" size="7" maxlength="7" class="color-picker" 595 id="<?php echo $this->plugin_short . '-pag_style_border _color_bottom' ?>"596 name="<?php echo $this->plugin_short . '[pag_style_border _color_bottom]' ?>"597 value="<?php echo $ pagStyle_options_borderClrBottom ?>" />646 id="<?php echo $this->plugin_short . '-pag_style_border-color_bottom' ?>" 647 name="<?php echo $this->plugin_short . '[pag_style_border-color_bottom]' ?>" 648 value="<?php echo $style_options_borderClrBottom ?>" /> 598 649 <span class="hint"> 599 650 <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?> … … 603 654 <tr> 604 655 <th> 605 <label for="<?php echo $this->plugin_short . '-pag_style_border _color_left' ?>"656 <label for="<?php echo $this->plugin_short . '-pag_style_border-color_left' ?>" 606 657 ><?php _e('Border colour left', $this->plugin_short) ?>:</label> 607 658 </th> 608 659 <td> 609 660 <input type="text" size="7" maxlength="7" class="color-picker" 610 id="<?php echo $this->plugin_short . '-pag_style_border _color_left' ?>"611 name="<?php echo $this->plugin_short . '[pag_style_border _color_left]' ?>"612 value="<?php echo $ pagStyle_options_borderClrLeft ?>" />661 id="<?php echo $this->plugin_short . '-pag_style_border-color_left' ?>" 662 name="<?php echo $this->plugin_short . '[pag_style_border-color_left]' ?>" 663 value="<?php echo $style_options_borderClrLeft ?>" /> 613 664 <span class="hint"> 614 665 <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?> … … 618 669 <tr> 619 670 <th> 620 <label for="<?php echo $this->plugin_short . '-pag_style_border _color_right' ?>"671 <label for="<?php echo $this->plugin_short . '-pag_style_border-color_right' ?>" 621 672 ><?php _e('Border colour right', $this->plugin_short) ?>:</label> 622 673 </th> 623 674 <td> 624 675 <input type="text" size="7" maxlength="7" class="color-picker" 625 id="<?php echo $this->plugin_short . '-pag_style_border _color_right' ?>"626 name="<?php echo $this->plugin_short . '[pag_style_border _color_right]' ?>"627 value="<?php echo $ pagStyle_options_borderClrRight ?>" />676 id="<?php echo $this->plugin_short . '-pag_style_border-color_right' ?>" 677 name="<?php echo $this->plugin_short . '[pag_style_border-color_right]' ?>" 678 value="<?php echo $style_options_borderClrRight ?>" /> 628 679 <span class="hint"> 629 680 <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?> -
widget-pagination/trunk/uninstall.php
r1772382 r1773799 28 28 } 29 29 30 if (!defined('WGPAG_NAME')) {31 define('WGPAG_NAME', trim(dirname(plugin_basename(__FILE__)), '/'));32 }33 34 30 // Delete stored options created by the plugin 35 delete_option( WGPAG_NAME); // options created via form inputs post36 //delete_option('wgpag_options'); 31 delete_option( 'wgpag' ); // options created via form inputs post 32 delete_option( 'wgpag_options' ); // delete options from before version 1.0 37 33 ?>
Note: See TracChangeset
for help on using the changeset viewer.