Plugin Directory

Changeset 3071657

Timestamp:
04/16/2024 02:05:32 PM (3 months ago)
Author:
mdshuvo
Message:

3.3.8 – Apr 16, 2024

  • Code Improvements
  • Translation updates
  • Checked with Latest WordPress (v6.5.2)
Location:
ajax-load-more-anything
Files:
19 added
8 edited

Legend:

Unmodified
Added
Removed
  • ajax-load-more-anything/trunk/README.txt

    r3062981 r3071657  
    33Tags: infinite scroll, ajax load more, ajax pagination, load more, ajax
    44Requires at least: 4.6
    5 Tested up to: 6.5
    6 Stable tag: 3.3.7
     5Tested up to: 6.5
     6Stable tag: 3.3.
    77Requires PHP: 5.6
    88License: GPLv2 or later
     
    167167== Changelog ==
    168168
     169
     170
     171
     172
     173
    169174= 3.3.7 – Mar 29, 2024 =
    170175- Code Improvement
  • ajax-load-more-anything/trunk/admin/Menu.php

    r3060772 r3071657  
    312312                                <tr>
    313313                                    <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>
    315315                                        <p>
    316316                                            <?php esc_html_e( 'Everything now you can make ajax based!', 'ajax-load-more-anything' ); ?>
     
    339339                                        <div class="action-btns">
    340340                                            <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>
    342342                                            </a>
    343343                                            <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  
    378378                        <td>
    379379                            <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>
    381381                        </td>
    382382                    </tr>
     
    390390                        <td>
    391391                            <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>
    393393                        </td>
    394394                    </tr>
     
    402402                        <td>
    403403                            <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>
    405405                        </td>
    406406                    </tr>
     
    414414                        <td>
    415415                            <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>
    417417                        </td>
    418418                    </tr>
     
    426426                        <td>
    427427                            <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>
    429429                        </td>
    430430                    </tr>
     
    449449                            </select>
    450450                           
    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>
    452464                        </td>
    453465                    </tr>
  • ajax-load-more-anything/trunk/ajax-load-div.php

    r3060772 r3071657  
    55 * Author:       AddonMaster
    66 * Author URI:   https://addonmaster.com/contact
    7  * Version:      3.3.7
     7 * Version:      3.3.
    88 * 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.
    99 * License:      GPL2
     
    2727     * @var string
    2828     */
    29     const version = '3.3.7';
     29    const version = '3.3.';
    3030
    3131    private function __construct() {
  • ajax-load-more-anything/trunk/assets/admin.css

    r3055642 r3071657  
    662662    color: red;
    663663    position: absolute;
    664     top: 15%;
     664    top: ;
    665665    right: 0;
    666666    opacity: 1;
    667667}
     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  
    219219            var loader = '<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>';
    220220
    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 ) :
    225223                    $value = wp_parse_args( $value, array(
    226224                        'btn_selector' => '',
     
    231229                        'display_type' => '',
    232230                    ) );
     231
     232
     233
     234
     235
     236
     237
     238
     239
     240
     241
     242
     243
     244
     245
     246
     247
     248
     249
    233250                    ?>
    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 empty
    242                     <?php if( empty( $ald_wrapper_class ) || empty( $ald_load_class ) ) :?>
    243                         <?php continue; ?>
    244                     <?php endif; ?>
    245251
    246252                    // 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>');
    248254
    249255                    <?php if ( $display_type == "flex" ) : ?>
     
    258264
    259265                        // 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) {
    261267                            e.preventDefault();
    262268
     
    284290
    285291                        // 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) {
    287293                            e.preventDefault();
    288294
     
    305311                    // Hide on initial if no div to show
    306312                    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');
    308314                        //console.log( 'Load more button hidden because no more item to load' );
    309315                    }
  • ajax-load-more-anything/trunk/languages/ajax-load-more-anything.pot

    r3060772 r3071657  
    44"Project-Id-Version: Load More Anything\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2024-03-27 16:48+0000\n"
     6"POT-Creation-Date: 2024-0+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    2929msgstr ""
    3030
    31 #: admin/functions.php:563
     31#: admin/functions.php:463
     32msgid ""
     33"Add classes to the load more button. Separate multiple classes with a space."
     34msgstr ""
     35
     36#: admin/functions.php:575
    3237msgid "Add Load More Button"
    3338msgstr ""
     
    6166msgstr ""
    6267
     68
     69
     70
     71
     72
     73
     74
     75
    6376#: admin/functions.php:583
    64 msgid "Button click trigger Selector"
    65 msgstr ""
    66 
    67 #: admin/functions.php:571
    6877msgid "Button Insert Selector"
    6978msgstr ""
    7079
    71 #: admin/functions.php:595
     80#: admin/functions.php:
    7281msgid "Button Label"
    7382msgstr ""
    7483
    75 #: admin/functions.php:576
     84#: admin/functions.php:5
    7685msgid "Button will be insert after this selector."
    7786msgstr ""
     
    8190msgstr ""
    8291
    83 #: admin/functions.php:542
     92#: admin/functions.php:5
    8493msgid "Change title to anything you like. Ex: Homepage Posts"
    8594msgstr ""
     
    93102msgstr ""
    94103
    95 #: admin/functions.php:987
     104#: admin/functions.php:9
    96105msgid "Custom JavaScript"
    97106msgstr ""
    98107
    99 #: admin/functions.php:657
     108#: admin/functions.php:6
    100109msgid "Data Implement Selectors"
    101110msgstr ""
    102111
    103 #: admin/functions.php:691
     112#: admin/functions.php:
    104113msgid "Data Selector"
    105114msgstr ""
     
    113122msgstr ""
    114123
    115 #: admin/functions.php:748
     124#: admin/functions.php:7
    116125msgid "Enter data selector here"
    117126msgstr ""
    118127
    119 #: admin/functions.php:606
     128#: admin/functions.php:6
    120129msgid "Enter Selector"
    121130msgstr ""
    122131
    123 #: admin/functions.php:352 admin/functions.php:532
     132#: admin/functions.php:352 admin/functions.php:5
    124133msgid ""
    125134"Enter the name of Load More Button <br> Use <code>+[count]</code> for "
     
    127136msgstr ""
    128137
    129 #: admin/functions.php:650
     138#: admin/functions.php:6
    130139msgid "Enter the selector of the wrapper which you want to hide from visitors"
    131140msgstr ""
    132141
    133 #: admin/functions.php:556
     142#: admin/functions.php:5
    134143msgid "Event Type:"
    135144msgstr ""
     
    151160msgstr ""
    152161
    153 #: admin/functions.php:1050
     162#: admin/functions.php:10
    154163msgid "Get Pro"
    155164msgstr ""
     
    159168msgstr ""
    160169
    161 #: ajax-load-div.php:145
     170#: ajax-load-div.php:14
    162171msgid "GO PRO"
    163172msgstr ""
     
    173182msgstr ""
    174183
    175 #: admin/functions.php:631
     184#: admin/functions.php:6
    176185msgid "Hide Selector(s) wrapper"
    177186msgstr ""
    178187
    179 #: admin/functions.php:349 admin/functions.php:529
     188#: admin/functions.php:349 admin/functions.php:5
    180189msgid "How Many Item Will Load When Click Load More Button?"
    181190msgstr ""
    182191
    183 #: admin/functions.php:346 admin/functions.php:526
     192#: admin/functions.php:346 admin/functions.php:5
    184193msgid "How many item will show initially"
    185194msgstr ""
     
    205214msgstr ""
    206215
    207 #: admin/functions.php:692
     216#: admin/functions.php:
    208217msgid "Implement Type"
    209218msgstr ""
    210219
    211 #: admin/functions.php:712 admin/functions.php:733 admin/functions.php:754
     220#: admin/functions.php:7
    212221msgid "Insert After"
    213222msgstr ""
    214223
    215 #: admin/functions.php:713 admin/functions.php:732 admin/functions.php:753
     224#: admin/functions.php:7
    216225msgid "Insert Before"
    217226msgstr ""
    218227
    219228#: admin/Menu.php:314
    220 msgid "Introducing Load More Anyting <code>Pro</code>"
     229msgid "Introducing Load More Anyting"
    221230msgstr ""
    222231
    223232#: admin/Menu.php:341
    224 msgid "Learn More <span class=\"ml-half dashicons dashicons-external\"></span>"
     233msgid "Learn More"
    225234msgstr ""
    226235
     
    229238msgstr ""
    230239
    231 #: admin/functions.php:348 admin/functions.php:528
     240#: admin/functions.php:348 admin/functions.php:5
    232241msgid "Load Items"
    233242msgstr ""
    234243
    235 #: inc/ald-functions.php:219 inc/ald-functions.php:227
     244#: inc/ald-functions.php:2
    236245msgid "Load More"
    237246msgstr ""
     
    246255msgstr ""
    247256
     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
    248285#: admin/functions.php:804
    249 msgid "Load More Anyting"
    250 msgstr ""
    251 
    252 #: admin/functions.php:351 admin/functions.php:531
    253 msgid "Load More Button Label"
    254 msgstr ""
    255 
    256 #: admin/functions.php:339 admin/functions.php:519
    257 msgid "Load More Button Selector"
    258 msgstr ""
    259 
    260 #: admin/functions.php:340 admin/functions.php:520
    261 msgid "Load more button will be insert end of this selector"
    262 msgstr ""
    263 
    264 #: admin/functions.php:342 admin/functions.php:522
    265 msgid "Load More Items Selector"
    266 msgstr ""
    267 
    268 #: admin/functions.php:636 admin/functions.php:677 admin/functions.php:683
    269 msgid "No"
    270 msgstr ""
    271 
    272 #: admin/functions.php:711 admin/functions.php:731 admin/functions.php:752
    273 msgid "Replace Data"
    274 msgstr ""
    275 
    276 #: admin/functions.php:792
    277286msgid "Save Changes"
    278287msgstr ""
    279288
    280 #: admin/functions.php:562
     289#: admin/functions.php:5
    281290msgid "Scroll to Load (Infinite Scroll)"
    282291msgstr ""
     
    290299msgstr ""
    291300
    292 #: admin/functions.php:343 admin/functions.php:523
     301#: admin/functions.php:343 admin/functions.php:5
    293302msgid ""
    294303"Selector for load more items. Example: <code>.parent_selector .items</code>"
    295304msgstr ""
    296305
    297 #: admin/functions.php:611
     306#: admin/functions.php:6
    298307msgid "Selector should be correct, otherwise ajax will fail to load contents"
    299308msgstr ""
    300309
    301 #: admin/functions.php:561
     310#: admin/functions.php:5
    302311msgid "Selector(s) Click (Ajax Load)"
    303312msgstr ""
    304313
    305 #: ajax-load-div.php:148 admin/Menu.php:146 admin/Menu.php:275
     314#: ajax-load-div.php:1 admin/Menu.php:146 admin/Menu.php:275
    306315msgid "Settings"
    307316msgstr ""
     
    319328msgstr ""
    320329
    321 #: admin/functions.php:624
     330#: admin/functions.php:6
    322331msgid ""
    323332"The number of pixels from the bottom of the page to trigger the load more "
     
    331340msgstr ""
    332341
    333 #: admin/functions.php:588
     342#: admin/functions.php:
    334343msgid "This selector will be trigger when the button clicked."
    335344msgstr ""
    336345
    337 #: admin/functions.php:618
     346#: admin/functions.php:6
    338347msgid "Trigger Offset"
    339348msgstr ""
    340349
    341 #: admin/functions.php:668
     350#: admin/functions.php:6
    342351msgid "Update Browser URL?"
    343352msgstr ""
    344353
    345 #: admin/functions.php:671
     354#: admin/functions.php:6
    346355msgid "Update Page Title?"
    347356msgstr ""
    348357
    349 #: admin/functions.php:829 admin/functions.php:956
     358#: admin/functions.php:8
    350359msgid "Upgrade to Pro"
    351360msgstr ""
     
    355364msgstr ""
    356365
    357 #: admin/functions.php:345 admin/functions.php:525
     366#: admin/functions.php:345 admin/functions.php:5
    358367msgid "Visible Items"
    359368msgstr ""
     
    374383msgstr ""
    375384
    376 #: admin/functions.php:645
     385#: admin/functions.php:6
    377386msgid "Wrapper Selector to hide"
    378387msgstr ""
    379388
    380389#. %s: Number of the wrapper
    381 #: admin/functions.php:336 admin/functions.php:511
     390#: admin/functions.php:336 admin/functions.php:5
    382391#, php-format
    383392msgid "Wrapper Title #%s"
     
    392401msgstr ""
    393402
    394 #: admin/functions.php:637 admin/functions.php:678 admin/functions.php:684
     403#: admin/functions.php:6
    395404msgid "Yes"
    396405msgstr ""
    397406
    398 #: admin/functions.php:988
     407#: admin/functions.php:
    399408msgid "You can trigger custom functions from here."
    400409msgstr ""
Note: See TracChangeset for help on using the changeset viewer.