Plugin Directory

Changeset 2847747


Ignore:
Timestamp:
01/13/2023 06:26:43 AM (3 years ago)
Author:
simon_tw
Message:

fixed check woo plugin bug

Location:
wp-line-notify/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-line-notify/trunk/includes/class-woo.php

    r2847740 r2847747  
    9494    public static function woo_box_html($option_name='') {
    9595
     96        if( !is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
     97            echo '<table class="form-table"><tr valign="top">';
     98            echo '<th scope="row">'. __( 'WooCommerce' , 'wp-line-notify' ) .'</th>';
     99            echo '<td><p class="description">('. __( 'This plugin is not install or active.' , 'wp-line-notify' ) .')</p></td>';
     100            echo '</tr></table>';
     101            return;
     102        }
     103
    96104        $options = get_option($option_name);
    97105        $my_status = ( !empty($options['woo_status']) ) ? $options['woo_status']:[];
     
    101109        <tr valign="top">
    102110            <th scope="row"><?php _e( 'WooCommerce' , 'wp-line-notify' ); ?></th>
    103             <td><?php
    104             if( !is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
    105                 echo '<p class="description">('. __( 'This plugin is not install or active.' , 'wp-line-notify' ) .')</p>';
    106             }else{
    107 ?>
     111            <td>
    108112                <input type="checkbox" id="chcek_order" name="<?php echo $option_name?>[woo_order]" value="yes" <?php if(isset($options['woo_order'])) echo checked( 'yes', $options['woo_order'], false )?>>
    109113                <label for="chcek_order"><?php _e( 'Add a new order' , 'wp-line-notify' )?></label><br>
    110 <?php
    111             }
    112             ?></td>
     114            </td>
    113115        </tr>
    114116        <tr valign="top">
  • wp-line-notify/trunk/languages/wp-line-notify-zh_TW.po

    r2847740 r2847747  
    55"Project-Id-Version: Plugins - WP LINE Notify - Stable (latest release)\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-line-notify\n"
    7 "POT-Creation-Date: 2023-01-13T05:15:04+01:00\n"
    8 "PO-Revision-Date: 2023-01-13 13:31+0800\n"
     7"POT-Creation-Date: 2023-01-13T07:24:20+01:00\n"
     8"PO-Revision-Date: 2023-01-13 14:25+0800\n"
    99"Last-Translator: \n"
    1010"Language-Team: \n"
     
    180180msgstr "你有一筆新的訂單。"
    181181
    182 #: includes/class-woo.php:102
     182#: includes/class-woo.php:98 includes/class-woo.php:110
    183183msgid "WooCommerce"
    184184msgstr "WooCommerce"
    185185
    186 #: includes/class-woo.php:105 includes/page-setup.php:143
     186#: includes/class-woo.php:99 includes/page-setup.php:143
    187187#: includes/page-setup.php:167
    188188msgid "This plugin is not install or active."
    189189msgstr "這個外掛尚未安裝或是啟用。"
    190190
    191 #: includes/class-woo.php:109
     191#: includes/class-woo.php:113
    192192msgid "Add a new order"
    193193msgstr "新增一筆新的訂單"
    194194
    195 #: includes/class-woo.php:117
     195#: includes/class-woo.php:119
    196196msgid "You can use these tags in the message template:"
    197197msgstr "你可以在訊息範本中使用這些標籤:"
    198198
    199 #: includes/class-woo.php:118
     199#: includes/class-woo.php:120
    200200msgid "(Click tag to insert into the template)"
    201201msgstr "(點擊標籤自動加入到範本中)"
    202202
    203 #: includes/class-woo.php:122
     203#: includes/class-woo.php:124
    204204msgid "Default Item"
    205205msgstr "預設項目"
    206206
    207 #: includes/class-woo.php:132
     207#: includes/class-woo.php:134
    208208msgid "Billing Fields"
    209209msgstr "購買人欄位"
    210210
    211 #: includes/class-woo.php:138
     211#: includes/class-woo.php:140
    212212msgid "Shipping Fields"
    213213msgstr "收件人欄位"
    214214
    215 #: includes/class-woo.php:144
     215#: includes/class-woo.php:146
    216216msgid "Additional Fields"
    217217msgstr "額外欄位"
    218218
    219 #: includes/class-woo.php:153
     219#: includes/class-woo.php:155
    220220msgid "Buyer Information"
    221221msgstr "購買人資訊"
    222222
    223 #: includes/class-woo.php:160
     223#: includes/class-woo.php:162
    224224msgid "Recipient Information"
    225225msgstr "收件人資訊"
    226226
    227 #: includes/class-woo.php:172
     227#: includes/class-woo.php:174
    228228msgid "Template"
    229229msgstr "範本"
    230230
    231 #: includes/class-woo.php:177
     231#: includes/class-woo.php:179
    232232msgid ""
    233233"* If you do not enter any text, the system will use the default template."
    234234msgstr "* 如果您不輸入任何文字,系統將使用預設範本。"
    235235
    236 #: includes/class-woo.php:183
     236#: includes/class-woo.php:185
    237237msgid "Order status changed"
    238238msgstr "訂單狀態變更"
  • wp-line-notify/trunk/languages/wp-line-notify.pot

    r2847740 r2847747  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-01-13T05:15:04+01:00\n"
     12"POT-Creation-Date: 2023-01-13T07:24:20+01:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    188188msgstr ""
    189189
    190 #: includes/class-woo.php:102
     190#: includes/class-woo.php:98
     191#: includes/class-woo.php:110
    191192msgid "WooCommerce"
    192193msgstr ""
    193194
    194 #: includes/class-woo.php:105
     195#: includes/class-woo.php:99
    195196#: includes/page-setup.php:143
    196197#: includes/page-setup.php:167
     
    198199msgstr ""
    199200
    200 #: includes/class-woo.php:109
     201#: includes/class-woo.php:113
    201202msgid "Add a new order"
    202203msgstr ""
    203204
    204 #: includes/class-woo.php:117
     205#: includes/class-woo.php:119
    205206msgid "You can use these tags in the message template:"
    206207msgstr ""
    207208
    208 #: includes/class-woo.php:118
     209#: includes/class-woo.php:120
    209210msgid "(Click tag to insert into the template)"
    210211msgstr ""
    211212
    212 #: includes/class-woo.php:122
     213#: includes/class-woo.php:124
    213214msgid "Default Item"
    214215msgstr ""
    215216
    216 #: includes/class-woo.php:132
     217#: includes/class-woo.php:134
    217218msgid "Billing Fields"
    218219msgstr ""
    219220
    220 #: includes/class-woo.php:138
     221#: includes/class-woo.php:140
    221222msgid "Shipping Fields"
    222223msgstr ""
    223224
    224 #: includes/class-woo.php:144
     225#: includes/class-woo.php:146
    225226msgid "Additional Fields"
    226227msgstr ""
    227228
    228 #: includes/class-woo.php:153
     229#: includes/class-woo.php:155
    229230msgid "Buyer Information"
    230231msgstr ""
    231232
    232 #: includes/class-woo.php:160
     233#: includes/class-woo.php:162
    233234msgid "Recipient Information"
    234235msgstr ""
    235236
    236 #: includes/class-woo.php:172
     237#: includes/class-woo.php:174
    237238msgid "Template"
    238239msgstr ""
    239240
    240 #: includes/class-woo.php:177
     241#: includes/class-woo.php:179
    241242msgid "* If you do not enter any text, the system will use the default template."
    242243msgstr ""
    243244
    244 #: includes/class-woo.php:183
     245#: includes/class-woo.php:185
    245246msgid "Order status changed"
    246247msgstr ""
Note: See TracChangeset for help on using the changeset viewer.