Changeset 3071657
- Timestamp:
- 04/16/2024 02:05:32 PM (3 months ago)
- Location:
- ajax-load-more-anything
- Files:
-
- 19 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
ajax-load-more-anything/trunk/README.txt
r3062981 r3071657 3 3 Tags: infinite scroll, ajax load more, ajax pagination, load more, ajax 4 4 Requires at least: 4.6 5 Tested up to: 6.5 6 Stable tag: 3.3. 75 Tested up to: 6.5 6 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 169 174 = 3.3.7 – Mar 29, 2024 = 170 175 - Code Improvement -
ajax-load-more-anything/trunk/admin/Menu.php
r3060772 r3071657 312 312 <tr> 313 313 <td> 314 <h3 style=" margin: 0 0 2px 0; "><?php esc_html_e( 'Introducing Load More Anyting <code>Pro</code>', 'ajax-load-more-anything' ); ?></h3>314 <h3 style=" margin: 0 0 2px 0; "><?php esc_html_e( 'Introducing Load More Anyting></h3> 315 315 <p> 316 316 <?php esc_html_e( 'Everything now you can make ajax based!', 'ajax-load-more-anything' ); ?> … … 339 339 <div class="action-btns"> 340 340 <a class="button d-inline-flex items-center" target="_blank" href="<?php echo esc_url( ALD_GOPRO_URL ); ?>"> 341 <?php esc_html_e( 'Learn More <span class="ml-half dashicons dashicons-external"></span>', 'ajax-load-more-anything' ); ?>341 <?php esc_html_e( 'Learn More> 342 342 </a> 343 343 <a class="button ald-trigger-pro" style="vertical-align: middle; margin-left: 4px;"><?php esc_html_e( 'Free vs Pro Comparison', 'ajax-load-more-anything' ); ?></a> -
ajax-load-more-anything/trunk/admin/functions.php
r3060772 r3071657 378 378 <td> 379 379 <input id="general_loadmore-btn_selector-<?php echo esc_attr( $key ); ?>" class="regular-text" type="text" name="ald_options[general_loadmore][<?php echo esc_attr( $key ); ?>][btn_selector]" value="<?php echo esc_attr( $btn_selector ); ?>" placeholder="<?php echo esc_attr( '#selector' ); ?>" /> 380 <p ><?php echo esc_html( $load_more_button_wrapper_desc ); ?></p>380 <p><?php echo esc_html( $load_more_button_wrapper_desc ); ?></p> 381 381 </td> 382 382 </tr> … … 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 $load_more_item_selector_desc; // phpcs:ignore ?></p>392 <p><?php echo $load_more_item_selector_desc; // phpcs:ignore ?></p> 393 393 </td> 394 394 </tr> … … 402 402 <td> 403 403 <input id="general_loadmore-visible_items-<?php echo esc_attr( $key ); ?>" class="regular-text" type="number" name="ald_options[general_loadmore][<?php echo esc_attr( $key ); ?>][visible_items]" value="<?php echo esc_attr( $visible_items ); ?>" placeholder="<?php echo esc_attr( '6' ); ?>"/> 404 <p ><?php echo esc_html( $visiable_items_desc ); ?></p>404 <p><?php echo esc_html( $visiable_items_desc ); ?></p> 405 405 </td> 406 406 </tr> … … 414 414 <td> 415 415 <input id="general_loadmore-load_items-<?php echo esc_attr( $key ); ?>" class="regular-text" type="number" name="ald_options[general_loadmore][<?php echo esc_attr( $key ); ?>][load_items]" value="<?php echo esc_attr( $load_items ); ?>" placeholder="<?php echo esc_attr( '3' ); ?>" /> 416 <p ><?php echo esc_html( $load_items_desc ); ?></p>416 <p><?php echo esc_html( $load_items_desc ); ?></p> 417 417 </td> 418 418 </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 $button_label_desc; // phpcs:ignore ?></p>428 <p><?php echo $button_label_desc; // phpcs:ignore ?></p> 429 429 </td> 430 430 </tr> … … 449 449 </select> 450 450 451 <p><?php esc_html_e( 'Select display property for load more items.', 'ajax-load-more-anything' ); ?></p> 451 <p class="desc"><?php esc_html_e( 'Select display property for load more items.', 'ajax-load-more-anything' ); ?></p> 452 </td> 453 </tr> 454 <tr valign="top" class="ald-pro-field "> 455 <th scope="row"> 456 <div class="tf-label"> 457 <label for="general_loadmore-button_classes-<?php echo esc_attr( $key ); ?>"><?php esc_html_e( 'Button Classes', 'ajax-load-more-anything' ); ?></label> 458 </div> 459 <?php ald_available_in_pro(); ?> 460 </th> 461 <td> 462 <input id="general_loadmore-button_classes-<?php echo esc_attr( $key ); ?>" class="regular-text" type="text" name="ald_options[general_loadmore][<?php echo esc_attr( $key ); ?>][button_classes]" value="<?php echo esc_attr( $button_classes ); ?>" placeholder="button btn-primary" /> 463 <p class="desc"><?php esc_html_e( 'Add classes to the load more button. Separate multiple classes with a space.', 'ajax-load-more-anything' ); ?></p> 452 464 </td> 453 465 </tr> -
ajax-load-more-anything/trunk/ajax-load-div.php
r3060772 r3071657 5 5 * Author: AddonMaster 6 6 * Author URI: https://addonmaster.com/contact 7 * Version: 3.3. 77 * 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. 7';29 const version = '3.3.'; 30 30 31 31 private function __construct() { -
ajax-load-more-anything/trunk/assets/admin.css
r3055642 r3071657 662 662 color: red; 663 663 position: absolute; 664 top: 15%;664 top: ; 665 665 right: 0; 666 666 opacity: 1; 667 667 } 668 669 670 671 -
ajax-load-more-anything/trunk/assets/admin.min.css
r3055657 r3071657 1 .ml-1{margin-left:1em}.ml-half{margin-left:7px}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.items-center{align-items:center}.ald-wrap .postbox a.header{text-transform:uppercase;text-decoration:none;display:block}.ald-wrap .postbox a.header+div{border-top:1px solid #ccd0d4}.ald-wrap .postbox a.header h2{cursor:pointer}.ald-wrap .collapse{display:none}.ald-wrap .desc{font-size:12px;font-weight:400;clear:both;overflow:hidden;margin:5px 0}.ald-wrap #poststuff h2{position:relative}.tf-clearfix{clear:both;display:table;width:100%;min-height:1px}.tf-clearfix:after,.tf-clearfix:before,.tf-container-fluid:after,.tf-container-fluid:before,.tf-container:after,.tf-container:before,.tf-row:after,.tf-row:before{content:" ";display:table}.tf-row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.tf-col-6{max-width:50%;padding-right:30px}.wfull{width:100%}#tourfic_options_metabox input[type=date],#tourfic_options_metabox input[type=datetime-local],#tourfic_options_metabox input[type=datetime],#tourfic_options_metabox input[type=email],#tourfic_options_metabox input[type=month],#tourfic_options_metabox input[type=number],#tourfic_options_metabox input[type=password],#tourfic_options_metabox input[type=search],#tourfic_options_metabox input[type=tel],#tourfic_options_metabox input[type=text],#tourfic_options_metabox input[type=time],#tourfic_options_metabox input[type=url],#tourfic_options_metabox input[type=week],#tourfic_options_metabox textarea{border:solid 1px #ddd;border-radius:2px;height:40px;line-height:38px;padding-left:10px;box-shadow:0 3px 10px -2px rgba(0,0,0,.05),inset 0 1px 2px rgba(0,0,0,.02);min-width:320px}#tourfic_options_metabox textarea{height:auto;line-height:1.5}#tourfic_options_metabox label{font-weight:600;color:#666}#tourfic_options_metabox .inside{margin:0!important;padding:0;clear:both}.tf-tab-container-wrap{display:flex;flex-wrap:wrap;box-sizing:border-box}.tf-box-head{width:20%}.tf-box-content{width:80%}.tf-tab-nav{margin:0;border-right:1px solid #ddd;height:100%}.tf-tab-nav li{margin:0}.tf-tab-nav a{display:block;line-height:16px;font-size:13px;font-weight:600;letter-spacing:.3px;color:#6a6f77;text-decoration:none;background:#f7f7f7;padding:13px 20px;border-bottom:1px solid #e3e3e3;outline:0;box-shadow:none;transition:all .2s ease}.tf-tab-nav li.active a{background:#008aff;background:linear-gradient(95deg,#36a2ff 0,#008aff 50%,#0072ff 100%);color:#fff;margin:0 -6px;border-radius:5px;box-shadow:0 2px 12px -5px #36a2ff;border-bottom-color:transparent;position:relative}.tf-tab-container{position:relative;height:100%;padding:30px 40px}.tf-tab-content{visibility:hidden;opacity:0;width:100%;transform:translateX(15px);transition:transform .1s ease;height:0}.tf-tab-content.active{visibility:visible;opacity:1;transform:translateX(0);height:auto}.tf-field-wrap{margin-bottom:25px}.tf-tab-container-wrap h4{text-transform:capitalize;border-bottom:1px solid #e5e5e5;padding-bottom:6px;margin:0 0 16px;font-size:15px;font-weight:600}.tf_panel-header{padding:20px;color:#fff;background:#23282d;background:linear-gradient(95deg ,#23282d 0,#323940 50%,#23282d 100%);color:#fff;margin:0 -6px 2px;border-radius:5px;box-shadow:0 2px 12px -5px #23282d;position:relative;overflow:hidden;display:flex;align-items:center}.tf_panel-header h2{color:#fff}.postbox.ald-postbox{border-top:0}.ald-label label{color:#23282d;font-weight:500}.ald-label{overflow:hidden;margin-bottom:9px}.tf-field-wrap .CodeMirror{border:1px solid #ddd}input.ald_ajax_wrap_title{border-color:#f3f3f3;background:0 0;width:100%;max-width:350px}.welcome-boxes{box-sizing:border-box;display:flex;flex-wrap:wrap;margin:0 -15px}.single-box{margin-bottom:25px;width:50%;padding:0 15px;box-sizing:border-box}.box-inner{border:1px solid transparent;padding:20px;box-shadow:0 10px 30px rgb(0 0 0 / 8%);border-radius:10px;margin-bottom:16px}.single-box:hover .box-inner{border:1px solid #eee}span.delete_field{float:right;position:absolute;right:0;top:0;line-height:1;height:100%;display:flex;align-items:center;width:30px;justify-content:center;border-left:1px solid #ccd0d4;cursor:pointer}span.delete_field:hover{border-color:#dc3545;background-color:#dc3545;color:#fff}@media(min-width:960px){.left-col{width:70%}.right-col{width:30%}td.left-col,td.right-col{vertical-align:top}}[data-id=button_trigger_selector],[data-id=custom_button_append],[data-id=hide_selector_wrapper],[data-id=wrapper_to_hide]{display:none}ul.ald-list li{width:50%;float:left}ul.ald-list li:before{font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:never;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;font-size:20px;vertical-align:top;text-align:center;transition:color .1s ease-in;content:"\f15e";margin-right:8px}ul.ald-list li:hover{color:#2b74ff}ul.ald-list{overflow:hidden}.am_form_buttons{position:absolute;bottom:5px;right:5px;z-index:1}button.am_submit_button[type=submit],button.am_submit_button[type=submit]:focus{background:#0074ff;color:#fff;border-bottom-color:transparent;position:relative;padding:7px 20px;cursor:pointer;min-width:125px;position:relative;border:0;border-radius:0;outline:0;border:1px solid #0074ff}button.am_submit_button[type=submit]:hover{background:#23282d}.am_spinner{position:absolute;top:50%;transform:translateY(-50%);height:100%;display:flex;align-items:center;left:2px;visibility:hidden;opacity:0}button.am_submit_button[type=submit][disabled] .am_spinner{visibility:visible;opacity:1}.am_spinner:before{border-top:2px solid #ddd;content:'';box-sizing:border-box;position:absolute;right:0;left:0;width:20px;height:20px;border-radius:50%;border-right:2px solid transparent;animation:am_spinner .6s linear infinite}@keyframes am_spinner{to{transform:rotate(360deg)}}.data_implement_selectors_wrap{box-shadow:0 0 0 transparent;border-radius:4px;border:1px solid #7e8993;background-color:#fff;color:#32373c;padding:0 8px;max-width:30em}.data_implement_selectors_wrap table{max-width:100%;width:100%}.form-table .data_implement_selectors_wrap th{padding:8px 0 0}.form-table .data_implement_selectors_wrap td{padding:0 0 8px}.data_implement_selectors_wrap input{width:200px}.disr_action{display:flex;align-items:center;width:90px;height:30px}.disr_action a{cursor:pointer;display:inline-flex;height:100%;align-items:center;width:30px;justify-content:center;box-shadow:0 0 0 transparent;border-radius:4px;border:1px solid #7e8993;background-color:#fff;color:#7e8993;margin-right:4px;user-select:none}.disr_action a:hover{color:#333;border-color:#333}a.add_disr{display:none}.data_implement_selectors_wrap tr:nth-last-child(2) .add_disr{display:inline-flex}.disr_action a.disabled{cursor:not-allowed;opacity:.4}.uptade-browser-title-url-field select{min-width:120px}.tf_panel-header .left-panel{width:50%;text-align:left}.tf_panel-header .right-panel{width:50%;text-align:right}.tf_panel-header .am_form_buttons{position:relative;bottom:unset;right:unset}.tf_panel-header button.am_submit_button[type=submit]{padding:10px 30px}.indicator_field{float:right;position:absolute;right:30px;top:0;line-height:1;height:100%;display:flex;align-items:center;width:30px;justify-content:center;font-size:16px;transition:all .3s ease}.postbox.opened .indicator_field{transform:rotateZ(180deg)}.indicator_field:before{content:"\f347"}.ald-toggle-head:hover,.postbox.opened .ald-toggle-head{background-color:#f9f9f9}.am_go-pro-modal-outer{display:none}.am_go-pro-modal-outer .am_shadow{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;opacity:.7;z-index:1000;width:100%;height:100%}.am_go-pro-modal-inner{background:#fff;border-radius:0;padding:16px;max-width:590px;text-align:center;position:fixed;margin:0 auto;z-index:9999;top:50%;transform:translateY(-50%);left:0;right:0;overflow:auto;max-height:88%}.am_go-pro-modal-inner::-webkit-scrollbar{width:4px}.am_go-pro-modal-inner::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.am_go-pro-modal-inner::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid slategrey}.in-middle tfoot p{margin-top:0;margin-bottom:3px}.am-modal-close{position:absolute;right:10px;top:6px;font-size:30px;vertical-align:middle;cursor:pointer;user-select:none;width:25px;text-align:center;height:25px}.very-top{text-align:center;background:#f8f8f8;margin:-16px -16px 0 -16px;padding:15px;overflow:hidden}.very-bottom{margin:0 -16px -16px -16px}.in-middle{min-height:100px}.ald-table{border-collapse:collapse}.ald-table td,.ald-table th{border:1px solid #ddd;text-align:left;padding:8px;vertical-align:top}.ald-table td:first-child,.ald-table th:first-child{text-align:right}.ald-table .dashicons-no-alt{color:#ff0000ad}.ald-table .dashicons-yes{color:#2473aa}.left-panel sup{color:#2b74ff}.ald-pro-no .ald-pro-field .pro-lock:before{display:none}.ald-pro-no .ald-pro-field td,.ald-pro-no .ald-pro-field th{position:relative}.ald-pro-no .ald-pro-field td input,.ald-pro-no .ald-pro-field td p,.ald-pro-no .ald-pro-field th .tf-label{opacity:.5}.ald-pro-no .ald-pro-field .ald-pro-lock{color:red;position:absolute;top: 15%;right:0;opacity:1}1 .ml-1{margin-left:1em}.ml-half{margin-left:7px}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.items-center{align-items:center}.ald-wrap .postbox a.header{text-transform:uppercase;text-decoration:none;display:block}.ald-wrap .postbox a.header+div{border-top:1px solid #ccd0d4}.ald-wrap .postbox a.header h2{cursor:pointer}.ald-wrap .collapse{display:none}.ald-wrap .desc{font-size:12px;font-weight:400;clear:both;overflow:hidden;margin:5px 0}.ald-wrap #poststuff h2{position:relative}.tf-clearfix{clear:both;display:table;width:100%;min-height:1px}.tf-clearfix:after,.tf-clearfix:before,.tf-container-fluid:after,.tf-container-fluid:before,.tf-container:after,.tf-container:before,.tf-row:after,.tf-row:before{content:" ";display:table}.tf-row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.tf-col-6{max-width:50%;padding-right:30px}.wfull{width:100%}#tourfic_options_metabox input[type=date],#tourfic_options_metabox input[type=datetime-local],#tourfic_options_metabox input[type=datetime],#tourfic_options_metabox input[type=email],#tourfic_options_metabox input[type=month],#tourfic_options_metabox input[type=number],#tourfic_options_metabox input[type=password],#tourfic_options_metabox input[type=search],#tourfic_options_metabox input[type=tel],#tourfic_options_metabox input[type=text],#tourfic_options_metabox input[type=time],#tourfic_options_metabox input[type=url],#tourfic_options_metabox input[type=week],#tourfic_options_metabox textarea{border:solid 1px #ddd;border-radius:2px;height:40px;line-height:38px;padding-left:10px;box-shadow:0 3px 10px -2px rgba(0,0,0,.05),inset 0 1px 2px rgba(0,0,0,.02);min-width:320px}#tourfic_options_metabox textarea{height:auto;line-height:1.5}#tourfic_options_metabox label{font-weight:600;color:#666}#tourfic_options_metabox .inside{margin:0!important;padding:0;clear:both}.tf-tab-container-wrap{display:flex;flex-wrap:wrap;box-sizing:border-box}.tf-box-head{width:20%}.tf-box-content{width:80%}.tf-tab-nav{margin:0;border-right:1px solid #ddd;height:100%}.tf-tab-nav li{margin:0}.tf-tab-nav a{display:block;line-height:16px;font-size:13px;font-weight:600;letter-spacing:.3px;color:#6a6f77;text-decoration:none;background:#f7f7f7;padding:13px 20px;border-bottom:1px solid #e3e3e3;outline:0;box-shadow:none;transition:all .2s ease}.tf-tab-nav li.active a{background:#008aff;background:linear-gradient(95deg,#36a2ff 0,#008aff 50%,#0072ff 100%);color:#fff;margin:0 -6px;border-radius:5px;box-shadow:0 2px 12px -5px #36a2ff;border-bottom-color:transparent;position:relative}.tf-tab-container{position:relative;height:100%;padding:30px 40px}.tf-tab-content{visibility:hidden;opacity:0;width:100%;transform:translateX(15px);transition:transform .1s ease;height:0}.tf-tab-content.active{visibility:visible;opacity:1;transform:translateX(0);height:auto}.tf-field-wrap{margin-bottom:25px}.tf-tab-container-wrap h4{text-transform:capitalize;border-bottom:1px solid #e5e5e5;padding-bottom:6px;margin:0 0 16px;font-size:15px;font-weight:600}.tf_panel-header{padding:20px;color:#fff;background:#23282d;background:linear-gradient(95deg ,#23282d 0,#323940 50%,#23282d 100%);color:#fff;margin:0 -6px 2px;border-radius:5px;box-shadow:0 2px 12px -5px #23282d;position:relative;overflow:hidden;display:flex;align-items:center}.tf_panel-header h2{color:#fff}.postbox.ald-postbox{border-top:0}.ald-label label{color:#23282d;font-weight:500}.ald-label{overflow:hidden;margin-bottom:9px}.tf-field-wrap .CodeMirror{border:1px solid #ddd}input.ald_ajax_wrap_title{border-color:#f3f3f3;background:0 0;width:100%;max-width:350px}.welcome-boxes{box-sizing:border-box;display:flex;flex-wrap:wrap;margin:0 -15px}.single-box{margin-bottom:25px;width:50%;padding:0 15px;box-sizing:border-box}.box-inner{border:1px solid transparent;padding:20px;box-shadow:0 10px 30px rgb(0 0 0 / 8%);border-radius:10px;margin-bottom:16px}.single-box:hover .box-inner{border:1px solid #eee}span.delete_field{float:right;position:absolute;right:0;top:0;line-height:1;height:100%;display:flex;align-items:center;width:30px;justify-content:center;border-left:1px solid #ccd0d4;cursor:pointer}span.delete_field:hover{border-color:#dc3545;background-color:#dc3545;color:#fff}@media(min-width:960px){.left-col{width:70%}.right-col{width:30%}td.left-col,td.right-col{vertical-align:top}}[data-id=button_trigger_selector],[data-id=custom_button_append],[data-id=hide_selector_wrapper],[data-id=wrapper_to_hide]{display:none}ul.ald-list li{width:50%;float:left}ul.ald-list li:before{font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:never;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;font-size:20px;vertical-align:top;text-align:center;transition:color .1s ease-in;content:"\f15e";margin-right:8px}ul.ald-list li:hover{color:#2b74ff}ul.ald-list{overflow:hidden}.am_form_buttons{position:absolute;bottom:5px;right:5px;z-index:1}button.am_submit_button[type=submit],button.am_submit_button[type=submit]:focus{background:#0074ff;color:#fff;border-bottom-color:transparent;position:relative;padding:7px 20px;cursor:pointer;min-width:125px;position:relative;border:0;border-radius:0;outline:0;border:1px solid #0074ff}button.am_submit_button[type=submit]:hover{background:#23282d}.am_spinner{position:absolute;top:50%;transform:translateY(-50%);height:100%;display:flex;align-items:center;left:2px;visibility:hidden;opacity:0}button.am_submit_button[type=submit][disabled] .am_spinner{visibility:visible;opacity:1}.am_spinner:before{border-top:2px solid #ddd;content:'';box-sizing:border-box;position:absolute;right:0;left:0;width:20px;height:20px;border-radius:50%;border-right:2px solid transparent;animation:am_spinner .6s linear infinite}@keyframes am_spinner{to{transform:rotate(360deg)}}.data_implement_selectors_wrap{box-shadow:0 0 0 transparent;border-radius:4px;border:1px solid #7e8993;background-color:#fff;color:#32373c;padding:0 8px;max-width:30em}.data_implement_selectors_wrap table{max-width:100%;width:100%}.form-table .data_implement_selectors_wrap th{padding:8px 0 0}.form-table .data_implement_selectors_wrap td{padding:0 0 8px}.data_implement_selectors_wrap input{width:200px}.disr_action{display:flex;align-items:center;width:90px;height:30px}.disr_action a{cursor:pointer;display:inline-flex;height:100%;align-items:center;width:30px;justify-content:center;box-shadow:0 0 0 transparent;border-radius:4px;border:1px solid #7e8993;background-color:#fff;color:#7e8993;margin-right:4px;user-select:none}.disr_action a:hover{color:#333;border-color:#333}a.add_disr{display:none}.data_implement_selectors_wrap tr:nth-last-child(2) .add_disr{display:inline-flex}.disr_action a.disabled{cursor:not-allowed;opacity:.4}.uptade-browser-title-url-field select{min-width:120px}.tf_panel-header .left-panel{width:50%;text-align:left}.tf_panel-header .right-panel{width:50%;text-align:right}.tf_panel-header .am_form_buttons{position:relative;bottom:unset;right:unset}.tf_panel-header button.am_submit_button[type=submit]{padding:10px 30px}.indicator_field{float:right;position:absolute;right:30px;top:0;line-height:1;height:100%;display:flex;align-items:center;width:30px;justify-content:center;font-size:16px;transition:all .3s ease}.postbox.opened .indicator_field{transform:rotateZ(180deg)}.indicator_field:before{content:"\f347"}.ald-toggle-head:hover,.postbox.opened .ald-toggle-head{background-color:#f9f9f9}.am_go-pro-modal-outer{display:none}.am_go-pro-modal-outer .am_shadow{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;opacity:.7;z-index:1000;width:100%;height:100%}.am_go-pro-modal-inner{background:#fff;border-radius:0;padding:16px;max-width:590px;text-align:center;position:fixed;margin:0 auto;z-index:9999;top:50%;transform:translateY(-50%);left:0;right:0;overflow:auto;max-height:88%}.am_go-pro-modal-inner::-webkit-scrollbar{width:4px}.am_go-pro-modal-inner::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.am_go-pro-modal-inner::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid slategrey}.in-middle tfoot p{margin-top:0;margin-bottom:3px}.am-modal-close{position:absolute;right:10px;top:6px;font-size:30px;vertical-align:middle;cursor:pointer;user-select:none;width:25px;text-align:center;height:25px}.very-top{text-align:center;background:#f8f8f8;margin:-16px -16px 0 -16px;padding:15px;overflow:hidden}.very-bottom{margin:0 -16px -16px -16px}.in-middle{min-height:100px}.ald-table{border-collapse:collapse}.ald-table td,.ald-table th{border:1px solid #ddd;text-align:left;padding:8px;vertical-align:top}.ald-table td:first-child,.ald-table th:first-child{text-align:right}.ald-table .dashicons-no-alt{color:#ff0000ad}.ald-table .dashicons-yes{color:#2473aa}.left-panel sup{color:#2b74ff}.ald-pro-no .ald-pro-field .pro-lock:before{display:none}.ald-pro-no .ald-pro-field td,.ald-pro-no .ald-pro-field th{position:relative}.ald-pro-no .ald-pro-field td input,.ald-pro-no .ald-pro-field td p,.ald-pro-no .ald-pro-field th .tf-label{opacity:.5}.ald-pro-no .ald-pro-field .ald-pro-lock{color:red;position:absolute;top:} -
ajax-load-more-anything/trunk/inc/ald-functions.php
r3060772 r3071657 219 219 var loader = '<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>'; 220 220 221 <?php if( $general_loadmore ) : ?> 222 223 <?php foreach ( $general_loadmore as $key => $value ) : ?> 224 <?php 221 <?php if( $general_loadmore ) : 222 foreach ( $general_loadmore as $key => $value ) : 225 223 $value = wp_parse_args( $value, array( 226 224 'btn_selector' => '', … … 231 229 'display_type' => '', 232 230 ) ); 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 233 250 ?> 234 <?php $ald_wrapper_class = isset( $value['btn_selector'] ) && !empty( $value['btn_selector'] ) ? sanitize_text_field( $value['btn_selector'] ) : ''; ?>235 <?php $ald_load_class = isset( $value['load_selector'] ) && !empty( $value['load_selector'] ) ? sanitize_text_field( $value['load_selector'] ) : '';?>236 <?php $ald_item_show = isset( $value['visible_items'] ) && !empty( $value['visible_items'] ) ? sanitize_text_field( $value['visible_items'] ) : '3'; ?>237 <?php $ald_item_load = isset( $value['load_items'] ) && !empty( $value['load_items'] ) ? sanitize_text_field( $value['load_items'] ) : '3'; ?>238 <?php $ald_load_label = isset( $value['button_label'] ) && !empty( $value['button_label'] ) ? sanitize_text_field( $value['button_label'] ) : __( 'Load More', 'ajax-load-more-anything' );?>239 <?php $display_type = isset( $value['display_type'] ) && !empty( $value['display_type'] ) ? ald_sanitize_display_type( $value['display_type'] ) : '';?>240 241 // Skip is selectors are empty242 <?php if( empty( $ald_wrapper_class ) || empty( $ald_load_class ) ) :?>243 <?php continue; ?>244 <?php endif; ?>245 251 246 252 // Append the Load More Button 247 jQuery("<?php echo esc_attr( $ald_wrapper_class ); ?>").append('<a data-glm-button-selector="<?php echo esc_attr( $ald_wrapper_class ); ?>" href="#" class=" btn loadMoreBtn" id="loadMore"><span class="loadMoreBtn-label"><?php echo ald_button_label( $ald_load_label ); // phpcs:ignore ?></span></a>');253 jQuery("<?php echo esc_attr( $ald_wrapper_class ); ?>").append('<a data-glm-button-selector="<?php echo esc_attr( $ald_wrapper_class ); ?>" href="#" class="" id="loadMore"><span class="loadMoreBtn-label"><?php echo ald_button_label( $ald_load_label ); // phpcs:ignore ?></span></a>'); 248 254 249 255 <?php if ( $display_type == "flex" ) : ?> … … 258 264 259 265 // Button Click Trigger 260 jQuery("<?php echo esc_attr( $ald_wrapper_class ); ?>").find(" #loadMore").on('click', function (e) {266 jQuery("<?php echo esc_attr( $ald_wrapper_class ); ?>").find("").on('click', function (e) { 261 267 e.preventDefault(); 262 268 … … 284 290 285 291 // Button Click Trigger 286 jQuery("<?php echo esc_attr( $ald_wrapper_class ); ?>").find(" #loadMore").on('click', function (e) {292 jQuery("<?php echo esc_attr( $ald_wrapper_class ); ?>").find("").on('click', function (e) { 287 293 e.preventDefault(); 288 294 … … 305 311 // Hide on initial if no div to show 306 312 if ( jQuery("<?php echo esc_attr( $ald_load_class ); ?>:hidden").length == 0 ) { 307 jQuery("<?php echo esc_attr( $ald_wrapper_class ); ?>").find(" #loadMore").fadeOut('slow');313 jQuery("<?php echo esc_attr( $ald_wrapper_class ); ?>").find("").fadeOut('slow'); 308 314 //console.log( 'Load more button hidden because no more item to load' ); 309 315 } -
ajax-load-more-anything/trunk/languages/ajax-load-more-anything.pot
r3060772 r3071657 4 4 "Project-Id-Version: Load More Anything\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 2024-0 3-27 16:48+0000\n"6 "POT-Creation-Date: 2024-0+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 29 29 msgstr "" 30 30 31 #: admin/functions.php:563 31 #: admin/functions.php:463 32 msgid "" 33 "Add classes to the load more button. Separate multiple classes with a space." 34 msgstr "" 35 36 #: admin/functions.php:575 32 37 msgid "Add Load More Button" 33 38 msgstr "" … … 61 66 msgstr "" 62 67 68 69 70 71 72 73 74 75 63 76 #: admin/functions.php:583 64 msgid "Button click trigger Selector"65 msgstr ""66 67 #: admin/functions.php:57168 77 msgid "Button Insert Selector" 69 78 msgstr "" 70 79 71 #: admin/functions.php: 59580 #: admin/functions.php: 72 81 msgid "Button Label" 73 82 msgstr "" 74 83 75 #: admin/functions.php:5 7684 #: admin/functions.php:5 76 85 msgid "Button will be insert after this selector." 77 86 msgstr "" … … 81 90 msgstr "" 82 91 83 #: admin/functions.php:5 4292 #: admin/functions.php:5 84 93 msgid "Change title to anything you like. Ex: Homepage Posts" 85 94 msgstr "" … … 93 102 msgstr "" 94 103 95 #: admin/functions.php:9 87104 #: admin/functions.php:9 96 105 msgid "Custom JavaScript" 97 106 msgstr "" 98 107 99 #: admin/functions.php:6 57108 #: admin/functions.php:6 100 109 msgid "Data Implement Selectors" 101 110 msgstr "" 102 111 103 #: admin/functions.php: 691112 #: admin/functions.php: 104 113 msgid "Data Selector" 105 114 msgstr "" … … 113 122 msgstr "" 114 123 115 #: admin/functions.php:7 48124 #: admin/functions.php:7 116 125 msgid "Enter data selector here" 117 126 msgstr "" 118 127 119 #: admin/functions.php:6 06128 #: admin/functions.php:6 120 129 msgid "Enter Selector" 121 130 msgstr "" 122 131 123 #: admin/functions.php:352 admin/functions.php:5 32132 #: admin/functions.php:352 admin/functions.php:5 124 133 msgid "" 125 134 "Enter the name of Load More Button <br> Use <code>+[count]</code> for " … … 127 136 msgstr "" 128 137 129 #: admin/functions.php:6 50138 #: admin/functions.php:6 130 139 msgid "Enter the selector of the wrapper which you want to hide from visitors" 131 140 msgstr "" 132 141 133 #: admin/functions.php:5 56142 #: admin/functions.php:5 134 143 msgid "Event Type:" 135 144 msgstr "" … … 151 160 msgstr "" 152 161 153 #: admin/functions.php:10 50162 #: admin/functions.php:10 154 163 msgid "Get Pro" 155 164 msgstr "" … … 159 168 msgstr "" 160 169 161 #: ajax-load-div.php:14 5170 #: ajax-load-div.php:14 162 171 msgid "GO PRO" 163 172 msgstr "" … … 173 182 msgstr "" 174 183 175 #: admin/functions.php:6 31184 #: admin/functions.php:6 176 185 msgid "Hide Selector(s) wrapper" 177 186 msgstr "" 178 187 179 #: admin/functions.php:349 admin/functions.php:5 29188 #: admin/functions.php:349 admin/functions.php:5 180 189 msgid "How Many Item Will Load When Click Load More Button?" 181 190 msgstr "" 182 191 183 #: admin/functions.php:346 admin/functions.php:5 26192 #: admin/functions.php:346 admin/functions.php:5 184 193 msgid "How many item will show initially" 185 194 msgstr "" … … 205 214 msgstr "" 206 215 207 #: admin/functions.php: 692216 #: admin/functions.php: 208 217 msgid "Implement Type" 209 218 msgstr "" 210 219 211 #: admin/functions.php:7 12 admin/functions.php:733 admin/functions.php:754220 #: admin/functions.php:7 212 221 msgid "Insert After" 213 222 msgstr "" 214 223 215 #: admin/functions.php:7 13 admin/functions.php:732 admin/functions.php:753224 #: admin/functions.php:7 216 225 msgid "Insert Before" 217 226 msgstr "" 218 227 219 228 #: admin/Menu.php:314 220 msgid "Introducing Load More Anyting <code>Pro</code>"229 msgid "Introducing Load More Anyting" 221 230 msgstr "" 222 231 223 232 #: admin/Menu.php:341 224 msgid "Learn More <span class=\"ml-half dashicons dashicons-external\"></span>"233 msgid "Learn More" 225 234 msgstr "" 226 235 … … 229 238 msgstr "" 230 239 231 #: admin/functions.php:348 admin/functions.php:5 28240 #: admin/functions.php:348 admin/functions.php:5 232 241 msgid "Load Items" 233 242 msgstr "" 234 243 235 #: inc/ald-functions.php:2 19 inc/ald-functions.php:227244 #: inc/ald-functions.php:2 236 245 msgid "Load More" 237 246 msgstr "" … … 246 255 msgstr "" 247 256 257 258 259 260 261 262 263 264 �� 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 248 285 #: admin/functions.php:804 249 msgid "Load More Anyting"250 msgstr ""251 252 #: admin/functions.php:351 admin/functions.php:531253 msgid "Load More Button Label"254 msgstr ""255 256 #: admin/functions.php:339 admin/functions.php:519257 msgid "Load More Button Selector"258 msgstr ""259 260 #: admin/functions.php:340 admin/functions.php:520261 msgid "Load more button will be insert end of this selector"262 msgstr ""263 264 #: admin/functions.php:342 admin/functions.php:522265 msgid "Load More Items Selector"266 msgstr ""267 268 #: admin/functions.php:636 admin/functions.php:677 admin/functions.php:683269 msgid "No"270 msgstr ""271 272 #: admin/functions.php:711 admin/functions.php:731 admin/functions.php:752273 msgid "Replace Data"274 msgstr ""275 276 #: admin/functions.php:792277 286 msgid "Save Changes" 278 287 msgstr "" 279 288 280 #: admin/functions.php:5 62289 #: admin/functions.php:5 281 290 msgid "Scroll to Load (Infinite Scroll)" 282 291 msgstr "" … … 290 299 msgstr "" 291 300 292 #: admin/functions.php:343 admin/functions.php:5 23301 #: admin/functions.php:343 admin/functions.php:5 293 302 msgid "" 294 303 "Selector for load more items. Example: <code>.parent_selector .items</code>" 295 304 msgstr "" 296 305 297 #: admin/functions.php:6 11306 #: admin/functions.php:6 298 307 msgid "Selector should be correct, otherwise ajax will fail to load contents" 299 308 msgstr "" 300 309 301 #: admin/functions.php:5 61310 #: admin/functions.php:5 302 311 msgid "Selector(s) Click (Ajax Load)" 303 312 msgstr "" 304 313 305 #: ajax-load-div.php:1 48admin/Menu.php:146 admin/Menu.php:275314 #: ajax-load-div.php:1 admin/Menu.php:146 admin/Menu.php:275 306 315 msgid "Settings" 307 316 msgstr "" … … 319 328 msgstr "" 320 329 321 #: admin/functions.php:6 24330 #: admin/functions.php:6 322 331 msgid "" 323 332 "The number of pixels from the bottom of the page to trigger the load more " … … 331 340 msgstr "" 332 341 333 #: admin/functions.php: 588342 #: admin/functions.php: 334 343 msgid "This selector will be trigger when the button clicked." 335 344 msgstr "" 336 345 337 #: admin/functions.php:6 18346 #: admin/functions.php:6 338 347 msgid "Trigger Offset" 339 348 msgstr "" 340 349 341 #: admin/functions.php:6 68350 #: admin/functions.php:6 342 351 msgid "Update Browser URL?" 343 352 msgstr "" 344 353 345 #: admin/functions.php:6 71354 #: admin/functions.php:6 346 355 msgid "Update Page Title?" 347 356 msgstr "" 348 357 349 #: admin/functions.php:8 29 admin/functions.php:956358 #: admin/functions.php:8 350 359 msgid "Upgrade to Pro" 351 360 msgstr "" … … 355 364 msgstr "" 356 365 357 #: admin/functions.php:345 admin/functions.php:5 25366 #: admin/functions.php:345 admin/functions.php:5 358 367 msgid "Visible Items" 359 368 msgstr "" … … 374 383 msgstr "" 375 384 376 #: admin/functions.php:6 45385 #: admin/functions.php:6 377 386 msgid "Wrapper Selector to hide" 378 387 msgstr "" 379 388 380 389 #. %s: Number of the wrapper 381 #: admin/functions.php:336 admin/functions.php:5 11390 #: admin/functions.php:336 admin/functions.php:5 382 391 #, php-format 383 392 msgid "Wrapper Title #%s" … … 392 401 msgstr "" 393 402 394 #: admin/functions.php:6 37 admin/functions.php:678 admin/functions.php:684403 #: admin/functions.php:6 395 404 msgid "Yes" 396 405 msgstr "" 397 406 398 #: admin/functions.php: 988407 #: admin/functions.php: 399 408 msgid "You can trigger custom functions from here." 400 409 msgstr ""
Note: See TracChangeset
for help on using the changeset viewer.