Plugin Directory

Changeset 3060772

Timestamp:
03/28/2024 07:15:34 PM (4 months ago)
Author:
mdshuvo
Message:

3.3.7 – Mar 29, 2024

  • Code Improvement
  • Added: Disable jQuery Dependency option (This option is helpfull for some website where jQuery is not working properly)
  • Fixed: Elementor Editor Issue
  • Checked with Latest WordPress
Location:
ajax-load-more-anything
Files:
19 added
6 edited

Legend:

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

    r3055642 r3060772  
    44Requires at least: 4.6
    55Tested up to: 6.4.3
    6 Stable tag: 3.3.6
     6Stable tag: 3.3.
    77Requires PHP: 5.6
    88License: GPLv2 or later
     
    167167== Changelog ==
    168168
     169
     170
     171
     172
     173
     174
     175
    169176= 3.3.6 – Mar 21, 2024 =
    170177- Code Improvement
  • ajax-load-more-anything/trunk/admin/Menu.php

    r3055642 r3060772  
    117117        $ajax_loadmore = isset( $ald_options['ajax_loadmore'] ) ? $ald_options['ajax_loadmore'] : array();
    118118        $custom_css  = isset( $ald_options['custom_css'] ) ? $ald_options['custom_css'] : "";
     119
    119120
    120121        ?>
     
    143144                                            <li><a href="#general"><?php echo esc_html__( 'General Selectors', 'ajax-load-more-anything' ); ?></a></li>
    144145                                            <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>
    146147                                            <?php do_action( 'ald_options_menu', $ald_options ); ?>
    147148                                        </ul>
     
    270271                                            </div>
    271272
    272                                             <div id="custom-code" class="tf-tab-content">
     273                                            <div id="" class="tf-tab-content">
    273274                                                <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>
    276277                                                </h4>
    277278                                                <div class="tf-field-wrap">
     279
    278280                                                    <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                                                 
    282294                                                    <textarea name="ald_options[custom_css]" class="wfull" rows="5" id="ald_options_custom_css"><?php _e( $custom_css ); // phpcs:ignore ?></textarea>
    283 
    284295                                                </div>
    285296
     
    420431        wp_enqueue_style( 'ald-admin-styles' );
    421432        wp_enqueue_script( 'ald-admin-scripts' );
    422         //wp_enqueue_script( 'wp-codemirror' );
    423433
    424434        $cmcss_settings['codeEditor'] = wp_enqueue_code_editor( array( 'type' => 'text/css' ) );
     
    426436        wp_localize_script('ald-admin-scripts', 'cmcss_settings', $cmcss_settings);
    427437        wp_localize_script('ald-admin-scripts', 'cmjs_settings', $cmjs_settings);
    428         wp_enqueue_script('wp-theme-plugin-editor');
    429         wp_enqueue_style('wp-codemirror');
    430438    }
    431439
  • ajax-load-more-anything/trunk/admin/functions.php

    r3055642 r3060772  
    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 esc_html( $load_more_item_selector_desc ); ?></p>
     392                            <p><?php echo ?></p>
    393393                        </td>
    394394                    </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 esc_html( $button_label_desc ) ?></p>
     428                            <p><?php echo ?></p>
    429429                        </td>
    430430                    </tr>
  • ajax-load-more-anything/trunk/ajax-load-div.php

    r3055642 r3060772  
    55 * Author:       AddonMaster
    66 * Author URI:   https://addonmaster.com/contact
    7  * Version:      3.3.6
     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.6';
     29    const version = '3.3.';
    3030
    3131    private function __construct() {
     
    3636
    3737        // Enqueue frontend scripts
    38         add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
     38        add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
    3939        add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ), 100 );
    4040
     
    8282     */
    8383    function plugin_loaded() {
    84         // Loading Text Domain for Internationalization
    85         load_plugin_textdomain( 'ajax-load-more-anything', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
    86 
    8784        require_once( dirname( __FILE__ ) . '/inc/ald-functions.php' );
    8885        require_once( dirname( __FILE__ ) . '/admin/functions.php' );
     
    9592    function enqueue_scripts() {
    9693
     94
     95
    9796        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 );
    9998
    10099        wp_localize_script( 'ald-scripts', 'ald_params',
  • ajax-load-more-anything/trunk/inc/ald-functions.php

    r3055642 r3060772  
    11<?php
     2
     3
     4
     5
     6
     7
     8
     9
     10
     11
     12
    213// CSS Minifier => http://ideone.com/Q5USEF + improvement(s)
    314function ald_minify_css($input) {
     
    8596       
    8697        /* 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; ?>
    88105
    89106        /* 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; ?>
    91110
    92111        /* Custom CSS */
  • ajax-load-more-anything/trunk/languages/ajax-load-more-anything.pot

    r3050647 r3060772  
    44"Project-Id-Version: Load More Anything\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2023-02-08 23:21+0000\n"
     6"POT-Creation-Date: 202+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    2525msgstr ""
    2626
    27 #: admin/Menu.php:266
     27#: admin/Menu.php:26
    2828msgid "Add Ajax Wrapper"
    2929msgstr ""
    3030
    31 #: admin/functions.php:552
    32 msgid "Add Custom Button"
    33 msgstr ""
    34 
    35 #: admin/Menu.php:236
     31#: admin/functions.php:5
     32msgid "Add Button"
     33msgstr ""
     34
     35#: admin/Menu.php:23
    3636msgid "Add Wrapper"
    3737msgstr ""
    3838
     39
     40
     41
     42
    3943#. Author of the plugin
    40 msgid "Addon Master"
    41 msgstr ""
    42 
    43 #: admin/Menu.php:144
     44msgid "AddonMaster"
     45msgstr ""
     46
     47#: admin/Menu.php:14
    4448msgid "Ajax Based"
    4549msgstr ""
    4650
    47 #: admin/Menu.php:244
     51#: admin/Menu.php:24
    4852msgid "Ajaxify Selector"
    4953msgstr ""
    5054
    51 #: admin/Menu.php:341
     55#: admin/Menu.php:3
    5256msgid "Are you stuck somewhere?"
    5357msgstr ""
    5458
    55 #: admin/Menu.php:190
     59#: admin/Menu.php:19
    5660msgid "Awesome Support"
    5761msgstr ""
    5862
    59 #: admin/functions.php:572
     63#: admin/functions.php:5
    6064msgid "Button click trigger Selector"
    6165msgstr ""
    6266
    63 #: admin/functions.php:560
     67#: admin/functions.php:5
    6468msgid "Button Insert Selector"
    6569msgstr ""
    6670
    67 #: admin/functions.php:584
     71#: admin/functions.php:5
    6872msgid "Button Label"
    6973msgstr ""
    7074
    71 #: admin/functions.php:565
     75#: admin/functions.php:5
    7276msgid "Button will be insert after this selector."
    7377msgstr ""
    7478
    75 #: admin/functions.php:356
     79#: admin/functions.php:3
    7680msgid "Change title to anything you like. Ex: For Homepage"
    7781msgstr ""
    7882
    79 #: admin/functions.php:531
     83#: admin/functions.php:5
    8084msgid "Change title to anything you like. Ex: Homepage Posts"
    8185msgstr ""
    8286
    83 #: admin/Menu.php:161
     87#: admin/Menu.php:16
    8488msgid "Checkout our new features."
    8589msgstr ""
    8690
    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
    9692msgid "Custom CSS"
    9793msgstr ""
    9894
    99 #: admin/functions.php:963
     95#: admin/functions.php:9
    10096msgid "Custom JavaScript"
    10197msgstr ""
    10298
    103 #: admin/functions.php:633
     99#: admin/functions.php:6
    104100msgid "Data Implement Selectors"
    105101msgstr ""
    106102
    107 #: admin/functions.php:667
     103#: admin/functions.php:6
    108104msgid "Data Selector"
    109105msgstr ""
    110106
    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
     108msgid "Disable jQuery Dependency"
     109msgstr ""
     110
     111#: admin/Menu.php:367
     112msgid "Email Us"
     113msgstr ""
     114
     115#: admin/functions.php:748
     116msgid "Enter data selector here"
     117msgstr ""
     118
     119#: admin/functions.php:606
    116120msgid "Enter Selector"
    117121msgstr ""
    118122
    119 #: admin/functions.php:347 admin/functions.php:521
     123#: admin/functions.php:3
    120124msgid ""
    121125"Enter the name of Load More Button <br> Use <code>+[count]</code> for "
     
    123127msgstr ""
    124128
    125 #: admin/functions.php:626
     129#: admin/functions.php:6
    126130msgid "Enter the selector of the wrapper which you want to hide from visitors"
    127131msgstr ""
    128132
    129 #: admin/functions.php:545
     133#: admin/functions.php:5
    130134msgid "Event Type:"
    131135msgstr ""
    132136
    133 #: admin/Menu.php:305
     137#: admin/Menu.php:3
    134138msgid "Everything now you can make ajax based!"
    135139msgstr ""
    136140
    137 #: admin/Menu.php:332
     141#: admin/Menu.php:3
    138142msgid "Free vs Pro Comparison"
    139143msgstr ""
    140144
    141 #: admin/Menu.php:143
     145#: admin/Menu.php:14
    142146msgid "General Selectors"
    143147msgstr ""
    144148
    145 #: admin/Menu.php:214
     149#: admin/Menu.php:21
    146150msgid "General Selectors Panel"
    147151msgstr ""
    148152
    149 #: admin/Menu.php:343
     153#: admin/functions.php:1050
     154msgid "Get Pro"
     155msgstr ""
     156
     157#: admin/Menu.php:354
    150158msgid "Get support from our developers. Easy, Quick, and Professional!"
    151159msgstr ""
    152160
    153 #: ajax-load-div.php:149
     161#: ajax-load-div.php:14
    154162msgid "GO PRO"
    155163msgstr ""
    156164
    157 #: admin/Menu.php:275
    158 msgid "Here you can add/modify custom css"
    159 msgstr ""
    160 
    161 #: admin/Menu.php:215
     165#: admin/Menu.php:27
     166msgid "Here you can adds"
     167msgstr ""
     168
     169#: admin/Menu.php:21
    162170msgid ""
    163171"Here you can enable load more items which are already visible in your web "
     
    165173msgstr ""
    166174
    167 #: admin/functions.php:607
     175#: admin/functions.php:6
    168176msgid "Hide Selector(s) wrapper"
    169177msgstr ""
    170178
    171 #: admin/functions.php:344 admin/functions.php:518
     179#: admin/functions.php:34
    172180msgid "How Many Item Will Load When Click Load More Button?"
    173181msgstr ""
    174182
    175 #: admin/functions.php:341 admin/functions.php:515
     183#: admin/functions.php:34
    176184msgid "How many item will show initially"
    177185msgstr ""
     
    185193msgstr ""
    186194
    187 #: admin/Menu.php:202
     195#: admin/Menu.php:20
    188196msgid ""
    189197"If you want to show me some love, The review section is always open for you :"
     
    191199msgstr ""
    192200
    193 #: admin/Menu.php:367
     201#: admin/Menu.php:3
    194202msgid ""
    195203"If you want to show some love, The review section is always open for you :). "
     
    197205msgstr ""
    198206
    199 #: admin/functions.php:668
     207#: admin/functions.php:6
    200208msgid "Implement Type"
    201209msgstr ""
    202210
    203 #: admin/functions.php:688 admin/functions.php:709 admin/functions.php:730
     211#: admin/functions.php:
    204212msgid "Insert After"
    205213msgstr ""
    206214
    207 #: admin/functions.php:689 admin/functions.php:708 admin/functions.php:729
     215#: admin/functions.php:
    208216msgid "Insert Before"
    209217msgstr ""
    210218
    211 #: admin/Menu.php:303
     219#: admin/Menu.php:3
    212220msgid "Introducing Load More Anyting <code>Pro</code>"
    213221msgstr ""
    214222
    215 #: admin/Menu.php:330
     223#: admin/Menu.php:3
    216224msgid "Learn More <span class=\"ml-half dashicons dashicons-external\"></span>"
    217225msgstr ""
    218226
    219 #: admin/functions.php:343 admin/functions.php:517
     227#: admin/Menu.php:282
     228msgid "Leave this option unchecked if you are not sure about this option."
     229msgstr ""
     230
     231#: admin/functions.php:348 admin/functions.php:528
    220232msgid "Load Items"
    221233msgstr ""
    222234
    223 #: inc/ald-functions.php:205 inc/ald-functions.php:213
     235#: inc/ald-functions.php:2
    224236msgid "Load More"
    225237msgstr ""
     
    234246msgstr ""
    235247
    236 #: admin/functions.php:780
     248#: admin/functions.php:
    237249msgid "Load More Anyting"
    238250msgstr ""
    239251
    240 #: admin/functions.php:346 admin/functions.php:520
     252#: admin/functions.php:3
    241253msgid "Load More Button Label"
    242254msgstr ""
    243255
    244 #: admin/functions.php:334 admin/functions.php:508
     256#: admin/functions.php:33
    245257msgid "Load More Button Selector"
    246258msgstr ""
    247259
    248 #: admin/functions.php:335 admin/functions.php:509
     260#: admin/functions.php:3
    249261msgid "Load more button will be insert end of this selector"
    250262msgstr ""
    251263
    252 #: admin/functions.php:337 admin/functions.php:511
     264#: admin/functions.php:3
    253265msgid "Load More Items Selector"
    254266msgstr ""
    255267
    256 #: admin/functions.php:612 admin/functions.php:653 admin/functions.php:659
     268#: admin/functions.php:6
    257269msgid "No"
    258270msgstr ""
    259271
    260 #: admin/functions.php:687 admin/functions.php:707 admin/functions.php:728
     272#: admin/functions.php:
    261273msgid "Replace Data"
    262274msgstr ""
    263275
    264 #: admin/functions.php:768
     276#: admin/functions.php:7
    265277msgid "Save Changes"
    266278msgstr ""
    267279
    268 #: admin/functions.php:551
     280#: admin/functions.php:5
    269281msgid "Scroll to Load (Infinite Scroll)"
    270282msgstr ""
    271283
    272 #: admin/functions.php:447
     284#: admin/functions.php:4
    273285msgid "Select display property for load more items."
    274286msgstr ""
    275287
    276 #: admin/functions.php:429
     288#: admin/functions.php:4
    277289msgid "Select display type"
    278290msgstr ""
    279291
    280 #: admin/functions.php:338 admin/functions.php:512
     292#: admin/functions.php:3
    281293msgid ""
    282294"Selector for load more items. Example: <code>.parent_selector .items</code>"
    283295msgstr ""
    284296
    285 #: admin/functions.php:600
     297#: admin/functions.php:6
    286298msgid "Selector should be correct, otherwise ajax will fail to load contents"
    287299msgstr ""
    288300
    289 #: admin/functions.php:550
    290 msgid "Selector(s) Click"
    291 msgstr ""
    292 
    293 #: ajax-load-div.php:152
     301#: admin/functions.php:5
     302msgid "Selector(s) Click"
     303msgstr ""
     304
     305#: ajax-load-div.php:1
    294306msgid "Settings"
    295307msgstr ""
    296308
    297 #: admin/Menu.php:365
     309#: admin/Menu.php:3
    298310msgid "Show Your Love"
    299311msgstr ""
    300312
    301 #: admin/Menu.php:200
     313#: admin/Menu.php:20
    302314msgid "Show your Love"
    303315msgstr ""
    304316
    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
     318msgid "Submit A Ticket"
     319msgstr ""
     320
     321#: admin/functions.php:624
     322msgid ""
     323"The number of pixels from the bottom of the page to trigger the load more "
     324"event"
     325msgstr ""
     326
     327#: admin/Menu.php:246
    311328msgid ""
    312329"This options is for ajax based load like: Posts, Products, Custom Post Type, "
     
    314331msgstr ""
    315332
    316 #: admin/functions.php:577
     333#: admin/functions.php:5
    317334msgid "This selector will be trigger when the button clicked."
    318335msgstr ""
    319336
    320 #: admin/functions.php:644
     337#: admin/functions.php:618
     338msgid "Trigger Offset"
     339msgstr ""
     340
     341#: admin/functions.php:668
    321342msgid "Update Browser URL?"
    322343msgstr ""
    323344
    324 #: admin/functions.php:647
     345#: admin/functions.php:6
    325346msgid "Update Page Title?"
    326347msgstr ""
    327348
    328 #: admin/functions.php:805 admin/functions.php:932
     349#: admin/functions.php:8
    329350msgid "Upgrade to Pro"
    330351msgstr ""
    331352
    332 #: admin/Menu.php:194
     353#: admin/Menu.php:19
    333354msgid "View Support Forum"
    334355msgstr ""
    335356
    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
    343358msgid "Visible Items"
    344359msgstr ""
    345360
    346 #: admin/Menu.php:192
     361#: admin/Menu.php:19
    347362msgid ""
    348363"We are ready to give you the best support. If you facing any kind of "
     
    351366msgstr ""
    352367
    353 #: admin/Menu.php:142
     368#: admin/Menu.php:14
    354369msgid "Welcome"
    355370msgstr ""
    356371
    357 #: admin/Menu.php:159
     372#: admin/Menu.php:1
    358373msgid "Welcome to Load More Anything"
    359374msgstr ""
    360375
    361 #: admin/functions.php:621
     376#: admin/functions.php:6
    362377msgid "Wrapper Selector to hide"
    363378msgstr ""
    364379
    365 #: admin/Menu.php:371
     380#. %s: Number of the wrapper
     381#: admin/functions.php:336 admin/functions.php:511
     382#, php-format
     383msgid "Wrapper Title #%s"
     384msgstr ""
     385
     386#: admin/Menu.php:382
    366387msgid "Write a Review"
    367388msgstr ""
    368389
    369 #: admin/Menu.php:204
     390#: admin/Menu.php:20
    370391msgid "Write a Review Now"
    371392msgstr ""
    372393
    373 #: admin/functions.php:613 admin/functions.php:654 admin/functions.php:660
     394#: admin/functions.php:6
    374395msgid "Yes"
    375396msgstr ""
    376397
    377 #: admin/functions.php:964
     398#: admin/functions.php:9
    378399msgid "You can trigger custom functions from here."
    379400msgstr ""
Note: See TracChangeset for help on using the changeset viewer.