Changeset 3060772
- Timestamp:
- 03/28/2024 07:15:34 PM (4 months ago)
- Location:
- ajax-load-more-anything
- Files:
-
- 19 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
ajax-load-more-anything/trunk/README.txt
r3055642 r3060772 4 4 Requires at least: 4.6 5 5 Tested up to: 6.4.3 6 Stable tag: 3.3. 66 Stable tag: 3.3. 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later … … 167 167 == Changelog == 168 168 169 170 171 172 173 174 175 169 176 = 3.3.6 – Mar 21, 2024 = 170 177 - Code Improvement -
ajax-load-more-anything/trunk/admin/Menu.php
r3055642 r3060772 117 117 $ajax_loadmore = isset( $ald_options['ajax_loadmore'] ) ? $ald_options['ajax_loadmore'] : array(); 118 118 $custom_css = isset( $ald_options['custom_css'] ) ? $ald_options['custom_css'] : ""; 119 119 120 120 121 ?> … … 143 144 <li><a href="#general"><?php echo esc_html__( 'General Selectors', 'ajax-load-more-anything' ); ?></a></li> 144 145 <li><a href="#ajax-based"><?php echo esc_html__( 'Ajax Based', 'ajax-load-more-anything' ); ?></a></li> 145 <li><a href="# custom-code"><?php echo esc_html__( 'Custom Code', 'ajax-load-more-anything' ); ?></a></li>146 <li><a href="#', 'ajax-load-more-anything' ); ?></a></li> 146 147 <?php do_action( 'ald_options_menu', $ald_options ); ?> 147 148 </ul> … … 270 271 </div> 271 272 272 <div id=" custom-code" class="tf-tab-content">273 <div id="" class="tf-tab-content"> 273 274 <h4> 274 <?php esc_html_e( ' Custom Code Panel', 'ajax-load-more-anything' ); ?>275 <div class="desc"><?php esc_html_e( 'Here you can add /modify custom css', 'ajax-load-more-anything' ); ?></div>275 <?php esc_html_e( '', 'ajax-load-more-anything' ); ?> 276 <div class="desc"><?php esc_html_e( 'Here you can adds', 'ajax-load-more-anything' ); ?></div> 276 277 </h4> 277 278 <div class="tf-field-wrap"> 279 278 280 <div class="ald-label"> 279 <label for="ald_options_custom_css"><?php esc_html_e( 'Custom CSS', 'ajax-load-more-anything' ); ?></label> 280 </div> 281 281 <label><input type="checkbox" name="ald_options[disable_jquery_dep]" <?php checked($disable_jquery_dep, 'on' ); ?>><?php esc_html_e( 'Disable jQuery Dependency', 'ajax-load-more-anything' ); ?></label> 282 <div class="desc"><?php esc_html_e( 'Leave this option unchecked if you are not sure about this option.', 'ajax-load-more-anything' ); ?></div> 283 </div> 284 285 286 287 </div> 288 <div class="tf-field-wrap"> 289 <h4> 290 <?php esc_html_e( 'Custom CSS', 'ajax-load-more-anything' ); ?> 291 <div class="desc"><?php esc_html_e( 'Add your custom css here', 'ajax-load-more-anything' ); ?></div> 292 </h4> 293 282 294 <textarea name="ald_options[custom_css]" class="wfull" rows="5" id="ald_options_custom_css"><?php _e( $custom_css ); // phpcs:ignore ?></textarea> 283 284 295 </div> 285 296 … … 420 431 wp_enqueue_style( 'ald-admin-styles' ); 421 432 wp_enqueue_script( 'ald-admin-scripts' ); 422 //wp_enqueue_script( 'wp-codemirror' );423 433 424 434 $cmcss_settings['codeEditor'] = wp_enqueue_code_editor( array( 'type' => 'text/css' ) ); … … 426 436 wp_localize_script('ald-admin-scripts', 'cmcss_settings', $cmcss_settings); 427 437 wp_localize_script('ald-admin-scripts', 'cmjs_settings', $cmjs_settings); 428 wp_enqueue_script('wp-theme-plugin-editor');429 wp_enqueue_style('wp-codemirror');430 438 } 431 439 -
ajax-load-more-anything/trunk/admin/functions.php
r3055642 r3060772 390 390 <td> 391 391 <input id="general_loadmore-load_selector-<?php echo esc_attr( $key ); ?>" class="regular-text" type="text" name="ald_options[general_loadmore][<?php echo esc_attr( $key ); ?>][load_selector]" value="<?php echo esc_attr( $load_selector ); ?>" placeholder="<?php echo esc_attr( '#selector .repeated_selector' ); ?>" /> 392 <p><?php echo esc_html( $load_more_item_selector_desc );?></p>392 <p><?php echo ?></p> 393 393 </td> 394 394 </tr> … … 426 426 <td> 427 427 <input id="general_loadmore-button_label-<?php echo esc_attr( $key ); ?>" class="regular-text" type="text" name="ald_options[general_loadmore][<?php echo esc_attr( $key ); ?>][button_label]" value="<?php echo esc_attr( $button_label ); ?>" placeholder="<?php echo esc_attr( 'Load +[count] more' ); ?>" /> 428 <p><?php echo esc_html( $button_label_desc )?></p>428 <p><?php echo ?></p> 429 429 </td> 430 430 </tr> -
ajax-load-more-anything/trunk/ajax-load-div.php
r3055642 r3060772 5 5 * Author: AddonMaster 6 6 * Author URI: https://addonmaster.com/contact 7 * Version: 3.3. 67 * Version: 3.3. 8 8 * Description: A simple plugin that help you to Load more any item with jQuery/Ajax. You can use Ajaxify Load More button for your blog post, Comments, page, Category, Recent Posts, Sidebar widget Data, Woocommerce Product, Images, Photos, Videos, custom selector or whatever you want. 9 9 * License: GPL2 … … 27 27 * @var string 28 28 */ 29 const version = '3.3. 6';29 const version = '3.3.'; 30 30 31 31 private function __construct() { … … 36 36 37 37 // Enqueue frontend scripts 38 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );38 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 39 39 add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ), 100 ); 40 40 … … 82 82 */ 83 83 function plugin_loaded() { 84 // Loading Text Domain for Internationalization85 load_plugin_textdomain( 'ajax-load-more-anything', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );86 87 84 require_once( dirname( __FILE__ ) . '/inc/ald-functions.php' ); 88 85 require_once( dirname( __FILE__ ) . '/admin/functions.php' ); … … 95 92 function enqueue_scripts() { 96 93 94 95 97 96 wp_enqueue_style( 'ald-styles', ALD_PLUGIN_ASSETS . '/styles.min.css', [], ALD_PLUGIN_VERSION ); 98 wp_enqueue_script( 'ald-scripts', ALD_PLUGIN_ASSETS . '/scripts.js', array('jquery'), ALD_PLUGIN_VERSION, true );97 wp_enqueue_script( 'ald-scripts', ALD_PLUGIN_ASSETS . '/scripts.js', , ALD_PLUGIN_VERSION, true ); 99 98 100 99 wp_localize_script( 'ald-scripts', 'ald_params', -
ajax-load-more-anything/trunk/inc/ald-functions.php
r3055642 r3060772 1 1 <?php 2 3 4 5 6 7 8 9 10 11 12 2 13 // CSS Minifier => http://ideone.com/Q5USEF + improvement(s) 3 14 function ald_minify_css($input) { … … 85 96 86 97 /* General Selector Hidden Handle */ 87 <?php echo implode(',', $general_hide_selectors); // phpcs:ignore ?>{ display: none; } 98 <?php if( !empty( $general_hide_selectors ) ) : ?> 99 <?php echo implode(',', $general_hide_selectors); // phpcs:ignore ?>{ 100 <?php if ( !(defined('ELEMENTOR_VERSION') && \Elementor\Plugin::$instance->preview->is_preview_mode()) ) : ?> 101 display: none; 102 <?php endif; ?> 103 } 104 <?php endif; ?> 88 105 89 106 /* Ajax Selector Hidden Handle */ 90 <?php echo implode(',', $ajax_hide_selectors); // phpcs:ignore ?>{ visibility: hidden; } 107 <?php if( !empty( $ajax_hide_selectors ) ) : ?> 108 <?php echo implode(',', $ajax_hide_selectors); // phpcs:ignore ?>{ visibility: hidden; } 109 <?php endif; ?> 91 110 92 111 /* Custom CSS */ -
ajax-load-more-anything/trunk/languages/ajax-load-more-anything.pot
r3050647 r3060772 4 4 "Project-Id-Version: Load More Anything\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 202 3-02-08 23:21+0000\n"6 "POT-Creation-Date: 202+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 25 25 msgstr "" 26 26 27 #: admin/Menu.php:26 627 #: admin/Menu.php:26 28 28 msgid "Add Ajax Wrapper" 29 29 msgstr "" 30 30 31 #: admin/functions.php:5 5232 msgid "Add CustomButton"33 msgstr "" 34 35 #: admin/Menu.php:23 631 #: admin/functions.php:5 32 msgid "Add Button" 33 msgstr "" 34 35 #: admin/Menu.php:23 36 36 msgid "Add Wrapper" 37 37 msgstr "" 38 38 39 40 41 42 39 43 #. Author of the plugin 40 msgid "Addon 41 msgstr "" 42 43 #: admin/Menu.php:14 444 msgid "AddonMaster" 45 msgstr "" 46 47 #: admin/Menu.php:14 44 48 msgid "Ajax Based" 45 49 msgstr "" 46 50 47 #: admin/Menu.php:24 451 #: admin/Menu.php:24 48 52 msgid "Ajaxify Selector" 49 53 msgstr "" 50 54 51 #: admin/Menu.php:3 4155 #: admin/Menu.php:3 52 56 msgid "Are you stuck somewhere?" 53 57 msgstr "" 54 58 55 #: admin/Menu.php:19 059 #: admin/Menu.php:19 56 60 msgid "Awesome Support" 57 61 msgstr "" 58 62 59 #: admin/functions.php:5 7263 #: admin/functions.php:5 60 64 msgid "Button click trigger Selector" 61 65 msgstr "" 62 66 63 #: admin/functions.php:5 6067 #: admin/functions.php:5 64 68 msgid "Button Insert Selector" 65 69 msgstr "" 66 70 67 #: admin/functions.php:5 8471 #: admin/functions.php:5 68 72 msgid "Button Label" 69 73 msgstr "" 70 74 71 #: admin/functions.php:5 6575 #: admin/functions.php:5 72 76 msgid "Button will be insert after this selector." 73 77 msgstr "" 74 78 75 #: admin/functions.php:3 5679 #: admin/functions.php:3 76 80 msgid "Change title to anything you like. Ex: For Homepage" 77 81 msgstr "" 78 82 79 #: admin/functions.php:5 3183 #: admin/functions.php:5 80 84 msgid "Change title to anything you like. Ex: Homepage Posts" 81 85 msgstr "" 82 86 83 #: admin/Menu.php:16 187 #: admin/Menu.php:16 84 88 msgid "Checkout our new features." 85 89 msgstr "" 86 90 87 #: admin/Menu.php:145 88 msgid "Custom Code" 89 msgstr "" 90 91 #: admin/Menu.php:274 92 msgid "Custom Code Panel" 93 msgstr "" 94 95 #: admin/Menu.php:279 91 #: admin/Menu.php:290 96 92 msgid "Custom CSS" 97 93 msgstr "" 98 94 99 #: admin/functions.php:9 6395 #: admin/functions.php:9 100 96 msgid "Custom JavaScript" 101 97 msgstr "" 102 98 103 #: admin/functions.php:6 3399 #: admin/functions.php:6 104 100 msgid "Data Implement Selectors" 105 101 msgstr "" 106 102 107 #: admin/functions.php:6 67103 #: admin/functions.php:6 108 104 msgid "Data Selector" 109 105 msgstr "" 110 106 111 #: admin/Menu.php:356 112 msgid "Email Us <span class=\"ml-half dashicons dashicons-email\"></span>" 113 msgstr "" 114 115 #: admin/functions.php:595 107 #: admin/Menu.php:281 108 msgid "Disable jQuery Dependency" 109 msgstr "" 110 111 #: admin/Menu.php:367 112 msgid "Email Us" 113 msgstr "" 114 115 #: admin/functions.php:748 116 msgid "Enter data selector here" 117 msgstr "" 118 119 #: admin/functions.php:606 116 120 msgid "Enter Selector" 117 121 msgstr "" 118 122 119 #: admin/functions.php:3 47 admin/functions.php:521123 #: admin/functions.php:3 120 124 msgid "" 121 125 "Enter the name of Load More Button <br> Use <code>+[count]</code> for " … … 123 127 msgstr "" 124 128 125 #: admin/functions.php:6 26129 #: admin/functions.php:6 126 130 msgid "Enter the selector of the wrapper which you want to hide from visitors" 127 131 msgstr "" 128 132 129 #: admin/functions.php:5 45133 #: admin/functions.php:5 130 134 msgid "Event Type:" 131 135 msgstr "" 132 136 133 #: admin/Menu.php:3 05137 #: admin/Menu.php:3 134 138 msgid "Everything now you can make ajax based!" 135 139 msgstr "" 136 140 137 #: admin/Menu.php:3 32141 #: admin/Menu.php:3 138 142 msgid "Free vs Pro Comparison" 139 143 msgstr "" 140 144 141 #: admin/Menu.php:14 3145 #: admin/Menu.php:14 142 146 msgid "General Selectors" 143 147 msgstr "" 144 148 145 #: admin/Menu.php:21 4149 #: admin/Menu.php:21 146 150 msgid "General Selectors Panel" 147 151 msgstr "" 148 152 149 #: admin/Menu.php:343 153 #: admin/functions.php:1050 154 msgid "Get Pro" 155 msgstr "" 156 157 #: admin/Menu.php:354 150 158 msgid "Get support from our developers. Easy, Quick, and Professional!" 151 159 msgstr "" 152 160 153 #: ajax-load-div.php:14 9161 #: ajax-load-div.php:14 154 162 msgid "GO PRO" 155 163 msgstr "" 156 164 157 #: admin/Menu.php:27 5158 msgid "Here you can add /modify custom css"159 msgstr "" 160 161 #: admin/Menu.php:21 5165 #: admin/Menu.php:27 166 msgid "Here you can adds" 167 msgstr "" 168 169 #: admin/Menu.php:21 162 170 msgid "" 163 171 "Here you can enable load more items which are already visible in your web " … … 165 173 msgstr "" 166 174 167 #: admin/functions.php:6 07175 #: admin/functions.php:6 168 176 msgid "Hide Selector(s) wrapper" 169 177 msgstr "" 170 178 171 #: admin/functions.php:34 4 admin/functions.php:518179 #: admin/functions.php:34 172 180 msgid "How Many Item Will Load When Click Load More Button?" 173 181 msgstr "" 174 182 175 #: admin/functions.php:34 1 admin/functions.php:515183 #: admin/functions.php:34 176 184 msgid "How many item will show initially" 177 185 msgstr "" … … 185 193 msgstr "" 186 194 187 #: admin/Menu.php:20 2195 #: admin/Menu.php:20 188 196 msgid "" 189 197 "If you want to show me some love, The review section is always open for you :" … … 191 199 msgstr "" 192 200 193 #: admin/Menu.php:3 67201 #: admin/Menu.php:3 194 202 msgid "" 195 203 "If you want to show some love, The review section is always open for you :). " … … 197 205 msgstr "" 198 206 199 #: admin/functions.php:6 68207 #: admin/functions.php:6 200 208 msgid "Implement Type" 201 209 msgstr "" 202 210 203 #: admin/functions.php: 688 admin/functions.php:709 admin/functions.php:730211 #: admin/functions.php: 204 212 msgid "Insert After" 205 213 msgstr "" 206 214 207 #: admin/functions.php: 689 admin/functions.php:708 admin/functions.php:729215 #: admin/functions.php: 208 216 msgid "Insert Before" 209 217 msgstr "" 210 218 211 #: admin/Menu.php:3 03219 #: admin/Menu.php:3 212 220 msgid "Introducing Load More Anyting <code>Pro</code>" 213 221 msgstr "" 214 222 215 #: admin/Menu.php:3 30223 #: admin/Menu.php:3 216 224 msgid "Learn More <span class=\"ml-half dashicons dashicons-external\"></span>" 217 225 msgstr "" 218 226 219 #: admin/functions.php:343 admin/functions.php:517 227 #: admin/Menu.php:282 228 msgid "Leave this option unchecked if you are not sure about this option." 229 msgstr "" 230 231 #: admin/functions.php:348 admin/functions.php:528 220 232 msgid "Load Items" 221 233 msgstr "" 222 234 223 #: inc/ald-functions.php:2 05 inc/ald-functions.php:213235 #: inc/ald-functions.php:2 224 236 msgid "Load More" 225 237 msgstr "" … … 234 246 msgstr "" 235 247 236 #: admin/functions.php: 780248 #: admin/functions.php: 237 249 msgid "Load More Anyting" 238 250 msgstr "" 239 251 240 #: admin/functions.php:3 46 admin/functions.php:520252 #: admin/functions.php:3 241 253 msgid "Load More Button Label" 242 254 msgstr "" 243 255 244 #: admin/functions.php:33 4 admin/functions.php:508256 #: admin/functions.php:33 245 257 msgid "Load More Button Selector" 246 258 msgstr "" 247 259 248 #: admin/functions.php:3 35 admin/functions.php:509260 #: admin/functions.php:3 249 261 msgid "Load more button will be insert end of this selector" 250 262 msgstr "" 251 263 252 #: admin/functions.php:3 37 admin/functions.php:511264 #: admin/functions.php:3 253 265 msgid "Load More Items Selector" 254 266 msgstr "" 255 267 256 #: admin/functions.php:6 12 admin/functions.php:653 admin/functions.php:659268 #: admin/functions.php:6 257 269 msgid "No" 258 270 msgstr "" 259 271 260 #: admin/functions.php: 687 admin/functions.php:707 admin/functions.php:728272 #: admin/functions.php: 261 273 msgid "Replace Data" 262 274 msgstr "" 263 275 264 #: admin/functions.php:7 68276 #: admin/functions.php:7 265 277 msgid "Save Changes" 266 278 msgstr "" 267 279 268 #: admin/functions.php:5 51280 #: admin/functions.php:5 269 281 msgid "Scroll to Load (Infinite Scroll)" 270 282 msgstr "" 271 283 272 #: admin/functions.php:4 47284 #: admin/functions.php:4 273 285 msgid "Select display property for load more items." 274 286 msgstr "" 275 287 276 #: admin/functions.php:4 29288 #: admin/functions.php:4 277 289 msgid "Select display type" 278 290 msgstr "" 279 291 280 #: admin/functions.php:3 38 admin/functions.php:512292 #: admin/functions.php:3 281 293 msgid "" 282 294 "Selector for load more items. Example: <code>.parent_selector .items</code>" 283 295 msgstr "" 284 296 285 #: admin/functions.php:6 00297 #: admin/functions.php:6 286 298 msgid "Selector should be correct, otherwise ajax will fail to load contents" 287 299 msgstr "" 288 300 289 #: admin/functions.php:5 50290 msgid "Selector(s) Click "291 msgstr "" 292 293 #: ajax-load-div.php:1 52301 #: admin/functions.php:5 302 msgid "Selector(s) Click" 303 msgstr "" 304 305 #: ajax-load-div.php:1 294 306 msgid "Settings" 295 307 msgstr "" 296 308 297 #: admin/Menu.php:3 65309 #: admin/Menu.php:3 298 310 msgid "Show Your Love" 299 311 msgstr "" 300 312 301 #: admin/Menu.php:20 0313 #: admin/Menu.php:20 302 314 msgid "Show your Love" 303 315 msgstr "" 304 316 305 #: admin/Menu.php:353 306 msgid "" 307 "Submit A Ticket <span class=\"ml-half dashicons dashicons-external\"></span>" 308 msgstr "" 309 310 #: admin/Menu.php:245 317 #: admin/Menu.php:364 318 msgid "Submit A Ticket" 319 msgstr "" 320 321 #: admin/functions.php:624 322 msgid "" 323 "The number of pixels from the bottom of the page to trigger the load more " 324 "event" 325 msgstr "" 326 327 #: admin/Menu.php:246 311 328 msgid "" 312 329 "This options is for ajax based load like: Posts, Products, Custom Post Type, " … … 314 331 msgstr "" 315 332 316 #: admin/functions.php:5 77333 #: admin/functions.php:5 317 334 msgid "This selector will be trigger when the button clicked." 318 335 msgstr "" 319 336 320 #: admin/functions.php:644 337 #: admin/functions.php:618 338 msgid "Trigger Offset" 339 msgstr "" 340 341 #: admin/functions.php:668 321 342 msgid "Update Browser URL?" 322 343 msgstr "" 323 344 324 #: admin/functions.php:6 47345 #: admin/functions.php:6 325 346 msgid "Update Page Title?" 326 347 msgstr "" 327 348 328 #: admin/functions.php:8 05 admin/functions.php:932349 #: admin/functions.php:8 329 350 msgid "Upgrade to Pro" 330 351 msgstr "" 331 352 332 #: admin/Menu.php:19 4353 #: admin/Menu.php:19 333 354 msgid "View Support Forum" 334 355 msgstr "" 335 356 336 #: admin/Menu.php:349 337 msgid "" 338 "View Support Forum <span class=\"ml-half dashicons dashicons-external\">" 339 "</span>" 340 msgstr "" 341 342 #: admin/functions.php:340 admin/functions.php:514 357 #: admin/functions.php:345 admin/functions.php:525 343 358 msgid "Visible Items" 344 359 msgstr "" 345 360 346 #: admin/Menu.php:19 2361 #: admin/Menu.php:19 347 362 msgid "" 348 363 "We are ready to give you the best support. If you facing any kind of " … … 351 366 msgstr "" 352 367 353 #: admin/Menu.php:14 2368 #: admin/Menu.php:14 354 369 msgid "Welcome" 355 370 msgstr "" 356 371 357 #: admin/Menu.php:1 59372 #: admin/Menu.php:1 358 373 msgid "Welcome to Load More Anything" 359 374 msgstr "" 360 375 361 #: admin/functions.php:6 21376 #: admin/functions.php:6 362 377 msgid "Wrapper Selector to hide" 363 378 msgstr "" 364 379 365 #: admin/Menu.php:371 380 #. %s: Number of the wrapper 381 #: admin/functions.php:336 admin/functions.php:511 382 #, php-format 383 msgid "Wrapper Title #%s" 384 msgstr "" 385 386 #: admin/Menu.php:382 366 387 msgid "Write a Review" 367 388 msgstr "" 368 389 369 #: admin/Menu.php:20 4390 #: admin/Menu.php:20 370 391 msgid "Write a Review Now" 371 392 msgstr "" 372 393 373 #: admin/functions.php:6 13 admin/functions.php:654 admin/functions.php:660394 #: admin/functions.php:6 374 395 msgid "Yes" 375 396 msgstr "" 376 397 377 #: admin/functions.php:9 64398 #: admin/functions.php:9 378 399 msgid "You can trigger custom functions from here." 379 400 msgstr ""
Note: See TracChangeset
for help on using the changeset viewer.