Changeset 3040489
- Timestamp:
- 02/24/2024 04:24:17 AM (2 years ago)
- Location:
- popup-tb/trunk
- Files:
-
- 3 added
- 5 edited
-
css/search.css (modified) (1 diff)
-
inc/popuptb-admin.php (modified) (4 diffs)
-
inc/popuptb-content.php (modified) (3 diffs)
-
lang (added)
-
lang/popup-tb-vi.mo (added)
-
lang/popup-tb-vi.po (added)
-
popup-tb.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
popup-tb/trunk/css/search.css
r3040330 r3040489 78 78 } 79 79 .ft-sbox #ft-ssumit { 80 width: 80px;80 width: 110px; 81 81 border-radius: 0px 5px 5px 0px; 82 82 margin: 0px; -
popup-tb/trunk/inc/popuptb-admin.php
r3040330 r3040489 28 28 <p> 29 29 <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> 31 31 </p> 32 32 … … 62 62 if ($(this).is(':checked')) { 63 63 $('#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'); 65 65 if ($targetCheckbox.length > 0) { 66 66 $targetCheckbox.prop('checked', true); … … 72 72 clearInterval(countdownInterval); 73 73 $('#tb-doi-sogiay').hide(); 74 $('#save-json').trigger('click'); 75 $('html, body').animate({ 76 scrollTop: $('#save-json').offset().top 77 }, 1000); 74 78 } 75 79 }, 1000); … … 136 140 <div id="loadbarprocess"></div> 137 141 </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> 141 143 <div class="ft-submit"> 142 144 <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 225 225 } 226 226 } 227 // Reset array keys228 227 $existing_data = array_values($existing_data); 229 228 } 230 // Merge dữ liệu mới với dữ liệu hiện có231 229 $merged_data = popuptb_merged_array($existing_data, $data); 232 // Ghi dữ liệu vào file JSON233 230 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 theo235 231 $count = count($merged_data); 236 232 echo json_encode(array('page' =>$page+1,'count'=>$count)); … … 242 238 check_ajax_referer('popuptb_json_nonce', 'security'); 243 239 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')); 245 241 } 246 242 $upload_dir = wp_upload_dir(); … … 297 293 <form class="ft-sform" action="<?php bloginfo('url'); ?>"> 298 294 <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> 300 296 </form> 301 297 <ul id="ft-show"></ul> -
popup-tb/trunk/popup-tb.php
r3040364 r3040489 2 2 /** 3 3 * Plugin name: Popup ThunderBolt (Optimate search realtime) 4 * Plugin URL: https:// caodem.com4 * Plugin URL: https://foxplugin.com 5 5 * Description: Popup ThunderBolt (Optimate search realtime) 6 6 * Domain Path: /languages 7 * Version: 1.1. 28 * Author: nhomcaodem9 * Author URL: https:// caodem.com7 * Version: 1.1.4 8 * Author: Fox Plugin 9 * Author URL: https://foxplugin.com 10 10 * License: GPLv2 or later 11 11 /** … … 22 22 add_action('wp_enqueue_scripts', 'popup_tb_enable_scripts'); 23 23 # Them ver 24 define( 'POPUPTB_VER', '1.1. 2' );24 define( 'POPUPTB_VER', '1.1.4' ); 25 25 # link plugin 26 26 define('POPUPTB_URL', plugin_dir_url( __FILE__ )); 27 27 define('POPUPTB_DIR', plugin_dir_path( __FILE__ )); 28 define('POPUPTB_BASE NAME', plugin_basename( __FILE__ ));28 define('POPUPTB_BASE', plugin_basename( __FILE__ )); 29 29 # popup tb global 30 30 $popuptb_options = get_option('popuptb_settings'); 31 31 # the ngon ngu 32 function popup_tb_load_textdomain() {33 load_plugin_textdomain( 'popup-tb', false, POPUPTB_BASENAME . '/languages' );32 function popup_tb_load_textdomain() { 33 load_plugin_textdomain( 'popup-tb', false, dirname( POPUPTB_BASE ) . '/lang' ); 34 34 } 35 35 add_action( 'plugins_loaded', 'popup_tb_load_textdomain' ); -
popup-tb/trunk/readme.txt
r3040364 r3040489 1 1 === Popup ThunderBolt === 2 Contributors: nhomcaodem2 Contributors: Fox Plugin 3 3 Donate link: https://paypal.me/ihoan 4 4 License: GPLv2 or later … … 13 13 == Description == 14 14 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. 16 This 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. 17 Whether 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. 18 With 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. 16 19 17 20 == Installation == … … 31 34 == Frequently Asked Questions == 32 35 33 You'll find answers to many of your questions on (https:// caodem.com).36 You'll find answers to many of your questions on (https://foxplugin.com). 34 37 35 38 == Screenshots == … … 48 51 = 1.1.3 = 49 52 * Fix function addition bug 53 54 = 1.1.4 = 55 * Fix function addition bug
Note: See TracChangeset
for help on using the changeset viewer.