WordPress Infinite Scroll – Ajax Load More - Version 5.1.5

Version Description

  • October 1, 2019 =
  • NEW - Added new loading_style parameter that allows users to override the global button style at the shortcode level.
  • NEW - Added mousewheel detection, 'end' and 'page down' keyup listeners for loading posts. In some rare cases users would not be able to load posts unless the user scroll back up the page. This will hopefully solve that issue.
  • UPDATE - Improved plugin accessibility and focus states.
  • UPDATE - Improved admin UI of license updates and expiration notifications.
  • FIX - Fixed issue with no_results_text not displaying for some users.
  • FIX - Fixed issue with table data not rendering correctly in Ajax results.
  • FIX - Added fix for meta_value not working if set to 0 in a Meta_Query.
  • FIX - Fixed issue with focus not being set on Ajax Load More after a filter method.
  • FIX - Fixed posisble issue with ALM continuously loading posts when using SEO/Next Page or Single Posts addon.
  • FIX - Fixed issue in ALM admin with filename adding single quotes when exporting a Repeater Template from inside the ALM admin.
Download this release

Release Info

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

Code changes from version 5.1.4 to 5.1.5

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney, connekthq
3
  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: 4.0
6
- Tested up to: 5.2.2
7
- Stable tag: 5.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -121,6 +121,7 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
121
  * **progress_bar_color** - Enter the hex color of the progress bar. Default = 'ed7070'
122
  * **button_label** - The label text for Load More button. Default = 'Older Posts'
123
  * **button_loading_label** - Update the text of the Load More button while content is loading. Default = null
 
124
  * **container_type** - Override the global Container Type that was set on ALM Settings page. Default = null
125
  * **css_classes** - Add custom CSS classes to the Ajax Load More container. Default = null
126
  * **id** - A unique ID for the Ajax Load More instance.
