Plugin Directory

Changeset 2724014


Ignore:
Timestamp:
05/15/2022 09:24:37 AM (4 years ago)
Author:
eggnstone
Message:

v1.0.10: Disabled "show on no results page" by default.

Location:
widgets-for-amazon/trunk
Files:
1 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • widgets-for-amazon/trunk

    • Property svn:ignore
      •  

        old new  
         1*.zip
        12.git
        23.gitignore
        34.idea
         5OldAmazonWidgets
         6TODO.txt
        47debug.log
        58images
         9temp
        610test.html
        7 TODO.txt
        8 *.zip
        9 OldAmazonWidgets
  • widgets-for-amazon/trunk/includes/Admin.php

    r2723425 r2724014  
    1212        //Tools::log_debug('admin_activate_plugin');
    1313
    14         add_option(Constants::OPTION_DOMAIN_CODE_NAME, Constants::OPTION_DOMAIN_CODE_DEFAULT_VALUE);
     14        /*add_option(Constants::OPTION_DOMAIN_CODE_NAME, Constants::OPTION_DOMAIN_CODE_DEFAULT_VALUE);
    1515        add_option(Constants::OPTION_LANGUAGE_NAME, Constants::OPTION_LANGUAGE_DEFAULT_VALUE);
    1616        add_option(Constants::OPTION_AFFILIATE_TAG_NAME, Constants::OPTION_AFFILIATE_TAG_DEFAULT_VALUE);
    1717        add_option(Constants::OPTION_SHOW_ON_NO_RESULTS_PAGE_NAME, Constants::OPTION_SHOW_ON_NO_RESULTS_PAGE_DEFAULT_VALUE);
    18         add_option(Constants::OPTION_NO_RESULTS_PAGE_CATEGORY_NAME, Constants::OPTION_NO_RESULTS_PAGE_CATEGORY_DEFAULT_VALUE);
     18        add_option(Constants::OPTION_NO_RESULTS_PAGE_CATEGORY_NAME, Constants::OPTION_NO_RESULTS_PAGE_CATEGORY_DEFAULT_VALUE);*/
    1919    }
    2020
     
    141141                                        </select>
    142142                                    </td>
    143                                     <td>DESC</td>
     143                                    <td></td>
    144144                                </tr>
    145145                                <tr>
     
    151151                                        </select>
    152152                                    </td>
    153                                     <td>DESC</td>
     153                                    <td></td>
    154154                                </tr>
    155155                                <tr>
    156156                                    <th>Affiliate Tag</th>
    157157                                    <td><input type="text" name="<?php print(Constants::OPTION_AFFILIATE_TAG_NAME); ?>" value="<?php print($affiliateTag); ?>"/></td>
    158                                     <td>DESC</td>
     158                                    <td></td>
    159159                                </tr>
    160160                            </table>
     
    173173                                    <th>Display Amazon search box<br/>underneath normal search box</th>
    174174                                    <td><input type="checkbox" name="<?php print(Constants::OPTION_SHOW_ON_NO_RESULTS_PAGE_NAME); ?>" <?php checked('1', $showOnNoResultsPage); ?>/></td>
    175                                     <td>DESC</td>
     175                                    <td></td>
    176176                                </tr>
    177177                                <tr>
    178178                                    <th>Category</th>
    179179                                    <td><input type="text" name="<?php print(Constants::OPTION_NO_RESULTS_PAGE_CATEGORY_NAME); ?>" value="<?php print($noResultsPageCategory); ?>"/></td>
    180                                     <td>DESC</td>
     180                                    <td></td>
    181181                                </tr>
    182182                            </table>
     
    193193            <br/>
    194194            <br/>
    195             <b>category:</b> (optional) the category to search in, e.g. &quot;sporting-intl-ship&quot; (default: all categories)<br/>
    196             <b>keywords</b> (required) the keywords to search for, e.g. &quot;balls&quot;<br/>
     195            <b>keywords</b> (required) the keywords to search for, e.g. &quot;Balls&quot;<br/>
     196            <b>category:</b> (optional) the category to search in, e.g. &quot;Sporting&quot; (empty =&gt; all categories)<br/>
    197197            <br/>
    198198            e.g.<br/>
     
    202202            <br/>
    203203            <br/>
    204             <input id="example2" readonly style="width: 80%;" value="[amazon-search category=&quot;sporting-intl-ship&quot; keywords=&quot;Balls&quot;]"/>
     204            <input id="example2" readonly style="width: 80%;" value="[amazon-search category=&quot;Sporting&quot; keywords=&quot;Balls&quot;]"/>
    205205            <button onclick="eggnstone_widgets_copy_to_clipboard('example2');">Copy</button>
    206206        </div>
  • widgets-for-amazon/trunk/includes/Constants.php

    r2723425 r2724014  
    2323
    2424    const OPTION_SHOW_ON_NO_RESULTS_PAGE_NAME = self::OPTION_NAME_PREFIX . 'show_on_no_results_page';
    25     const OPTION_SHOW_ON_NO_RESULTS_PAGE_DEFAULT_VALUE = True;
     25    const OPTION_SHOW_ON_NO_RESULTS_PAGE_DEFAULT_VALUE = False;
    2626
    2727    const OPTION_NO_RESULTS_PAGE_CATEGORY_NAME = self::OPTION_NAME_PREFIX . 'no_results_page_category';
  • widgets-for-amazon/trunk/widgets-for-amazon.php

    r2723816 r2724014  
    55 * Plugin URI: https://blog.eggnstone.com/blog/widgets-for-amazon-for-wordpress
    66 * Description: Widgets for Amazon by eggnstone
    7  * Version: 1.0.9
     7 * Version: 1.0.10
    88 * Author: eggnstone
    99 * Author URI: https://eggnstone.com
Note: See TracChangeset for help on using the changeset viewer.