Plugin Directory

Changeset 1773799


Ignore:
Timestamp:
11/23/2017 07:51:36 AM (8 years ago)
Author:
jasie
Message:

use options from previous versions (admin)

Location:
widget-pagination/trunk
Files:
2 edited

Legend:

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

    r1773059 r1773799  
    4343    //print 'options: <pre>' . print_r ($options, true) . '</pre>';
    4444
    45     $options_before_v1 = get_option('wgpag_options');
     45    $options_pre_v1 = get_option('wgpag_options');
    4646    //print 'old opt: <pre>' . print_r ($options_before_v1, true) . '</pre>';
    4747
    4848    // 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'] : '';
    78129    ?>
    79130
     
    146197                    <tr>
    147198                        <th>
    148                             <label for="<?php echo $this->plugin_short . '-pag_option_ptsh' ?>"
     199                            <label for="<?php echo $this->plugin_short . '-pag_option_ptsh_cnt' ?>"
    149200                                   ><?php _e('Max. pagination items', $this->plugin_short) ?>:*</label>
    150201                        </th>
    151202                        <td>
    152203                            <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]' ?>"
    155206                                   value="<?php echo $pag_options_pagItem ?>" />
    156207                            <span class="hint"> <?php echo $default ?>: 7</span>
     
    192243                    <tr>
    193244                        <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' ?>"
    195246                                   ><?php _e('Visibility of the labels', $this->plugin_short) ?>:*</label>
    196247                        </th>
    197248                        <td>
    198249                            <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]' ?>"
    201252                                   value="<?php echo $pag_options_labelVis ?>"
    202253                                   placeholder="<?php _e('e.g.', $this->plugin_short) ?> 3" />
     
    268319                    <tr>
    269320                        <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' ?>"
    271322                                   ><?php _e('Auto-scroll speed', $this->plugin_short) ?>:</label>
    272323                        </th>
    273324                        <td>
    274325                            <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]' ?>"
    277328                                   value="<?php echo $pag_options_scrollSpeed ?>" /> <?php _e('ms', $this->plugin_short) ?>
    278329                            <span class="hint">
     
    327378                    <tr>
    328379                        <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' ?>"
    330381                                   ><?php _e('Border colour', $this->plugin_short) ?>:</label>
    331382                        </th>
    332383                        <td>
    333384                            <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]' ?>"
    336387                                   value="<?php echo $style_options_curItem_borderClr ?>" />
    337388                            <span class="hint">
     
    343394                    <tr>
    344395                        <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' ?>"
    346397                                   ><?php _e('Background colour', $this->plugin_short) ?>:</label>
    347398                        </th>
    348399                        <td>
    349400                            <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]' ?>"
    352403                                   value="<?php echo $style_options_curItem_bgClr ?>" />
    353404                            <span class="hint"><?php echo $default ?>: #F1F1F1</span>
     
    357408                    <tr>
    358409                        <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' ?>"
    360411                                   ><?php _e('Font size', $this->plugin_short) ?>:</label>
    361412                        </th>
    362413                        <td>
    363414                            <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]' ?>"
    366417                                   value="<?php echo $style_options_item_fontSz ?>"
    367418                                   placeholder="<?php _e('e.g.', $this->plugin_short) ?> 12px <?php _e('or', $this->plugin_short) ?> 0.9em" />
     
    395446                    <tr>
    396447                        <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' ?>"
    398449                                   ><?php _e('Border colour', $this->plugin_short) ?>:</label>
    399450                        </th>
    400451                        <td>
    401452                            <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]' ?>"
    404455                                   value="<?php echo $style_options_item_borderClr ?>" />
    405456                            <span class="hint"><?php echo $default ?>: #F1F1F1</span>
     
    409460                    <tr>
    410461                        <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' ?>"
    412463                                   ><?php _e('Background colour', $this->plugin_short) ?>:</label>
    413464                        </th>
    414465                        <td>
    415466                            <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' ?>"
    417468                                   value="<?php echo $style_options_item_bgClr ?>" />
    418469                            <span class="hint">
     
    424475                    <tr>
    425476                        <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' ?>"
    427478                                   ><?php _e('Font size', $this->plugin_short) ?>:</label>
    428479                        </th>
    429480                        <td>
    430481                            <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"
    433484                                   value="<?php echo $style_options_item_fontSz ?>"
    434485                                   placeholder="<?php _e('e.g.', $this->plugin_short) ?> 12px <?php _e('or', $this->plugin_short) ?> 0.9em" />
     
    462513                    <tr>
    463514                        <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' ?>"
    465516                                   ><?php _e('Border colour', $this->plugin_short) ?>:</label>
    466517                        </th>
    467518                        <td>
    468519                            <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]' ?>"
    471522                                   value="<?php echo $style_options_hovItem_borderClr ?>" />
    472523                            <span class="hint">
     
    478529                    <tr>
    479530                        <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' ?>"
    481532                                   ><?php _e('Background colour', $this->plugin_short) ?>:</label>
    482533                        </th>
    483534                        <td>
    484535                            <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]' ?>"
    487538                                   value="<?php echo $style_options_hovItem_bgClr ?>" />
    488539                            <span class="hint">
     
    494545                    <tr>
    495546                        <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' ?>"
    497548                                   ><?php _e('Font size', $this->plugin_short) ?>:</label>
    498549                        </th>
    499550                        <td>
    500551                            <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]' ?>"
    503554                                   value="<?php echo $style_options_hovItem_fontSz ?>"
    504555                                   placeholder="<?php _e('e.g.', $this->plugin_short) ?> 12px <?php _e('or', $this->plugin_short) ?> 0.9em" />
     
    516567                    <tr>
    517568                        <th>
    518                             <label for="<?php echo $this->plugin_short . '-list_item_style' ?>"
     569                            <label for="<?php echo $this->plugin_short . '-list_item_style_icon' ?>"
    519570                                   ><?php _e('List style type', $this->plugin_short) ?>:</label>
    520571                        </th>
    521572                        <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]' ?>">
    524575                                <option value="inherit"
    525                                     <?php if ($options['list_item_style'] == 'inherit')
     576                                    <?php if ($style_options_list_icon == 'inherit')
    526577                                        {echo 'selected="selected"';} ?>>
    527578                                    <?php _e('from theme', $this->plugin_short) ?>&nbsp;</option>
    528579                                <option value="none"
    529                                     <?php if ($options['list_item_style'] == 'none')
     580                                    <?php if ($style_options_list_icon == 'none')
    530581                                        {echo 'selected="selected"';} ?>>
    531582                                    <?php _e('none', $this->plugin_short) ?>&nbsp;</option>
    532583                                <option value="square"
    533                                     <?php if ($options['list_item_style'] == 'square')
     584                                    <?php if ($style_options_list_icon == 'square')
    534585                                        {echo 'selected="selected"';} ?>>
    535586                                    ■ <?php _e('Square', $this->plugin_short) ?> </option>
    536587                                <option value="disc"
    537                                     <?php if ($options['list_item_style'] == 'disc')
     588                                    <?php if ($style_options_list_icon == 'disc')
    538589                                        {echo 'selected="selected"';} ?>>
    539590                                    &#9679; <?php _e('Disc', $this->plugin_short) ?></option>
    540591                                <option value="circle"
    541                                     <?php if ($options['list_item_style'] == 'circle')
     592                                    <?php if ($style_options_list_icon == 'circle')
    542593                                        {echo 'selected="selected"';} ?>>
    543594                                    ○ <?php _e('Circle', $this->plugin_short) ?></option>
     
    556607                    <tr>
    557608                        <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' ?>"
    559610                                   ><?php _e('Background colour', $this->plugin_short) ?>:</label>
    560611                        </th>
    561612                        <td>
    562613                            <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 ?>" />
    566617                            <span class="hint">
    567618                                <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?>
     
    572623                    <tr>
    573624                        <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' ?>"
    575626                                   ><?php _e('Border colour top', $this->plugin_short) ?>:</label>
    576627                        </th>
    577628                        <td>
    578629                            <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 ?>" />
    582633                            <span class="hint">
    583634                                <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?>
     
    588639                    <tr>
    589640                        <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' ?>"
    591642                                   ><?php _e('Border colour bottom', $this->plugin_short) ?>:</label>
    592643                        </th>
    593644                        <td>
    594645                            <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 ?>" />
    598649                            <span class="hint">
    599650                                <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?>
     
    603654                    <tr>
    604655                        <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' ?>"
    606657                                   ><?php _e('Border colour left', $this->plugin_short) ?>:</label>
    607658                        </th>
    608659                        <td>
    609660                            <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 ?>" />
    613664                            <span class="hint">
    614665                                <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?>
     
    618669                    <tr>
    619670                        <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' ?>"
    621672                                   ><?php _e('Border colour right', $this->plugin_short) ?>:</label>
    622673                        </th>
    623674                        <td>
    624675                            <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 ?>" />
    628679                            <span class="hint">
    629680                                <?php echo $default ?>: <?php _e('transparent', $this->plugin_short) ?>
  • widget-pagination/trunk/uninstall.php

    r1772382 r1773799  
    2828}
    2929
    30 if (!defined('WGPAG_NAME')) {
    31     define('WGPAG_NAME', trim(dirname(plugin_basename(__FILE__)), '/'));
    32 }
    33 
    3430// Delete stored options created by the plugin
    35 delete_option( WGPAG_NAME ); // options created via form inputs post
    36 //delete_option('wgpag_options');
     31delete_option( 'wgpag' ); // options created via form inputs post
     32delete_option( 'wgpag_options' ); // delete options from before version 1.0
    3733?>
Note: See TracChangeset for help on using the changeset viewer.