@@ -140,7 +141,7 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
140
  * **[Default](https://connekthq.com/plugins/ajax-load-more/examples/default/)** - Out of the box functionality and styling.
141
  * **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Infinite scroll Advanced Custom Fields data with Ajax Load More.
142
  * **[Attachments](https://connekthq.com/plugins/ajax-load-more/examples/attachments/)** - Endless scroll post attachments.
143
- * **[CSS Grid](https://connekthq.com/plugins/ajax-load-more/examples/css-grid/)** - Rendering Ajax Load More listings with CSS Grid.
144
  * **[Destroy After](https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/)** - Remove Ajax Load More functionality after 'n' number of pages.
145
  * **[Event Listing](https://connekthq.com/plugins/ajax-load-more/examples/event-listing/)** - Ordering and listing events by custom field date.
146
  * **[Filtering](https://connekthq.com/plugins/ajax-load-more/examples/filtering/)** - Reset and filter an Ajax Load More instance.
@@ -380,6 +381,19 @@ How to install Ajax Load More.
380
 
381
  == Changelog ==
382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
  = 5.1.4 - August 15, 2019 =
384
  * NEW - Added No Results Text(`no_results_text`) parameter to display text/html when zero results are returned in an Ajax Load More query.
385
  * NEW - Added `almOnChange` callback dispatch at the beginning of every Ajax Load More query.
3
  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: 4.0
6
+ Tested up to: 5.2.3
7
+ Stable tag: 5.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
121
  * **progress_bar_color** - Enter the hex color of the progress bar. Default = 'ed7070'
122
  * **button_label** - The label text for Load More button. Default = 'Older Posts'
123
  * **button_loading_label** - Update the text of the Load More button while content is loading. Default = null
124
+ * **loading_style** - Select an Ajax loading style - you can choose between a Button or Infinite Scroll. Default = null
125
  * **container_type** - Override the global Container Type that was set on ALM Settings page. Default = null
126
  * **css_classes** - Add custom CSS classes to the Ajax Load More container. Default = null
127
  * **id** - A unique ID for the Ajax Load More instance.
141
  * **[Default](https://connekthq.com/plugins/ajax-load-more/examples/default/)** - Out of the box functionality and styling.
142
  * **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Infinite scroll Advanced Custom Fields data with Ajax Load More.
143
  * **[Attachments](https://connekthq.com/plugins/ajax-load-more/examples/attachments/)** - Endless scroll post attachments.
144
+ * **[CSS Grid](https://connekthq.com/plugins/ajax-load-more/examples/css-grid/)** - Rendering Ajax Load More listings with CSS GridRe.
145
  * **[Destroy After](https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/)** - Remove Ajax Load More functionality after 'n' number of pages.
146
  * **[Event Listing](https://connekthq.com/plugins/ajax-load-more/examples/event-listing/)** - Ordering and listing events by custom field date.
147
  * **[Filtering](https://connekthq.com/plugins/ajax-load-more/examples/filtering/)** - Reset and filter an Ajax Load More instance.
381
 
382
  == Changelog ==
383
 
384
+ = 5.1.5 - October 1, 2019 =
385
+ * NEW - Added new `loading_style` parameter that allows users to override the global button style at the shortcode level.
386
+ * NEW - Added mousewheel detection, 'end' and 'page down' keyup listeners for loading posts. In some rare cases users would not be able to load posts unless the user scroll back up the page. This will hopefully solve that issue.
387
+ * UPDATE - Improved plugin accessibility and focus states.
388
+ * UPDATE - Improved admin UI of license updates and expiration notifications.
389
+ * FIX - Fixed issue with `no_results_text` not displaying for some users.
390
+ * FIX - Fixed issue with table data not rendering correctly in Ajax results.
391
+ * FIX - Added fix for `meta_value` not working if set to `0` in a Meta_Query.
392
+ * FIX - Fixed issue with focus not being set on Ajax Load More after a filter method.
393
+ * FIX - Fixed posisble issue with ALM continuously loading posts when using SEO/Next Page or Single Posts addon.
394
+ * FIX - Fixed issue in ALM admin with filename adding single quotes when exporting a Repeater Template from inside the ALM admin.
395
+
396
+
397
  = 5.1.4 - August 15, 2019 =
398
  * NEW - Added No Results Text(`no_results_text`) parameter to display text/html when zero results are returned in an Ajax Load More query.
399
  * NEW - Added `almOnChange` callback dispatch at the beginning of every Ajax Load More query.
admin/admin-functions.php CHANGED
@@ -41,7 +41,7 @@ function alm_has_addon_shortcodes(){
41
  'alm_prev_post_installed',
42
  'alm_rest_api_installed',
43
  'alm_seo_installed',
44
- 'alm_single_post_installed',
45
  'alm_users_installed'
46
  );
47
 
@@ -71,7 +71,7 @@ function alm_has_addon_shortcodes(){
71
  */
72
 
73
  function alm_has_addon(){
74
- if(has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_single_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed') || has_action('alm_users_installed')) {
75
  return true;
76
  } else {
77
  return false;
41
  'alm_prev_post_installed',
42
  'alm_rest_api_installed',
43
  'alm_seo_installed',
44
+ 'alm_single_post_installed',
45
  'alm_users_installed'
46
  );
47
 
71
  */
72
 
73
  function alm_has_addon(){
74
+ if(has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_single_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_tabs_installed') || has_action('alm_theme_repeaters_installed') || has_action('alm_users_installed')) {
75
  return true;
76
  } else {
77
  return false;
admin/admin.php CHANGED
@@ -14,6 +14,78 @@ add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu
14
 
15
 
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  /*
19
  * alm_render_transient_notification
@@ -97,7 +169,7 @@ function alm_repeaters_export(){
97
  if(file_exists($file)){
98
  header("Content-Description: File Transfer");
99
  header("Content-Type: application/octet-stream");
100
- header("Content-Disposition: attachment; filename='" . basename($file) . "'");
101
  readfile ($file);
102
  exit();
103
  }
@@ -164,14 +236,13 @@ add_action( 'admin_notices', 'alm_admin_notice_errors' );
164
  *
165
  * @since 2.8.3
166
  */
167
-
168
  function alm_license_activation(){
169
 
170
  if (current_user_can( 'edit_theme_options' )){
171
 
172
  $nonce = $_GET["nonce"];
173
  $type = $_GET["type"]; // activate / deactivate
174
- $item = $_GET["item"];
175
  $license = $_GET["license"];
176
  $url = $_GET["url"];
177
  $upgrade = $_GET["upgrade"];
@@ -179,30 +250,32 @@ function alm_license_activation(){
179
  $option_key = $_GET["key"];
180
 
181
  // Check our nonce, if they don't match then bounce!
182
- if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
183
  die('Error - unable to verify nonce, please try again.');
 
184
 
185
- // data to send in our API request
186
- if($type === 'activate'){
187
  $action = 'activate_license';
188
  }else{
189
  $action = 'deactivate_license';
190
  }
191
-
 
192
  $api_params = array(
193
  'edd_action'=> $action,
194
  'license' => $license,
195
- 'item_id' => $item, // the ID of our product in EDD
196
  'url' => home_url()
197
  );
198
 
199
  // Call API
200
- // Updated 2.8.7
201
- $response = wp_remote_post( ALM_STORE_URL, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
202
 
203
  // make sure the response came back okay
204
- if ( is_wp_error( $response ) )
205
  return false;
 
206
 
207
  $license_data = $response['body'];
208
  $license_data = json_decode($license_data); // decode the license data
@@ -214,20 +287,30 @@ function alm_license_activation(){
214
  $return["expires"] = $license_data->expires;
215
  $return["site_count"] = $license_data->site_count;
216
  $return["activations_left"] = $license_data->activations_left;
217
- $return["license"] = $license_data->license;
218
  $return["item_name"] = $license_data->item_name;
 
219
  if($license_data->activations_left === 0 && $license_data->success === false){
220
- $msg = '<strong>Sorry, but you are out of available licenses <em>('. $license_data->license_limit .' / '. $license_data->site_count .')</em>.</strong> Please visit the <a href="'.$upgrade.'" target="_blank">'.$license_data->item_name.'</a> page to add additional licenses.';
221
  }
222
  }
223
  $return["msg"] = $msg;
224
-
225
- update_option( $option_status, $license_data->license);
 
 
 
 
 
 
 
226
  update_option( $option_key, $license );
227
-
 
 
 
 
228
  wp_send_json($return);
229
 
230
-
231
  } else {
232
 
233
  echo __('You don\'t belong here.', 'ajax-load-more');
@@ -237,6 +320,45 @@ function alm_license_activation(){
237
 
238
 
239
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  /*
241
  * alm_get_layout
242
  * Get layout and return value to repeater template
@@ -1357,6 +1479,13 @@ function alm_admin_init(){
1357
  }
1358
 
1359
 
 
 
 
 
 
 
 
1360
  // THEME REPEATERS
1361
  if(has_action('alm_theme_repeaters_settings')){
1362
  do_action('alm_theme_repeaters_settings');
14
 
15
 
16
 
17
+ /*
18
+ * almCreatePluginUpdateNotifications
19
+ * Create custom update notifications
20
+ *
21
+ * @since 5.2
22
+ */
23
+ function alm_plugin_update_messages(){
24
+ $addons = alm_get_addons();
25
+ foreach($addons as $addon){
26
+ $path = $addon['path'];
27
+ $hook = "in_plugin_update_message-{$path}/{$path}.php";
28
+ add_action( $hook, 'alm_prefix_plugin_update_message', 10, 2);
29
+ }
30
+ }
31
+ alm_plugin_update_messages();
32
+
33
+
34
+
35
+ /*
36
+ * alm_prefix_plugin_update_message
37
+ * Add extra message to plugin updater about expired/inactive licenses
38
+ *
39
+ * @since 5.2
40
+ */
41
+ function alm_prefix_plugin_update_message( $data, $response ) {
42
+ $addons = alm_get_addons();
43
+ $slug = $response->slug;
44
+ $version = $response->new_version;
45
+
46
+ foreach($addons as $key=>$addon){
47
+ if($addon['path'] === $slug){
48
+ $index = $key;
49
+ }
50
+ }
51
+
52
+ if(isset($index)){
53
+ $style = 'display: block; padding: 10px 5px 2px;';
54
+ $addon = $addons[$index];
55
+
56
+ if(isset($addon)){
57
+ $name = '<strong>'. $addon['name'] .'</strong>';
58
+ $status = get_option($addon['status']);
59
+
60
+ // Expired
61
+ if($status === 'expired'){
62
+ printf('<span style="'. $style .'">%s %s</span>',
63
+ __( 'Looks like your subscription has expired.', 'ajax-load-more' ),
64
+ __( 'Please login to your <a href="https://connekthq.com/account/" target="_blank">Account</a> to renew the license.', 'ajax-load-more' )
65
+ );
66
+ }
67
+
68
+ // Invalid/Inactive
69
+ if($status === 'invalid' || $status === 'disabled'){
70
+ printf('<span style="'. $style .'">%s %s</span>',
71
+ __( 'Looks like your license is inactive and/or invalid.', 'ajax-load-more' ),
72
+ __( 'Please activate the <a href="admin.php?page=ajax-load-more-licenses" target="_blank">license</a> or login to your <a href="https://connekthq.com/account/" target="_blank">Account</a> to renew the license.', 'ajax-load-more' )
73
+ );
74
+ }
75
+
76
+ // Deactivated
77
+ if($status === 'deactivated'){
78
+ printf('<span style="'. $style .'">%s %s</span>',
79
+ __( 'Looks like your license has been deactivated.', 'ajax-load-more' ),
80
+ __( 'Please activate the <a href="admin.php?page=ajax-load-more-licenses" target="_blank">license</a> to update.', 'ajax-load-more' )
81
+ );
82
+ }
83
+ //alm_pretty_print($response);
84
+ }
85
+ }
86
+ }
87
+
88
+
89
 
90
  /*
91
  * alm_render_transient_notification
169
  if(file_exists($file)){
170
  header("Content-Description: File Transfer");
171
  header("Content-Type: application/octet-stream");
172
+ header('Content-Disposition: attachment; filename="'. basename($file) .'"');
173
  readfile ($file);
174
  exit();
175
  }
236
  *
237
  * @since 2.8.3
238
  */
 
239
  function alm_license_activation(){
240
 
241
  if (current_user_can( 'edit_theme_options' )){
242
 
243
  $nonce = $_GET["nonce"];
244
  $type = $_GET["type"]; // activate / deactivate
245
+ $item_id = $_GET["item"];
246
  $license = $_GET["license"];
247
  $url = $_GET["url"];
248
  $upgrade = $_GET["upgrade"];
250
  $option_key = $_GET["key"];
251
 
252
  // Check our nonce, if they don't match then bounce!
253
+ if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' )){
254
  die('Error - unable to verify nonce, please try again.');
255
+ }
256
 
257
+ // API Action
258
+ if($type === 'activate' || $type === 'check'){
259
  $action = 'activate_license';
260
  }else{
261
  $action = 'deactivate_license';
262
  }
263
+
264
+ // Create the params for the request
265
  $api_params = array(
266
  'edd_action'=> $action,
267
  'license' => $license,
268
+ 'item_id' => $item_id, // the ID of our product in EDD
269
  'url' => home_url()
270
  );
271
 
272
  // Call API
273
+ $response = wp_remote_post( ALM_STORE_URL, array( 'body' => $api_params, 'timeout' => 15, 'sslverify' => false ) );
 
274
 
275
  // make sure the response came back okay
276
+ if ( is_wp_error($response) ){
277
  return false;
278
+ }
279
 
280
  $license_data = $response['body'];
281
  $license_data = json_decode($license_data); // decode the license data
287
  $return["expires"] = $license_data->expires;
288
  $return["site_count"] = $license_data->site_count;
289
  $return["activations_left"] = $license_data->activations_left;
 
290
  $return["item_name"] = $license_data->item_name;
291
+
292
  if($license_data->activations_left === 0 && $license_data->success === false){
293
+ $msg = '<strong>You\'re out of available licenses <em>('. $license_data->license_limit .' / '. $license_data->site_count .')</em></strong>. Please visit the <a href="'.$upgrade.'" target="_blank">'.$license_data->item_name.'</a> website to add additional licenses.';
294
  }
295
  }
296
  $return["msg"] = $msg;
297
+
298
+
299
+ // If error, make error the status of the license
300
+ $license_status = (isset($license_data->error)) ? $license_data->error : $license_data->license;
301
+
302
+ $return["license"] = $license_status;
303
+
304
+ // Update the options table
305
+ update_option( $option_status, $license_status);
306
  update_option( $option_key, $license );
307
+
308
+ // Set transient value to store license status
309
+ set_transient( "alm_{$item_id}_{$license}", $license_status, 96 * HOUR_IN_SECONDS ); // 4 days
310
+
311
+ // Send the response
312
  wp_send_json($return);
313
 
 
314
  } else {
315
 
316
  echo __('You don\'t belong here.', 'ajax-load-more');
320
 
321
 
322
 
323
+ /*
324
+ * alm_license_check
325
+ * Check the status of a license
326
+ *
327
+ * @since 2.8.3
328
+ */
329
+ function alm_license_check($item_id = null, $license = null, $option_status = null){
330
+
331
+ if(!$item_id || !$license || !$option_status){
332
+ return false;
333
+ }
334
+
335
+ $api_params = array(
336
+ 'edd_action' => 'check_license',
337
+ 'license' => $license,
338
+ 'item_id' => $item_id,
339
+ 'url' => home_url()
340
+ );
341
+ $response = wp_remote_post( ALM_STORE_URL, array( 'body' => $api_params, 'timeout' => 15, 'sslverify' => false ) );
342
+ if ( is_wp_error( $response ) ) {
343
+ return false;
344
+ }
345
+
346
+ // Get Data
347
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
348
+
349
+ // Update the options table
350
+ update_option( $option_status, $license_data->license);
351
+
352
+ // Set transient value to store license status
353
+ set_transient( "alm_{$item_id}_{$license}", $license_data->license, 168 * HOUR_IN_SECONDS ); // 7 days
354
+
355
+ // Return the status
356
+ return $license_data->license;
357
+
358
+ }
359
+
360
+
361
+
362
  /*
363
  * alm_get_layout
364
  * Get layout and return value to repeater template
1479
  }
1480
 
1481
 
1482
+ // TABS
1483
+ if(has_action('alm_tabs_settings')){
1484
+ do_action('alm_tabs_settings');
1485
+ }
1486
+
1487
+
1488
+
1489
  // THEME REPEATERS
1490
  if(has_action('alm_theme_repeaters_settings')){
1491
  do_action('alm_theme_repeaters_settings');
admin/dist/css/admin.css CHANGED
@@ -1535,7 +1535,7 @@ a.button-small {
1535
  top: 14px;
1536
  font-size: 12px;
1537
  display: inline-block;
1538
- background-color: rgba(255, 255, 255, 0.65);
1539
  margin: 0 0 0 10px; }
1540
  .ajax-load-more p.warning-callout a.button-small:hover, .ajax-load-more p.warning-callout a.button-small:focus {
1541
  background-color: #fff; }
@@ -1739,14 +1739,44 @@ a.button-small {
1739
  clear: both;
1740
  border: 1px solid #efefef;
1741
  border-radius: 2px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1742
 
1743
  .ajax-load-more#alm-repeaters .row {
1744
  overflow: visible; }
1745
 
1746
- .ajax-load-more .row.no-brd {
1747
- border: none !important;
1748
- padding: 0 !important; }
1749
-
1750
  .admin.ajax-load-more .row,
1751
  .forceColors .ajax-load-more .row {
1752
  border-color: #e1e1e1; }
@@ -2168,25 +2198,23 @@ hr.indented {
2168
 
2169
  .admin.ajax-load-more .ajax-load-more-wrap {
2170
  position: relative;
2171
- top: 10px;
2172
- padding: 20px;
2173
- border: 1px dashed #ccc;
2174
  display: inline-block;
2175
  margin-top: 10px;
2176
  margin-bottom: 10px; }
2177
-
2178
- .admin.ajax-load-more .ajax-load-more-wrap.preview-pane.none {
2179
- display: none; }
2180
-
2181
- .admin.ajax-load-more .ajax-load-more-wrap button {
2182
- margin: 0 !important; }
2183
-
2184
- .admin.ajax-load-more .ajax-load-more-wrap > span {
2185
- display: block;
2186
- font-size: 11px;
2187
- opacity: 0.7;
2188
- padding: 0 0 8px;
2189
- text-transform: uppercase; }
2190
 
2191
  .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li {
2192
  font-size: 14px; }
@@ -2695,23 +2723,23 @@ span.cnkt-button.installed i,
2695
  position: relative; }
2696
 
2697
  .license-title .status {
2698
- width: 12px;
2699
- height: 12px;
2700
  border-radius: 100%;
2701
  background: #d45656;
2702
  position: absolute;
2703
  left: 15px;
2704
  top: 50%;
2705
- margin-top: -6px;
2706
  -webkit-box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff;
2707
  box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff; }
2708
 
2709
  .license-title .status.valid {
2710
- background-color: #acd481; }
2711
 
2712
  .license h2 {
2713
  margin: 0;
2714
- padding: 15px 15px 15px 35px;
2715
  font-size: 16px;
2716
  font-weight: 600;
2717
  line-height: 1.2; }
@@ -2758,7 +2786,8 @@ span.cnkt-button.installed i,
2758
  z-index: 9;
2759
  display: none; }
2760
 
2761
- .license-btn.hide {
 
2762
  display: none; }
2763
 
2764
  .license-btn-wrap {
@@ -2766,9 +2795,11 @@ span.cnkt-button.installed i,
2766
 
2767
  .license-btn-wrap .msg {
2768
  display: block;
2769
- padding: 10px 0 0;
2770
  font-size: 14px;
2771
- line-height: 18px; }
 
 
2772
 
2773
  .license-btn-wrap .msg strong {
2774
  display: block; }
@@ -2818,10 +2849,11 @@ span.cnkt-button.installed i,
2818
  padding: 6px 12px;
2819
  line-height: 1.3;
2820
  color: #fff;
2821
- border-color: #999; }
 
2822
 
2823
  .license-key-field .status.active {
2824
- background-color: #acd481; }
2825
 
2826
  .license-key-field .status.inactive {
2827
  background-color: #d45656; }
@@ -2877,6 +2909,10 @@ span.cnkt-button.installed i,
2877
  .ajax-load-more .cnkt-sidebar .cta-inner {
2878
  padding: 20px;
2879
  display: block; }
 
 
 
 
2880
 
2881
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
2882
  padding-bottom: 80px; }
@@ -3165,6 +3201,9 @@ span.cnkt-button.installed i,
3165
  /* Numbers */
3166
  color: #009999 !important; }
3167
 
 
 
 
3168
  /*
3169
  * Delete Template (Unlimited Repeaters
3170
  *
@@ -3534,7 +3573,7 @@ p.theme-title {
3534
  .ajax-load-more .form-table input[type=checkbox] + label,
3535
  .shortcode-builder input[type=radio] + label,
3536
  .ajax-load-more .form-table input[type=radio] + label {
3537
- background: #fff url("../../img/bkg-chkbox_off.png") no-repeat left 1px;
3538
  height: auto;
3539
  min-height: 23px;
3540
  width: 100%;
@@ -3555,16 +3594,20 @@ p.theme-title {
3555
 
3556
  .shortcode-builder input[type=radio] + label,
3557
  .ajax-load-more .form-table input[type=radio] + label {
3558
- background: #fff url("../../img/bkg-radio_off.png") no-repeat left 2px; }
3559
 
3560
  .shortcode-builder input[type=checkbox]:hover + label,
3561
- .ajax-load-more .form-table input[type=checkbox]:hover + label {
3562
- /* hover */
 
 
3563
  background-image: url("../../img/bkg-chkbox_on.png"); }
3564
 
3565
  .shortcode-builder input[type=radio]:hover + label,
3566
- .ajax-load-more .form-table input[type=radio]:hover + label {
3567
- /* hover */
 
 
3568
  background-image: url("../../img/bkg-radio_on.png"); }
3569
 
3570
  .shortcode-builder input[type=checkbox]:checked + label,
@@ -4169,12 +4212,14 @@ span.dismiss a {
4169
 
4170
  /* share-alm */
4171
  .alm-notification {
4172
- background: #6199c3 !important;
4173
- border-color: #3f7d9a !important;
4174
- padding: 20px;
4175
- margin: 0 0 20px; }
4176
  .alm-notification:hover a.dismiss {
4177
  opacity: 0.7; }
 
 
4178
  .alm-notification .dotted {
4179
  border: none;
4180
  border-bottom: 1px dashed #ccc;
@@ -4185,8 +4230,11 @@ span.dismiss a {
4185
  line-height: 1.25;
4186
  position: relative;
4187
  color: #fff;
4188
- font-size: 22px;
4189
- margin: 0 0 10px; }
 
 
 
4190
  .alm-notification h2 span {
4191
  position: absolute;
4192
  left: 0;
@@ -4197,38 +4245,47 @@ span.dismiss a {
4197
  .alm-notification h2 span {
4198
  display: none; } }
4199
  .alm-notification p {
4200
- color: #ddeaf1;
4201
  font-size: 14px;
4202
- padding-left: 33px;
4203
  margin: 0 0 20px; }
4204
- @media screen and (max-width: 480px) {
4205
- .alm-notification p {
4206
- padding-left: 0; } }
4207
  .alm-notification p a {
4208
- color: #fff;
4209
  font-weight: 600; }
4210
  .alm-notification p a:hover, .alm-notification p a:focus {
4211
  text-decoration: none; }
4212
  .alm-notification p.opening {
4213
  font-size: 18px;
4214
- margin: 0 0 13px;
4215
- font-weight: 300; }
 
 
 
 
 
 
 
4216
  .alm-notification ul.share {
4217
- margin: 0 0 10px;
4218
- padding: 0 0 0 32px;
4219
  width: auto;
4220
  clear: both;
4221
- display: inline-block;
 
 
 
 
 
4222
  overflow: visible;
4223
  text-align: left;
4224
  width: 100%;
4225
- height: auto; }
4226
- @media screen and (max-width: 480px) {
4227
- .alm-notification ul.share {
4228
- padding: 0; } }
4229
  .alm-notification ul.share li {
 
 
 
4230
  background: none;
4231
- display: inline-block;
4232
  vertical-align: top;
4233
  height: auto;
4234
  line-height: 40px;
@@ -4240,45 +4297,32 @@ span.dismiss a {
4240
  color: #787878;
4241
  width: auto;
4242
  text-align: center;
4243
- margin: 12px 10px 0 0 !important;
4244
- padding: 0; }
4245
- @media screen and (max-width: 480px) {
4246
- .alm-notification ul.share li {
4247
- display: block;
4248
- width: 100%; } }
4249
  .alm-notification ul.share li a {
4250
  display: block;
4251
- line-height: 40px;
4252
- height: 40px;
4253
- width: auto;
4254
- padding: 0 15px 0 47px;
4255
  text-decoration: none;
4256
  color: #fff;
4257
  text-align: center;
4258
  background: none;
4259
- border-radius: 3px;
4260
  position: relative;
4261
- font-weight: 600;
4262
- background: #33cf92;
4263
- -webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.075), inset 0 0 1px rgba(255, 255, 255, 0.2);
4264
- box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.075), inset 0 0 1px rgba(255, 255, 255, 0.2); }
4265
- @media screen and (min-width: 1500px) {
4266
- .alm-notification ul.share li a {
4267
- padding: 0 25px 0 50px; } }
4268
- .alm-notification ul.share li a:hover {
4269
- background-color: #45dfa3; }
4270
  .alm-notification ul.share li a i {
4271
- font-size: 20px;
4272
- line-height: 41px;
4273
- height: 40px;
4274
- width: 35px;
4275
- position: absolute;
4276
- top: 0;
4277
- left: 0;
4278
- text-align: center;
4279
- border-right: 1px solid rgba(0, 0, 0, 0.1);
4280
- background-color: rgba(0, 0, 0, 0.1);
4281
- border-radius: 2px 0 0 2px; }
4282
  .alm-notification ul.share li a:hover,
4283
  .alm-notification ul.share li a:hover i {
4284
  text-decoration: none;
@@ -4286,14 +4330,6 @@ span.dismiss a {
4286
  .alm-notification ul.share li a:hover span,
4287
  .alm-notification ul.share li a:hover i span {
4288
  text-decoration: none; }
4289
- .alm-notification ul.share li.twitter a {
4290
- background: #00aced; }
4291
- .alm-notification ul.share li.twitter a:hover {
4292
- background: #13beff !important; }
4293
- .alm-notification ul.share li.facebook a {
4294
- background: #3b5998; }
4295
- .alm-notification ul.share li.facebook a:hover {
4296
- background: #466cbc !important; }
4297
  .alm-notification a.dismiss {
4298
  position: absolute;
4299
  right: 3px;
@@ -4304,7 +4340,7 @@ span.dismiss a {
4304
  line-height: 30px;
4305
  padding: 0;
4306
  text-align: center;
4307
- color: #fff;
4308
  border-right: none;
4309
  border-top: none;
4310
  display: block;
@@ -4312,7 +4348,7 @@ span.dismiss a {
4312
  font-weight: 300;
4313
  opacity: 0.3; }
4314
  .alm-notification a.dismiss:hover, .alm-notification a.dismiss:focus {
4315
- color: #fff;
4316
  opacity: 1; }
4317
 
4318
  /*
@@ -4328,7 +4364,7 @@ span.dismiss a {
4328
  position: absolute;
4329
  left: 70px;
4330
  top: -20px;
4331
- background: #fefeed;
4332
  color: #333;
4333
  width: 40px;
4334
  height: 40px;
@@ -4339,6 +4375,8 @@ span.dismiss a {
4339
  border-radius: 100%;
4340
  text-transform: uppercase;
4341
  border: 1px solid #e1e1e1;
 
 
4342
  font-size: 13px; }
4343
 
4344
  .alm-template-section-nav {
1535
  top: 14px;
1536
  font-size: 12px;
1537
  display: inline-block;
1538
+ background-color: rgba(255, 255, 255, 0.75);
1539
  margin: 0 0 0 10px; }
1540
  .ajax-load-more p.warning-callout a.button-small:hover, .ajax-load-more p.warning-callout a.button-small:focus {
1541
  background-color: #fff; }
1739
  clear: both;
1740
  border: 1px solid #efefef;
1741
  border-radius: 2px; }
1742
+ .ajax-load-more .row.no-brd {
1743
+ border: none !important;
1744
+ padding: 0 !important; }
1745
+ .ajax-load-more .row .nested-component {
1746
+ padding: 0;
1747
+ position: relative; }
1748
+ .ajax-load-more .row .nested-component:after, .ajax-load-more .row .nested-component:before {
1749
+ top: 0;
1750
+ left: 35px;
1751
+ border: solid transparent;
1752
+ content: " ";
1753
+ height: 0;
1754
+ width: 0;
1755
+ position: absolute;
1756
+ pointer-events: none; }
1757
+ .ajax-load-more .row .nested-component:after {
1758
+ border-color: rgba(255, 255, 255, 0);
1759
+ border-top-color: #fff;
1760
+ border-width: 10px;
1761
+ margin-left: -10px; }
1762
+ .ajax-load-more .row .nested-component:before {
1763
+ border-color: rgba(239, 239, 239, 0);
1764
+ border-top-color: #e1e1e1;
1765
+ border-width: 11px;
1766
+ margin-left: -11px; }
1767
+ .ajax-load-more .row .nested-component--inner {
1768
+ padding: 0;
1769
+ position: relative;
1770
+ border-top: 1px solid #efefef;
1771
+ border-left: 6px solid #f7f7f7; }
1772
+ .ajax-load-more .row .nested-component--inner:after {
1773
+ clear: both;
1774
+ display: table;
1775
+ content: ''; }
1776
 
1777
  .ajax-load-more#alm-repeaters .row {
1778
  overflow: visible; }
1779
 
 
 
 
 
1780
  .admin.ajax-load-more .row,
1781
  .forceColors .ajax-load-more .row {
1782
  border-color: #e1e1e1; }
2198
 
2199
  .admin.ajax-load-more .ajax-load-more-wrap {
2200
  position: relative;
2201
+ top: 5px;
2202
+ padding: 15px 17px 17px;
2203
+ border: 2px dashed #efefef;
2204
  display: inline-block;
2205
  margin-top: 10px;
2206
  margin-bottom: 10px; }
2207
+ .admin.ajax-load-more .ajax-load-more-wrap.preview-pane.none {
2208
+ display: none; }
2209
+ .admin.ajax-load-more .ajax-load-more-wrap button {
2210
+ margin: 0 !important; }
2211
+ .admin.ajax-load-more .ajax-load-more-wrap > span {
2212
+ display: block;
2213
+ font-size: 10px;
2214
+ line-height: 1;
2215
+ opacity: 0.7;
2216
+ padding: 0 0 8px;
2217
+ text-transform: uppercase; }
 
 
2218
 
2219
  .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li {
2220
  font-size: 14px; }
2723
  position: relative; }
2724
 
2725
  .license-title .status {
2726
+ width: 13px;
2727
+ height: 13px;
2728
  border-radius: 100%;
2729
  background: #d45656;
2730
  position: absolute;
2731
  left: 15px;
2732
  top: 50%;
2733
+ margin-top: -7px;
2734
  -webkit-box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff;
2735
  box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff; }
2736
 
2737
  .license-title .status.valid {
2738
+ background-color: #9ad682; }
2739
 
2740
  .license h2 {
2741
  margin: 0;
2742
+ padding: 15px 15px 15px 38px;
2743
  font-size: 16px;
2744
  font-weight: 600;
2745
  line-height: 1.2; }
2786
  z-index: 9;
2787
  display: none; }
2788
 
2789
+ .license-btn.hide,
2790
+ .renew-btn.hide {
2791
  display: none; }
2792
 
2793
  .license-btn-wrap {
2795
 
2796
  .license-btn-wrap .msg {
2797
  display: block;
2798
+ padding: 15px 0 0;
2799
  font-size: 14px;
2800
+ line-height: 24px;
2801
+ position: relative;
2802
+ top: 4px; }
2803
 
2804
  .license-btn-wrap .msg strong {
2805
  display: block; }
2849
  padding: 6px 12px;
2850
  line-height: 1.3;
2851
  color: #fff;
2852
+ border-color: #999;
2853
+ cursor: default; }
2854
 
2855
  .license-key-field .status.active {
2856
+ background-color: #9ad682; }
2857
 
2858
  .license-key-field .status.inactive {
2859
  background-color: #d45656; }
2909
  .ajax-load-more .cnkt-sidebar .cta-inner {
2910
  padding: 20px;
2911
  display: block; }
2912
+ .ajax-load-more .cnkt-sidebar .cta-inner .cta-inner {
2913
+ background-color: #f7f7f7;
2914
+ border-radius: 3px;
2915
+ border: 1px solid #e1e1e1; }
2916
 
2917
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
2918
  padding-bottom: 80px; }
3201
  /* Numbers */
3202
  color: #009999 !important; }
3203
 
3204
+ .shortcode-builder hr {
3205
+ margin: 0; }
3206
+
3207
  /*
3208
  * Delete Template (Unlimited Repeaters
3209
  *
3573
  .ajax-load-more .form-table input[type=checkbox] + label,
3574
  .shortcode-builder input[type=radio] + label,
3575
  .ajax-load-more .form-table input[type=radio] + label {
3576
+ background: transparent url("../../img/bkg-chkbox_off.png") no-repeat left 1px;
3577
  height: auto;
3578
  min-height: 23px;
3579
  width: 100%;
3594
 
3595
  .shortcode-builder input[type=radio] + label,
3596
  .ajax-load-more .form-table input[type=radio] + label {
3597
+ background: transparent url("../../img/bkg-radio_off.png") no-repeat left 2px; }
3598
 
3599
  .shortcode-builder input[type=checkbox]:hover + label,
3600
+ .ajax-load-more .form-table input[type=checkbox]:hover + label,
3601
+ .shortcode-builder input[type=checkbox]:focus + label,
3602
+ .ajax-load-more .form-table input[type=checkbox]:focus + label {
3603
+ /* hover/focus */
3604
  background-image: url("../../img/bkg-chkbox_on.png"); }
3605
 
3606
  .shortcode-builder input[type=radio]:hover + label,
3607
+ .ajax-load-more .form-table input[type=radio]:hover + label,
3608
+ .shortcode-builder input[type=radio]:focus + label,
3609
+ .ajax-load-more .form-table input[type=radio]:focus + label {
3610
+ /* hover/focus */
3611
  background-image: url("../../img/bkg-radio_on.png"); }
3612
 
3613
  .shortcode-builder input[type=checkbox]:checked + label,
4212
 
4213
  /* share-alm */
4214
  .alm-notification {
4215
+ border-radius: 2px; }
4216
+ .alm-notification--blue {
4217
+ background: #5899de !important;
4218
+ border-color: #4b7eb5 !important; }
4219
  .alm-notification:hover a.dismiss {
4220
  opacity: 0.7; }
4221
+ .alm-notification--inner {
4222
+ padding: 14px 20px 20px; }
4223
  .alm-notification .dotted {
4224
  border: none;
4225
  border-bottom: 1px dashed #ccc;
4230
  line-height: 1.25;
4231
  position: relative;
4232
  color: #fff;
4233
+ font-size: 15px;
4234
+ margin: 0;
4235
+ padding: 14px 20px;
4236
+ font-weight: 700;
4237
+ border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
4238
  .alm-notification h2 span {
4239
  position: absolute;
4240
  left: 0;
4245
  .alm-notification h2 span {
4246
  display: none; } }
4247
  .alm-notification p {
 
4248
  font-size: 14px;
 
4249
  margin: 0 0 20px; }
 
 
 
4250
  .alm-notification p a {
 
4251
  font-weight: 600; }
4252
  .alm-notification p a:hover, .alm-notification p a:focus {
4253
  text-decoration: none; }
4254
  .alm-notification p.opening {
4255
  font-size: 18px;
4256
+ margin: 0 0 15px;
4257
+ font-weight: 300;
4258
+ line-height: 1.4; }
4259
+ .alm-notification p.opener {
4260
+ color: #444;
4261
+ font-weight: 700;
4262
+ font-size: 16px;
4263
+ position: relative;
4264
+ margin: 0 0 20px; }
4265
  .alm-notification ul.share {
4266
+ margin: 0;
4267
+ padding: 0;
4268
  width: auto;
4269
  clear: both;
4270
+ display: -webkit-box;
4271
+ display: -ms-flexbox;
4272
+ display: flex;
4273
+ -ms-flex-wrap: nowrap;
4274
+ flex-wrap: nowrap;
4275
+ width: 100%;
4276
  overflow: visible;
4277
  text-align: left;
4278
  width: 100%;
4279
+ height: auto;
4280
+ border-radius: 0 0 3px 3px;
4281
+ background-color: #e06464;
4282
+ background-color: #9d87c7; }
4283
  .alm-notification ul.share li {
4284
+ -webkit-box-flex: 1;
4285
+ -ms-flex: 1;
4286
+ flex: 1;
4287
  background: none;
4288
+ display: block;
4289
  vertical-align: top;
4290
  height: auto;
4291
  line-height: 40px;
4297
  color: #787878;
4298
  width: auto;
4299
  text-align: center;
4300
+ margin: 0 !important;
4301
+ padding: 0;
4302
+ background: none;
4303
+ border-left: 1px solid rgba(255, 255, 255, 0.15); }
4304
+ .alm-notification ul.share li:first-of-type {
4305
+ border-left: none; }
4306
  .alm-notification ul.share li a {
4307
  display: block;
4308
+ line-height: 50px;
4309
+ height: 50px;
4310
+ width: 100%;
4311
+ padding: 0 10px;
4312
  text-decoration: none;
4313
  color: #fff;
4314
  text-align: center;
4315
  background: none;
4316
+ border-radius: 0;
4317
  position: relative;
4318
+ font-weight: 500; }
4319
+ .alm-notification ul.share li a:hover, .alm-notification ul.share li a:focus {
4320
+ background-color: #b3a0d6 !important; }
 
 
 
 
 
 
4321
  .alm-notification ul.share li a i {
4322
+ margin: 0 10px 0 0;
4323
+ font-size: 1.25em;
4324
+ position: relative;
4325
+ top: 1px; }
 
 
 
 
 
 
 
4326
  .alm-notification ul.share li a:hover,
4327
  .alm-notification ul.share li a:hover i {
4328
  text-decoration: none;
4330
  .alm-notification ul.share li a:hover span,
4331
  .alm-notification ul.share li a:hover i span {
4332
  text-decoration: none; }
 
 
 
 
 
 
 
 
4333
  .alm-notification a.dismiss {
4334
  position: absolute;
4335
  right: 3px;
4340
  line-height: 30px;
4341
  padding: 0;
4342
  text-align: center;
4343
+ color: #ccc;
4344
  border-right: none;
4345
  border-top: none;
4346
  display: block;
4348
  font-weight: 300;
4349
  opacity: 0.3; }
4350
  .alm-notification a.dismiss:hover, .alm-notification a.dismiss:focus {
4351
+ color: #999;
4352
  opacity: 1; }
4353
 
4354
  /*
4364
  position: absolute;
4365
  left: 70px;
4366
  top: -20px;
4367
+ background: #f7f7f7;
4368
  color: #333;
4369
  width: 40px;
4370
  height: 40px;
4375
  border-radius: 100%;
4376
  text-transform: uppercase;
4377
  border: 1px solid #e1e1e1;
4378
+ -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
4379
+ box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
4380
  font-size: 13px; }
4381
 
4382
  .alm-template-section-nav {
admin/dist/js/admin.js CHANGED
@@ -1395,7 +1395,6 @@ jQuery(document).ready(function ($) {
1395
  *
1396
  * @since 2.8.4
1397
  */
1398
-
1399
  $('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
1400
  $(this).tooltipster({
1401
  delay: 100,
@@ -1556,9 +1555,12 @@ jQuery(document).ready(function ($) {
1556
  var almActivating = false;
1557
  $(document).on('click', '.license-btn', function (e) {
1558
  e.preventDefault();
 
1559
  if (!almActivating) {
 
1560
  $('.license-btn-wrap .msg').remove();
1561
  almActivating = true;
 
1562
  var el = $(this),
1563
  wrap = el.closest('.license-btn-wrap'),
1564
  parent = el.closest('.license'),
@@ -1600,12 +1602,15 @@ jQuery(document).ready(function ($) {
1600
  $('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
1601
  $('.license-title .status', parent).addClass('valid').removeClass('invalid');
1602
  $('.activate.license-btn', parent).addClass('hide');
 
1603
  $('.deactivate.license-btn', parent).removeClass('hide');
 
1604
  $('.no-license', parent).slideUp(200);
1605
  } else {
1606
  $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
1607
  $('.license-title .status', parent).removeClass('valid').addClass('invalid');
1608
  $('.activate.license-btn', parent).removeClass('hide');
 
1609
  $('.deactivate.license-btn', parent).addClass('hide');
1610
  $('.no-license', parent).slideDown(200);
1611
  }
@@ -1613,6 +1618,7 @@ jQuery(document).ready(function ($) {
1613
  $('.loading', parent).delay(250).fadeOut(300);
1614
  almActivating = false;
1615
  },
 
1616
  error: function error(xhr, status, _error2) {
1617
  console.log(status);
1618
  $('.loading', parent).delay(250).fadeOut(300);
@@ -1690,7 +1696,8 @@ jQuery(document).ready(function ($) {
1690
  $(document).on('click', '.alm-notification--dismiss', function (e) {
1691
  e.preventDefault();
1692
  var el = $(this),
1693
- container = el.parent('.group');
 
1694
  // Get value from Ajax
1695
  $.ajax({
1696
  type: 'POST',
1395
  *
1396
  * @since 2.8.4
1397
  */
 
1398
  $('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
1399
  $(this).tooltipster({
1400
  delay: 100,
1555
  var almActivating = false;
1556
  $(document).on('click', '.license-btn', function (e) {
1557
  e.preventDefault();
1558
+
1559
  if (!almActivating) {
1560
+
1561
  $('.license-btn-wrap .msg').remove();
1562
  almActivating = true;
1563
+
1564
  var el = $(this),
1565
  wrap = el.closest('.license-btn-wrap'),
1566
  parent = el.closest('.license'),
1602
  $('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
1603
  $('.license-title .status', parent).addClass('valid').removeClass('invalid');
1604
  $('.activate.license-btn', parent).addClass('hide');
1605
+ $('.check-licence.license-btn', parent).addClass('hide');
1606
  $('.deactivate.license-btn', parent).removeClass('hide');
1607
+ $('.renew-btn', parent).addClass('hide');
1608
  $('.no-license', parent).slideUp(200);
1609
  } else {
1610
  $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
1611
  $('.license-title .status', parent).removeClass('valid').addClass('invalid');
1612
  $('.activate.license-btn', parent).removeClass('hide');
1613
+ $('.check-licence.license-btn', parent).addClass('hide');
1614
  $('.deactivate.license-btn', parent).addClass('hide');
1615
  $('.no-license', parent).slideDown(200);
1616
  }
1618
  $('.loading', parent).delay(250).fadeOut(300);
1619
  almActivating = false;
1620
  },
1621
+
1622
  error: function error(xhr, status, _error2) {
1623
  console.log(status);
1624
  $('.loading', parent).delay(250).fadeOut(300);
1696
  $(document).on('click', '.alm-notification--dismiss', function (e) {
1697
  e.preventDefault();
1698
  var el = $(this),
1699
+ container = el.parent('.cta');
1700
+
1701
  // Get value from Ajax
1702
  $.ajax({
1703
  type: 'POST',
admin/includes/cta/sharing.php CHANGED
@@ -1,25 +1,26 @@
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="alm-notification alm-notification--blue">
7
- <h2>Thanks 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 } ?>
1
+ <?php
2
+ //delete_transient( 'alm_dismiss_sharing');
3
+ $alm_share_notification = get_transient( 'alm_dismiss_sharing');
4
+ if(!isset($alm_share_notification) || empty($alm_share_notification)){ // If transient has not been set - display this notice. ?>
5
+ <div class="cta alm-notification">
6
+ <!-- <h3>Thank you for installing Ajax Load More</h3> -->
7
+ <div class="cta-inner alm-text-center">
8
+ <p class="opener">👋 <strong>Thank you for using Ajax Load More!</strong></p>
9
+ <p>It would mean the world to me if you would consider sharing Ajax Load More with your social media networks or leaving a <a target="blank" href="//wordpress.org/support/plugin/ajax-load-more/reviews/">plugin review</a> on the WordPress forums.</p>
10
+ <p>All reviews(good or bad) are important as they help the plugin grow and improve over time.</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  </div>
12
+ <ul class="share">
13
+ <li class="twitter">
14
+ <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" style="background-color: rgba(0, 0, 0, 0.15);"><i class="fa fa-twitter"></i><span class="offscreens"><?php _e('Twitter', 'ajax-load-more'); ?></span></a>
15
+ </li>
16
+ <li class="facebook">
17
+ <a target="blank" title="Share on Facebook" style="background-color: rgba(0, 0, 0, 0.075);" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> <span class="offscreens"><?php _e('Facebook', 'ajax-load-more'); ?></span></a>
18
+ </li>
19
+ <li class="review">
20
+ <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><span class="offscreens"><?php _e('Review', 'ajax-load-more'); ?></span></a>
21
+ </li>
22
+ </ul>
23
+ <div class="clear"></div>
24
+ <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>
25
+ </div>
26
  <?php } ?>
admin/shortcode-builder/components/acf.php CHANGED
@@ -21,54 +21,53 @@
21
  </div>
22
  <div class="clear"></div>
23
 
24
- <div class="acf-options">
25
-
26
- <div class="clear"></div>
27
- <hr>
28
- <div class="section-title">
29
- <h4><?php _e('Post ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave this field blank and Ajax Load More will retrieve the ID from the global $post object','ajax-load-more'); ?>."></a></h4>
30
- <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
31
- </div>
32
- <div class="wrap">
33
- <div class="inner">
34
- <input type="text" value="" id="acf_post_id" class="alm_element numbers-only">
35
- </div>
36
- </div>
37
-
38
- <div class="clear"></div>
39
- <hr/>
40
-
41
- <div class="section-title">
42
- <h4><?php _e('Field Type', 'ajax-load-more'); ?></h4>
43
- <p><?php _e('Select the type of ACF field', 'ajax-load-more'); ?>.</p>
44
- </div>
45
- <div class="wrap">
46
- <div class="inner">
47
- <label class="offscreen" for="acf_field_type"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
48
- <select class="alm_element" name="acf_field_type" id="acf_field_type">
49
- <option value="" selected="selected">-- <?php _e('Select Field Type', 'ajax-load-more'); ?> --</option>
50
- <option value="flexible"><?php _e('Flexible Content', 'ajax-load-more'); ?></option>
51
- <option value="gallery"><?php _e('Gallery', 'ajax-load-more'); ?></option>
52
- <option value="relationship"><?php _e('Relationship', 'ajax-load-more'); ?></option>
53
- <option value="repeater"><?php _e('Repeater', 'ajax-load-more'); ?></option>
54
- </select>
55
- </div>
56
- </div>
57
-
58
- <div class="clear"></div>
59
- <hr/>
60
-
61
- <div class="section-title">
62
- <h4><?php _e('Field Name', 'ajax-load-more'); ?></h4>
63
- <p><?php _e('Enter the name of the ACF field', 'ajax-load-more'); ?>.</p>
64
- </div>
65
- <div class="wrap">
66
- <div class="inner">
67
- <label class="offscreen" for="acf_field_name"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
68
- <input type="text" class="alm_element" name="acf_field_name" id="acf_field_name" placeholder="{your_field_name}">
69
- </div>
70
- </div>
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  </div>
73
  </div>
74
  </div>
21
  </div>
22
  <div class="clear"></div>
23
 
24
+ <div class="acf-options nested-component">
25
+ <div class="nested-component--inner">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
+ <div class="section-title">
28
+ <h4><?php _e('Post ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave this field blank and Ajax Load More will retrieve the ID from the global $post object','ajax-load-more'); ?>."></a></h4>
29
+ <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
30
+ </div>
31
+ <div class="wrap">
32
+ <div class="inner">
33
+ <input type="text" value="" id="acf_post_id" class="alm_element numbers-only">
34
+ </div>
35
+ </div>
36
+
37
+ <div class="clear"></div>
38
+ <hr/>
39
+
40
+ <div class="section-title">
41
+ <h4><?php _e('Field Type', 'ajax-load-more'); ?></h4>
42
+ <p><?php _e('Select the type of ACF field', 'ajax-load-more'); ?>.</p>
43
+ </div>
44
+ <div class="wrap">
45
+ <div class="inner">
46
+ <label class="offscreen" for="acf_field_type"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
47
+ <select class="alm_element" name="acf_field_type" id="acf_field_type">
48
+ <option value="" selected="selected">-- <?php _e('Select Field Type', 'ajax-load-more'); ?> --</option>
49
+ <option value="flexible"><?php _e('Flexible Content', 'ajax-load-more'); ?></option>
50
+ <option value="gallery"><?php _e('Gallery', 'ajax-load-more'); ?></option>
51
+ <option value="relationship"><?php _e('Relationship', 'ajax-load-more'); ?></option>
52
+ <option value="repeater"><?php _e('Repeater', 'ajax-load-more'); ?></option>
53
+ </select>
54
+ </div>
55
+ </div>
56
+
57
+ <div class="clear"></div>
58
+ <hr/>
59
+
60
+ <div class="section-title">
61
+ <h4><?php _e('Field Name', 'ajax-load-more'); ?></h4>
62
+ <p><?php _e('Enter the name of the ACF field', 'ajax-load-more'); ?>.</p>
63
+ </div>
64
+ <div class="wrap">
65
+ <div class="inner">
66
+ <label class="offscreen" for="acf_field_name"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
67
+ <input type="text" class="alm_element" name="acf_field_name" id="acf_field_name" placeholder="{your_field_name}">
68
+ </div>
69
+ </div>
70
+ </div>
71
  </div>
72
  </div>
73
  </div>
admin/shortcode-builder/components/cache.php CHANGED
@@ -20,20 +20,20 @@
20
  </div>
21
  </div>
22
  <div class="clear"></div>
23
- <div class="cache_id">
24
- <div class="clear"></div>
25
- <hr>
26
- <div class="section-title">
27
- <h4><?php _e('Cache ID', 'ajax-load-more'); ?></h4>
28
- <p><?php _e('You <u>must</u> generate a unique ID for this cached query - this unique ID will be used as a content identifier.', 'ajax-load-more'); ?></p>
29
- </div>
30
- <div class="wrap">
31
- <div class="inner">
32
- <input type="text" class="alm_element" name="cache-id" id="cache-id">
33
- <div class="clear"></div>
34
- <p class="generate-id"><a href="javascript:void(0);" data-id="cache-id"><i class="fa fa-random"></i> <?php _e('Generate Cache ID', 'ajax-load-more'); ?></a></p>
35
- </div>
36
- </div>
37
  </div>
38
  </div>
39
  </div>
20
  </div>
21
  </div>
22
  <div class="clear"></div>
23
+ <div class="cache_id nested-component">
24
+ <div class="nested-component--inner">
25
+ <div class="section-title">
26
+ <h4><?php _e('Cache ID', 'ajax-load-more'); ?></h4>
27
+ <p><?php _e('You <u>must</u> generate a unique ID for this cached query - this unique ID will be used as a content identifier.', 'ajax-load-more'); ?></p>
28
+ </div>
29
+ <div class="wrap">
30
+ <div class="inner">
31
+ <input type="text" class="alm_element" name="cache-id" id="cache-id">
32
+ <div class="clear"></div>
33
+ <p class="generate-id"><a href="javascript:void(0);" data-id="cache-id"><i class="fa fa-random"></i> <?php _e('Generate Cache ID', 'ajax-load-more'); ?></a></p>
34
+ </div>
35
+ </div>
36
+ </div>
37
  </div>
38
  </div>
39
  </div>
admin/shortcode-builder/components/comments.php CHANGED
@@ -20,130 +20,129 @@
20
  </div>
21
  </div>
22
  <div class="clear"></div>
23
- <div class="comments_extras">
24
-
25
- <div class="clear"></div>
26
- <hr>
27
- <div class="section-title">
28
- <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
29
- <p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
30
- </div>
31
- <div class="wrap">
32
- <div class="inner">
33
- <input type="text" value="get_the_ID()" id="comments_post_id" class="alm_element disabled-input" disabled="disabled">
34
- </div>
35
- </div>
36
-
37
- <div class="clear"></div>
38
- <hr>
39
- <div class="section-title">
40
- <h4><?php _e('Comments Per Page', 'ajax-load-more'); ?></h4>
41
- <p><?php _e('The number of top level items to show for each page of comments.', 'ajax-load-more'); ?></p>
42
- </div>
43
- <div class="wrap">
44
- <div class="inner">
45
- <input type="number" class="alm_element numbers-only" name="comments-per-page" id="comments-per-page" step="1" min="1" value="5">
46
- </div>
47
- </div>
48
- <div class="section-title full">
49
- <p><?php _e('<strong>Note</strong>: The amount selected does NOT include comment replies.', 'ajax-load-more'); ?></p>
50
- </div>
51
-
52
- <div class="clear"></div>
53
- <hr>
54
- <div class="section-title">
55
- <h4><?php _e('Comment Type', 'ajax-load-more'); ?></h4>
56
- <p><?php _e('The type of comment(s) to display.', 'ajax-load-more'); ?></p>
57
- </div>
58
- <div class="wrap">
59
- <div class="inner">
60
- <select class="alm_element comments_type" id="comments_type">
61
- <option value="comment" selected="selected"><?php _e('Comment', 'ajax-load-more'); ?></option>
62
- <option value="all"><?php _e('All', 'ajax-load-more'); ?></option>
63
- <option value="trackback"><?php _e('Trackback', 'ajax-load-more'); ?></option>
64
- <option value="pingback"><?php _e('Pingback', 'ajax-load-more'); ?></option>
65
- <option value="pings"><?php _e('Pings', 'ajax-load-more'); ?></option>
66
- </select>
67
- </div>
68
- </div>
69
-
70
- <div class="clear"></div>
71
- <hr>
72
- <div class="section-title">
73
- <h4><?php _e('Comment Style', 'ajax-load-more'); ?></h4>
74
- <p><?php _e('Select the HTML container style for your comments.', 'ajax-load-more'); ?></p>
75
- </div>
76
- <div class="wrap">
77
- <div class="inner">
78
- <ul class="comment_container_type">
79
- <li>
80
- <input type="radio" id="comment-type-ol" value="ol" name="alm_comment_style" class="alm_element" checked="checked">
81
- <label for="comment-type-ol">&lt;ol&gt; &lt;/ol&gt;</label>
82
- </li>
83
- <li>
84
- <input type="radio" id="comment-type-ul" value="ul" name="alm_comment_style" class="alm_element">
85
- <label for="comment-type-ul">&lt;ul&gt; &lt;/ul&gt;</label>
86
- </li>
87
- <li>
88
- <input type="radio" id="comment-type-div" value="div" name="alm_comment_style" class="alm_element">
89
- <label for="comment-type-div">&lt;div&gt; &lt;/div&gt;</label>
90
- </li>
91
- </ul>
92
- </div>
93
- </div>
94
-
95
- <div class="clear"></div>
96
- <hr>
97
-
98
- <div class="section-title">
99
- <h4><?php _e('Comment Template', 'ajax-load-more'); ?></h4>
100
- <p><?php _e('Select a repeater template that will display comment data.', 'ajax-load-more'); ?></p>
101
- </div>
102
-
103
- <div class="wrap">
104
- <div class="inner">
105
- <select class="alm_element comments_template" id="comments_template">
106
- <option value="none" selected="selected"><?php _e('None', 'ajax-load-more'); ?></option>
107
- <option name="default" id="chk-default" value="default"><?php _e('Default', 'ajax-load-more'); ?></option>
108
- <?php if (has_action('alm_get_custom_repeaters')) {
109
- do_action('alm_get_custom_repeaters');
110
- }
111
- if (has_action('alm_get_unlimited_repeaters')) {
112
- do_action('alm_get_unlimited_repeaters');
113
- }
114
- ?>
115
- </select>
116
- </div>
117
- </div>
118
- <div class="section-title full">
119
- <p><?php _e('<strong>Note</strong>: <span>None</span> will use the default WordPress comment layout.', 'ajax-load-more'); ?></p>
120
- </div>
121
- <div class="spacer"></div>
122
- <div class="clear"></div>
123
- <div class="select-theme-repeater">
124
- <span class="or"><?php _e('or', 'ajax-load-more'); ?></span>
125
- <hr/>
126
- <div class="spacer"></div>
127
- <div class="section-title">
128
- <h4><?php _e('Callback Function', 'ajax-load-more'); ?></h4>
129
- <p><?php _e('A custom <a href="https://codex.wordpress.org/Function_Reference/wp_list_comments#Arguments" target="_blank">callback</a> function that will display each comment.', 'ajax-load-more'); ?></p>
130
- </div>
131
- <div class="wrap">
132
- <div class="inner">
133
- <input type="text" value="" placeholder="function_name" id="comments_callback" class="alm_element">
134
- </div>
135
- </div>
136
- <div class="section-title full">
137
- <p><?php _e('<strong>Note</strong>: The majority of premium themes have a custom callback function for displaying comments. Please see comments.php or functions.php within your theme directory to locate the callback function for your theme.', 'ajax-load-more'); ?></p>
138
- </div>
139
- </div>
140
-
141
- <div class="clear"></div>
142
- <hr>
143
- <p class="warning-callout">
144
- <?php _e('You must add the comments shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method.', 'ajax-load-more'); ?> <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
145
- </p>
146
-
147
  </div>
148
  </div>
149
  </div>
20
  </div>
21
  </div>
22
  <div class="clear"></div>
23
+ <div class="comments_extras nested-component">
24
+ <div class="nested-component--inner">
25
+ <div class="section-title">
26
+ <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
27
+ <p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
28
+ </div>
29
+ <div class="wrap">
30
+ <div class="inner">
31
+ <input type="text" value="get_the_ID()" id="comments_post_id" class="alm_element disabled-input" disabled="disabled">
32
+ </div>
33
+ </div>
34
+
35
+ <div class="clear"></div>
36
+ <hr>
37
+ <div class="section-title">
38
+ <h4><?php _e('Comments Per Page', 'ajax-load-more'); ?></h4>
39
+ <p><?php _e('The number of top level items to show for each page of comments.', 'ajax-load-more'); ?></p>
40
+ </div>
41
+ <div class="wrap">
42
+ <div class="inner">
43
+ <input type="number" class="alm_element numbers-only" name="comments-per-page" id="comments-per-page" step="1" min="1" value="5">
44
+ </div>
45
+ </div>
46
+ <div class="section-title full">
47
+ <p><?php _e('<strong>Note</strong>: The amount selected does NOT include comment replies.', 'ajax-load-more'); ?></p>
48
+ </div>
49
+
50
+ <div class="clear"></div>
51
+ <hr>
52
+ <div class="section-title">
53
+ <h4><?php _e('Comment Type', 'ajax-load-more'); ?></h4>
54
+ <p><?php _e('The type of comment(s) to display.', 'ajax-load-more'); ?></p>
55
+ </div>
56
+ <div class="wrap">
57
+ <div class="inner">
58
+ <select class="alm_element comments_type" id="comments_type">
59
+ <option value="comment" selected="selected"><?php _e('Comment', 'ajax-load-more'); ?></option>
60
+ <option value="all"><?php _e('All', 'ajax-load-more'); ?></option>
61
+ <option value="trackback"><?php _e('Trackback', 'ajax-load-more'); ?></option>
62
+ <option value="pingback"><?php _e('Pingback', 'ajax-load-more'); ?></option>
63
+ <option value="pings"><?php _e('Pings', 'ajax-load-more'); ?></option>
64
+ </select>
65
+ </div>
66
+ </div>
67
+
68
+ <div class="clear"></div>
69
+ <hr>
70
+ <div class="section-title">
71
+ <h4><?php _e('Comment Style', 'ajax-load-more'); ?></h4>
72
+ <p><?php _e('Select the HTML container style for your comments.', 'ajax-load-more'); ?></p>
73
+ </div>
74
+ <div class="wrap">
75
+ <div class="inner">
76
+ <ul class="comment_container_type">
77
+ <li>
78
+ <input type="radio" id="comment-type-ol" value="ol" name="alm_comment_style" class="alm_element" checked="checked">
79
+ <label for="comment-type-ol">&lt;ol&gt; &lt;/ol&gt;</label>
80
+ </li>
81
+ <li>
82
+ <input type="radio" id="comment-type-ul" value="ul" name="alm_comment_style" class="alm_element">
83
+ <label for="comment-type-ul">&lt;ul&gt; &lt;/ul&gt;</label>
84
+ </li>
85
+ <li>
86
+ <input type="radio" id="comment-type-div" value="div" name="alm_comment_style" class="alm_element">
87
+ <label for="comment-type-div">&lt;div&gt; &lt;/div&gt;</label>
88
+ </li>
89
+ </ul>
90
+ </div>
91
+ </div>
92
+
93
+ <div class="clear"></div>
94
+ <hr>
95
+
96
+ <div class="section-title">
97
+ <h4><?php _e('Comment Template', 'ajax-load-more'); ?></h4>
98
+ <p><?php _e('Select a repeater template that will display comment data.', 'ajax-load-more'); ?></p>
99
+ </div>
100
+
101
+ <div class="wrap">
102
+ <div class="inner">
103
+ <select class="alm_element comments_template" id="comments_template">
104
+ <option value="none" selected="selected"><?php _e('None', 'ajax-load-more'); ?></option>
105
+ <option name="default" id="chk-default" value="default"><?php _e('Default', 'ajax-load-more'); ?></option>
106
+ <?php if (has_action('alm_get_custom_repeaters')) {
107
+ do_action('alm_get_custom_repeaters');
108
+ }
109
+ if (has_action('alm_get_unlimited_repeaters')) {
110
+ do_action('alm_get_unlimited_repeaters');
111
+ }
112
+ ?>
113
+ </select>
114
+ </div>
115
+ </div>
116
+ <div class="section-title full">
117
+ <p><?php _e('<strong>Note</strong>: <span>None</span> will use the default WordPress comment layout.', 'ajax-load-more'); ?></p>
118
+ </div>
119
+ <div class="spacer"></div>
120
+ <div class="clear"></div>
121
+ <div class="select-theme-repeater">
122
+ <span class="or"><?php _e('or', 'ajax-load-more'); ?></span>
123
+ <hr/>
124
+ <div class="spacer"></div>
125
+ <div class="section-title">
126
+ <h4><?php _e('Callback Function', 'ajax-load-more'); ?></h4>
127
+ <p><?php _e('A custom <a href="https://codex.wordpress.org/Function_Reference/wp_list_comments#Arguments" target="_blank">callback</a> function that will display each comment.', 'ajax-load-more'); ?></p>
128
+ </div>
129
+ <div class="wrap">
130
+ <div class="inner">
131
+ <input type="text" value="" placeholder="function_name" id="comments_callback" class="alm_element">
132
+ </div>
133
+ </div>
134
+ <div class="section-title full">
135
+ <p><?php _e('<strong>Note</strong>: The majority of premium themes have a custom callback function for displaying comments. Please see comments.php or functions.php within your theme directory to locate the callback function for your theme.', 'ajax-load-more'); ?></p>
136
+ </div>
137
+ </div>
138
+
139
+ <div class="clear"></div>
140
+ <hr>
141
+ <p class="warning-callout">
142
+ <?php _e('You must add the comments shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method.', 'ajax-load-more'); ?> <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
143
+ </p>
144
+
145
+ </div>
 
146
  </div>
147
  </div>
148
  </div>
admin/shortcode-builder/components/cta.php CHANGED
@@ -22,71 +22,70 @@
22
  </div>
23
  <div class="clear"></div>
24
 
25
- <div class="cta_template_wrap">
 
26
 
27
- <hr/>
28
- <div class="spacer"></div>
29
-
30
- <div class="section-title">
31
- <h4><?php _e('CTA Positioning', 'ajax-load-more'); ?></h4>
32
- <p><?php _e('Insert call to action <strong><em id="sequence-update-before-after">before</em></strong> post #<strong><em id="sequence-update">1</em></strong>', 'ajax-load-more'); ?>.</p>
33
- </div>
34
- <div class="wrap">
35
- <div class="inner">
36
-
37
- <label class="full"><?php _e('Before / After', 'ajax-load-more'); ?>:</label>
38
- <select class="alm_element cta-before-after" name="cta-before-after" id="cta-before-after">
39
- <option value="before" selected="selected"><?php _e('Before', 'ajax-load-more'); ?></option>
40
- <option value="after"><?php _e('After', 'ajax-load-more'); ?></option>
41
- </select>
42
- <div class="clear"></div>
43
- <div class="spacer" style="height: 30px;"></div>
44
- <label class="full" for="cta-position"><?php _e('Post #', 'ajax-load-more'); ?>:</label>
45
- <input type="number" min="1" step="1" value="1" placeholder="1" id="cta-position" class="alm_element numbers-only" name="cta-position">
46
-
47
- </div>
48
- </div>
49
-
50
- <div class="clear"></div>
51
- <hr/>
52
- <div class="spacer"></div>
53
-
54
- <div class="section-title">
55
- <h4><?php _e('Template', 'ajax-load-more'); ?></h4>
56
- <?php
57
- echo '<p>'.__('Select the <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a> that will display your call to action.', 'ajax-load-more'). '</p>';
58
- ?>
59
- </div>
60
- <div class="wrap">
61
- <div class="inner">
62
  <?php
63
- echo '<select name="cta-repeater-select" class="alm_element">';
64
- echo '<option name="" value="" selected="selected">'.__('-- Select Repeater --', 'ajax-load-more').'</option>';
65
- echo '<option name="default" value="default">Default</option>';
66
- if (has_action('alm_get_custom_repeaters')) {
67
- do_action('alm_get_custom_repeaters');
68
- }
69
- if (has_action('alm_get_unlimited_repeaters')) {
70
- do_action('alm_get_unlimited_repeaters');
71
- }
72
- echo '</select>';
73
- ?>
74
  </div>
75
- </div>
76
- <?php
77
- // Get Theme Repeaters
78
- if (has_action('alm_theme_repeaters_selection')){
79
- do_action('alm_theme_repeaters_selection');
80
- }
81
- ?>
82
-
83
- <div class="clear"></div>
84
- <hr>
85
- <p class="warning-callout">
86
- <?php _e('Call to actions do NOT count as a post within an Ajax Load More loop.', 'ajax-load-more'); ?><br/>
87
- <?php _e('For example, if you set <strong>posts_per_page="5"</strong> in your shortcode, 6 items will be displayed.', 'ajax-load-more'); ?>
88
- </p>
89
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  </div>
91
 
92
  </div>
22
  </div>
23
  <div class="clear"></div>
24
 
25
+ <div class="cta_template_wrap nested-component">
26
+ <div class="nested-component--inner">
27
 
28
+ <div class="section-title">
29
+ <h4><?php _e('CTA Positioning', 'ajax-load-more'); ?></h4>
30
+ <p><?php _e('Insert call to action <strong><em id="sequence-update-before-after">before</em></strong> post #<strong><em id="sequence-update">1</em></strong>', 'ajax-load-more'); ?>.</p>
31
+ </div>
32
+ <div class="wrap">
33
+ <div class="inner">
34
+
35
+ <label class="full"><?php _e('Before / After', 'ajax-load-more'); ?>:</label>
36
+ <select class="alm_element cta-before-after" name="cta-before-after" id="cta-before-after">
37
+ <option value="before" selected="selected"><?php _e('Before', 'ajax-load-more'); ?></option>
38
+ <option value="after"><?php _e('After', 'ajax-load-more'); ?></option>
39
+ </select>
40
+ <div class="clear"></div>
41
+ <div class="spacer" style="height: 30px;"></div>
42
+ <label class="full" for="cta-position"><?php _e('Post #', 'ajax-load-more'); ?>:</label>
43
+ <input type="number" min="1" step="1" value="1" placeholder="1" id="cta-position" class="alm_element numbers-only" name="cta-position">
44
+
45
+ </div>
46
+ </div>
47
+
48
+ <div class="clear"></div>
49
+ <hr/>
50
+ <div class="spacer"></div>
51
+
52
+ <div class="section-title">
53
+ <h4><?php _e('Template', 'ajax-load-more'); ?></h4>
 
 
 
 
 
 
 
 
 
54
  <?php
55
+ echo '<p>'.__('Select the <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a> that will display your call to action.', 'ajax-load-more'). '</p>';
56
+ ?>
 
 
 
 
 
 
 
 
 
57
  </div>
58
+ <div class="wrap">
59
+ <div class="inner">
60
+ <?php
61
+ echo '<select name="cta-repeater-select" class="alm_element">';
62
+ echo '<option name="" value="" selected="selected">'.__('-- Select Repeater --', 'ajax-load-more').'</option>';
63
+ echo '<option name="default" value="default">Default</option>';
64
+ if (has_action('alm_get_custom_repeaters')) {
65
+ do_action('alm_get_custom_repeaters');
66
+ }
67
+ if (has_action('alm_get_unlimited_repeaters')) {
68
+ do_action('alm_get_unlimited_repeaters');
69
+ }
70
+ echo '</select>';
71
+ ?>
72
+ </div>
73
+ </div>
74
+ <?php
75
+ // Get Theme Repeaters
76
+ if (has_action('alm_theme_repeaters_selection')){
77
+ do_action('alm_theme_repeaters_selection');
78
+ }
79
+ ?>
80
+
81
+ <div class="clear"></div>
82
+ <hr>
83
+ <p class="warning-callout">
84
+ <?php _e('Call to actions do NOT count as a post within an Ajax Load More loop.', 'ajax-load-more'); ?><br/>
85
+ <?php _e('For example, if you set <strong>posts_per_page="5"</strong> in your shortcode, 6 items will be displayed.', 'ajax-load-more'); ?>
86
+ </p>
87
+
88
+ </div>
89
  </div>
90
 
91
  </div>
admin/shortcode-builder/components/filters.php CHANGED
@@ -22,178 +22,177 @@
22
 
23
  <div class="clear"></div>
24
 
25
- <div class="filters_options">
26
-
27
- <div class="clear"></div>
28
- <hr>
29
-
30
- <div class="section-title">
31
- <h4><?php _e('Target', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('A target ID is not required but it is highly recommended to avoid issues with querystring parsing on page load.','ajax-load-more'); ?>"></a></h4>
32
- <p><?php _e('Connect Ajax Load More to a specific <a href="admin.php?page=ajax-load-more-filters">filter instance</a> by selecting the filter ID.', 'ajax-load-more'); ?></p>
33
- </div>
34
- <div class="wrap">
35
- <div class="inner">
36
- <?php
37
- if(class_exists('ALMFilters')){
38
- $current_filters = ALMFilters::alm_get_all_filters();
39
-
40
- if($current_filters){
41
- $count = 0;
42
- $return = '';
43
- foreach( $current_filters as $the_filter ) {
44
- if(!in_array($the_filter, array('alm_filters_license_key', 'alm_filters_license_status'))){
45
- $count++;
46
- $value = str_replace(ALM_FILTERS_PREFIX, '', $the_filter);
47
- $return .= '<option value="'. $value .'">'. $value .'</option>';
48
- }
49
- }
50
- if($count > 0){
51
- echo '<select class="alm_element" name="filters-id" id="filters-id">';
52
- echo '<option value="" selected="selected">'. __('-- Select Filter --', 'ajax-load-more') .'</option>';
53
- echo $return;
54
- echo '</select>';
55
- } else { ?>
56
- <p><?php _e('You don\'t have any filters! The first step is to create one', 'ajax-load-more'); ?>!</p>
57
- <?php
58
- }
59
-
60
- }
61
- }
62
- ?>
63
- </div>
64
- </div>
65
-
66
- <div class="clear"></div>
67
- <hr>
68
-
69
- <div class="section-title">
70
- <h4><?php _e('URLs', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Querystring URLs allow users to share deep links to filtered content.','ajax-load-more'); ?>"></a></h4>
71
- <p><?php _e('Update the browser querystring with active filters values.','ajax-load-more'); ?><br/><small>e.g. ?category=design&tag=mobile</small></p>
72
- </div>
73
- <div class="wrap">
74
- <div class="inner">
75
- <ul>
76
- <li>
77
- <input class="alm_element" type="radio" name="filters-url" value="true" id="filters-url-true" checked="checked">
78
- <label for="filters-url-true"><?php _e('True', 'ajax-load-more'); ?></label>
79
- </li>
80
- <li>
81
- <input class="alm_element" type="radio" name="filters-url" value="false" id="filters-url-false">
82
- <label for="filters-url-false"><?php _e('False', 'ajax-load-more'); ?></label>
83
- </li>
84
- </ul>
85
- </div>
86
- </div>
87
-
88
- <div class="clear"></div>
89
- <hr>
90
 
91
- <div class="section-title">
92
- <h4><?php _e('Paging Parameters', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Adding paging parameters will allow for deep linking to a paged filter.','ajax-load-more'); ?>"></a></h4>
93
- <p><?php _e('Add <span>?pg={x}</span> to the browser querystring as users load additional pages.', 'ajax-load-more'); ?></p>
94
- </div>
95
- <div class="wrap">
96
- <div class="inner">
97
- <ul>
98
- <li>
99
- <input class="alm_element" type="radio" name="filters-paging" value="true" id="filters-paging-true" checked="checked">
100
- <label for="filters-paging-true"><?php _e('True', 'ajax-load-more'); ?></label>
101
- </li>
102
- <li>
103
- <input class="alm_element" type="radio" name="filters-paging" value="false" id="filters-paging-false">
104
- <label for="filters-paging-false"><?php _e('False', 'ajax-load-more'); ?></label>
105
- </li>
106
- </ul>
107
- </div>
108
- </div>
109
-
110
- <div class="clear"></div>
111
- <hr>
112
-
113
- <div class="section-title">
114
- <h4><?php _e('Scroll', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('When a user filters a list they will be auto scrolled back to the top.','ajax-load-more'); ?>"></a></h4>
115
- <p><?php _e('Automatically scroll users to the top of list after a filter update.', 'ajax-load-more'); ?></p>
116
- </div>
117
- <div class="wrap">
118
- <div class="inner">
119
- <ul>
120
- <li>
121
- <input class="alm_element" type="radio" name="filters-scroll" value="true" id="filters-scroll-true">
122
- <label for="filters-scroll-true"><?php _e('True', 'ajax-load-more'); ?></label>
123
- </li>
124
- <li>
125
- <input class="alm_element" type="radio" name="filters-scroll" value="false" id="filters-scroll-false" checked="checked">
126
- <label for="filters-scroll-false"><?php _e('False', 'ajax-load-more'); ?></label>
127
- </li>
128
- </ul>
129
- </div>
130
- </div>
131
-
132
- <div class="clear"></div>
133
- <div id="filter-scrollTopOptions" style="display: none; overflow: hidden;">
134
  <div class="clear"></div>
135
  <hr>
136
-
137
  <div class="section-title">
138
- <h4><?php _e('Scroll Top', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('The Scroll Top value is the pixel position the window will be scrolled to.','ajax-load-more'); ?>"></a></h4>
139
- <p><?php _e('The offset top position of the window used with `Paging Parameters` and `Scroll`.', 'ajax-load-more'); ?></p>
140
  </div>
141
  <div class="wrap">
142
  <div class="inner">
143
- <label for="filters-scrolltop" class="full">
144
- <?php _e('Scroll Top Value', 'ajax-load-more'); ?>
145
- </label>
146
- <input id="filters-scrolltop" name="filters-scrolltop" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
 
 
 
 
 
 
147
  </div>
148
  </div>
149
- </div>
150
-
151
- <div class="clear"></div>
152
- <hr>
153
-
154
- <div class="section-title">
155
- <h4><?php _e('Analytics', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Each time the filter is updated a pageview will be sent to Google Analytics.','ajax-load-more'); ?>"></a></h4>
156
- <p><?php _e('Send pageviews to Google Analytics.', 'ajax-load-more'); ?></p>
157
- </div>
158
- <div class="wrap">
159
- <div class="inner">
160
- <ul>
161
- <li>
162
- <input class="alm_element" type="radio" name="filters-analytics" value="true" id="filters-analytics-true" checked="checked">
163
- <label for="filters-analytics-true"><?php _e('True', 'ajax-load-more'); ?></label>
164
- </li>
165
- <li>
166
- <input class="alm_element" type="radio" name="filters-analytics" value="false" id="filters-analytics-false">
167
- <label for="filters-analytics-false"><?php _e('False', 'ajax-load-more'); ?></label>
168
- </li>
169
- </ul>
170
- </div>
171
- </div>
172
-
173
- <div class="clear"></div>
174
- <hr>
175
-
176
- <div class="section-title">
177
- <h4><?php _e('Debug Mode', 'ajax-load-more'); ?></h4>
178
- <p><?php _e('Enable debugging of the Ajax Load More filter object in the browser console.', 'ajax-load-more'); ?></p>
179
- </div>
180
- <div class="wrap">
181
- <div class="inner">
182
- <ul>
183
- <li>
184
- <input class="alm_element" type="radio" name="filters-debug" value="true" id="filters-debug-true">
185
- <label for="filters-debug-true"><?php _e('True', 'ajax-load-more'); ?></label>
186
- </li>
187
- <li>
188
- <input class="alm_element" type="radio" name="filters-debug" value="false" id="filters-debug-false" checked="checked">
189
- <label for="filters-debug-false"><?php _e('False', 'ajax-load-more'); ?></label>
190
- </li>
191
- </ul>
192
- </div>
193
- </div>
194
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  </div>
196
-
197
  </div>
198
  </div>
199
  <?php } ?>
22
 
23
  <div class="clear"></div>
24
 
25
+ <div class="filters_options nested-component">
26
+ <div class="nested-component--inner">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
+ <div class="section-title">
29
+ <h4><?php _e('Target', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('A target ID is not required but it is highly recommended to avoid issues with querystring parsing on page load.','ajax-load-more'); ?>"></a></h4>
30
+ <p><?php _e('Connect Ajax Load More to a specific <a href="admin.php?page=ajax-load-more-filters">filter instance</a> by selecting the filter ID.', 'ajax-load-more'); ?></p>
31
+ </div>
32
+ <div class="wrap">
33
+ <div class="inner">
34
+ <?php
35
+ if(class_exists('ALMFilters')){
36
+ $current_filters = ALMFilters::alm_get_all_filters();
37
+
38
+ if($current_filters){
39
+ $count = 0;
40
+ $return = '';
41
+ foreach( $current_filters as $the_filter ) {
42
+ if(!in_array($the_filter, array('alm_filters_license_key', 'alm_filters_license_status'))){
43
+ $count++;
44
+ $value = str_replace(ALM_FILTERS_PREFIX, '', $the_filter);
45
+ $return .= '<option value="'. $value .'">'. $value .'</option>';
46
+ }
47
+ }
48
+ if($count > 0){
49
+ echo '<select class="alm_element" name="filters-id" id="filters-id">';
50
+ echo '<option value="" selected="selected">'. __('-- Select Filter --', 'ajax-load-more') .'</option>';
51
+ echo $return;
52
+ echo '</select>';
53
+ } else { ?>
54
+ <p><?php _e('You don\'t have any filters! The first step is to create one', 'ajax-load-more'); ?>!</p>
55
+ <?php
56
+ }
57
+
58
+ }
59
+ }
60
+ ?>
61
+ </div>
62
+ </div>
63
+
 
 
 
 
 
 
 
64
  <div class="clear"></div>
65
  <hr>
66
+
67
  <div class="section-title">
68
+ <h4><?php _e('URLs', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Querystring URLs allow users to share deep links to filtered content.','ajax-load-more'); ?>"></a></h4>
69
+ <p><?php _e('Update the browser querystring with active filters values.','ajax-load-more'); ?><br/><small>e.g. ?category=design&tag=mobile</small></p>
70
  </div>
71
  <div class="wrap">
72
  <div class="inner">
73
+ <ul>
74
+ <li>
75
+ <input class="alm_element" type="radio" name="filters-url" value="true" id="filters-url-true" checked="checked">
76
+ <label for="filters-url-true"><?php _e('True', 'ajax-load-more'); ?></label>
77
+ </li>
78
+ <li>
79
+ <input class="alm_element" type="radio" name="filters-url" value="false" id="filters-url-false">
80
+ <label for="filters-url-false"><?php _e('False', 'ajax-load-more'); ?></label>
81
+ </li>
82
+ </ul>
83
  </div>
84
  </div>
85
+
86
+ <div class="clear"></div>
87
+ <hr>
88
+
89
+ <div class="section-title">
90
+ <h4><?php _e('Paging Parameters', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Adding paging parameters will allow for deep linking to a paged filter.','ajax-load-more'); ?>"></a></h4>
91
+ <p><?php _e('Add <span>?pg={x}</span> to the browser querystring as users load additional pages.', 'ajax-load-more'); ?></p>
92
+ </div>
93
+ <div class="wrap">
94
+ <div class="inner">
95
+ <ul>
96
+ <li>
97
+ <input class="alm_element" type="radio" name="filters-paging" value="true" id="filters-paging-true" checked="checked">
98
+ <label for="filters-paging-true"><?php _e('True', 'ajax-load-more'); ?></label>
99
+ </li>
100
+ <li>
101
+ <input class="alm_element" type="radio" name="filters-paging" value="false" id="filters-paging-false">
102
+ <label for="filters-paging-false"><?php _e('False', 'ajax-load-more'); ?></label>
103
+ </li>
104
+ </ul>
105
+ </div>
106
+ </div>
107
+
108
+ <div class="clear"></div>
109
+ <hr>
110
+
111
+ <div class="section-title">
112
+ <h4><?php _e('Scroll', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('When a user filters a list they will be auto scrolled back to the top.','ajax-load-more'); ?>"></a></h4>
113
+ <p><?php _e('Automatically scroll users to the top of list after a filter update.', 'ajax-load-more'); ?></p>
114
+ </div>
115
+ <div class="wrap">
116
+ <div class="inner">
117
+ <ul>
118
+ <li>
119
+ <input class="alm_element" type="radio" name="filters-scroll" value="true" id="filters-scroll-true">
120
+ <label for="filters-scroll-true"><?php _e('True', 'ajax-load-more'); ?></label>
121
+ </li>
122
+ <li>
123
+ <input class="alm_element" type="radio" name="filters-scroll" value="false" id="filters-scroll-false" checked="checked">
124
+ <label for="filters-scroll-false"><?php _e('False', 'ajax-load-more'); ?></label>
125
+ </li>
126
+ </ul>
127
+ </div>
128
+ </div>
129
+
130
+ <div class="clear"></div>
131
+ <div id="filter-scrollTopOptions" style="display: none; overflow: hidden;">
132
+ <div class="clear"></div>
133
+ <hr>
134
+
135
+ <div class="section-title">
136
+ <h4><?php _e('Scroll Top', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('The Scroll Top value is the pixel position the window will be scrolled to.','ajax-load-more'); ?>"></a></h4>
137
+ <p><?php _e('The offset top position of the window used with `Paging Parameters` and `Scroll`.', 'ajax-load-more'); ?></p>
138
+ </div>
139
+ <div class="wrap">
140
+ <div class="inner">
141
+ <label for="filters-scrolltop" class="full">
142
+ <?php _e('Scroll Top Value', 'ajax-load-more'); ?>
143
+ </label>
144
+ <input id="filters-scrolltop" name="filters-scrolltop" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
145
+ </div>
146
+ </div>
147
+ </div>
148
+
149
+ <div class="clear"></div>
150
+ <hr>
151
+
152
+ <div class="section-title">
153
+ <h4><?php _e('Analytics', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Each time the filter is updated a pageview will be sent to Google Analytics.','ajax-load-more'); ?>"></a></h4>
154
+ <p><?php _e('Send pageviews to Google Analytics.', 'ajax-load-more'); ?></p>
155
+ </div>
156
+ <div class="wrap">
157
+ <div class="inner">
158
+ <ul>
159
+ <li>
160
+ <input class="alm_element" type="radio" name="filters-analytics" value="true" id="filters-analytics-true" checked="checked">
161
+ <label for="filters-analytics-true"><?php _e('True', 'ajax-load-more'); ?></label>
162
+ </li>
163
+ <li>
164
+ <input class="alm_element" type="radio" name="filters-analytics" value="false" id="filters-analytics-false">
165
+ <label for="filters-analytics-false"><?php _e('False', 'ajax-load-more'); ?></label>
166
+ </li>
167
+ </ul>
168
+ </div>
169
+ </div>
170
+
171
+ <div class="clear"></div>
172
+ <hr>
173
+
174
+ <div class="section-title">
175
+ <h4><?php _e('Debug Mode', 'ajax-load-more'); ?></h4>
176
+ <p><?php _e('Enable debugging of the Ajax Load More filter object in the browser console.', 'ajax-load-more'); ?></p>
177
+ </div>
178
+ <div class="wrap">
179
+ <div class="inner">
180
+ <ul>
181
+ <li>
182
+ <input class="alm_element" type="radio" name="filters-debug" value="true" id="filters-debug-true">
183
+ <label for="filters-debug-true"><?php _e('True', 'ajax-load-more'); ?></label>
184
+ </li>
185
+ <li>
186
+ <input class="alm_element" type="radio" name="filters-debug" value="false" id="filters-debug-false" checked="checked">
187
+ <label for="filters-debug-false"><?php _e('False', 'ajax-load-more'); ?></label>
188
+ </li>
189
+ </ul>
190
+ </div>
191
+ </div>
192
+
193
+ </div>
194
+
195
  </div>
 
196
  </div>
197
  </div>
198
  <?php } ?>
admin/shortcode-builder/components/nextpage.php CHANGED
@@ -22,94 +22,94 @@
22
 
23
  <div class="clear"></div>
24
 
25
- <div class="next-page-content" style="display: none;">
26
-
27
- <div class="clear"></div>
28
- <hr>
29
- <div class="section-title">
30
- <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
31
- <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
32
- </div>
33
- <div class="wrap">
34
- <div class="inner">
35
- <input type="text" value="get_the_ID()" id="next-page_post_id" class="alm_element disabled-input" disabled="disabled">
36
- </div>
37
- </div>
38
-
39
- <div class="clear"></div>
40
- <hr/>
41
-
42
- <div class="section-title">
43
- <h4><?php _e('URL Rewrite', 'ajax-load-more'); ?></h4>
44
- <p><?php _e('Update the browser address bar as pages come into view', 'ajax-load-more'); ?>.</p>
45
- </div>
46
- <div class="wrap">
47
- <div class="inner">
48
- <ul>
49
- <li style="width:100%;">
50
- <input class="alm_element" type="checkbox" name="next-page-url" id="next-page-url" value="true" checked="checked">
51
- <label for="next-page-url"><?php _e('Yes, update the URL', 'ajax-load-more'); ?>.</label>
52
- </li>
53
- </ul>
54
- <input type="checkbox" class="alm_element" name="next-page-url" id="next-page-url" checked="checked">
55
- </div>
56
- </div>
57
-
58
- <div class="clear"></div>
59
- <hr/>
60
-
61
- <div class="section-title">
62
- <h4>
63
- <?php _e('Google Analytics', 'ajax-load-more'); ?>
64
- <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You must have a reference to your Google Analytics tracking code already on the page','ajax-load-more'); ?>."></a>
65
- </h4>
66
- <p><?php _e('Each time a page is loaded it will count as a pageview', 'ajax-load-more'); ?>.</p>
67
- </div>
68
- <div class="wrap">
69
- <div class="inner">
70
- <ul>
71
-