Plugin Directory

Changeset 3040489


Ignore:
Timestamp:
02/24/2024 04:24:17 AM (2 years ago)
Author:
nhomcaodem
Message:

Fix function addition bug

Location:
popup-tb/trunk
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • popup-tb/trunk/css/search.css

    r3040330 r3040489  
    7878}
    7979.ft-sbox #ft-ssumit {
    80     width: 80px;
     80    width: 110px;
    8181    border-radius: 0px 5px 5px 0px;
    8282    margin: 0px;
  • popup-tb/trunk/inc/popuptb-admin.php

    r3040330 r3040489  
    2828                <p>
    2929                <input class="ft-input-small" name="popuptb_settings[main-search-c1]" type="number" placeholder="10" value="<?php if(!empty($popuptb_options['main-search-c1'])){echo $popuptb_options['main-search-c1'];} ?>"/>
    30                 <label class="ft-label-right"><?php _e('Number of displays', 'popup-tb'); ?></label>
     30                <label class="ft-label-right"><?php _e('Show quantity', 'popup-tb'); ?></label>
    3131                </p>
    3232               
     
    6262                            if ($(this).is(':checked')) {
    6363                                $('#tb-doi-sogiay').show();
    64                                 var $targetCheckbox = $('input[name="popuptb_settings[main-search-posttype][]"]').prop('checked', false);
     64                                var $targetCheckbox = $('input[name="popuptb_settings[main-search-posttype][]"][value="post"]:first');
    6565                                if ($targetCheckbox.length > 0) {
    6666                                    $targetCheckbox.prop('checked', true);
     
    7272                                                clearInterval(countdownInterval);
    7373                                                $('#tb-doi-sogiay').hide();
     74                                                $('#save-json').trigger('click');
     75                                                $('html, body').animate({
     76                                                    scrollTop: $('#save-json').offset().top
     77                                                }, 1000);
    7478                                            }
    7579                                        }, 1000);
     
    136140                <div id="loadbarprocess"></div>
    137141                </div>
    138                 <p class="ft-note"><i class="fa-solid fa-lightbulb"></i> <?php _e('Configure the options and create search data. If you want to refresh, you can delete the search data and create again.', 'popup-tb'); ?></p>
    139                        
    140            
     142                <p class="ft-note"><i class="fa-solid fa-lightbulb"></i> <?php _e('Configure options and generate search data. If you want to refresh, you can delete your search data and create it again', 'popup-tb'); ?></p>
    141143            <div class="ft-submit">
    142144                <button type="submit"><i class="fa-solid fa-floppy-disk"></i> <?php _e('SAVE CONTENT', 'popup-tb'); ?></button>
  • popup-tb/trunk/inc/popuptb-content.php

    r3040330 r3040489  
    225225            }
    226226        }
    227         // Reset array keys
    228227        $existing_data = array_values($existing_data);
    229228    }
    230     // Merge dữ liệu mới với dữ liệu hiện có
    231229    $merged_data = popuptb_merged_array($existing_data, $data);
    232     // Ghi dữ liệu vào file JSON
    233230    file_put_contents($file_path, json_encode($merged_data));
    234     // Trả về thông tin về số lượng dữ liệu và trang tiếp theo
    235231    $count = count($merged_data);
    236232    echo json_encode(array('page' =>$page+1,'count'=>$count));   
     
    242238    check_ajax_referer('popuptb_json_nonce', 'security');
    243239    if (!current_user_can('manage_options')){
    244         wp_die(__('Không đủ quyền hạn', 'popup-tb'));
     240        wp_die(__('Not enough permissions', 'popup-tb'));
    245241    }
    246242    $upload_dir = wp_upload_dir();
     
    297293            <form class="ft-sform" action="<?php bloginfo('url'); ?>">
    298294            <input type="text" id="ft-sinput" placeholder="<?php _e('Enter keywords to search', 'popup-tb'); ?>" name="s" value="" maxlength="50" required="required">
    299             <button id="ft-ssumit" type="submit"><?php _e('FIND', 'popup-tb'); ?></button>
     295            <button id="ft-ssumit" type="submit"><?php _e('SEARCH', 'popup-tb'); ?></button>
    300296            </form>
    301297            <ul id="ft-show"></ul>
  • popup-tb/trunk/popup-tb.php

    r3040364 r3040489  
    22/**
    33* Plugin name: Popup ThunderBolt (Optimate search realtime)
    4 * Plugin URL: https://caodem.com
     4* Plugin URL: https://foxplugin.com
    55* Description: Popup ThunderBolt (Optimate search realtime)
    66* Domain Path: /languages
    7 * Version: 1.1.2
    8 * Author: nhomcaodem
    9 * Author URL: https://caodem.com
     7* Version: 1.1.4
     8* Author: Fox Plugin
     9* Author URL: https://foxplugin.com
    1010* License: GPLv2 or later
    1111/**
     
    2222add_action('wp_enqueue_scripts', 'popup_tb_enable_scripts');
    2323# Them ver
    24 define( 'POPUPTB_VER', '1.1.2' );
     24define( 'POPUPTB_VER', '1.1.4' );
    2525# link plugin
    2626define('POPUPTB_URL', plugin_dir_url( __FILE__ ));
    2727define('POPUPTB_DIR', plugin_dir_path( __FILE__ ));
    28 define('POPUPTB_BASENAME', plugin_basename( __FILE__ ));
     28define('POPUPTB_BASE', plugin_basename( __FILE__ ));
    2929# popup tb global
    3030$popuptb_options = get_option('popuptb_settings');
    3131# the ngon ngu
    32 function popup_tb_load_textdomain(){
    33   load_plugin_textdomain( 'popup-tb', false, POPUPTB_BASENAME . '/languages' );
     32function popup_tb_load_textdomain() {
     33   load_plugin_textdomain( 'popup-tb', false, dirname( POPUPTB_BASE ) . '/lang' );
    3434}
    3535add_action( 'plugins_loaded', 'popup_tb_load_textdomain' );
  • popup-tb/trunk/readme.txt

    r3040364 r3040489  
    11=== Popup ThunderBolt ===
    2 Contributors: nhomcaodem
     2Contributors: Fox Plugin
    33Donate link: https://paypal.me/ihoan
    44License: GPLv2 or later
     
    1313== Description ==
    1414
    15 Popup ThunderBolt (Optimate search realtime)
     15"Popup ThunderBolt (Optimate search realtime)" is a powerful WordPress plugin that revolutionizes the search experience on your website. It harnesses the power of JSON files to provide lightning-fast search results across your posts, products, and custom post types.
     16This innovative plugin works by aggregating the titles of your content into a single JSON file, enabling real-time searches to be performed directly on this optimized data source. By eliminating the need for traditional database queries, "Popup ThunderBolt (Optimate search realtime)" delivers unparalleled search speed and responsiveness.
     17Whether you have a content-heavy website or an online store with thousands of products, this plugin ensures that your visitors can quickly find what they're looking for, improving their overall user experience and increasing engagement.
     18With its seamless integration into WordPress, "Popup ThunderBolt (Optimate search realtime)" is easy to set up and configure, making it an indispensable tool for any website owner seeking to enhance their site's search functionality.
    1619
    1720== Installation ==
     
    3134== Frequently Asked Questions ==
    3235
    33 You'll find answers to many of your questions on (https://caodem.com).
     36You'll find answers to many of your questions on (https://foxplugin.com).
    3437
    3538== Screenshots ==
     
    4851= 1.1.3 =
    4952* Fix function addition bug
     53
     54= 1.1.4 =
     55* Fix function addition bug
Note: See TracChangeset for help on using the changeset viewer.