WordPress Infinite Scroll – Ajax Load More - Version 3.7.1

Version Description

  • October 3, 2018 = Minor point release that affects Preloaded and Search Engine Optimization add-on users only. This release fixes 2 critical bugs in Ajax Load More 3.7.

  • FIX - Fix for Preloaded add-on not parsing multiple Post Types (I'm sorry about that!).

  • FIX - Adding .alm-reveal div and css_classes to NO_SCRIPT render to keep styling and layouts consistent.

Download this release

Release Info

Developer dcooney
Plugin Icon 128x128 WordPress Infinite Scroll – Ajax Load More
Version 3.7.1
Comparing to
See all releases

Code changes from version 3.6.1 to 3.7.1

.babelrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "presets": ["es2015"]
3
- }
 
 
 
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 3.6
6
  Tested up to: 4.9.8
7
- Stable tag: 3.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -268,7 +268,7 @@ Ajax Load More passes the following PHP **[variables](https://connekthq.com/plug
268
 
269
  ### Plugin Links
270
  * [Official Website](https://connekthq.com/ajax-load-more/)
271
- * [Documetation](https://connekthq.com/plugins/ajax-load-more/docs/)
272
  * [Premium Add-ons](https://connekthq.com/plugins/ajax-load-more/add-ons/)
273
  * [Free Extensions](https://connekthq.com/plugins/ajax-load-more/extensions/)
274
  * [Github](https://github.com/dcooney/wordpress-ajax-load-more/)
@@ -369,6 +369,29 @@ How to install Ajax Load More.
369
 
370
  == Changelog ==
371
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
372
  = 3.6.1 - August 24, 2018 =
373
  * FIX - Fix for search parameter not being passed correctly to Ajax Load More.
374
  * FIX - Fixed PHP warning message being displayed with Call the Action add-on.
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 3.6
6
  Tested up to: 4.9.8
7
+ Stable tag: 3.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
268
 
269
  ### Plugin Links
270
  * [Official Website](https://connekthq.com/ajax-load-more/)
271
+ * [Documentation](https://connekthq.com/plugins/ajax-load-more/docs/)
272
  * [Premium Add-ons](https://connekthq.com/plugins/ajax-load-more/add-ons/)
273
  * [Free Extensions](https://connekthq.com/plugins/ajax-load-more/extensions/)
274
  * [Github](https://github.com/dcooney/wordpress-ajax-load-more/)
369
 
370
  == Changelog ==
371
 
372
+ = 3.7.1 - October 3, 2018 =
373
+ Minor point release that affects Preloaded and Search Engine Optimization add-on users only. This release fixes 2 critical bugs in Ajax Load More 3.7.
374
+
375
+ * FIX - Fix for Preloaded add-on not parsing multiple Post Types (I'm sorry about that!).
376
+ * FIX - Adding `.alm-reveal` div and `css_classes` to NO_SCRIPT render to keep styling and layouts consistent.
377
+
378
+
379
+ = 3.7 - September 19, 2018 =
380
+ * UPDATE NOTICE for Preloaded Addon Users - this ALM update moves preloaded posts into core .alm-listing container. This update was required for refactoring of core JS and HTML elements while making future enhancements easier to maintain.
381
+ * NEW - Added new `ALM_LOCALIZE` class that allows Ajax Load More variables and parameters to be written to the page and accessed as JavaScript variables. This will be expanded in the near future and used for our React and Vue examples :)
382
+ * NEW - Added <noscript /> support for SEO addon users that renders `WP_Query` results for SEO and users without JS enabled.
383
+ * UPDATE - Updated Ajax `WP_Query` to use new `ALM_QUERY_ARGS` class.
384
+ * FIX - Removed PHP warning messages caused by some Ajax Load More functions running in WP Admin.
385
+ * FIX - Fixed issue with offset and preloaded posts in Users addon, Comments addon and ACF extensions.
386
+ * FIX - Added a fix for `post__not_in` shortcode parameter not working with Sticky Posts.
387
+ * FIX - Fixed issue with fading in of Ajax elements when using SEO addon is active.
388
+ * FIX - Fixed issue search term filtering on default `search.php` template.
389
+ * UPDATE - Hiding Load More button if JavaScript is not enabled.
390
+ * UPDATE - Updated loading functionality of Preloaded and SEO addon when hitting a paged URL directly.
391
+ * UPDATE - Code refactoring of some PHP functions and Core ALM JS.
392
+ * UPDATE - Code clean up and organization.
393
+
394
+
395
  = 3.6.1 - August 24, 2018 =
396
  * FIX - Fix for search parameter not being passed correctly to Ajax Load More.
397
  * FIX - Fixed PHP warning message being displayed with Call the Action add-on.
admin/admin.php CHANGED
@@ -186,7 +186,6 @@ function alm_get_layout(){
186
  die('Error - unable to verify nonce, please try again.');
187
 
188
  if($type === 'default'){ // Default Layout
189
-
190
 
191
  $content = file_get_contents(ALM_PATH.'admin/includes/layout/'.$type.'.php');
192
 
186
  die('Error - unable to verify nonce, please try again.');
187
 
188
  if($type === 'default'){ // Default Layout
 
189
 
190
  $content = file_get_contents(ALM_PATH.'admin/includes/layout/'.$type.'.php');
191
 
admin/dist/css/admin.css CHANGED
@@ -518,13 +518,18 @@ disabled look for disabled choices in the results dropdown
518
  overflow: hidden;
519
  padding: 25px 25px 12.5px;
520
  background: #f7f7f7;
521
- border-bottom: 1px solid #e1e1e1; }
 
 
 
 
522
  .ajax-load-more .header-wrap h1 {
523
  padding: 0 0 0 58px;
524
  min-height: 48px;
525
  padding-top: 0;
526
  background: url("../../img/alm-logo-48x48.png") no-repeat 0 0;
527
- background: url("../../img/alm-logo-48x48.svg") no-repeat 0 0; }
 
528
  .ajax-load-more .header-wrap h1 em {
529
  display: block;
530
  position: relative;
@@ -569,34 +574,39 @@ disabled look for disabled choices in the results dropdown
569
  .alm-settings-feedback {
570
  position: fixed;
571
  bottom: 20px;
572
- right: 20px;
573
  width: auto;
574
  height: auto;
575
- background: #5cc583;
576
- color: #fff;
577
- padding: 15px 20px 15px 15px;
 
578
  line-height: 1;
579
  z-index: 9999;
580
  border-radius: 2px;
581
  opacity: 0;
582
  visibility: hidden;
583
- -webkit-transition: all 0.2s ease;
584
- transition: all 0.2s ease;
585
- -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
586
- box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); }
 
587
  .alm-settings-feedback.--saving {
588
- background-color: #e0bd5e;
589
  opacity: 1;
590
- visibility: visible; }
 
591
  .alm-settings-feedback.--saved {
592
  opacity: 1;
593
- visibility: visible; }
 
594
  .alm-settings-feedback.--error {
595
- background-color: #e03e3e;
596
  opacity: 1;
597
- visibility: visible; }
 
598
  .alm-settings-feedback i {
599
- opacity: 0.7;
600
  margin: 0 3px 0 0; }
601
 
602
  #alm_OptionsForm {
@@ -866,7 +876,7 @@ body.ajax-load-more_page_ajax-load-more-pro {
866
  display: flex;
867
  -ms-flex-wrap: nowrap;
868
  flex-wrap: nowrap;
869
- font-family: Consolas, Monaco, monospace;
870
  border-radius: 3px; }
871
  .ajax-load-more .file-location p, .ajax-load-more .file-location code {
872
  padding: 12px 16px;
@@ -1264,7 +1274,7 @@ a.layout-hover:hover img {
1264
  .ajax-load-more p.warning-callout strong {
1265
  display: inline-block;
1266
  font-weight: normal;
1267
- font-family: Consolas, monaco, monospace;
1268
  background-color: #edfbff;
1269
  color: #525c5f;
1270
  padding: 0 6px;
@@ -1634,7 +1644,8 @@ hr.indented {
1634
  .next-page-content,
1635
  .acf-options,
1636
  .masonry-options,
1637
- .progress-bar-options {
 
1638
  display: none; }
1639
 
1640
  .ajax-load-more .row .wrap {
@@ -2711,7 +2722,25 @@ span.cnkt-button.installed i,
2711
  padding: 0;
2712
  margin: 0 0 20px;
2713
  overflow: visible;
2714
- position: relative; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2715
 
2716
  .ajax-load-more .cnkt-sidebar .cta-inner {
2717
  padding: 20px;
@@ -3120,214 +3149,189 @@ span.cnkt-button.installed i,
3120
  * Cache
3121
  * @since 2.6.0
3122
  */
3123
- .generate-id {
3124
- margin: 10px 0 0 !important;
3125
- font-size: 12px !important; }
3126
-
3127
- .generate-cache-id i {
3128
- margin: 0 5px 0 0; }
3129
-
3130
- /* Live Search */
3131
- .ajax-load-more .alm-cache-search-wrap {
3132
- position: relative;
3133
- display: block;
3134
- margin: -5px 0 25px; }
3135
- .ajax-load-more .alm-cache-search-wrap input {
3136
- width: 100% !important;
3137
- margin: 0 !important;
3138
- padding: 12px;
3139
  display: block;
3140
- font-size: 16px; }
3141
- .ajax-load-more .alm-cache-search-wrap i {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3142
  position: absolute;
3143
- right: 11px;
3144
- top: 13px;
 
 
 
 
 
3145
  color: #ccc;
3146
- font-size: 20px;
3147
- z-index: 1; }
3148
-
3149
- /* Directory Listing */
3150
- .alm-dir-listing {
3151
- border: 1px solid #e1e1e1;
3152
- padding: 0;
3153
- margin: 20px 0 0; }
3154
- .alm-dir-listing.theme-repeaters {
3155
- padding: 15px;
3156
- margin: 0; }
3157
- .alm-dir-listing.theme-repeaters ul {
3158
- border: none;
3159
- padding: 0;
3160
- margin: 0; }
3161
- .alm-dir-listing.theme-repeaters p.theme-title {
3162
- font-weight: 600;
3163
- margin: 0 0 15px;
3164
- padding: 0 5px; }
3165
- .alm-dir-listing.theme-repeaters i {
3166
- color: #ccc;
3167
- font-size: 1.1em; }
3168
-
3169
- .alm-dir-listing.deleting {
3170
- opacity: 0.5;
3171
- background: #fff url("../../img/loader-unlimited.gif") no-repeat center center; }
3172
-
3173
- .alm-dir-listing .dir-title {
3174
- margin: 0 0 5px;
3175
- position: relative; }
3176
-
3177
- .ajax-load-more .alm-dir-listing h3.heading {
3178
- padding-left: 40px !important; }
3179
-
3180
- .ajax-load-more .alm-dir-listing h3.heading:after {
3181
- content: "\f07c"; }
3182
-
3183
- .ajax-load-more .alm-dir-listing h3.heading.open:after {
3184
- content: "\f07b"; }
3185
-
3186
- .alm-dir-listing .dir-title .delete {
3187
- position: absolute;
3188
- right: 8px;
3189
- top: 11px;
3190
- font-weight: 400;
3191
- font-size: 14px;
3192
- text-decoration: none;
3193
- padding: 5px 10px;
3194
- border: 1px solid #e1e1e1;
3195
- color: #ccc;
3196
- border-radius: 2px; }
3197
-
3198
- .alm-dir-listing:hover .dir-title .delete {
3199
- border-color: #e1e1e1;
3200
- background-color: #fff;
3201
- color: #666; }
3202
-
3203
- .alm-dir-listing .dir-title .delete:hover {
3204
- background-color: #c94141;
3205
- border-color: #c94141;
3206
- color: #fff;
3207
- -webkit-box-shadow: 0 0 3px #ccc;
3208
- box-shadow: 0 0 3px #ccc; }
3209
-
3210
- .alm-dir-listing .dir-title .delete:active {
3211
- -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
3212
- box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2); }
3213
-
3214
- .alm-dir-listing ul {
3215
- padding: 10px;
3216
- margin: 0;
3217
- border: 1px solid #efefef; }
3218
-
3219
- .alm-dir-listing ul li {
3220
- margin: 0 -2px;
3221
- padding: 7px 0 7px 40px;
3222
- display: inline-block;
3223
- vertical-align: top;
3224
- overflow: hidden;
3225
- width: 47%;
3226
- font-size: 14px;
3227
- background: transparent url(../../img/directory-list.gif) no-repeat left center; }
3228
-
3229
- .alm-dir-listing.theme-repeaters ul li {
3230
- display: block;
3231
- width: 100%;
3232
- padding-top: 12px; }
3233
-
3234
- .alm-dir-listing.theme-repeaters ul li label {
3235
- display: block;
3236
- width: 100%; }
3237
-
3238
- .alm-dir-listing ul li:last-child,
3239
- .alm-dir-listing ul li:nth-last-child(2) {
3240
- background-image: url(../../img/directory-list-btm.gif); }
3241
-
3242
- .alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
3243
- background: transparent url(../../img/directory-list.gif) no-repeat left center; }
3244
-
3245
- .alm-dir-listing ul li a {
3246
- text-decoration: none; }
3247
-
3248
- .alm-dir-listing li i {
3249
- color: #999;
3250
- padding: 0 5px 0 0; }
3251
-
3252
- .cache-page-title {
3253
- font-size: 14px;
3254
- display: block;
3255
- width: 100%;
3256
- padding: 0 0 10px 12px;
3257
- font-weight: 600; }
3258
-
3259
- .cache-page-wrap {
3260
- padding: 0 15px 15px; }
3261
-
3262
- .alm-dir-listing ul.cache-details {
3263
- display: block;
3264
- padding: 6px 10px 12px;
3265
- margin: 0;
3266
- border: none; }
3267
-
3268
- .alm-dir-listing ul.cache-details li {
3269
- display: block;
3270
- width: 100%;
3271
- background: none;
3272
- padding: 6px 4px 6px;
3273
- color: #333; }
3274
-
3275
- .alm-dir-listing ul.cache-details li i {
3276
- color: #ccc;
3277
- font-size: 18px;
3278
- position: relative;
3279
- top: 1px; }
3280
-
3281
- .dir-empty,
3282
- .cache-cleared {
3283
- background-color: #fefeed;
3284
- border: 1px solid #efefef;
3285
- padding: 10px;
3286
- display: block;
3287
- color: #222; }
3288
-
3289
- .cache-cleared {
3290
- margin: 0 0 20px;
3291
- background-color: #e0f5ff;
3292
- border-color: #bad0da;
3293
- color: #666; }
3294
- .cache-cleared i {
3295
- color: #111;
3296
- margin: 0 5px 0 0; }
3297
- .cache-cleared .remove {
3298
- float: right;
3299
- font-size: 12px;
3300
- font-weight: 600; }
3301
-
3302
- #alm-cache.ajax-load-more .cnkt-sidebar .item {
3303
- padding: 20px;
3304
- display: block; }
3305
-
3306
- p.cache-stats {
3307
- min-height: 38px;
3308
- line-height: 37px;
3309
- display: block;
3310
- padding: 0;
3311
- margin: 0; }
3312
- p.cache-stats span {
3313
- display: inline-block;
3314
- width: 38px;
3315
- height: 38px;
3316
- line-height: 36px;
3317
- text-align: center;
3318
- margin: 0 9px 0 0;
3319
- font-weight: 700;
3320
- font-size: 15px;
3321
- border-radius: 2px;
3322
- background: #a4a5e2;
3323
- background: -webkit-gradient(linear, left top, left bottom, from(#a4a5e2), color-stop(50%, #9ea0d9), color-stop(51%, #8d8fce), to(#a4a5e2));
3324
- background: linear-gradient(to bottom, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
3325
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
3326
- border: 1px solid #8586be;
3327
- -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
3328
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
3329
  color: #fff;
3330
- text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3331
 
3332
  /*
3333
  * Error Handling
518
  overflow: hidden;
519
  padding: 25px 25px 12.5px;
520
  background: #f7f7f7;
521
+ border-bottom: 1px solid #e1e1e1;
522
+ position: relative;
523
+ z-index: 1;
524
+ -webkit-box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.045);
525
+ box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.045); }
526
  .ajax-load-more .header-wrap h1 {
527
  padding: 0 0 0 58px;
528
  min-height: 48px;
529
  padding-top: 0;
530
  background: url("../../img/alm-logo-48x48.png") no-repeat 0 0;
531
+ background: url("../../img/alm-logo-48x48.svg") no-repeat 0 0;
532
+ font-size: 22px; }
533
  .ajax-load-more .header-wrap h1 em {
534
  display: block;
535
  position: relative;
574
  .alm-settings-feedback {
575
  position: fixed;
576
  bottom: 20px;
577
+ right: 25px;
578
  width: auto;
579
  height: auto;
580
+ background: #fff;
581
+ border-left: 5px solid #5cc583;
582
+ color: #444;
583
+ padding: 25px 30px 25px 25px;
584
  line-height: 1;
585
  z-index: 9999;
586
  border-radius: 2px;
587
  opacity: 0;
588
  visibility: hidden;
589
+ -webkit-transition: all 0.2s ease-in-out;
590
+ transition: all 0.2s ease-in-out;
591
+ -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
592
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
593
+ font-size: 13px; }
594
  .alm-settings-feedback.--saving {
595
+ border-color: #e0bd5e;
596
  opacity: 1;
597
+ visibility: visible;
598
+ bottom: 25px; }
599
  .alm-settings-feedback.--saved {
600
  opacity: 1;
601
+ visibility: visible;
602
+ bottom: 25px; }
603
  .alm-settings-feedback.--error {
604
+ border-color: #e03e3e;
605
  opacity: 1;
606
+ visibility: visible;
607
+ bottom: 25px; }
608
  .alm-settings-feedback i {
609
+ opacity: 0.6;
610
  margin: 0 3px 0 0; }
611
 
612
  #alm_OptionsForm {
876
  display: flex;
877
  -ms-flex-wrap: nowrap;
878
  flex-wrap: nowrap;
879
+ font-family: Consolas,monaco,monospace;
880
  border-radius: 3px; }
881
  .ajax-load-more .file-location p, .ajax-load-more .file-location code {
882
  padding: 12px 16px;
1274
  .ajax-load-more p.warning-callout strong {
1275
  display: inline-block;
1276
  font-weight: normal;
1277
+ font-family: Consolas,monaco,monospace;
1278
  background-color: #edfbff;
1279
  color: #525c5f;
1280
  padding: 0 6px;
1644
  .next-page-content,
1645
  .acf-options,
1646
  .masonry-options,
1647
+ .progress-bar-options,
1648
+ .hide-section {
1649
  display: none; }
1650
 
1651
  .ajax-load-more .row .wrap {
2722
  padding: 0;
2723
  margin: 0 0 20px;
2724
  overflow: visible;
2725
+ position: relative;
2726
+ -webkit-box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.045);
2727
+ box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.045); }
2728
+ .ajax-load-more .cnkt-sidebar .cta .alm-file-location {
2729
+ padding-top: 15px;
2730
+ margin-top: 15px;
2731
+ border-top: 1px solid #efefef; }
2732
+ .ajax-load-more .cnkt-sidebar .cta .alm-file-location input {
2733
+ font-size: 12px;
2734
+ font-family: Consolas, monaco, monospace;
2735
+ background: #f7f7f7;
2736
+ border: 1px solid #e1e1e1;
2737
+ display: block;
2738
+ width: 100%;
2739
+ padding: 8px;
2740
+ margin: 0;
2741
+ color: #777;
2742
+ -webkit-box-shadow: none !important;
2743
+ box-shadow: none !important; }
2744
 
2745
  .ajax-load-more .cnkt-sidebar .cta-inner {
2746
  padding: 20px;
3149
  * Cache
3150
  * @since 2.6.0
3151
  */
3152
+ .alm-cache {
3153
+ /* Live Search */
3154
+ /* Directory Listing */ }
3155
+ .alm-cache .generate-id {
3156
+ margin: 10px 0 0 !important;
3157
+ font-size: 12px !important; }
3158
+ .alm-cache .generate-cache-id i {
3159
+ margin: 0 5px 0 0; }
3160
+ .alm-cache .row:first-of-type {
3161
+ margin-top: 0 !important; }
3162
+ .alm-cache .alm-cache-search-wrap {
3163
+ position: relative;
 
 
 
 
3164
  display: block;
3165
+ margin: 0 0 10px; }
3166
+ .alm-cache .alm-cache-search-wrap input {
3167
+ width: 100% !important;
3168
+ margin: 0 !important;
3169
+ padding: 12px;
3170
+ display: block;
3171
+ font-size: 16px; }
3172
+ .alm-cache .alm-cache-search-wrap i {
3173
+ position: absolute;
3174
+ right: 11px;
3175
+ top: 13px;
3176
+ color: #ccc;
3177
+ font-size: 20px;
3178
+ z-index: 1; }
3179
+ .alm-cache .alm-dir-listing {
3180
+ border: 1px solid #e1e1e1;
3181
+ padding: 0;
3182
+ margin: 10px 0 0; }
3183
+ .alm-cache .alm-dir-listing.theme-repeaters {
3184
+ padding: 15px;
3185
+ margin: 0; }
3186
+ .alm-cache .alm-dir-listing.theme-repeaters ul {
3187
+ border: none;
3188
+ padding: 0;
3189
+ margin: 0; }
3190
+ .alm-cache .alm-dir-listing.theme-repeaters p.theme-title {
3191
+ font-weight: 600;
3192
+ margin: 0 0 15px;
3193
+ padding: 0 5px; }
3194
+ .alm-cache .alm-dir-listing.theme-repeaters i {
3195
+ color: #ccc;
3196
+ font-size: 1.1em; }
3197
+ .alm-cache .alm-dir-listing.deleting {
3198
+ opacity: 0.5;
3199
+ background: #fff url("../../img/loader-unlimited.gif") no-repeat center center; }
3200
+ .alm-cache .alm-dir-listing .dir-title {
3201
+ margin: 0 0 5px;
3202
+ position: relative; }
3203
+ .alm-cache .ajax-load-more .alm-dir-listing h3.heading {
3204
+ padding-left: 40px !important; }
3205
+ .alm-cache .ajax-load-more .alm-dir-listing h3.heading:after {
3206
+ content: "\f07c"; }
3207
+ .alm-cache .ajax-load-more .alm-dir-listing h3.heading.open:after {
3208
+ content: "\f07b"; }
3209
+ .alm-cache .alm-dir-listing .dir-title .delete {
3210
  position: absolute;
3211
+ right: 8px;
3212
+ top: 11px;
3213
+ font-weight: 400;
3214
+ font-size: 14px;
3215
+ text-decoration: none;
3216
+ padding: 5px 10px;
3217
+ border: 1px solid #e1e1e1;
3218
  color: #ccc;
3219
+ border-radius: 2px; }
3220
+ .alm-cache .alm-dir-listing:hover .dir-title .delete {
3221
+ border-color: #e1e1e1;
3222
+ background-color: #fff;
3223
+ color: #666; }
3224
+ .alm-cache .alm-dir-listing .dir-title .delete:hover {
3225
+ background-color: #c94141;
3226
+ border-color: #c94141;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3227
  color: #fff;
3228
+ -webkit-box-shadow: 0 0 3px #ccc;
3229
+ box-shadow: 0 0 3px #ccc; }
3230
+ .alm-cache .alm-dir-listing .dir-title .delete:active {
3231
+ -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
3232
+ box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2); }
3233
+ .alm-cache .alm-dir-listing ul {
3234
+ padding: 20px 0 0;
3235
+ margin: 10px 0 0;
3236
+ border-top: 1px solid #efefef; }
3237
+ .alm-cache .alm-dir-listing ul li {
3238
+ margin: 0 -2px;
3239
+ padding: 7px 0 7px 40px;
3240
+ display: inline-block;
3241
+ vertical-align: top;
3242
+ overflow: hidden;
3243
+ width: 47%;
3244
+ font-size: 14px;
3245
+ background: transparent url(../../img/directory-list.gif) no-repeat left center; }
3246
+ .alm-cache .alm-dir-listing.theme-repeaters ul li {
3247
+ display: block;
3248
+ width: 100%;
3249
+ padding-top: 12px; }
3250
+ .alm-cache .alm-dir-listing.theme-repeaters ul li label {
3251
+ display: block;
3252
+ width: 100%; }
3253
+ .alm-cache .alm-dir-listing ul li:last-child,
3254
+ .alm-cache .alm-dir-listing ul li:nth-last-child(2) {
3255
+ background-image: url(../../img/directory-list-btm.gif); }
3256
+ .alm-cache .alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
3257
+ background: transparent url(../../img/directory-list.gif) no-repeat left center; }
3258
+ .alm-cache .alm-dir-listing ul li a {
3259
+ text-decoration: none; }
3260
+ .alm-cache .alm-dir-listing li i {
3261
+ color: #999;
3262
+ padding: 0 5px 0 0; }
3263
+ .alm-cache .cache-page-title {
3264
+ font-size: 14px;
3265
+ display: block;
3266
+ width: 100%;
3267
+ padding: 0 7px 10px;
3268
+ font-weight: 600; }
3269
+ .alm-cache .cache-page-wrap {
3270
+ padding: 0 10px 15px; }
3271
+ .alm-cache .alm-dir-listing ul.cache-details {
3272
+ display: block;
3273
+ padding: 10px 10px;
3274
+ margin: 0;
3275
+ border: none; }
3276
+ .alm-cache .alm-dir-listing ul.cache-details li {
3277
+ display: block;
3278
+ width: 100%;
3279
+ background: none;
3280
+ padding: 6px 4px 6px;
3281
+ color: #333; }
3282
+ .alm-cache .alm-dir-listing ul.cache-details li i {
3283
+ color: #ccc;
3284
+ font-size: 18px;
3285
+ position: relative;
3286
+ top: 1px; }
3287
+ .alm-cache .dir-empty,
3288
+ .alm-cache .cache-cleared {
3289
+ background-color: #ffffe8;
3290
+ border: 1px solid #e4e4c8;
3291
+ padding: 20px;
3292
+ display: block;
3293
+ color: #222;
3294
+ text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2); }
3295
+ .alm-cache .cache-cleared {
3296
+ margin: 0 0 20px;
3297
+ background-color: #e0f5ff;
3298
+ border-color: #bad0da;
3299
+ color: #666; }
3300
+ .alm-cache .cache-cleared i {
3301
+ color: #111;
3302
+ margin: 0 5px 0 0; }
3303
+ .alm-cache .cache-cleared .remove {
3304
+ float: right;
3305
+ font-size: 12px;
3306
+ font-weight: 600; }
3307
+ .alm-cache .cnkt-sidebar .item {
3308
+ padding: 20px;
3309
+ display: block; }
3310
+ .alm-cache p.cache-stats {
3311
+ min-height: 38px;
3312
+ line-height: 37px;
3313
+ display: block;
3314
+ padding: 0;
3315
+ margin: 0; }
3316
+ .alm-cache p.cache-stats span {
3317
+ display: inline-block;
3318
+ width: 38px;
3319
+ height: 38px;
3320
+ line-height: 36px;
3321
+ text-align: center;
3322
+ margin: 0 9px 0 0;
3323
+ font-weight: 700;
3324
+ font-size: 15px;
3325
+ border-radius: 2px;
3326
+ background: #a4a5e2;
3327
+ background: -webkit-gradient(linear, left top, left bottom, from(#a4a5e2), color-stop(50%, #9ea0d9), color-stop(51%, #8d8fce), to(#a4a5e2));
3328
+ background: linear-gradient(to bottom, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
3329
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
3330
+ border: 1px solid #8586be;
3331
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
3332
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
3333
+ color: #fff;
3334
+ text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1); }
3335
 
3336
  /*
3337
  * Error Handling
admin/includes/cta/sharing.php CHANGED
@@ -1,14 +1,25 @@
1
- <div class="cta share-alm">
2
- <h3><?php _e('Share Ajax Load More', 'ajax-load-more'); ?></h3>
3
- <div class="cta-inner">
4
- <p><?php _e('Help spread the word by sharing Ajax Load More on Twitter and Facebook.', 'ajax-load-more'); ?></p>
5
- <ul class="share">
6
- <li class="twitter">
7
- <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
8
- </li>
9
- <li class="facebook">
10
- <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
11
- </li>
12
- </ul>
13
- </div>
14
- </div>
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $alm_share_notification = get_transient( 'alm_dismiss_sharing');
3
+ if(!isset($alm_share_notification) || empty($alm_share_notification)){
4
+ // If transient has not been set - display this notice.
5
+ ?>
6
+ <div class="group alm-notification alm-notification--blue">
7
+ <h2><span>👋</span>Thank you for installing Ajax Load More!</h2>
8
+ <p class="opening">I hope you're finding the plugin easy to use and a nice feature addition to your website.</p>
9
+ <p>If so, would you consider helping <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> widen the reach of Ajax Load More by sharing with your networks and/or leaving a review.</p>
10
+ <ul class="share">
11
+ <li class="twitter">
12
+ <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for %23WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
13
+ </li>
14
+ <li class="facebook">
15
+ <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
16
+ </li>
17
+ <li class="review">
18
+ <a target="blank" title="Leave a Review" href="//wordpress.org/support/plugin/ajax-load-more/reviews/" class="share-review"><i class="fa fa-pencil"></i> Leave Review</a>
19
+ </li>
20
+ </ul>
21
+ <div class="clear"></div>
22
+ <a href="javascript: void(0);" class="dismiss alm-notification--dismiss" id="alm_dismiss_sharing" title="<?php _e('Don\'t show me this again!', 'ajax-load-more');?>">&times;</a>
23
+
24
+ </div>
25
+ <?php } ?>
admin/includes/cta/writeable.php CHANGED
@@ -18,8 +18,8 @@
18
  }
19
  ?>
20
  </div>
21
- <p style="padding-top: 10px; margin: 0;">
22
- <input type="text" value="<?php echo $path; ?>" style="font-family: 'Consolas'; opacity: 0.8; width: 100%; font-size: 12px;" readonly="readonly">
23
- </p>
24
  </div>
25
  </div>
18
  }
19
  ?>
20
  </div>
21
+ <div class="alm-file-location">
22
+ <input type="text" value="<?php echo $path; ?>" readonly="readonly">
23
+ </div>
24
  </div>
25
  </div>
admin/src/scss/_variables.scss CHANGED
@@ -3,6 +3,8 @@ $padding: 15px;
3
  $grey: #555;
4
  $green: #63ccb2;
5
  $green_hover: #57bda4;
 
 
6
 
7
  $small: 480px;
8
 
3
  $grey: #555;
4
  $green: #63ccb2;
5
  $green_hover: #57bda4;
6
+ $yellow: #ffffe8;
7
+ $yellow_dark: #e4e4c8;
8
 
9
  $small: 480px;
10
 
admin/src/scss/admin.scss CHANGED
@@ -166,6 +166,8 @@ body.ajax-load-more_page_ajax-load-more-pro{
166
  }
167
  }
168
  }
 
 
169
  // File location on Theme Repeaters
170
  .ajax-load-more .file-location{
171
  border: 1px solid #e1e1e1;
@@ -175,7 +177,7 @@ body.ajax-load-more_page_ajax-load-more-pro{
175
  line-height: 1;
176
  display: flex;
177
  flex-wrap: nowrap;
178
- font-family: Consolas, Monaco, monospace;
179
  border-radius: 3px;
180
  p, code {
181
  padding: 12px 16px;
@@ -600,7 +602,7 @@ a.layout-hover{
600
  .ajax-load-more p.warning-callout strong{
601
  display: inline-block;
602
  font-weight: normal;
603
- font-family: Consolas, monaco, monospace;
604
  background-color: #edfbff;
605
  color:#525c5f;
606
  padding: 0 6px;
@@ -1024,7 +1026,8 @@ hr.indented{ // Indented as fake padding in shortcode builder
1024
  .next-page-content,
1025
  .acf-options,
1026
  .masonry-options,
1027
- .progress-bar-options{
 
1028
  display: none;
1029
  }
1030
 
@@ -2178,6 +2181,26 @@ table.highlight{
2178
  margin: 0 0 20px;
2179
  overflow: visible;
2180
  position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2181
  }
2182
  .ajax-load-more .cnkt-sidebar .cta-inner{
2183
  padding: 20px;
@@ -2602,244 +2625,252 @@ table.highlight{
2602
  * @since 2.6.0
2603
  */
2604
 
2605
-
2606
- .generate-id{
2607
- margin: 10px 0 0 !important;
2608
- font-size: 12px !important;
2609
- }
2610
- .generate-cache-id i{
2611
- margin: 0 5px 0 0;
2612
- }
2613
-
2614
- /* Live Search */
2615
-
2616
- .ajax-load-more .alm-cache-search-wrap{
2617
- position: relative;
2618
- display: block;
2619
- margin: -5px 0 25px;
2620
- input{
2621
- width: 100% !important;
2622
- margin: 0 !important;
2623
- padding: 12px;
2624
- display: block;
2625
- font-size: 16px;
2626
- }
2627
- i{
2628
- position: absolute;
2629
- right: 11px;
2630
- top: 13px;
2631
- color: #ccc;
2632
- font-size: 20px;
2633
- z-index: 1;
2634
- }
2635
- }
2636
-
2637
- /* Directory Listing */
2638
-
2639
- .alm-dir-listing{
2640
- border: 1px solid #e1e1e1;
2641
- padding: 0;
2642
- margin: 20px 0 0;
2643
- &.theme-repeaters{
2644
- padding: 15px;
2645
- margin: 0;
2646
- ul{
2647
- border: none;
2648
- padding: 0;
2649
- margin: 0;
2650
- }
2651
- p.theme-title{
2652
- font-weight: 600;
2653
- margin: 0 0 15px;
2654
- padding: 0 5px;
2655
- }
2656
- i{
2657
- color: #ccc;
2658
- font-size: 1.1em;
2659
- }
2660
- }
2661
- }
2662
-
2663
- .alm-dir-listing.deleting{
2664
- opacity: 0.5;
2665
- background: #fff url("../../img/loader-unlimited.gif") no-repeat center center;
2666
- }
2667
-
2668
- .alm-dir-listing .dir-title{
2669
- margin: 0 0 5px;
2670
- position: relative;
2671
- }
2672
- .ajax-load-more .alm-dir-listing h3.heading{
2673
- padding-left: 40px !important;
2674
- }
2675
- .ajax-load-more .alm-dir-listing h3.heading:after {
2676
- content: "\f07c";
2677
- }
2678
- .ajax-load-more .alm-dir-listing h3.heading.open:after {
2679
- content: "\f07b";
2680
- }
2681
- .alm-dir-listing .dir-title .delete{
2682
- position: absolute;
2683
- right:8px;
2684
- top:11px;
2685
- font-weight: 400;
2686
- font-size: 14px;
2687
- text-decoration: none;
2688
- padding: 5px 10px;
2689
- border: 1px solid #e1e1e1;
2690
- color: #ccc;
2691
- -webkit-border-radius: 2px;
2692
- -moz-border-radius: 2px;
2693
- border-radius: 2px;
2694
- }
2695
- .alm-dir-listing:hover .dir-title .delete{
2696
- border-color: #e1e1e1;
2697
- background-color: #fff;
2698
- color: #666;
2699
- }
2700
- .alm-dir-listing .dir-title .delete:hover{
2701
- background-color: #c94141;
2702
- border-color: #c94141;
2703
- color: #fff;
2704
- -webkit-box-shadow: 0 0 3px #ccc;
2705
- -moz-box-shadow: 0 0 3px #ccc;
2706
- box-shadow: 0 0 3px #ccc;
2707
- }
2708
- .alm-dir-listing .dir-title .delete:active{
2709
- -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2710
- -moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2711
- box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2712
- }
2713
- .alm-dir-listing ul{
2714
- padding: 10px;
2715
- margin: 0;
2716
- border: 1px solid #efefef;
2717
- }
2718
- .alm-dir-listing ul li{
2719
- margin: 0 -2px;
2720
- padding: 7px 0 7px 40px;
2721
- display: inline-block;
2722
- vertical-align: top;
2723
- overflow: hidden;
2724
- width: 47%;
2725
- font-size: 14px;
2726
- background: transparent url(../../img/directory-list.gif) no-repeat left center;
2727
- }
2728
- .alm-dir-listing.theme-repeaters ul li{
2729
- display: block;
2730
- width: 100%;
2731
- padding-top: 12px;
2732
- }
2733
- .alm-dir-listing.theme-repeaters ul li label{
2734
- display: block;
2735
- width: 100%;
2736
- }
2737
-
2738
- .alm-dir-listing ul li:last-child,
2739
- .alm-dir-listing ul li:nth-last-child(2){
2740
- background-image: url(../../img/directory-list-btm.gif);
2741
- }
2742
- .alm-dir-listing.theme-repeaters ul li:nth-last-child(2){
2743
- background: transparent url(../../img/directory-list.gif) no-repeat left center;
2744
- }
2745
- .alm-dir-listing ul li a{
2746
- text-decoration: none;
2747
- }
2748
- .alm-dir-listing li i{
2749
- color: #999;
2750
- padding: 0 5px 0 0;
2751
- }
2752
-
2753
- .cache-page-title{
2754
- font-size: 14px;
2755
- display: block;
2756
- width: 100%;
2757
- padding: 0 0 10px 12px;
2758
- font-weight: 600;
2759
- }
2760
-
2761
- .cache-page-wrap{
2762
- padding: 0 15px 15px;
2763
- }
2764
-
2765
- .alm-dir-listing ul.cache-details{
2766
  display: block;
2767
- padding: 6px 10px 12px;
2768
- margin: 0;
2769
- border: none;
2770
- }
2771
- .alm-dir-listing ul.cache-details li{
2772
- display: block;
2773
- width: 100%;
2774
- background: none;
2775
- padding: 6px 4px 6px;
2776
- color: #333;
2777
  }
2778
- .alm-dir-listing ul.cache-details li i{
2779
- color: #ccc;
2780
- font-size: 18px;
2781
- position: relative;
2782
- top:1px;
2783
- }
2784
-
2785
- .dir-empty,
2786
- .cache-cleared{
2787
- background-color: #fefeed;
2788
- border: 1px solid #efefef;
2789
- padding: 10px;
2790
- display: block;
2791
- color: #222;
2792
- }
2793
- .cache-cleared{
2794
- margin: 0 0 20px;
2795
- background-color: #e0f5ff;
2796
- border-color: #bad0da;
2797
- color: #666;
2798
- i{
2799
- color: #111;
2800
- margin: 0 5px 0 0;
2801
- }
2802
- .remove{
2803
- float: right;
2804
- font-size: 12px;
2805
- font-weight: 600;
2806
- }
2807
- }
2808
 
2809
- #alm-cache.ajax-load-more .cnkt-sidebar .item{
2810
- padding: 20px;
2811
- display: block;
2812
- }
2813
- p.cache-stats{
2814
- min-height: 38px;
2815
- line-height: 37px;
2816
- display: block;
2817
- padding: 0;
2818
- margin: 0;
2819
- span{
2820
- display: inline-block;
2821
- width: 38px;
2822
- height: 38px;
2823
- line-height: 36px;
2824
- text-align: center;
2825
- margin: 0 9px 0 0;
2826
- font-weight: 700;
2827
- font-size: 15px;
2828
- -webkit-border-radius: 2px;
2829
- -moz-border-radius:2px;
2830
- border-radius: 2px;
2831
- background: #a4a5e2;
2832
- background: -moz-linear-gradient(top, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
2833
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a4a5e2), color-stop(50%,#9ea0d9), color-stop(51%,#8d8fce), color-stop(100%,#a4a5e2));
2834
- background: -webkit-linear-gradient(top, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2835
- background: -o-linear-gradient(top, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2836
- background: -ms-linear-gradient(top, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2837
- background: linear-gradient(to bottom, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2838
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
2839
- border: 1px solid #8586be;
2840
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
2841
- color: #fff;
2842
- text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2843
  }
2844
  }
2845
 
166
  }
167
  }
168
  }
169
+
170
+
171
  // File location on Theme Repeaters
172
  .ajax-load-more .file-location{
173
  border: 1px solid #e1e1e1;
177
  line-height: 1;
178
  display: flex;
179
  flex-wrap: nowrap;
180
+ font-family: Consolas,monaco,monospace;
181
  border-radius: 3px;
182
  p, code {
183
  padding: 12px 16px;
602
  .ajax-load-more p.warning-callout strong{
603
  display: inline-block;
604
  font-weight: normal;
605
+ font-family: Consolas,monaco,monospace;
606
  background-color: #edfbff;
607
  color:#525c5f;
608
  padding: 0 6px;
1026
  .next-page-content,
1027
  .acf-options,
1028
  .masonry-options,
1029
+ .progress-bar-options,
1030
+ .hide-section{
1031
  display: none;
1032
  }
1033
 
2181
  margin: 0 0 20px;
2182
  overflow: visible;
2183
  position: relative;
2184
+ box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.045);
2185
+
2186
+ .alm-file-location{
2187
+ padding-top: 15px;
2188
+ margin-top: 15px;
2189
+ border-top: 1px solid #efefef;
2190
+ input{
2191
+ font-size: 12px;
2192
+ font-family: Consolas, monaco, monospace;
2193
+ background: #f7f7f7;
2194
+ border: 1px solid #e1e1e1;
2195
+ display: block;
2196
+ width: 100%;
2197
+ padding: 8px;
2198
+ margin: 0;
2199
+ color: #777;
2200
+ box-shadow: none !important;
2201
+ }
2202
+ }
2203
+
2204
  }
2205
  .ajax-load-more .cnkt-sidebar .cta-inner{
2206
  padding: 20px;
2625
  * @since 2.6.0
2626
  */
2627
 
2628
+ .alm-cache{
2629
+
2630
+ .generate-id{
2631
+ margin: 10px 0 0 !important;
2632
+ font-size: 12px !important;
2633
+ }
2634
+ .generate-cache-id i{
2635
+ margin: 0 5px 0 0;
2636
+ }
2637
+
2638
+ .row{
2639
+ &:first-of-type{
2640
+ margin-top: 0 !important;
2641
+ }
2642
+ }
2643
+
2644
+ /* Live Search */
2645
+ .alm-cache-search-wrap{
2646
+ position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2647
  display: block;
2648
+ margin: 0 0 10px;
2649
+ input{
2650
+ width: 100% !important;
2651
+ margin: 0 !important;
2652
+ padding: 12px;
2653
+ display: block;
2654
+ font-size: 16px;
 
 
 
2655
  }
2656
+ i{
2657
+ position: absolute;
2658
+ right: 11px;
2659
+ top: 13px;
2660
+ color: #ccc;
2661
+ font-size: 20px;
2662
+ z-index: 1;
2663
+ }
2664
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2665
 
2666
+ /* Directory Listing */
2667
+
2668
+ .alm-dir-listing{
2669
+ border: 1px solid #e1e1e1;
2670
+ padding: 0;
2671
+ margin: 10px 0 0;
2672
+ &.theme-repeaters{
2673
+ padding: 15px;
2674
+ margin: 0;
2675
+ ul{
2676
+ border: none;
2677
+ padding: 0;
2678
+ margin: 0;
2679
+ }
2680
+ p.theme-title{
2681
+ font-weight: 600;
2682
+ margin: 0 0 15px;
2683
+ padding: 0 5px;
2684
+ }
2685
+ i{
2686
+ color: #ccc;
2687
+ font-size: 1.1em;
2688
+ }
2689
+ }
2690
+ }
2691
+
2692
+ .alm-dir-listing.deleting{
2693
+ opacity: 0.5;
2694
+ background: #fff url("../../img/loader-unlimited.gif") no-repeat center center;
2695
+ }
2696
+
2697
+ .alm-dir-listing .dir-title{
2698
+ margin: 0 0 5px;
2699
+ position: relative;
2700
+ }
2701
+ .ajax-load-more .alm-dir-listing h3.heading{
2702
+ padding-left: 40px !important;
2703
+ }
2704
+ .ajax-load-more .alm-dir-listing h3.heading:after {
2705
+ content: "\f07c";
2706
+ }
2707
+ .ajax-load-more .alm-dir-listing h3.heading.open:after {
2708
+ content: "\f07b";
2709
+ }
2710
+ .alm-dir-listing .dir-title .delete{
2711
+ position: absolute;
2712
+ right:8px;
2713
+ top:11px;
2714
+ font-weight: 400;
2715
+ font-size: 14px;
2716
+ text-decoration: none;
2717
+ padding: 5px 10px;
2718
+ border: 1px solid #e1e1e1;
2719
+ color: #ccc;
2720
+ -webkit-border-radius: 2px;
2721
+ -moz-border-radius: 2px;
2722
+ border-radius: 2px;
2723
+ }
2724
+ .alm-dir-listing:hover .dir-title .delete{
2725
+ border-color: #e1e1e1;
2726
+ background-color: #fff;
2727
+ color: #666;
2728
+ }
2729
+ .alm-dir-listing .dir-title .delete:hover{
2730
+ background-color: #c94141;
2731
+ border-color: #c94141;
2732
+ color: #fff;
2733
+ -webkit-box-shadow: 0 0 3px #ccc;
2734
+ -moz-box-shadow: 0 0 3px #ccc;
2735
+ box-shadow: 0 0 3px #ccc;
2736
+ }
2737
+ .alm-dir-listing .dir-title .delete:active{
2738
+ -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2739
+ -moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2740
+ box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2741
+ }
2742
+ .alm-dir-listing ul{
2743
+ padding: 20px 0 0;
2744
+ margin: 10px 0 0;
2745
+ border-top: 1px solid #efefef;
2746
+ }
2747
+ .alm-dir-listing ul li{
2748
+ margin: 0 -2px;
2749
+ padding: 7px 0 7px 40px;
2750
+ display: inline-block;
2751
+ vertical-align: top;
2752
+ overflow: hidden;
2753
+ width: 47%;
2754
+ font-size: 14px;
2755
+ background: transparent url(../../img/directory-list.gif) no-repeat left center;
2756
+ }
2757
+ .alm-dir-listing.theme-repeaters ul li{
2758
+ display: block;
2759
+ width: 100%;
2760
+ padding-top: 12px;
2761
+ }
2762
+ .alm-dir-listing.theme-repeaters ul li label{
2763
+ display: block;
2764
+ width: 100%;
2765
+ }
2766
+
2767
+ .alm-dir-listing ul li:last-child,
2768
+ .alm-dir-listing ul li:nth-last-child(2){
2769
+ background-image: url(../../img/directory-list-btm.gif);
2770
+ }
2771
+ .alm-dir-listing.theme-repeaters ul li:nth-last-child(2){
2772
+ background: transparent url(../../img/directory-list.gif) no-repeat left center;
2773
+ }
2774
+ .alm-dir-listing ul li a{
2775
+ text-decoration: none;
2776
+ }
2777
+ .alm-dir-listing li i{
2778
+ color: #999;
2779
+ padding: 0 5px 0 0;
2780
+ }
2781
+
2782
+ .cache-page-title{
2783
+ font-size: 14px;
2784
+ display: block;
2785
+ width: 100%;
2786
+ padding: 0 7px 10px;
2787
+ font-weight: 600;
2788
+ }
2789
+
2790
+ .cache-page-wrap{
2791
+ padding: 0 10px 15px;
2792
+ }
2793
+
2794
+ .alm-dir-listing ul.cache-details{
2795
+ display: block;
2796
+ padding: 10px 10px;
2797
+ margin: 0;
2798
+ border: none;
2799
+ }
2800
+ .alm-dir-listing ul.cache-details li{
2801
+ display: block;
2802
+ width: 100%;
2803
+ background: none;
2804
+ padding: 6px 4px 6px;
2805
+ color: #333;
2806
+ }
2807
+ .alm-dir-listing ul.cache-details li i{
2808
+ color: #ccc;
2809
+ font-size: 18px;
2810
+ position: relative;
2811
+ top:1px;
2812
+ }
2813
+
2814
+ .dir-empty,
2815
+ .cache-cleared{
2816
+ background-color: $yellow;
2817
+ border: 1px solid $yellow_dark;
2818
+ padding: 20px;
2819
+ display: block;
2820
+ color: #222;
2821
+ text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
2822
+ }
2823
+ .cache-cleared{
2824
+ margin: 0 0 20px;
2825
+ background-color: #e0f5ff;
2826
+ border-color: #bad0da;
2827
+ color: #666;
2828
+ i{
2829
+ color: #111;
2830
+ margin: 0 5px 0 0;
2831
+ }
2832
+ .remove{
2833
+ float: right;
2834
+ font-size: 12px;
2835
+ font-weight: 600;
2836
+ }
2837
+ }
2838
+
2839
+ .cnkt-sidebar .item{
2840
+ padding: 20px;
2841
+ display: block;
2842
+ }
2843
+ p.cache-stats{
2844
+ min-height: 38px;
2845
+ line-height: 37px;
2846
+ display: block;
2847
+ padding: 0;
2848
+ margin: 0;
2849
+ span{
2850
+ display: inline-block;
2851
+ width: 38px;
2852
+ height: 38px;
2853
+ line-height: 36px;
2854
+ text-align: center;
2855
+ margin: 0 9px 0 0;
2856
+ font-weight: 700;
2857
+ font-size: 15px;
2858
+ -webkit-border-radius: 2px;
2859
+ -moz-border-radius:2px;
2860
+ border-radius: 2px;
2861
+ background: #a4a5e2;
2862
+ background: -moz-linear-gradient(top, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
2863
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a4a5e2), color-stop(50%,#9ea0d9), color-stop(51%,#8d8fce), color-stop(100%,#a4a5e2));
2864
+ background: -webkit-linear-gradient(top, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2865
+ background: -o-linear-gradient(top, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2866
+ background: -ms-linear-gradient(top, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2867
+ background: linear-gradient(to bottom, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2868
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
2869
+ border: 1px solid #8586be;
2870
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
2871
+ color: #fff;
2872
+ text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
2873
+ }
2874
  }
2875
  }
2876
 
admin/src/scss/partials/_alm-settings-feedback.scss CHANGED
@@ -1,35 +1,40 @@
1
  .alm-settings-feedback{
2
  position: fixed;
3
  bottom: 20px;
4
- right: 20px;
5
  width: auto;
6
  height: auto;
7
- background: #5cc583;
8
- color: #fff;
9
- padding: 15px 20px 15px 15px;
 
10
  line-height: 1;
11
  z-index: 9999;
12
  border-radius: 2px;
13
  opacity: 0;
14
  visibility: hidden;
15
- transition: all 0.2s ease;
16
- box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
 
17
  &.--saving{
18
- background-color: #e0bd5e;
19
  opacity: 1;
20
  visibility: visible;
 
21
  }
22
  &.--saved{
23
  opacity: 1;
24
  visibility: visible;
 
25
  }
26
  &.--error{
27
- background-color: #e03e3e;
28
  opacity: 1;
29
  visibility: visible;
 
30
  }
31
  i{
32
- opacity: 0.7;
33
  margin: 0 3px 0 0;
34
  }
35
  }
1
  .alm-settings-feedback{
2
  position: fixed;
3
  bottom: 20px;
4
+ right: 25px;
5
  width: auto;
6
  height: auto;
7
+ background: #fff;
8
+ border-left: 5px solid #5cc583;
9
+ color: #444;
10
+ padding: 25px 30px 25px 25px;
11
  line-height: 1;
12
  z-index: 9999;
13
  border-radius: 2px;
14
  opacity: 0;
15
  visibility: hidden;
16
+ transition: all 0.2s ease-in-out;
17
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
18
+ font-size: 13px;
19
  &.--saving{
20
+ border-color: #e0bd5e;
21
  opacity: 1;
22
  visibility: visible;
23
+ bottom: 25px;
24
  }
25
  &.--saved{
26
  opacity: 1;
27
  visibility: visible;
28
+ bottom: 25px;
29
  }
30
  &.--error{
31
+ border-color: #e03e3e;
32
  opacity: 1;
33
  visibility: visible;
34
+ bottom: 25px;
35
  }
36
  i{
37
+ opacity: 0.6;
38
  margin: 0 3px 0 0;
39
  }
40
  }
admin/src/scss/partials/_header.scss CHANGED
@@ -3,12 +3,16 @@
3
  padding: $gutter $gutter $gutter/2;
4
  background: #f7f7f7;
5
  border-bottom: 1px solid #e1e1e1;
 
 
 
6
  h1{
7
  padding: 0 0 0 58px;
8
  min-height: 48px;
9
  padding-top: 0;
10
  background: url('../../img/alm-logo-48x48.png') no-repeat 0 0;
11
  background: url('../../img/alm-logo-48x48.svg') no-repeat 0 0;
 
12
  em{
13
  display: block;
14
  position: relative;
3
  padding: $gutter $gutter $gutter/2;
4
  background: #f7f7f7;
5
  border-bottom: 1px solid #e1e1e1;
6
+ position: relative;
7
+ z-index: 1;
8
+ box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.045);
9
  h1{
10
  padding: 0 0 0 58px;
11
  min-height: 48px;
12
  padding-top: 0;
13
  background: url('../../img/alm-logo-48x48.png') no-repeat 0 0;
14
  background: url('../../img/alm-logo-48x48.svg') no-repeat 0 0;
15
+ font-size: 22px;
16
  em{
17
  display: block;
18
  position: relative;
admin/views/settings.php CHANGED
@@ -12,35 +12,10 @@
12
 
13
  <div class="ajax-load-more-inner-wrapper">
14
 
15
- <div class="cnkt-main">
16
-
17
- <?php
18
- $alm_share_notification = get_transient( 'alm_dismiss_sharing');
19
- if(!isset($alm_share_notification) || empty($alm_share_notification)){
20
- // If transient has not been set - display this notice.
21
- ?>
22
- <div class="group alm-notification alm-notification--blue">
23
- <h2><span>👋</span>Thank you for installing Ajax Load More!</h2>
24
- <p class="opening">I hope you're finding the plugin easy to use and a nice feature addition to your website.</p>
25
- <p>If so, would you consider helping <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> widen the reach of Ajax Load More by sharing with your networks and/or leaving a review.</p>
26
- <ul class="share">
27
- <li class="twitter">
28
- <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for %23WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
29
- </li>
30
- <li class="facebook">
31
- <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
32
- </li>
33
- <li class="review">
34
- <a target="blank" title="Leave a Review" href="//wordpress.org/support/plugin/ajax-load-more/reviews/" class="share-review"><i class="fa fa-pencil"></i> Leave Review</a>
35
- </li>
36
- </ul>
37
- <div class="clear"></div>
38
- <a href="javascript: void(0);" class="dismiss alm-notification--dismiss" id="alm_dismiss_sharing" title="<?php _e('Don\'t show me this again!', 'ajax-load-more');?>">&times;</a>
39
-
40
- </div>
41
- <?php } ?>
42
-
43
-
44
  <?php
45
  if(has_action('alm_cache_settings') || has_action('alm_layouts_installed') || has_action('alm_prev_post_settings') || has_action('alm_paging_settings') || has_action('alm_seo_settings') || has_action('alm_theme_repeaters_settings')) {
46
  ?>
12
 
13
  <div class="ajax-load-more-inner-wrapper">
14
 
15
+ <div class="cnkt-main">
16
+
17
+ <?php // include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
18
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  <?php
20
  if(has_action('alm_cache_settings') || has_action('alm_layouts_installed') || has_action('alm_prev_post_settings') || has_action('alm_paging_settings') || has_action('alm_seo_settings') || has_action('alm_theme_repeaters_settings')) {
21
  ?>
ajax-load-more.php CHANGED
@@ -7,15 +7,14 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
- Version: 3.6.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
-
14
  */
15
 
16
 
17
- define('ALM_VERSION', '3.6.1');
18
- define('ALM_RELEASE', 'August 29, 2018');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
@@ -108,6 +107,8 @@ if( !class_exists('AjaxLoadMore') ):
108
  add_action( 'wp_ajax_nopriv_alm_query_total', array(&$this, 'alm_query_total') );
109
  add_action( 'wp_enqueue_scripts', array(&$this, 'alm_enqueue_scripts') );
110
  add_action( 'after_setup_theme', array(&$this, 'alm_image_sizes') );
 
 
111
  add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this, 'alm_action_links') );
112
  add_filter( 'plugin_row_meta', array(&$this, 'alm_plugin_meta_links'), 10, 2 );
113
  add_shortcode( 'ajax_load_more', array(&$this, 'alm_shortcode') );
@@ -118,6 +119,82 @@ if( !class_exists('AjaxLoadMore') ):
118
 
119
 
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  /*
122
  * alm_get_repeater_base_path
123
  * Get absolute path to repeater directory base
@@ -149,49 +226,13 @@ if( !class_exists('AjaxLoadMore') ):
149
 
150
  // Check again after creating it (permission checker)
151
  if( !is_dir($dir) ) {
152
- echo __('Error creating repeater template directory', 'ajax-load-more');
153
- echo ' - '. $dir;
154
  }
155
  }
156
  }
157
 
158
 
159
 
160
- /*
161
- * alm_define_constants
162
- * Define plugin constants
163
- *
164
- * @since 2.10.1
165
- */
166
-
167
- public function alm_define_constants(){
168
-
169
- define('ALM_PATH', plugin_dir_path(__FILE__));
170
- define('ALM_URL', plugins_url('', __FILE__));
171
- define('ALM_ADMIN_URL', plugins_url('admin/', __FILE__));
172
- define('ALM_NAME', '_ajax_load_more');
173
- define('ALM_TITLE', 'Ajax Load More');
174
- define('ALM_SLUG', 'ajax-load-more');
175
-
176
- if (!defined('ALM_CACHE_ITEM_NAME')) define('ALM_CACHE_ITEM_NAME', '4878');
177
- if (!defined('ALM_CTA_ITEM_NAME')) define('ALM_CTA_ITEM_NAME', '14456');
178
- if (!defined('ALM_COMMENTS_ITEM_NAME')) define('ALM_COMMENTS_ITEM_NAME', '12172');
179
- if (!defined('ALM_UNLIMITED_ITEM_NAME')) define('ALM_UNLIMITED_ITEM_NAME', '3118');
180
- if (!defined('ALM_FILTERS_ITEM_NAME')) define('ALM_FILTERS_ITEM_NAME', '35992');
181
- if (!defined('ALM_LAYOUTS_ITEM_NAME')) define('ALM_LAYOUTS_ITEM_NAME', '11398');
182
- if (!defined('ALM_NEXTPAGE_ITEM_NAME')) define('ALM_NEXTPAGE_ITEM_NAME', '24540');
183
- if (!defined('ALM_PAGING_ITEM_NAME')) define('ALM_PAGING_ITEM_NAME', '6898');
184
- if (!defined('ALM_PRELOADED_ITEM_NAME')) define('ALM_PRELOADED_ITEM_NAME', '4293');
185
- if (!defined('ALM_PREV_POST_ITEM_NAME')) define('ALM_PREV_POST_ITEM_NAME', '9686');
186
- if (!defined('ALM_RESTAPI_ITEM_NAME')) define('ALM_RESTAPI_ITEM_NAME', '17105'); // Deprecated
187
- if (!defined('ALM_SEO_ITEM_NAME')) define('ALM_SEO_ITEM_NAME', '3482');
188
- if (!defined('ALM_THEME_REPEATERS_ITEM_NAME')) define('ALM_THEME_REPEATERS_ITEM_NAME', '8860');
189
- if (!defined('ALM_USERS_ITEM_NAME')) define('ALM_USERS_ITEM_NAME', '32311');
190
- if (!defined('ALM_PRO_ITEM_NAME')) define('ALM_PRO_ITEM_NAME', '42166');
191
-
192
- }
193
-
194
-
195
  /*
196
  * alm_includes
197
  * Load these files before the theme loads
@@ -200,9 +241,11 @@ if( !class_exists('AjaxLoadMore') ):
200
  */
201
 
202
  public function alm_includes(){
203
- include_once( ALM_PATH . 'core/functions.php'); // Core Functions
204
- include_once( ALM_PATH . 'core/classes/class.alm-shortcode.php'); // Shortcode Class
205
- include_once( ALM_PATH . 'core/classes/class.alm-enqueue.php'); // Enqueue Class
 
 
206
 
207
  if( is_admin() ){
208
  include_once('admin/editor/editor.php');
@@ -214,16 +257,16 @@ if( !class_exists('AjaxLoadMore') ):
214
  }
215
  }
216
  }
217
-
218
-
219
-
220
  /*
221
  * alm_return_addons
222
  * Returns add-on data (admin/admin-functions.php)
223
  *
224
  * @since 2.0.0
225
  */
226
-
227
  public function alm_return_addons(){
228
  return alm_get_addons();
229
  }
@@ -300,7 +343,7 @@ if( !class_exists('AjaxLoadMore') ):
300
  $dependencies = apply_filters( 'alm_js_dependencies', array('jquery') );
301
 
302
 
303
- // Core ALM JS
304
  $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; // Use minified libraries if SCRIPT_DEBUG is turned off
305
  wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more'. $suffix .'.js', __FILE__ ), $dependencies, ALM_VERSION, true );
306
 
@@ -377,8 +420,6 @@ if( !class_exists('AjaxLoadMore') ):
377
 
378
  public function alm_query_posts() {
379
 
380
- $options = get_option( 'alm_settings' );
381
-
382
  // WPML fix for category/tag/taxonomy archives
383
  if ( (isset( $_GET['category'] ) && $_GET['category']) || (isset($_GET['taxonomy']) && $_GET['taxonomy']) ) {
384
  unset($_REQUEST['post_id']);
@@ -389,8 +430,11 @@ if( !class_exists('AjaxLoadMore') ):
389
  $slug = (isset($_GET['slug'])) ? $_GET['slug'] : '';
390
  $canonical_url = (isset($_GET['canonical_url'])) ? $_GET['canonical_url'] : $_SERVER['HTTP_REFERER'];
391
 
 
392
  $queryType = (isset($_GET['query_type'])) ? $_GET['query_type'] : 'standard'; // 'standard' or 'totalposts'; totalposts returns $alm_found_posts
393
 
 
 
394
  $cache_id = (isset($_GET['cache_id'])) ? $_GET['cache_id'] : '';
395
  $cache_logged_in = (isset($_GET['cache_logged_in'])) ? $_GET['cache_logged_in'] : false;
396
  $do_create_cache = true;
@@ -398,70 +442,18 @@ if( !class_exists('AjaxLoadMore') ):
398
  $do_create_cache = false;
399
  }
400
 
 
 
 
 
 
401
  $repeater = (isset($_GET['repeater'])) ? $_GET['repeater'] : 'default';
402
  $type = alm_get_repeater_type($repeater);
403
  $theme_repeater = (isset($_GET['theme_repeater'])) ? $_GET['theme_repeater'] : 'null';
404
 
 
 
405
  $postType = (isset($_GET['post_type'])) ? $_GET['post_type'] : 'post';
406
- $post_format = (isset($_GET['post_format'])) ? $_GET['post_format'] : '';
407
-
408
- $category = (isset($_GET['category'])) ? $_GET['category'] : '';
409
- $category__not_in = (isset($_GET['category__not_in'])) ? $_GET['category__not_in'] : '';
410
- $tag = (isset($_GET['tag'])) ? $_GET['tag'] : '';
411
- $tag__not_in = (isset($_GET['tag__not_in'])) ? $_GET['tag__not_in'] : '';
412
-
413
- // Taxonomy
414
- $taxonomy = (isset($_GET['taxonomy'])) ? $_GET['taxonomy'] : '';
415
- $taxonomy_terms = (isset($_GET['taxonomy_terms'])) ? $_GET['taxonomy_terms'] : '';
416
- $taxonomy_operator = (isset($_GET['taxonomy_operator'])) ? $_GET['taxonomy_operator'] : '';
417
- if(empty($taxonomy_operator)) $taxonomy_operator = 'IN';
418
- $taxonomy_relation = (isset($_GET['taxonomy_relation'])) ? $_GET['taxonomy_relation'] : 'AND';
419
- if($taxonomy_relation == '') $taxonomy_relation = 'AND';
420
-
421
- // Date
422
- $year = (isset($_GET['year'])) ? $_GET['year'] : '';
423
- $month = (isset($_GET['month'])) ? $_GET['month'] : '';
424
- $day = (isset($_GET['day'])) ? $_GET['day'] : '';
425
-
426
- // Custom Fields
427
- $meta_key = (isset($_GET['meta_key'])) ? $_GET['meta_key'] : '';
428
- $meta_value = (isset($_GET['meta_value'])) ? $_GET['meta_value'] : '';
429
- $meta_compare = (isset($_GET['meta_compare'])) ? $_GET['meta_compare'] : '';
430
- if($meta_compare == '') $meta_compare = 'IN';
431
- if($meta_compare === 'lessthan') $meta_compare = '<'; // do_shortcode fix (shortcode was rendering as HTML)
432
- if($meta_compare === 'lessthanequalto') $meta_compare = '<='; // do_shortcode fix (shortcode was rendering as HTML)
433
- $meta_relation = (isset($_GET['meta_relation'])) ? $_GET['meta_relation'] : '';
434
- if($meta_relation == '') $meta_relation = 'AND';
435
- $meta_type = (isset($_GET['meta_type'])) ? $_GET['meta_type'] : '';
436
- if($meta_type == '') $meta_type = 'CHAR';
437
-
438
- $s = (isset($_GET['search'])) ? sanitize_text_field($_GET['search']) : '';
439
- $custom_args = (isset($_GET['custom_args'])) ? $_GET['custom_args'] : '';
440
-
441
- // Author
442
- $author = (isset($_GET['author'])) ? $_GET['author'] : '';
443
-
444
- // Ordering
445
- $order = (isset($_GET['order'])) ? $_GET['order'] : 'DESC';
446
- $orderby = (isset($_GET['orderby'])) ? $_GET['orderby'] : 'date';
447
-
448
- // Sticky, Include, Exclude, Offset, Status
449
- $sticky = (isset($_GET['sticky_posts'])) ? $_GET['sticky_posts'] : '';
450
- $sticky = ($sticky === 'true') ? true : false;
451
- $post__in = (isset($_GET['post__in'])) ? $_GET['post__in'] : '';
452
- $post__not_in = (isset($_GET['post__not_in'])) ? $_GET['post__not_in'] : '';
453
- $exclude = (isset($_GET['exclude'])) ? $_GET['exclude'] : '';
454
- $offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
455
- $post_status = (isset($_GET['post_status'])) ? $_GET['post_status'] : '';
456
- if($post_status == '') $post_status = 'publish';
457
- if($post_status != 'publish' && $post_status != 'inherit'){
458
- // If not 'publish', OR 'inherit' confirm user has rights to view these old posts.
459
- if (current_user_can( 'edit_theme_options' )){
460
- $post_status = $post_status;
461
- } else {
462
- $post_status = 'publish';
463
- }
464
- }
465
 
466
 
467
  // Page Parameters
@@ -479,6 +471,10 @@ if( !class_exists('AjaxLoadMore') ):
479
  }
480
 
481
 
 
 
 
 
482
  // Preload Add-on
483
  $preloaded = (isset($_GET['preloaded'])) ? $_GET['preloaded'] : 'false';
484
  $preloaded_amount = (isset($_GET['preloaded_amount'])) ? $_GET['preloaded_amount'] : '5';
@@ -516,212 +512,20 @@ if( !class_exists('AjaxLoadMore') ):
516
  }
517
 
518
 
519
- // Paging Add-on
520
- $paging = (isset($_GET['paging'])) ? $_GET['paging'] : false;
521
-
522
-
523
  // SEO Add-on
524
  $seo_start_page = (isset($_GET['seo_start_page'])) ? $_GET['seo_start_page'] : 1;
525
 
526
 
527
- // Language (Is this required?)
528
- $lang = (isset($_GET['lang'])) ? $_GET['lang'] : '';
529
-
530
-
531
- // Set up initial query arguments
532
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
533
- $args = array(
534
- 'post_type' => $postType,
535
- 'posts_per_page' => $posts_per_page,
536
- 'offset' => $offset + ($posts_per_page*$page),
537
- 'order' => $order,
538
- 'orderby' => $orderby,
539
- 'post_status' => $post_status,
540
- 'ignore_sticky_posts' => true,
541
- 'paged' => $paged,
542
- );
543
-
544
-
545
- // Post Format & Taxonomy
546
- // - Both use tax_query, so we combine these queries
547
- if(!empty($post_format) || !empty($taxonomy)){
548
-
549
- $tax_query_total = count(explode(":", $taxonomy)); // Total $taxonomy objects
550
- $taxonomy = explode(":", $taxonomy); // convert to array
551
- $taxonomy_terms = explode(":", $taxonomy_terms); // convert to array
552
- $taxonomy_operator = explode(":", $taxonomy_operator); // convert to array
553
-
554
- if(empty($taxonomy)){
555
-
556
- // Post Format only
557
- $args['tax_query'] = array(
558
- alm_get_post_format($post_format),
559
- );
560
-
561
- }else{
562
-
563
- // Post Formats
564
- $args['tax_query'] = array(
565
- 'relation' => $taxonomy_relation,
566
- alm_get_post_format( $post_format )
567
- );
568
-
569
- // Loop Taxonomies
570
- for($tax_i = 0; $tax_i < $tax_query_total; $tax_i++){
571
- $args['tax_query'][] = alm_get_taxonomy_query($taxonomy[$tax_i], $taxonomy_terms[$tax_i], $taxonomy_operator[$tax_i]);
572
- }
573
- }
574
-
575
- }
576
-
577
- // Category
578
- if(!empty($category)){
579
- $args['category_name'] = $category;
580
- }
581
-
582
- // Category Not In
583
- if(!empty($category__not_in)){
584
- $exclude_cats = explode(",",$category__not_in);
585
- $args['category__not_in'] = $exclude_cats;
586
- }
587
-
588
- // Tag
589
- if(!empty($tag)){
590
- $args['tag'] = $tag;
591
- }
592
-
593
- // Tag Not In
594
- if(!empty($tag__not_in)){
595
- $exclude_tags = explode(",",$tag__not_in);
596
- $args['tag__not_in'] = $exclude_tags;
597
- }
598
-
599
- // Date (not using date_query as there was issue with year/month archives)
600
- if(!empty($year)){
601
- $args['year'] = $year;
602
- }
603
- if(!empty($month)){
604
- $args['monthnum'] = $month;
605
- }
606
- if(!empty($day)){
607
- $args['day'] = $day;
608
- }
609
-
610
- // Meta Query
611
- if(!empty($meta_key) && !empty($meta_value) || !empty($meta_key) && $meta_compare !== "IN"){
612
-
613
- // Parse multiple meta query
614
- $meta_query_total = count(explode(":", $meta_key)); // Total meta_query objects
615
- $meta_keys = explode(":", $meta_key); // convert to array
616
- $meta_value = explode(":", $meta_value); // convert to array
617
- $meta_compare = explode(":", $meta_compare); // convert to array
618
- $meta_type = explode(":", $meta_type); // convert to array
619
-
620
- // Loop Meta Query
621
- $args['meta_query'] = array(
622
- 'relation' => $meta_relation
623
- );
624
- for($mq_i = 0; $mq_i < $meta_query_total; $mq_i++){
625
- $args['meta_query'][] = alm_get_meta_query($meta_keys[$mq_i], $meta_value[$mq_i], $meta_compare[$mq_i], $meta_type[$mq_i]);
626
- }
627
-
628
- }
629
-
630
- // Meta_key
631
- if(!empty($meta_key)){ // ordering by meta value
632
- if (strpos($orderby, 'meta_value') !== false) { // Only order by meta_key, if $orderby is set to meta_value{_num}
633
- $meta_key_single = explode(":", $meta_key);
634
- $args['meta_key'] = $meta_key_single[0];
635
- }
636
- }
637
-
638
- // Author
639
- if(!empty($author)){
640
- $args['author'] = $author;
641
- }
642
-
643
- // Include Posts
644
- if(!empty($post__in)){
645
- $post__in = explode(",",$post__in);
646
- $args['post__in'] = $post__in;
647
- }
648
-
649
- // Exclude Posts
650
- if(!empty($post__not_in)){
651
- $post__not_in = explode(",",$post__not_in);
652
- $args['post__not_in'] = $post__not_in;
653
- }
654
- if(!empty($exclude)){ // Deprecate this soon - 2.8.5 */
655
- $exclude = explode(",",$exclude);
656
- $args['post__not_in'] = $exclude;
657
- }
658
-
659
- // Search Term
660
- if(!empty($s)){
661
- $args['s'] = $s;
662
- }
663
-
664
- // Custom Args
665
- if(!empty($custom_args)){
666
- $custom_args_array = explode(";",$custom_args); // Split the $custom_args at ','
667
- foreach($custom_args_array as $argument){ // Loop each $argument
668
-
669
- $argument = preg_replace('/\s+/', '', $argument); // Remove all whitespace
670
- $argument = explode(":",$argument); // Split the $argument at ':'
671
- $argument_arr = explode(",", $argument[1]); // explode $argument[1] at ','
672
- if(sizeof($argument_arr) > 1){
673
- $args[$argument[0]] = $argument_arr;
674
- }else{
675
- $args[$argument[0]] = $argument[1];
676
- }
677
- }
678
- }
679
-
680
- // Language
681
- if(!empty($lang)){
682
- $args['lang'] = $lang;
683
- }
684
-
685
- // Sticky Posts
686
- if($sticky){
687
- $sticky_posts = get_option( 'sticky_posts' ); // Get all sticky post ids
688
-
689
- $sticky_query_args = $args;
690
- $sticky_query_args['post__not_in'] = $sticky_posts;
691
- $sticky_query_args['posts_per_page'] = -1;
692
- $sticky_query_args['fields'] = 'ids';
693
-
694
- $sticky_query = new WP_Query($sticky_query_args); // Query all non sticky posts
695
-
696
- // If has sticky and regular posts
697
- if($sticky_posts && $sticky_query->posts){
698
- $standard_posts = $sticky_query->posts;
699
- if($standard_posts){
700
- $s