WordPress Infinite Scroll – Ajax Load More - Version 2.9.0

Version Description

Download this release

Release Info

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

Code changes from version 2.8.6 to 2.9.0

README.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Ajax Load More - Infinite Scroll ===
2
  Contributors: dcooney
3
- Donate link: http://connekthq.com/donate/
4
- Tags: infinite scroll, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, loop, query, dynamic, shortcode builder, wp_query, search, tags, category, post types, taxonomy, meta_query, archives, date, infinite scrolling, endless scroll, endless, endless scroll
5
  Requires at least: 3.6
6
- Tested up to: 4.4
7
- Stable tag: 2.8.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -84,6 +84,7 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
84
  * **pause_override** - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
85
  * **pause** - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
86
  * **transition** - Choose a posts reveal transition (slide/fade/none). Default = 'slide'
 
87
  * **images_loaded** - Wait for all images to load before displaying ajax loaded content (true/false). Default = 'false'
88
  * **destroy_after** - Remove ajax load more functionality after 'n' number of pages have been loaded. Default = null
89
  * **button_label** - The label text for Load More button. Default = 'Older Posts'
@@ -124,6 +125,7 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
124
  * **[Search Results](http://connekthq.com/plugins/ajax-load-more/examples/search-results/)** - Returning results based on search terms
125
  * **[SEO & Paging](https://connekthq.com/plugins/ajax-load-more/examples/seo-paging-add-ons/)** - Combine these two add-ons to create one powerful navigation system
126
  * **[Slideshow Gallery](https://connekthq.com/plugins/ajax-load-more/examples/slideshow-gallery/)** - Create a gallery of posts with Ajax Load More and the Paging add-on.
 
127
 
128
  *The [Custom Repeater Add-On](http://connekthq.com/plugins/ajax-load-more/custom-repeaters/) has been installed for use on each of our product demos*
129
 
@@ -146,6 +148,10 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
146
  > The **[Custom Repeaters](http://connekthq.com/plugins/ajax-load-more/custom-repeaters/)** add-on will allow for **unlimited repeater templates** and provide the ability to create unique templates for different content types throughout your theme.<br />
147
  > [Get More Information](http://connekthq.com/plugins/ajax-load-more/custom-repeaters/)
148
  >
 
 
 
 
149
  > #### Paging
150
  > The **[Paging](http://connekthq.com/plugins/ajax-load-more/paging/)** add-on will transform Ajax Load More’s lazy load/infinite scroll functionality into a robust ajax powered navigation system.<br />
151
  > [Get More Information](http://connekthq.com/plugins/ajax-load-more/paging/)
@@ -210,6 +216,7 @@ The following [functions](https://connekthq.com/plugins/ajax-load-more/docs/call
210
 
211
  Ajax Load More passes the following PHP [variables](https://connekthq.com/plugins/ajax-load-more/docs/variables/) to each repeater template - these template variables can help you style and transform your repeater templates.
212
 
 
213
  * **$alm_page** - Returns the current page number. 'echo $alm_page;'
214
  * **$alm_item** - Returns the current item number within your loop. 'echo $alm_item;'
215
  * **$alm_found_posts** - Returns the total number of posts found within the entire WordPress query. 'echo $alm_found_posts;'
@@ -313,6 +320,20 @@ How to install Ajax Load More.
313
 
314
  == Changelog ==
315
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
  = 2.8.6 =
317
  * NEW - Adding a set of filter hooks to enable users to hook into Ajax Load More to insert or modify data. See https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/ for more information.
318
  * FIX - Updated infinite scrolling css styling.
1
  === Ajax Load More - Infinite Scroll ===
2
  Contributors: dcooney
3
+ Donate link: https://connekthq.com/donate/
4
+ Tags: infinite scroll, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, loop, query, dynamic, shortcode builder, wp_query, search, tags, category, post types, taxonomy, meta_query, archives, date, infinite scrolling
5
  Requires at least: 3.6
6
+ Tested up to: 4.5
7
+ Stable tag: 3.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
84
  * **pause_override** - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
85
  * **pause** - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
86
  * **transition** - Choose a posts reveal transition (slide/fade/none). Default = 'slide'
87
+ * **transition_container - Display the Ajax Load More (.alm-reveal) loading container. Default = 'true'
88
  * **images_loaded** - Wait for all images to load before displaying ajax loaded content (true/false). Default = 'false'
89
  * **destroy_after** - Remove ajax load more functionality after 'n' number of pages have been loaded. Default = null
90
  * **button_label** - The label text for Load More button. Default = 'Older Posts'
125
  * **[Search Results](http://connekthq.com/plugins/ajax-load-more/examples/search-results/)** - Returning results based on search terms
126
  * **[SEO & Paging](https://connekthq.com/plugins/ajax-load-more/examples/seo-paging-add-ons/)** - Combine these two add-ons to create one powerful navigation system
127
  * **[Slideshow Gallery](https://connekthq.com/plugins/ajax-load-more/examples/slideshow-gallery/)** - Create a gallery of posts with Ajax Load More and the Paging add-on.
128
+ * **[Table Layout](https://connekthq.com/plugins/ajax-load-more/examples/table/)** - Ajax Load More will display query results in a table format.
129
 
130
  *The [Custom Repeater Add-On](http://connekthq.com/plugins/ajax-load-more/custom-repeaters/) has been installed for use on each of our product demos*
131
 
148
  > The **[Custom Repeaters](http://connekthq.com/plugins/ajax-load-more/custom-repeaters/)** add-on will allow for **unlimited repeater templates** and provide the ability to create unique templates for different content types throughout your theme.<br />
149
  > [Get More Information](http://connekthq.com/plugins/ajax-load-more/custom-repeaters/)
150
  >
151
+ > #### Layouts
152
+ > The **[Layouts](http://connekthq.com/plugins/ajax-load-more/layouts/)** add-on will provide a library of fully responsive layout templates ready for use on your website.<br />
153
+ > [Get More Information](http://connekthq.com/plugins/ajax-load-more/layouts/)
154
+ >
155
  > #### Paging
156
  > The **[Paging](http://connekthq.com/plugins/ajax-load-more/paging/)** add-on will transform Ajax Load More’s lazy load/infinite scroll functionality into a robust ajax powered navigation system.<br />
157
  > [Get More Information](http://connekthq.com/plugins/ajax-load-more/paging/)
216
 
217
  Ajax Load More passes the following PHP [variables](https://connekthq.com/plugins/ajax-load-more/docs/variables/) to each repeater template - these template variables can help you style and transform your repeater templates.
218
 
219
+ * **$alm_current** - Returns the current item number in the current Ajax Load More loop and will reset to zero with every 'Load More' action.. 'echo $alm_current;'
220
  * **$alm_page** - Returns the current page number. 'echo $alm_page;'
221
  * **$alm_item** - Returns the current item number within your loop. 'echo $alm_item;'
222
  * **$alm_found_posts** - Returns the total number of posts found within the entire WordPress query. 'echo $alm_found_posts;'
320
 
321
  == Changelog ==
322
 
323
+ = 2.9 =
324
+ * NEW - Adding support for new Layouts add-on.
325
+ * NEW - Adding support for table container type.
326
+ * NEW - Adding new 'transition_container' shortcode parameter to allow for removal of the .alm-reveal div in the ajax output.
327
+ * FIX - Fixed issue with the display of Previous Post taxonomy selection in Shortcode Builder.
328
+ * FIX - Fixed issue with noscript navigation for preloaded and seo add-ons.
329
+ * FIX - Fixed issue with hiding of Button Classes setting if 'Disable CSS' is checked.
330
+ * FIX - Fixed bug with custom repeater fallback function.
331
+ * FIX - Fixed issue with almDone function firing before a the button text reset function.
332
+ * UPDATE - Various UI/UX enhancments.
333
+ * UPDATE - Adding cache support for Theme Repeaters add-on.
334
+ * UPDATE - Updating add-on activation script from wp_remote_get to wp_remote_post.
335
+
336
+
337
  = 2.8.6 =
338
  * NEW - Adding a set of filter hooks to enable users to hook into Ajax Load More to insert or modify data. See https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/ for more information.
339
  * FIX - Updated infinite scrolling css styling.
admin/admin.php CHANGED
@@ -1,7 +1,5 @@
1
  <?php
2
-
3
- /* Admin function */
4
-
5
  add_action( 'plugins_loaded', 'alm_core_update' ); // Core Update
6
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
7
  add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
@@ -9,9 +7,9 @@ add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxo
9
  add_action( 'wp_ajax_alm_delete_cache', 'alm_delete_cache' ); // Delete Cache
10
  add_action( 'wp_ajax_alm_layouts_dismiss', 'alm_layouts_dismiss' ); // Dismiss Layouts CTA
11
  add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' ); // Activate Add-on
12
- add_action( 'add_layout_listing', 'add_layout_listing' ); // Add layout dropmenu
13
  add_action( 'wp_ajax_alm_layouts_get', 'alm_layouts_get' ); // Get layout
14
- add_action( 'admin_init', 'alm_image_sizes' ); // Add image size
15
 
16
 
17
  /*
@@ -51,7 +49,15 @@ function alm_license_activation(){
51
  );
52
 
53
  // Call the custom API.
54
- $response = wp_remote_get( add_query_arg( $api_params, $url ), array( 'timeout' => 15, 'sslverify' => false ) );
 
 
 
 
 
 
 
 
55
 
56
  $license_data = $response['body'];
57
  $license_data = json_decode($license_data); // decode the license data
@@ -73,7 +79,6 @@ function alm_license_activation(){
73
  }
74
  $return["msg"] = $msg;
75
 
76
-
77
  update_option( $option_status, $license_data->license);
78
  update_option( $option_key, $license );
79
 
@@ -116,31 +121,18 @@ function alm_layouts_get(){
116
 
117
 
118
 
119
- /*
120
- * alm_layouts_image_sizes
121
- * Add the required image sizes
122
- *
123
- * @since 2.8.3
124
- */
125
-
126
- function alm_image_sizes(){
127
- add_image_size( 'alm-thumbnail', 150, 150, true); // Custom ALM thumbnail size
128
- }
129
-
130
-
131
 
132
  /*
133
- * add_layout_listing
134
- * Get the list of layouts
135
  *
136
- * @since 2.8.3
137
  */
138
- function add_layout_listing(){
139
- //include( ALM_PATH . 'admin/includes/components/layout-list.php');
140
  }
141
 
142
 
143
-
144
  /*
145
  * alm_admin_vars
146
  * Create admin variables and ajax nonce
@@ -154,6 +146,8 @@ function alm_admin_vars() { ?>
154
  'ajax_admin_url' => admin_url( 'admin-ajax.php' ),
155
  'active' => __('Active', 'ajax-load-more'),
156
  'inactive' => __('Inactive', 'ajax-load-more'),
 
 
157
  'alm_admin_nonce' => wp_create_nonce( 'alm_repeater_nonce' )
158
  )); ?>
159
  /* ]]> */
@@ -189,6 +183,11 @@ function alm_core_update() {
189
 
190
  $alm_installed_ver = get_option( "alm_version" ); // Get value from WP Option tbl
191
  if ( $alm_installed_ver != ALM_VERSION ) {
 
 
 
 
 
192
  alm_run_update();
193
  }
194
  }
@@ -327,6 +326,15 @@ function alm_admin_menu() {
327
  'ajax-load-more-shortcode-builder',
328
  'alm_shortcode_builder_page'
329
  );
 
 
 
 
 
 
 
 
 
330
 
331
  $alm_examples_page = add_submenu_page(
332
  'ajax-load-more',
@@ -334,17 +342,17 @@ function alm_admin_menu() {
334
  'Examples',
335
  'edit_theme_options',
336
  'ajax-load-more-examples',
337
- 'alm_example_page'
338
- );
339
-
340
- $alm_addons_page = add_submenu_page(
341
  'ajax-load-more',
342
- 'Add-ons',
343
- 'Add-ons',
344
  'edit_theme_options',
345
- 'ajax-load-more-add-ons',
346
- 'alm_add_ons_page'
347
- );
348
 
349
  $alm_licenses_page = add_submenu_page(
350
  'ajax-load-more',
@@ -370,11 +378,13 @@ function alm_admin_menu() {
370
 
371
  //Add our admin scripts
372
  add_action( 'load-' . $alm_settings_page, 'alm_load_admin_js' );
 
373
  add_action( 'load-' . $alm_template_page, 'alm_load_admin_js' );
374
  add_action( 'load-' . $alm_template_page, 'alm_set_admin_nonce' );
375
  add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
376
  add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_nonce' );
377
  add_action( 'load-' . $alm_examples_page, 'alm_load_admin_js' );
 
378
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
379
  add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
380
  add_action( 'load-' . $alm_licenses_page, 'alm_set_admin_nonce' );
@@ -408,10 +418,10 @@ function alm_load_cache_admin_js(){
408
  function alm_enqueue_admin_scripts(){
409
 
410
  //Load Admin CSS
411
- wp_enqueue_style( 'alm-admin-css', ALM_ADMIN_URL. 'css/admin.css');
412
- wp_enqueue_style( 'alm-select2-css', ALM_ADMIN_URL. 'css/select2.css');
413
  wp_enqueue_style( 'alm-tooltipster', ALM_ADMIN_URL. 'css/tooltipster/tooltipster.css');
414
- wp_enqueue_style( 'alm-core-css', ALM_URL. '/core/css/ajax-load-more.css');
415
  wp_enqueue_style( 'alm-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
416
 
417
  //Load CodeMirror Syntax Highlighting if on Repater Template page
@@ -494,12 +504,25 @@ function alm_shortcode_builder_page(){
494
  * @since 2.0.0
495
  */
496
 
497
- function alm_example_page(){
498
  include_once( ALM_PATH . 'admin/views/examples.php');
499
  }
500
 
501
 
502
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
  /*
504
  * alm_add_ons_page
505
  * Ajax Load More Add-ons
@@ -772,6 +795,30 @@ function alm_layouts_dismiss(){
772
 
773
 
774
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
775
  /*
776
  * admin_init
777
  * Initiate the plugin, create our setting variables.
@@ -1204,16 +1251,16 @@ function alm_btn_class_callback(){
1204
  // Check if Disable CSS === true
1205
  if(jQuery('input#alm_disable_css_input').is(":checked")){
1206
  jQuery('select#alm_settings_btn_color').parent().parent().hide(); // Hide button color
1207
- jQuery('input.btn-classes').parent().parent().hide(); // Hide Button Classes
1208
  }
1209
  jQuery('input#alm_disable_css_input').change(function() {
1210
  var el = jQuery(this);
1211
  if(el.is(":checked")) {
1212
  el.parent().parent('tr').next('tr').hide(); // Hide button color
1213
- el.parent().parent('tr').next('tr').next('tr').hide(); // Hide Button Classes
1214
  }else{
1215
  el.parent().parent('tr').next('tr').show(); // show button color
1216
- el.parent().parent('tr').next('tr').next('tr').show(); // show Button Classes
1217
  }
1218
  });
1219
 
1
  <?php
2
+
 
 
3
  add_action( 'plugins_loaded', 'alm_core_update' ); // Core Update
4
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
5
  add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
7
  add_action( 'wp_ajax_alm_delete_cache', 'alm_delete_cache' ); // Delete Cache
8
  add_action( 'wp_ajax_alm_layouts_dismiss', 'alm_layouts_dismiss' ); // Dismiss Layouts CTA
9
  add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' ); // Activate Add-on
10
+ add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
11
  add_action( 'wp_ajax_alm_layouts_get', 'alm_layouts_get' ); // Get layout
12
+
13
 
14
 
15
  /*
49
  );
50
 
51
  // Call the custom API.
52
+ //$response = wp_remote_get( add_query_arg( $api_params, $url ), array( 'timeout' => 15, 'sslverify' => false ) );
53
+
54
+ // Updated 2.8.7
55
+ $response = wp_remote_post( ALM_STORE_URL, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
56
+
57
+ // make sure the response came back okay
58
+ if ( is_wp_error( $response ) )
59
+ return false;
60
+
61
 
62
  $license_data = $response['body'];
63
  $license_data = json_decode($license_data); // decode the license data
79
  }
80
  $return["msg"] = $msg;
81
 
 
82
  update_option( $option_status, $license_data->license);
83
  update_option( $option_key, $license );
84
 
121
 
122
 
123
 
 
 
 
 
 
 
 
 
 
 
 
 
124
 
125
  /*
126
+ * alm_get_layouts
127
+ * Get the list of layout templates
128
  *
129
+ * @since 2.8.7
130
  */
131
+ function alm_get_layouts(){ // do_action
132
+ include( ALM_PATH . 'admin/includes/components/layout-list.php');
133
  }
134
 
135
 
 
136
  /*
137
  * alm_admin_vars
138
  * Create admin variables and ajax nonce
146
  'ajax_admin_url' => admin_url( 'admin-ajax.php' ),
147
  'active' => __('Active', 'ajax-load-more'),
148
  'inactive' => __('Inactive', 'ajax-load-more'),
149
+ 'applying_layout' => __('Applying layout', 'ajax-load-more'),
150
+ 'template_updated' => __('Template Updated', 'ajax-load-more'),
151
  'alm_admin_nonce' => wp_create_nonce( 'alm_repeater_nonce' )
152
  )); ?>
153
  /* ]]> */
183
 
184
  $alm_installed_ver = get_option( "alm_version" ); // Get value from WP Option tbl
185
  if ( $alm_installed_ver != ALM_VERSION ) {
186
+
187
+ // Delete our ALM transients
188
+ delete_transient( 'alm_dismiss_sharing' );
189
+
190
+ // Update repeaters
191
  alm_run_update();
192
  }
193
  }
326
  'ajax-load-more-shortcode-builder',
327
  'alm_shortcode_builder_page'
328
  );
329
+
330
+ $alm_addons_page = add_submenu_page(
331
+ 'ajax-load-more',
332
+ 'Add-ons',
333
+ 'Add-ons',
334
+ 'edit_theme_options',
335
+ 'ajax-load-more-add-ons',
336
+ 'alm_add_ons_page'
337
+ );
338
 
339
  $alm_examples_page = add_submenu_page(
340
  'ajax-load-more',
342
  'Examples',
343
  'edit_theme_options',
344
  'ajax-load-more-examples',
345
+ 'alm_examples_page'
346
+ );
347
+
348
+ $alm_help_page = add_submenu_page(
349
  'ajax-load-more',
350
+ 'Help',
351
+ 'Help',
352
  'edit_theme_options',
353
+ 'ajax-load-more-help',
354
+ 'alm_help_page'
355
+ );
356
 
357
  $alm_licenses_page = add_submenu_page(
358
  'ajax-load-more',
378
 
379
  //Add our admin scripts
380
  add_action( 'load-' . $alm_settings_page, 'alm_load_admin_js' );
381
+ add_action( 'load-' . $alm_settings_page, 'alm_set_admin_nonce' );
382
  add_action( 'load-' . $alm_template_page, 'alm_load_admin_js' );
383
  add_action( 'load-' . $alm_template_page, 'alm_set_admin_nonce' );
384
  add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
385
  add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_nonce' );
386
  add_action( 'load-' . $alm_examples_page, 'alm_load_admin_js' );
387
+ add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
388
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
389
  add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
390
  add_action( 'load-' . $alm_licenses_page, 'alm_set_admin_nonce' );
418
  function alm_enqueue_admin_scripts(){
419
 
420
  //Load Admin CSS
421
+ wp_enqueue_style( 'alm-admin', ALM_ADMIN_URL. 'css/admin.css');
422
+ wp_enqueue_style( 'alm-select2', ALM_ADMIN_URL. 'css/select2.css');
423
  wp_enqueue_style( 'alm-tooltipster', ALM_ADMIN_URL. 'css/tooltipster/tooltipster.css');
424
+ wp_enqueue_style( 'alm-core', ALM_URL. '/core/css/ajax-load-more.css');
425
  wp_enqueue_style( 'alm-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
426
 
427
  //Load CodeMirror Syntax Highlighting if on Repater Template page
504
  * @since 2.0.0
505
  */
506
 
507
+ function alm_examples_page(){
508
  include_once( ALM_PATH . 'admin/views/examples.php');
509
  }
510
 
511
 
512
 
513
+ /*
514
+ * alm_help_page
515
+ * Help Page (Implementation Inforgraphic)
516
+ *
517
+ * @since 2.8.7
518
+ */
519
+
520
+ function alm_help_page(){
521
+ include_once( ALM_PATH . 'admin/views/help.php');
522
+ }
523
+
524
+
525
+
526
  /*
527
  * alm_add_ons_page
528
  * Ajax Load More Add-ons
795
 
796
 
797
 
798
+ /*
799
+ * alm_dismiss_sharing
800
+ * Dismiss sharing widget on plugin settings page.
801
+ *
802
+ * @since 2.8.2.1
803
+ */
804
+ function alm_dismiss_sharing(){
805
+ if (current_user_can( 'edit_theme_options' )){
806
+
807
+ $nonce = $_POST["nonce"];
808
+
809
+ // Check our nonce, if they don't match then bounce!
810
+ if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
811
+ die('Error - unable to verify nonce, please try again.');
812
+
813
+ set_transient( 'alm_dismiss_sharing', 'true', 365 * DAY_IN_SECONDS );
814
+ echo 'Success';
815
+
816
+ die();
817
+ }
818
+ }
819
+ add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' );
820
+
821
+
822
  /*
823
  * admin_init
824
  * Initiate the plugin, create our setting variables.
1251
  // Check if Disable CSS === true
1252
  if(jQuery('input#alm_disable_css_input').is(":checked")){
1253
  jQuery('select#alm_settings_btn_color').parent().parent().hide(); // Hide button color
1254
+ //jQuery('input.btn-classes').parent().parent().hide(); // Hide Button Classes
1255
  }
1256
  jQuery('input#alm_disable_css_input').change(function() {
1257
  var el = jQuery(this);
1258
  if(el.is(":checked")) {
1259
  el.parent().parent('tr').next('tr').hide(); // Hide button color
1260
+ //el.parent().parent('tr').next('tr').next('tr').hide(); // Hide Button Classes
1261
  }else{
1262
  el.parent().parent('tr').next('tr').show(); // show button color
1263
+ //el.parent().parent('tr').next('tr').next('tr').show(); // show Button Classes
1264
  }
1265
  });
1266
 
admin/css/admin.css CHANGED
@@ -79,6 +79,10 @@
79
  .forceColors{
80
  background: #fff !important;
81
  }
 
 
 
 
82
  .ajax-load-more{
83
  font-size: 14px;
84
  color:#666;
@@ -86,6 +90,9 @@
86
  font-family: 'Open Sans', sans-serif;
87
  max-width: 1250px;
88
  }
 
 
 
89
  .ajax-load-more a:focus{
90
  -webkit-box-shadow: none;
91
  -moz-box-shadow: none;
@@ -107,6 +114,21 @@
107
  padding: 15px 10px 140px !important;
108
  }
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  #alm-settings form h2{
111
  padding: 2px 0 6px 12px;
112
  border-left: 5px solid #ff5a58;
@@ -140,6 +162,33 @@
140
  .ajax-load-more label{
141
  font-size: 14px;
142
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
  .ajax-load-more p.highlight{
145
  background-color: #fffbd4;
@@ -623,6 +672,10 @@
623
  .ajax-load-more input.disabled-input{
624
  opacity: 0.5;
625
  filter: alpha(opacity=50);
 
 
 
 
626
  }
627
  .ajax-load-more input[type=text]:focus,
628
  .ajax-load-more textarea:focus{
@@ -640,8 +693,9 @@
640
  display: inline-block;
641
  width: 47.333%;
642
  margin: 0 0 1% 2%;
 
643
  }
644
- .ajax-load-more .one_half:first-child{
645
  margin: 0 2% 1% 0;
646
  }
647
 
@@ -818,7 +872,8 @@
818
  }
819
 
820
  .preload_amount,
821
- .cache_id{
 
822
  display: none;
823
  }
824
 
@@ -1209,7 +1264,7 @@
1209
  .ajax-load-more p.writeable-title i{
1210
  position: absolute !important;
1211
  left: 0 !important;
1212
- top:0 !important;
1213
  }
1214
 
1215
  .ajax-load-more p.back2top{
@@ -1261,8 +1316,8 @@ p.loading{
1261
  }
1262
 
1263
  .alm-dropdown ul li a.updating{
1264
- background-position: 4px center;
1265
- padding-left: 29px;
1266
  }
1267
 
1268
  input.save-repeater{
@@ -1341,6 +1396,28 @@ table.highlight{
1341
  margin: 0 0 20px;
1342
  }
1343
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1344
 
1345
  /* Repeaters */
1346
  .repeaters {}
@@ -1368,8 +1445,7 @@ table.highlight{
1368
  max-width: 72%;
1369
  opacity: 0;
1370
  }
1371
-
1372
-
1373
 
1374
  /* Add-ons */
1375
  #alm-add-ons {}
@@ -1429,7 +1505,7 @@ table.highlight{
1429
 
1430
  /* Add-on Callout! */
1431
  .call-out{
1432
- background: #73d3b9;
1433
  padding: 13px 100px 13px 12px;
1434
  border-radius: 3px;
1435
  margin: 0;
@@ -1487,7 +1563,7 @@ table.highlight{
1487
  span.cnkt-button{
1488
  padding: 6px 10px;
1489
  display: inline-block;
1490
- background: #73d3b9;
1491
  border: 1px solid #5da592;
1492
  border-radius: 3px;
1493
  position: static;
@@ -1755,6 +1831,11 @@ table.highlight{
1755
  margin: 0 0 5px;
1756
  font-size: 13px;
1757
  }
 
 
 
 
 
1758
  .ajax-load-more .cnkt-sidebar ul{
1759
  margin: 0 0 10px;
1760
  overflow: hidden;
@@ -1859,6 +1940,10 @@ table.highlight{
1859
  color: #999;
1860
  line-height: 1.3;
1861
  }
 
 
 
 
1862
 
1863
  .ajax-load-more .cm-s-pastel-on-dark.CodeMirror{ /* Bkg color */
1864
  background: #333;
@@ -2497,77 +2582,134 @@ p.cache-stats{
2497
  margin: 0 0 13px;
2498
  }
2499
  .alm-drop-btn.alm-layout-selection a.target{
2500
- background-color: #fefeed;
2501
  border-color: #e7e7e7;
2502
  color: #555;
2503
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
 
2504
  }
2505
  .alm-drop-btn.alm-layout-selection a i{
2506
- margin: 0 2px 0 0;
2507
  }
2508
 
2509
  .alm-drop-btn.alm-layout-selection li.type{
2510
- height: 34px;
2511
- line-height: 34px;
2512
- padding: 0 0 0 29px;
2513
  position: relative;
2514
  }
2515
- .alm-dropdown ul li.type i {
2516
- color: #999 !important;
2517
- display: inline-block;
2518
- font-size: 14px;
2519
- left: 4px;
2520
- margin: 0;
2521
- padding-left: 3px;
2522
- position: absolute;
2523
- top: 10px;
2524
- width: 19px;
2525
  }
2526
  .alm-drop-btn.alm-layout-selection li.type .col-select{
2527
  float: right;
2528
  text-align: right;
2529
  width: auto;
2530
- height: 34px;
2531
- line-height: 34px;
2532
  }
2533
  .alm-drop-btn.alm-layout-selection li.type .col-select a{
2534
- width: 30px;
2535
- height: 34px;
2536
- display: inline-block;
2537
- margin: 0;
2538
- border-left: 1px solid #efefef;
2539
  padding: 0;
 
2540
  text-align: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2541
  }
 
 
 
 
 
 
 
 
 
2542
 
2543
  /* External Link + Add-on */
2544
  .alm-drop-btn.alm-layout-selection a.external,
2545
- .alm-drop-btn.alm-layout-selection a.add-on{
2546
- border-top: 1px solid #ccc;
2547
  background-color: #f7f7f7;
2548
- padding: 13px 10px 13px 29px;
2549
  display: block;
2550
- }
 
 
 
 
 
 
 
 
 
 
 
2551
  .alm-drop-btn.alm-layout-selection a.add-on{
2552
- line-height: 1.45;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2553
  }
2554
  .alm-drop-btn.alm-layout-selection a.add-on strong{
2555
- color: #111;
 
2556
  }
2557
- .alm-drop-btn.alm-layout-selection a.add-on i,
2558
- .alm-drop-btn.alm-layout-selection a.external i{
2559
  top: 14px;
2560
  }
 
 
 
 
2561
 
2562
  .alm-drop-btn.alm-layout-selection a.target:hover,
2563
  .alm-drop-btn.alm-layout-selection a.target:active,
2564
  .alm-drop-btn.alm-layout-selection.active a.target{
2565
  color: #222;
2566
- background-color: #fafad7;
2567
  border-color: #ccc;
2568
  -webkit-box-shadow: 0 0 3px #efefef;
2569
  -moz-box-shadow: 0 0 3px #efefef;
2570
- box-shadow: 0 0 3px #efefef;
 
2571
  }
2572
  .alm-drop-btn.alm-layout-selection.active a.target,
2573
  .alm-drop-btn.alm-layout-selection a.target:active{
@@ -2690,7 +2832,7 @@ p.cache-stats{
2690
  -webkit-border-radius: 2px;
2691
  -moz-border-radius: 2px;
2692
  border-radius: 2px;
2693
- border: 1px solid #f7f7f7;
2694
  overflow: hidden;
2695
  }
2696
  .alm-dropdown ul li{
@@ -2698,17 +2840,20 @@ p.cache-stats{
2698
  padding:0;
2699
  list-style: none;
2700
  clear: both;
2701
- font-size: 13px;
2702
  margin: 0;
2703
  padding: 0;
2704
  line-height: 1.2;
2705
- border-top: 1px solid #f7f7f7;
 
2706
  }
2707
  .alm-dropdown ul li:first-child{
2708
  border: none;
2709
  }
2710
  .alm-dropdown ul li a{
2711
- padding: 13px 5px 13px 29px;
 
 
2712
  display: block;
2713
  text-decoration: none;
2714
  background-position: 4px center;
@@ -2717,31 +2862,33 @@ p.cache-stats{
2717
  -moz-box-shadow: none !important;
2718
  box-shadow: none !important;
2719
  position: relative;
 
 
 
 
2720
  }
2721
 
2722
  .alm-dropdown ul li a i{
2723
  margin: 0;
2724
- color: #999 !important;
2725
  position: absolute;
2726
- left: 4px;
2727
- top: 13px;
2728
- font-size: 14px;
2729
- width: 19px;
2730
- padding-left: 3px;
 
 
2731
  display: inline-block;
 
2732
  }
2733
- .alm-dropdown ul li.option-update a i{
2734
- top: 14px;
2735
- }
2736
- .alm-dropdown ul li a i.fa-th-large{
2737
- left: 5px;
2738
- }
2739
 
2740
  .alm-dropdown ul li a:hover{
2741
  color: #111;
 
2742
  }
2743
  .alm-dropdown ul li a:hover i{
2744
- color: #ec4745 !important;
2745
  }
2746
 
2747
 
@@ -2791,20 +2938,19 @@ p.cache-stats{
2791
  }
2792
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn.twitter{
2793
  background-color: #00aced;
2794
- color: #fff;
2795
  }
2796
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn:hover{
2797
  opacity: 1;
2798
  }
2799
 
2800
  #alm-mailing-list .form-wrap{
2801
- background-color: #f7f7f7;
2802
- padding: 18px;
2803
- border-top: 1px solid #ccc;
2804
- -webkit-box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.05);
2805
- -moz-box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.05);
2806
- box-shadow: 0 -1px 0 1px rgba(0, 0, 0, 0.05);
2807
  position: relative;
 
2808
  }
2809
  #alm-mailing-list .form-wrap .inner-wrap{
2810
  position: relative;
@@ -2816,10 +2962,10 @@ p.cache-stats{
2816
  margin: 0;
2817
  background: #fff;
2818
  font-size: 13px;
2819
- border-color: #ccc;
2820
- padding: 0 7px 0 40px;
2821
- height: 34px;
2822
- line-height: 34px;
2823
  }
2824
  #alm-mailing-list .form-wrap i.fa-envelope{
2825
  color: #fff;
@@ -2829,10 +2975,10 @@ p.cache-stats{
2829
  left: 0;
2830
  font-size: 18px;
2831
  z-index: 1;
2832
- height: 34px;
2833
- width: 34px;
2834
  text-align: center;
2835
- line-height: 34px;
2836
  -webkit-border-radius: 2px 0 0 2px;
2837
  -moz-border-radius: 2px 0 0 2px;
2838
  border-radius: 2px 0 0 2px;
@@ -2850,8 +2996,8 @@ p.cache-stats{
2850
  height: 100%;
2851
  font-size: 13px;
2852
  border-radius: 0;
2853
- width: 34px;
2854
- height: 34px;
2855
  color: #ff5a58;
2856
  background: none !important;
2857
  cursor: pointer;
@@ -2859,13 +3005,13 @@ p.cache-stats{
2859
 
2860
  #alm-mailing-list .form-wrap button i{
2861
  color: #ccc;
2862
- line-height: 34px;
2863
  width: 20px;
2864
  text-align: center;
2865
  position: absolute;
2866
  right: 5px;
2867
  top:0;
2868
- font-size: 20px;
2869
  }
2870
  #alm-mailing-list .form-wrap button:hover i{
2871
  color: #999;
@@ -2888,7 +3034,7 @@ p.cache-stats{
2888
  top:-9999px;
2889
  }
2890
  #alm-mailing-list .form-wrap #response{
2891
- padding-top: 6px;
2892
  font-size: 13px;
2893
  display: none;
2894
  text-align: center;
@@ -2897,12 +3043,146 @@ p.cache-stats{
2897
  top:0;
2898
  width: 100%;
2899
  height: 100%;
2900
- background: #f7f7f7;
2901
  z-index: 1;
2902
  }
2903
  #alm-mailing-list .form-wrap #response p{
2904
  font-style: normal !important;
2905
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2906
 
2907
 
2908
 
@@ -3004,6 +3284,21 @@ p.cache-stats{
3004
  }
3005
  }
3006
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3007
  @media screen and (max-width: 480px){
3008
  .ajax-load-more .section-title,
3009
  .ajax-load-more .row .wrap{
@@ -3076,7 +3371,6 @@ p.cache-stats{
3076
  display: block;
3077
  font-size: 12px;
3078
  }
3079
-
3080
  }
3081
 
3082
 
79
  .forceColors{
80
  background: #fff !important;
81
  }
82
+ .offscreen{
83
+ position: absolute;
84
+ left: -9999px;
85
+ }
86
  .ajax-load-more{
87
  font-size: 14px;
88
  color:#666;
90
  font-family: 'Open Sans', sans-serif;
91
  max-width: 1250px;
92
  }
93
+ #alm-help.ajax-load-more{
94
+ max-width: 1600px;
95
+ }
96
  .ajax-load-more a:focus{
97
  -webkit-box-shadow: none;
98
  -moz-box-shadow: none;
114
  padding: 15px 10px 140px !important;
115
  }
116
 
117
+ #alm-settings .admin-select{
118
+ width: 100%;
119
+ display: block;
120
+ padding: 0 0 20px;
121
+ margin: -10px 0 20px;
122
+ border-bottom: 1px solid #efefef;
123
+ }
124
+ #alm-settings .admin-select .select2-container{
125
+ width: 48%;
126
+ min-width: 48%;
127
+ display: inline-block;
128
+ vertical-align: top;
129
+ }
130
+
131
+
132
  #alm-settings form h2{
133
  padding: 2px 0 6px 12px;
134
  border-left: 5px solid #ff5a58;
162
  .ajax-load-more label{
163
  font-size: 14px;
164
  }
165
+ textarea#_alm_layouts_css{
166
+ height: 240px;
167
+ }
168
+ a.layout-hover{
169
+ width: 20px !important;
170
+ height: 20px !important;
171
+ background: #ccc;
172
+ display: inline-block;
173
+ position: relative;
174
+ }
175
+ a.layout-hover img{
176
+ position: absolute;
177
+ left: 100%;
178
+ top: 0;
179
+ z-index: 999;
180
+ opacity: 0;
181
+ filter: alpha(opacity=0);
182
+ }
183
+ a.layout-hover:hover img{
184
+ position: absolute;
185
+ left: 100%;
186
+ top: 0;
187
+ z-index: 999;
188
+ opacity: 1;
189
+ filter: alpha(opacity=100);
190
+ }
191
+
192
 
193
  .ajax-load-more p.highlight{
194
  background-color: #fffbd4;
672
  .ajax-load-more input.disabled-input{
673
  opacity: 0.5;
674
  filter: alpha(opacity=50);
675
+ cursor: default;
676
+ background: #f7f7f7 !important;
677
+ border-color: #ccc !important;
678
+ box-shadow: none !important;
679
  }
680
  .ajax-load-more input[type=text]:focus,
681
  .ajax-load-more textarea:focus{
693
  display: inline-block;
694
  width: 47.333%;
695
  margin: 0 0 1% 2%;
696
+ vertical-align: top;
697
  }
698
+ .ajax-load-more .one_half:first-of-type{
699
  margin: 0 2% 1% 0;
700
  }
701
 
872
  }
873
 
874
  .preload_amount,
875
+ .cache_id,
876
+ .alternate_template_wrap{
877
  display: none;
878
  }
879
 
1264
  .ajax-load-more p.writeable-title i{
1265
  position: absolute !important;
1266
  left: 0 !important;
1267
+ top: 1px !important;
1268
  }
1269
 
1270
  .ajax-load-more p.back2top{
1316
  }
1317
 
1318
  .alm-dropdown ul li a.updating{
1319
+ background-position: 6px center;
1320
+ padding-left: 42px;
1321
  }
1322
 
1323
  input.save-repeater{
1396
  margin: 0 0 20px;
1397
  }
1398
 
1399
+ .ajax-load-more .cnkt-main .group a.dismiss{
1400
+ position: absolute;
1401
+ right: 0;
1402
+ top: 0;
1403
+ text-decoration: none;
1404
+ width: 40px;
1405
+ height: 40px;
1406
+ line-height: 40px;
1407
+ text-align: center;
1408
+ background: #fff;
1409
+ color: #777;
1410
+ border: 1px dashed #ccc;
1411
+ border-right: none;
1412
+ border-top: none;
1413
+ display: block;
1414
+ font-size: 24px;
1415
+ border-radius: 0 2px 0 2px;
1416
+ }
1417
+ .ajax-load-more .cnkt-main .group a.dismiss:hover{
1418
+ background-color: #be3f3f;
1419
+ color: #fff;
1420
+ }
1421
 
1422
  /* Repeaters */
1423
  .repeaters {}
1445
  max-width: 72%;
1446
  opacity: 0;
1447
  }
1448
+
 
1449
 
1450
  /* Add-ons */
1451
  #alm-add-ons {}
1505
 
1506
  /* Add-on Callout! */
1507
  .call-out{
1508
+ background: #5acfb2;
1509
  padding: 13px 100px 13px 12px;
1510
  border-radius: 3px;
1511
  margin: 0;
1563
  span.cnkt-button{
1564
  padding: 6px 10px;
1565
  display: inline-block;
1566
+ background: #5acfb2;
1567
  border: 1px solid #5da592;
1568
  border-radius: 3px;
1569
  position: static;
1831
  margin: 0 0 5px;
1832
  font-size: 13px;
1833
  }
1834
+ .ajax-load-more .cnkt-sidebar .cta.dyk p{
1835
+ margin: 5px 0;
1836
+ display: block;
1837
+ overflow: hidden;
1838
+ }
1839
  .ajax-load-more .cnkt-sidebar ul{
1840
  margin: 0 0 10px;
1841
  overflow: hidden;
1940
  color: #999;
1941
  line-height: 1.3;
1942
  }
1943
+ .ajax-load-more .CodeMirror.loading {
1944
+ background: #f7f7f7 url("../img/loader-unlimited.gif") no-repeat center center;
1945
+ opacity: 0.6;
1946
+ }
1947
 
1948
  .ajax-load-more .cm-s-pastel-on-dark.CodeMirror{ /* Bkg color */
1949
  background: #333;
2582
  margin: 0 0 13px;
2583
  }
2584
  .alm-drop-btn.alm-layout-selection a.target{
2585
+ background-color: #f7f7f7;
2586
  border-color: #e7e7e7;
2587
  color: #555;
2588
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
2589
+ opacity: 0.8;
2590
  }
2591
  .alm-drop-btn.alm-layout-selection a i{
2592
+ margin: 1px 2px 0 0;
2593
  }
2594
 
2595
  .alm-drop-btn.alm-layout-selection li.type{
2596
+ height: 36px;
2597
+ line-height: 36px;
2598
+ padding: 0 0 0 8px;
2599
  position: relative;
2600
  }
2601
+ .alm-dropdown ul li.layout i {
2602
+ top: 11px;
 
 
 
 
 
 
 
 
2603
  }
2604
  .alm-drop-btn.alm-layout-selection li.type .col-select{
2605
  float: right;
2606
  text-align: right;
2607
  width: auto;
2608
+ height: 33px;
2609
+ line-height: 33px;
2610
  }
2611
  .alm-drop-btn.alm-layout-selection li.type .col-select a{
2612
+ width: 32px;
2613
+ height: 30px;
2614
+ margin: 3px 3px 0 0;
 
 
2615
  padding: 0;
2616
+ float: left;
2617
  text-align: center;
2618
+ background-position: center center;
2619
+ background-repeat: no-repeat;
2620
+ vertical-align: top;
2621
+ text-indent: -99999px;
2622
+ overflow: hidden;
2623
+ opacity: 1;
2624
+ border-radius: 2px;
2625
+ border: 1px solid transparent;
2626
+ }
2627
+ .alm-drop-btn.alm-layout-selection li.type .col-select a.column-1{
2628
+ background-image: url('../img/column-1.png');
2629
+ }
2630
+ .alm-drop-btn.alm-layout-selection li.type .col-select a.column-2{
2631
+ background-image: url('../img/column-2.png');
2632
+ }
2633
+ .alm-drop-btn.alm-layout-selection li.type .col-select a.column-3{
2634
+ background-image: url('../img/column-3.png');
2635
+ width: 36px;
2636
+ }
2637
+ .alm-drop-btn.alm-layout-selection li.type .col-select a.column-1.updating,
2638
+ .alm-drop-btn.alm-layout-selection li.type .col-select a.column-2.updating,
2639
+ .alm-drop-btn.alm-layout-selection li.type .col-select a.column-3.updating{
2640
+ background-image: url("../img/loader.gif");
2641
+ padding: 0 !important;
2642
  }
2643
+ .alm-drop-btn.alm-layout-selection li.type .col-select a:hover,
2644
+ .alm-drop-btn.alm-layout-selection li.type .col-select a.updating{
2645
+ opacity: 1;
2646
+ background-color: #fff;
2647
+ border-color: #ccc;
2648
+ }
2649
+ .alm-drop-btn.alm-layout-selection li.type:hover{
2650
+ background-color: #faf8e6;
2651
+ }
2652
 
2653
  /* External Link + Add-on */
2654
  .alm-drop-btn.alm-layout-selection a.external,
2655
+ .alm-drop-btn.alm-layout-selection a.add-on{
 
2656
  background-color: #f7f7f7;
2657
+ padding: 13px 10px 13px 42px;
2658
  display: block;
2659
+ }
2660
+ .alm-drop-btn.alm-layout-selection a.external{
2661
+ padding: 0 10px 0 42px;
2662
+ }
2663
+ .alm-drop-btn.alm-layout-selection a.external i{
2664
+ color: #999;
2665
+ border-color: #ccc;
2666
+ top: 10px;
2667
+ }
2668
+ .alm-drop-btn.alm-layout-selection a.external:hover i{
2669
+ color: #666;
2670
+ }
2671
  .alm-drop-btn.alm-layout-selection a.add-on{
2672
+ line-height: 1.6;
2673
+ background-color: #5acfb2;
2674
+ border: none;
2675
+ color: #fff;
2676
+ font-weight: 600;
2677
+ text-overflow: inherit;
2678
+ height: auto;
2679
+ white-space: normal;
2680
+ }
2681
+ .alm-drop-btn.alm-layout-selection a.add-on:hover{
2682
+ background-color: #935eaf;
2683
+ }
2684
+ .alm-drop-btn.alm-layout-selection a.add-on:hover i{
2685
+ opacity: 1;
2686
+ }
2687
+ .alm-drop-btn.alm-layout-selection a.add-on:hover strong{
2688
+ color: #fff;
2689
+ opacity: 0.7;
2690
  }
2691
  .alm-drop-btn.alm-layout-selection a.add-on strong{
2692
+ color: #387061;
2693
+ font-weight: 600;
2694
  }
2695
+ .alm-drop-btn.alm-layout-selection a.add-on i{
 
2696
  top: 14px;
2697
  }
2698
+ .alm-drop-btn.alm-layout-selection a.add-on i{
2699
+ color: #fff !important;
2700
+ border-color: rgba(255, 255, 255, 0.3);
2701
+ }
2702
 
2703
  .alm-drop-btn.alm-layout-selection a.target:hover,
2704
  .alm-drop-btn.alm-layout-selection a.target:active,
2705
  .alm-drop-btn.alm-layout-selection.active a.target{
2706
  color: #222;
2707
+ background-color: #fff;
2708
  border-color: #ccc;
2709
  -webkit-box-shadow: 0 0 3px #efefef;
2710
  -moz-box-shadow: 0 0 3px #efefef;
2711
+ box-shadow: 0 0 3px #efefef;
2712
+ opacity: 1;
2713
  }
2714
  .alm-drop-btn.alm-layout-selection.active a.target,
2715
  .alm-drop-btn.alm-layout-selection a.target:active{
2832
  -webkit-border-radius: 2px;
2833
  -moz-border-radius: 2px;
2834
  border-radius: 2px;
2835
+ border: 1px solid #efefef;
2836
  overflow: hidden;
2837
  }
2838
  .alm-dropdown ul li{
2840
  padding:0;
2841
  list-style: none;
2842
  clear: both;
2843
+ font-size: 12px;
2844
  margin: 0;
2845
  padding: 0;
2846
  line-height: 1.2;
2847
+ border-top: 1px solid #efefef;
2848
+ font-weight: 600;
2849
  }
2850
  .alm-dropdown ul li:first-child{
2851
  border: none;
2852
  }
2853
  .alm-dropdown ul li a{
2854
+ padding: 0 10px 0 42px;
2855
+ line-height: 37px;
2856
+ height: 36px;
2857
  display: block;
2858
  text-decoration: none;
2859
  background-position: 4px center;
2862
  -moz-box-shadow: none !important;
2863
  box-shadow: none !important;
2864
  position: relative;
2865
+ width: 100%;
2866
+ white-space: nowrap;
2867
+ overflow: hidden;
2868
+ text-overflow: ellipsis;
2869
  }
2870
 
2871
  .alm-dropdown ul li a i{
2872
  margin: 0;
2873
+ color: #ccc;
2874
  position: absolute;
2875
+ left: 0;
2876
+ top: 11px;
2877
+ font-size: 13px;
2878
+ width: 32px;
2879
+ height: 16px;
2880
+ line-height: 16px;
2881
+ border-right: 1px solid #e7e7e7;
2882
  display: inline-block;
2883
+ text-align: center;
2884
  }
 
 
 
 
 
 
2885
 
2886
  .alm-dropdown ul li a:hover{
2887
  color: #111;
2888
+ background-color: #f7f7f7;
2889
  }
2890
  .alm-dropdown ul li a:hover i{
2891
+ color: #999;
2892
  }
2893
 
2894
 
2938
  }
2939
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn.twitter{
2940
  background-color: #00aced;
2941
+ color: #fff;
2942
  }
2943
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn:hover{
2944
  opacity: 1;
2945
  }
2946
 
2947
  #alm-mailing-list .form-wrap{
2948
+ background-color: #fff;
2949
+ padding: 12px;
2950
+ border: 1px solid #e7e7e7;
2951
+ box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.025);
 
 
2952
  position: relative;
2953
+ border-radius: 2px;
2954
  }
2955
  #alm-mailing-list .form-wrap .inner-wrap{
2956
  position: relative;
2962
  margin: 0;
2963
  background: #fff;
2964
  font-size: 13px;
2965
+ border-color: #eee;
2966
+ padding: 0 7px 0 46px;
2967
+ height: 40px;
2968
+ line-height: 40px;
2969
  }
2970
  #alm-mailing-list .form-wrap i.fa-envelope{
2971
  color: #fff;
2975
  left: 0;
2976
  font-size: 18px;
2977
  z-index: 1;
2978
+ height: 40px;
2979
+ width: 40px;
2980
  text-align: center;
2981
+ line-height: 40px;
2982
  -webkit-border-radius: 2px 0 0 2px;
2983
  -moz-border-radius: 2px 0 0 2px;
2984
  border-radius: 2px 0 0 2px;
2996
  height: 100%;
2997
  font-size: 13px;
2998
  border-radius: 0;
2999
+ width: 40px;
3000
+ height: 40px;
3001
  color: #ff5a58;
3002
  background: none !important;
3003
  cursor: pointer;
3005
 
3006
  #alm-mailing-list .form-wrap button i{
3007
  color: #ccc;
3008
+ line-height: 40px;
3009
  width: 20px;
3010
  text-align: center;
3011
  position: absolute;
3012
  right: 5px;
3013
  top:0;
3014
+ font-size: 19px;
3015
  }
3016
  #alm-mailing-list .form-wrap button:hover i{
3017
  color: #999;
3034
  top:-9999px;
3035
  }
3036
  #alm-mailing-list .form-wrap #response{
3037
+ padding-top: 11px;
3038
  font-size: 13px;
3039
  display: none;
3040
  text-align: center;
3043
  top:0;
3044
  width: 100%;
3045
  height: 100%;
3046
+ background: #fff;
3047
  z-index: 1;
3048
  }
3049
  #alm-mailing-list .form-wrap #response p{
3050
  font-style: normal !important;
3051
  }
3052
+
3053
+
3054
+
3055
+ /* share-alm*/
3056
+ .dotted{
3057
+ border: 1px dashed #ccc;
3058
+ background: #f7f7f7;
3059
+ padding: 20px;
3060
+ }
3061
+ .share-alm{}
3062
+ .share-alm h3{
3063
+ font-size: 16px;
3064
+ }
3065
+ .share-alm i.fa-star,
3066
+ .share-alm i.fa-share-alt{
3067
+ color: #efc919;
3068
+ position: relative;
3069
+ left: 2px;
3070
+ }
3071
+ .share-alm i.fa-share-alt{
3072
+ color: #ff5a58;
3073
+ }
3074
+ .share-alm p{
3075
+ font-size: 13px;
3076
+ color: #777;
3077
+ }
3078
+ .share-alm .sharing{
3079
+ padding-right: 20px;
3080
+ width: 46%;
3081
+ margin-right: 0 !important;
3082
+ }
3083
+ .share-alm .mailing{
3084
+ width: 52%;
3085
+ margin-left: 0 !important;
3086
+ padding-left: 40px;
3087
+ border-left: 1px dashed #ccc;
3088
+ }
3089
+ ul.share{
3090
+ margin: 0;
3091
+ padding: 0 0 0;
3092
+ width: auto;
3093
+ clear: both;
3094
+ display: inline-block;
3095
+ overflow: hidden;
3096
+ text-align: center;
3097
+ width: 100%;
3098
+ margin: 0;
3099
+ padding: 0;
3100
+ height: auto;
3101
+ overflow: visible;
3102
+ }
3103
+ ul.share li{
3104
+ background: none;
3105
+ padding:9px 0;
3106
+ margin: 0 3px;
3107
+ float: left;
3108
+ vertical-align: top;
3109
+ height: 30px;
3110
+ line-height: 30px;
3111
+ font-size: 12px;
3112
+ width: auto;
3113
+ position: relative;
3114
+ font-weight: 400;
3115
+ text-align: left;
3116
+ background: none;
3117
+ color: #787878;
3118
+ width: 46%;
3119
+ text-align: center;
3120
+ height: 36px;
3121
+ margin: 5px 3% 0 0;
3122
+ padding: 0;
3123
+ }
3124
+ ul.share li i{
3125
+ height: 36px;
3126
+ line-height: 36px;
3127
+ left: 0;
3128
+ width: 36px;
3129
+ }
3130
+ ul.share li a{
3131
+ display: block;
3132
+ line-height: 39px;
3133
+ height: 40px;
3134
+ width: auto;
3135
+ padding: 0 2px;
3136
+ text-decoration: none;
3137
+ color: #fff;
3138
+ background: none;
3139
+ border-radius: 3px;
3140
+ position: relative;
3141
+ font-weight: 600;
3142
+ background: #33cf92;
3143
+ /* box-shadow: inset 0 -10px 10px rgba(0, 0, 0, 0.05); */
3144
+ }
3145
+ ul.share li a:hover{
3146
+ background-color: #45dfa3;
3147
+ }
3148
+
3149
+ ul.share li i{
3150
+ font-size: 18px;
3151
+ line-height: 36px;
3152
+ height: 36px;
3153
+ width: 32px;
3154
+ position: absolute;
3155
+ top: 0;
3156
+ left: 0;
3157
+ text-align: center;
3158
+ border-right: 1px solid rgba(0, 0, 0, 0.1);
3159
+ background-color: rgba(0, 0, 0, 0.1);
3160
+ border-radius: 2px 0 0 2px;
3161
+ }
3162
+
3163
+ ul.share li a:hover,
3164
+ ul.share li a:hover i{
3165
+ text-decoration: none;
3166
+ color:#fff !important;
3167
+ }
3168
+ ul.share li a:hover span{
3169
+ text-decoration: none;
3170
+ }
3171
+
3172
+ ul.share li.twitter a{
3173
+ background: #00aced;
3174
+ }
3175
+ ul.share li.twitter a:hover{
3176
+ background: #13beff !important;
3177
+ }
3178
+ ul.share li.facebook a{
3179
+ background: #3b5998;
3180
+ }
3181
+ ul.share li.facebook a:hover{
3182
+ background: #466cbc !important;
3183
+ }
3184
+
3185
+
3186
 
3187
 
3188
 
3284
  }
3285
  }
3286
 
3287
+ @media screen and (max-width: 768px){
3288
+ .share-alm .sharing{
3289
+ padding-right: 0;
3290
+ width: 100%;
3291
+ margin-right: 0 !important;
3292
+ }
3293
+ .share-alm .mailing{
3294
+ width: 100%;
3295
+ margin-left: 0 !important;
3296
+ padding-left: 0;
3297
+ padding-top: 40px;
3298
+ border-left: none;
3299
+ }
3300
+ }
3301
+
3302
  @media screen and (max-width: 480px){
3303
  .ajax-load-more .section-title,
3304
  .ajax-load-more .row .wrap{
3371
  display: block;
3372
  font-size: 12px;
3373
  }
 
3374
  }
3375
 
3376
 
admin/css/select2.css CHANGED
@@ -100,7 +100,7 @@
100
  top: 100%;
101
  background: #fff;
102
  color: #000;
103
- border: 1px solid #ccc;
104
  border-top: 0;
105
  border-radius: 0 0 2px 2px;
106
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
@@ -109,7 +109,7 @@
109
 
110
  .select2-drop.select2-drop-above {
111
  margin-top: 1px;
112
- border-top: 1px solid #ccc;
113
  border-bottom: 0;
114
  border-radius: 2px 2px 0 0;
115
  box-shadow: 0 -2px -1px rgba(0, 0, 0, 0.1);
100
  top: 100%;
101
  background: #fff;
102
  color: #000;
103
+ border: 1px solid #efefef;
104
  border-top: 0;
105
  border-radius: 0 0 2px 2px;
106
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
109
 
110
  .select2-drop.select2-drop-above {
111
  margin-top: 1px;
112
+ border-top: 1px solid #efefef;
113
  border-bottom: 0;
114
  border-radius: 2px 2px 0 0;
115
  box-shadow: 0 -2px -1px rgba(0, 0, 0, 0.1);
admin/editor/editor-build.php CHANGED
@@ -6,6 +6,7 @@
6
  <link rel="stylesheet" src="<?php echo includes_url(); ?>js/tinymce/themes/advanced/skins/wp_theme/dialog.css"></link>
7
  <link rel="stylesheet" href="<?php echo ALM_ADMIN_URL; ?>css/admin.css" />
8
  <link rel="stylesheet" href="<?php echo ALM_ADMIN_URL; ?>css/select2.css" />
 
9
  <link rel="stylesheet" href="<?php echo includes_url(); ?>css/buttons.css" />
10
  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.js"></script>
11
  <script type="text/javascript" src="<?php echo includes_url('/js/tinymce/tiny_mce_popup.js'); ?>"></script>
@@ -69,6 +70,8 @@ tinyMCEPopup.onInit.add(AjaxLoadMoreModal.init, AjaxLoadMoreModal);
69
  )); ?>
70
  /* ]]> */
71
  </script>
 
 
72
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/admin.js"></script>
73
  </body>
74
  </html>
6
  <link rel="stylesheet" src="<?php echo includes_url(); ?>js/tinymce/themes/advanced/skins/wp_theme/dialog.css"></link>
7
  <link rel="stylesheet" href="<?php echo ALM_ADMIN_URL; ?>css/admin.css" />
8
  <link rel="stylesheet" href="<?php echo ALM_ADMIN_URL; ?>css/select2.css" />
9
+ <link rel="stylesheet" href="<?php echo ALM_ADMIN_URL; ?>css/tooltipster/tooltipster.css" />
10
  <link rel="stylesheet" href="<?php echo includes_url(); ?>css/buttons.css" />
11
  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.js"></script>
12
  <script type="text/javascript" src="<?php echo includes_url('/js/tinymce/tiny_mce_popup.js'); ?>"></script>
70
  )); ?>
71
  /* ]]> */
72
  </script>
73
+
74
+ <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/libs/jquery.tooltipster.min.js"></script>
75
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/admin.js"></script>
76
  </body>
77
  </html>
admin/img/add-ons/cache-add-on.jpg CHANGED
Binary file
admin/img/add-ons/layouts-add-on.jpg ADDED
Binary file
admin/img/add-ons/shortcode-editor.jpg CHANGED
Binary file
admin/img/column-1.png ADDED
Binary file
admin/img/column-2.png ADDED
Binary file
admin/img/column-3.png ADDED
Binary file
admin/img/infographic.png ADDED
Binary file
admin/includes/components/layout-list.php CHANGED
@@ -4,14 +4,16 @@
4
  <div class="alm-dropdown">
5
  <div class="alm-drop-inner">
6
  <ul>
 
 
 
7
  <li>
8
- <a href="javascript:void(0);" class="layout" data-type="default"><i class="fa fa-picture-o"></i>
9
- <?php _e('Default', 'ajax-load-more'); ?>
 
10
  </a>
11
  </li>
12
- <?php if (has_action('alm_layouts_installed')){
13
- do_action('alm_get_layouts_add_on');
14
- } else {
15
  echo '<li><a href="https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=Extend&utm_campaign=Layouts" class="add-on" target="_blank">';
16
  echo '<i class="fa fa-key"></i>';
17
  _e('Unlock additional layout templates with the <strong>Layouts add-on</strong>', 'ajax-load-more');
4
  <div class="alm-dropdown">
5
  <div class="alm-drop-inner">
6
  <ul>
7
+ <?php if (has_action('alm_layouts_installed')){
8
+ do_action('alm_get_layouts_add_on');
9
+ } else { ?>
10
  <li>
11
+ <a href="javascript:void(0);" class="layout" data-type="default">
12
+ <i class="fa fa-list-alt"></i>
13
+ <?php _e('Default Layout', 'ajax-load-more'); ?>
14
  </a>
15
  </li>
16
+ <?php
 
 
17
  echo '<li><a href="https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=Extend&utm_campaign=Layouts" class="add-on" target="_blank">';
18
  echo '<i class="fa fa-key"></i>';
19
  _e('Unlock additional layout templates with the <strong>Layouts add-on</strong>', 'ajax-load-more');
admin/includes/components/repeater-options.php CHANGED
@@ -3,8 +3,8 @@
3
  <div class="alm-dropdown">
4
  <div class="alm-drop-inner">
5
  <ul>
6
- <li class="option-update"><a href="javascript:void(0);"><i class="fa fa-download"></i> <?php _e('Update Template from Database', 'ajax-load-more'); ?></a></li>
7
- <li class="copy"><a href="javascript:void(0);"><i class="fa fa-files-o"></i> <?php _e('Copy Template Data', 'ajax-load-more'); ?></a></li>
8
  </ul>
9
  </div>
10
  </div>
3
  <div class="alm-dropdown">
4
  <div class="alm-drop-inner">
5
  <ul>
6
+ <li class="option-update"><a href="javascript:void(0);" title="<?php _e('Update Template from Database', 'ajax-load-more'); ?>"><i class="fa fa-download"></i> <?php _e('Update Template from Database', 'ajax-load-more'); ?></a></li>
7
+ <li class="copy"><a href="javascript:void(0);" title="<?php _e('Copy Template Data', 'ajax-load-more'); ?>"><i class="fa fa-file"></i> <?php _e('Copy Template Data', 'ajax-load-more'); ?></a></li>
8
  </ul>
9
  </div>
10
  </div>
admin/includes/cta/add-ons.php CHANGED
@@ -1,8 +1,12 @@
1
- <div class="cta padding-bottom">
2
  <h3>Add-ons</h3>
 
3
  <ul>
4
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Cache">Cache</a></li>
5
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Custom%20Repeaters">Custom Repeaters</a></li><li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/paging/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Paging">Paging</a></li>
 
 
 
6
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Preloaded">Preloaded</a></li>
7
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Previous">Previous Post</a></li>
8
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=SEO">Search Engine Optimization</a></li>
1
+ <div class="cta padding-bottom cta-add-on">
2
  <h3>Add-ons</h3>
3
+ <p>Ajax Load More offers a variety of unique add-ons that will extend and enhance the core functionality of the plugin.</p>
4
  <ul>
5
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Cache">Cache</a></li>
6
+ <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Comments">Comments</a></li>
7
+ <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Custom%20Repeaters">Custom Repeaters</a></li>
8
+ <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Layouts">Layouts</a></li>
9
+ <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/paging/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Paging">Paging</a></li>
10
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Preloaded">Preloaded</a></li>
11
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Previous">Previous Post</a></li>
12
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=SEO">Search Engine Optimization</a></li>
admin/includes/cta/dyk.php CHANGED
@@ -1,5 +1,26 @@
1
- <div class="cta">
2
  <h3><?php _e('Did you know?', 'ajax-load-more'); ?></h3>
 
 
 
 
3
  <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/shortcode-editor.jpg"><br/>
4
- <?php _e('<p class="addon-intro">You can generate shortcodes while editing pages!</p><p>Click the Ajax Load More icon in the content editor toolbar and the <a href="?page=ajax-load-more-shortcode-builder">shortcode builder</a> will open in an overlay window.', 'ajax-load-more'); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  </div>
1
+ <div class="cta dyk">
2
  <h3><?php _e('Did you know?', 'ajax-load-more'); ?></h3>
3
+ <?php
4
+ $random = rand(1, 3);
5
+ ?>
6
+ <?php if($random == 1){ ?>
7
  <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/shortcode-editor.jpg"><br/>
8
+ <p class="addon-intro">You can generate shortcodes while editing pages!</p>
9
+ <p>Click the Ajax Load More icon in the content editor toolbar and the <a href="?page=ajax-load-more-shortcode-builder">shortcode builder</a> will open up in an lightbox window.</p>
10
+ <?php } ?>
11
+
12
+ <?php if($random == 2){ ?>
13
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cache-add-on.jpg"><br/>
14
+ <p class="addon-intro">You can cache your server requests with Ajax Load More!</p>
15
+ <p>The <a target="blank" style="font-weight: 700;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Cache</a> add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.</p>
16
+ <p><a target="blank" style="font-weight: 700;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Learn More &raquo;</a></p>
17
+ <?php } ?>
18
+
19
+ <?php if($random == 3){ ?>
20
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/prev-post-add-on.jpg"><br/>
21
+ <p class="addon-intro">You can lazy load your single posts with Ajax Load More!</p>
22
+ <p>The <a target="blank" style="font-weight: 700;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Previous Post</a> add-on will load single posts as you scroll and update the browser URL to the current post.</p>
23
+ <p><a target="blank" style="font-weight: 700;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Learn More &raquo;</a></p>
24
+ <?php } ?>
25
+
26
  </div>
admin/includes/cta/extend.php CHANGED
@@ -1 +1 @@
1
- <div class="clear"></div><div class="call-out"><?php _e('Unlock additional templates with the <a href="?page=ajax-load-more-add-ons" target="_parent">Custom Repeaters add-on</a>', 'ajax-load-more'); ?> <a class="cnkt-button" href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_blank"><?php _e('More Info', 'ajax-load-more'); ?></a></div>
1
+ <div class="clear"></div><div class="call-out"><?php _e('Unlock additional templates with the <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_parent">Custom Repeaters add-on</a>', 'ajax-load-more'); ?> <a class="cnkt-button" href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_blank"><?php _e('More Info', 'ajax-load-more'); ?></a></div>
admin/includes/cta/mailinglist.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="cta mailing-list social" id="alm-mailing-list">
2
  <div class="head-wrap">
3
- <h3><?php _e('Join the Mailing List', 'ajax-load-more'); ?></h3>
4
- <p><?php _e('Enter your email below to receive product updates delivered directly to your inbox.', 'ajax-load-more'); ?></p>
5
  </div>
6
  <form action="" method="post" id="alm-mc-embedded" name="mc-embedded-subscribe-form" class="validate" data-path="<?php echo ALM_ADMIN_URL; ?>includes/mailchimp/mailchimp-info.php" novalidate>
7
  <div class="form-wrap">
1
  <div class="cta mailing-list social" id="alm-mailing-list">
2
  <div class="head-wrap">
3
+ <h3><?php _e('Join our mailing list', 'ajax-load-more'); ?></h3>
4
+ <p><?php _e('Get product updates delivered directly to your inbox.', 'ajax-load-more'); ?></p>
5
  </div>
6
  <form action="" method="post" id="alm-mc-embedded" name="mc-embedded-subscribe-form" class="validate" data-path="<?php echo ALM_ADMIN_URL; ?>includes/mailchimp/mailchimp-info.php" novalidate>
7
  <div class="form-wrap">
admin/includes/cta/resources.php CHANGED
@@ -2,7 +2,7 @@
2
  <h3><?php _e('Resources', 'ajax-load-more'); ?></h3>
3
  <ul>
4
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/"><i class="fa fa-mouse-pointer"></i> <?php _e('Ajax Load More Demo Site', 'ajax-load-more'); ?></a></li>
5
- <li><a target="blank" href="http://wordpress.org/support/plugin/ajax-load-more"><i class="fa fa-question-circle"></i> <?php _e('Plugin Support and Issues', 'ajax-load-more'); ?>s</a></li>
6
  <li><a target="blank" href="https://wordpress.org/support/view/plugin-reviews/ajax-load-more"><i class="fa fa-star"></i> <?php _e('Reviews', 'ajax-load-more'); ?></a></li>
7
  <li><a target="blank" href="http://facebook.com/ajaxloadmore"><i class="fa fa-facebook"></i> <?php _e('Facebook', 'ajax-load-more'); ?></a></li>
8
  <li><a target="blank" href="http://twitter.com/ajaxloadmore"><i class="fa fa-twitter"></i> <?php _e('Twitter', 'ajax-load-more'); ?></a></li>
2
  <h3><?php _e('Resources', 'ajax-load-more'); ?></h3>
3
  <ul>
4
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/"><i class="fa fa-mouse-pointer"></i> <?php _e('Ajax Load More Demo Site', 'ajax-load-more'); ?></a></li>
5
+ <li><a target="blank" href="http://wordpress.org/support/plugin/ajax-load-more"><i class="fa fa-question-circle"></i> <?php _e('Plugin Support and Issues', 'ajax-load-more'); ?></a></li>
6
  <li><a target="blank" href="https://wordpress.org/support/view/plugin-reviews/ajax-load-more"><i class="fa fa-star"></i> <?php _e('Reviews', 'ajax-load-more'); ?></a></li>
7
  <li><a target="blank" href="http://facebook.com/ajaxloadmore"><i class="fa fa-facebook"></i> <?php _e('Facebook', 'ajax-load-more'); ?></a></li>
8
  <li><a target="blank" href="http://twitter.com/ajaxloadmore"><i class="fa fa-twitter"></i> <?php _e('Twitter', 'ajax-load-more'); ?></a></li>
admin/includes/cta/reviews.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <h4><?php _e('Leave a Review', 'ajax-load-more'); ?> <i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></h4>
2
+ <p><?php _e('Good <em>or</em> bad - all reviews will help the plugin push forward and grow.', 'ajax-load-more'); ?> </p>
3
+ <ul class="share">
4
+ <li><a href="https://wordpress.org/support/view/plugin-reviews/ajax-load-more" target="_blank"><?php _e('Write a Review', 'ajax-load-more'); ?></a></li>
5
+ </ul>
admin/includes/cta/sharing.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <h4><?php _e('Share Ajax Load More', 'ajax-load-more'); ?> <i class="fa fa-share-alt"></i></h4>
2
+ <p><?php _e('Use the links below to share with your friends on Twitter and Facebook.', 'ajax-load-more'); ?></p>
3
+ <ul class="share">
4
+ <li class="twitter">
5
+ <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=Ajax Load More - WordPress plugin for infinite scrolling posts with Ajax - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter">Twitter</a>
6
+ </li>
7
+ <li class="facebook">
8
+ <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook">Facebook</a>
9
+ </li>
10
+ </ul>
admin/js/admin.js CHANGED
@@ -266,18 +266,23 @@ jQuery(document).ready(function($) {
266
 
267
 
268
 
269
- // Get layout value Ajax
270
- //$('.alm-layout-selection ul li a.layout').click(function(){
 
 
 
271
  $(document).on('click', '.alm-layout-selection li a.layout', function(e){
272
  e.preventDefault();
273
  var el = $(this),
274
  type = el.data('type'),
 
275
  layout_btn_text = el.html(),
276
  name = el.closest('.repeater-wrap').data('name');
277
 
278
  if(!el.hasClass('updating')){
279
 
280
- el.addClass('updating').text("Applying layout...");
 
281
 
282
  // Get editor ID
283
  var eid = '';
@@ -302,10 +307,11 @@ jQuery(document).ready(function($) {
302
 
303
  // Clear button styles
304
  setTimeout(function() {
305
- el.text('Template Updated').blur();
306
  setTimeout(function() {
307
  el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
308
- el.closest('.alm-drop-btn').trigger('click');
 
309
  }, 400);
310
  }, 400);
311
 
@@ -313,11 +319,41 @@ jQuery(document).ready(function($) {
313
  },
314
  error: function(xhr, status, error) {
315
  console.log(status);
 
316
  }
317
  });
318
  }
319
 
320
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
 
322
 
323
 
@@ -328,13 +364,15 @@ jQuery(document).ready(function($) {
328
  * @since 2.7.3
329
  */
330
 
331
- $(document).on('click', '.alm-settings-nav li a', function(e){
332
  e.preventDefault();
333
- var el = $(this).parent(),
334
- index = el.index();
335
- $('html, body').animate({
336
- scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
337
- }, 500);
 
 
338
 
339
 
340
  });
266
 
267
 
268
 
269
+ /*
270
+ * Get layout value Ajax
271
+ *
272
+ * @since 2.8.7
273
+ */
274
  $(document).on('click', '.alm-layout-selection li a.layout', function(e){
275
  e.preventDefault();
276
  var el = $(this),
277
  type = el.data('type'),
278
+ textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
279
  layout_btn_text = el.html(),
280
  name = el.closest('.repeater-wrap').data('name');
281
 
282
  if(!el.hasClass('updating')){
283
 
284
+ el.addClass('updating').text(alm_admin_localize.applying_layout+"...");
285
+ textarea.addClass('loading');
286
 
287
  // Get editor ID
288
  var eid = '';
307
 
308
  // Clear button styles
309
  setTimeout(function() {
310
+ el.text(alm_admin_localize.template_updated).blur();
311
  setTimeout(function() {
312
  el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
313
+ el.closest('.alm-drop-btn').trigger('click');
314
+ textarea.removeClass('loading');
315
  }, 400);
316
  }, 400);
317
 
319
  },
320
  error: function(xhr, status, error) {
321
  console.log(status);
322
+ textarea.removeClass('loading');
323
  }
324
  });
325
  }
326
 
327
  });
328
+
329
+
330
+
331
+ /*
332
+ * Dismiss Sharing (Transient)
333
+ *
334
+ * @since 2.8.7
335
+ */
336
+ $(document).on('click', '#alm_dismiss_sharing', function(e){
337
+ e.preventDefault();
338
+ var el = $(this),
339
+ container = el.parent('.group');
340
+ // Get value from Ajax
341
+ $.ajax({
342
+ type: 'POST',
343
+ url: alm_admin_localize.ajax_admin_url,
344
+ data: {
345
+ action: 'alm_dismiss_sharing',
346
+ nonce: alm_admin_localize.alm_admin_nonce,
347
+ },
348
+ success: function(data) {
349
+ container.fadeOut();
350
+ },
351
+ error: function(xhr, status, error) {
352
+ console.log(status);
353
+ }
354
+ });
355
+
356
+ });
357
 
358
 
359
 
364
  * @since 2.7.3
365
  */
366
 
367
+ $(document).on('change', '#alm-settings-nav', function(e){
368
  e.preventDefault();
369
+ var el = $(this),
370
+ index = el.val();
371
+ if(index !== '#'){
372
+ $('html, body').animate({
373
+ scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
374
+ }, 500);
375
+ }
376
 
377
 
378
  });
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -25,6 +25,9 @@ jQuery(document).ready(function($) {
25
  });
26
  $('.ajax-load-more .tags select.multiple').select2({
27
  placeholder : '-- Select Tags --'
 
 
 
28
  });
29
  };
30
  _alm.select2();
@@ -300,8 +303,8 @@ jQuery(document).ready(function($) {
300
  // - Repeater
301
  // ---------------------------
302
 
303
- var repeater = $('select#repeater-select').val(),
304
- theme_repeater = $('select#theme-repeater-select').val();
305
 
306
  if(theme_repeater != 'null' && theme_repeater != '' && theme_repeater != undefined){
307
  output += ' theme_repeater="'+theme_repeater+'"';
@@ -312,6 +315,43 @@ jQuery(document).ready(function($) {
312
  }
313
 
314
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
 
316
  // ---------------------------
317
  // - Post Types
@@ -741,6 +781,11 @@ jQuery(document).ready(function($) {
741
  output += ' transition="'+transition+'"';
742
 
743
 
 
 
 
 
 
744
  // ---------------------------
745
  // - Images loaded
746
  // ---------------------------
@@ -821,14 +866,26 @@ jQuery(document).ready(function($) {
821
  el.addClass('changed');
822
 
823
  // reset repeater templates
824
- if(el.attr('id') === 'repeater-select'){
825
- $('select#theme-repeater-select').select2('val','');
826
  }
827
- if(el.attr('id') === 'theme-repeater-select'){
828
- if($('#theme-repeater-select').val() !== 'null' && $('#theme-repeater-select').val() !== ''){
829
- $('select#repeater-select').select2('val','default');
830
  }
831
  }
 
 
 
 
 
 
 
 
 
 
 
 
832
 
833
  if(el.attr('id') === 'comments_template'){
834
  $('#comments_callback').val('');
25
  });
26
  $('.ajax-load-more .tags select.multiple').select2({
27
  placeholder : '-- Select Tags --'
28
+ });
29
+ $('.ajax-load-more .alternate_template_wrap select.multiple').select2({
30
+ placeholder : '-- Select Sequence --'
31
  });
32
  };
33
  _alm.select2();
303
  // - Repeater
304
  // ---------------------------
305
 
306
+ var repeater = $('.repeater select[name=repeater-select]').val(),
307
+ theme_repeater = $('.select-theme-repeater select[name=theme-repeater-select]').val();
308
 
309
  if(theme_repeater != 'null' && theme_repeater != '' && theme_repeater != undefined){
310
  output += ' theme_repeater="'+theme_repeater+'"';
315
  }
316
 
317
 
318
+
319
+ // ---------------------------
320
+ // - Alternate Repeater
321
+ // ---------------------------
322
+
323
+ var alternate_container = $('#alm-alternate');
324
+ var alternate = $('input[name=alternate]:checked', alternate_container).val();
325
+ var alternate_sequence = $('input[name=alternate-sequence]', alternate_container).val();
326
+ var alternate_sequence_max = $('input[name=alternate-sequence-max]', alternate_container).val();
327
+ var alternate_repeater = $('select[name=alternate-repeater-select]', alternate_container).val();
328
+ var alternate_theme_repeater = $('select[name=theme-repeater-select]', alternate_container).val();
329
+ if(alternate !== 'false' && alternate != undefined){
330
+
331
+ $('.alternate_template_wrap').slideDown(100, 'alm_easeInOutQuad');
332
+
333
+ // Standard repeater
334
+ if(alternate_repeater != '' && alternate_repeater != undefined && alternate_sequence != '' && alternate_sequence != null){
335
+ output += ' alternate="'+alternate+'"';
336
+ output += ' alternate_repeater="'+alternate_repeater+'"';
337
+ output += ' alternate_sequence="'+alternate_sequence+'"';
338
+ output += ' alternate_sequence_max="'+alternate_sequence_max+'"';
339
+ }
340
+ // Theme repeater
341
+ if(alternate_theme_repeater != '' && alternate_theme_repeater != undefined && alternate_sequence != '' && alternate_sequence != null){
342
+ output += ' alternate="'+alternate+'"';
343
+ output += ' alternate_theme_repeater="'+alternate_theme_repeater+'"';
344
+ output += ' alternate_sequence="'+alternate_sequence+'"';
345
+ output += ' alternate_sequence_max="'+alternate_sequence_max+'"';
346
+ }
347
+
348
+ }else{
349
+
350
+ $('.alternate_template_wrap').slideUp(100, 'alm_easeInOutQuad');
351
+
352
+ }
353
+
354
+
355
 
356
  // ---------------------------
357
  // - Post Types
781
  output += ' transition="'+transition+'"';
782
 
783
 
784
+ var transition_container = $('.transition input[name=remove_container]:checked').val();
785
+ if(transition_container === 'f' && seo !== 'true' && previous !== 'true')
786
+ output += ' transition_container="false"';
787
+
788
+
789
  // ---------------------------
790
  // - Images loaded
791
  // ---------------------------
866
  el.addClass('changed');
867
 
868
  // reset repeater templates
869
+ if(el.attr('name') === 'repeater-select'){
870
+ $('.select-theme-repeater select[name=theme-repeater-select]').select2('val','');
871
  }
872
+ if(el.attr('name') === 'theme-repeater-select'){
873
+ if($('.select-theme-repeater select[name=theme-repeater-select]').val() !== 'null' && $('.select-theme-repeater select[name=theme-repeater-select]').val() !== ''){
874
+ $('.repeater select[name=repeater-select]').select2('val','default');
875
  }
876
  }
877
+
878
+
879
+ // reset alternate repeater templates
880
+ if(el.attr('name') === 'alternate-repeater-select'){
881
+ $('#alm-alternate select[name=theme-repeater-select]').select2('val','');
882
+ }
883
+ if(el.attr('name') === 'theme-repeater-select'){
884
+ if($('#alm-alternate select[name=theme-repeater-select]').val() !== 'null' && $('#alm-alternate select[name=theme-repeater-select]').val() !== ''){
885
+ $('select[name=alternate-repeater-select]').select2('val','');
886
+ }
887
+ }
888
+
889
 
890
  if(el.attr('id') === 'comments_template'){
891
  $('#comments_callback').val('');
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -380,16 +380,19 @@
380
  );
381
  $pp_tax_output = 'objects';
382
  $pp_taxonomies = get_taxonomies( $pp_tax_args, $pp_tax_output );
383
- if ( $pp_taxonomies ) {
384
- echo '<select class="alm_element" name="pp-taxonomy-select" id="pp-taxonomy-select">';
385
- echo '<option value="" selected="selected">-- ' . __('Select Taxonomy', 'ajax-load-more') . ' --</option>';
386
- echo '<option value="category">' . __('Category', 'ajax-load-more') . '</option>';
387
- echo '<option value="tag">' . __('Tag', 'ajax-load-more') . '</option>';
388
- foreach( $pp_taxonomies as $pp_taxonomy ){
389
- echo '<option name="pp-'.$pp_taxonomy->query_var.'" id="pp-'.$pp_taxonomy->query_var.'" value="'.$pp_taxonomy->query_var.'">'.$pp_taxonomy->label.'</option>';
390
- }
391
- echo '</select>';
392
- } ?>
 
 
 
393
  </div>
394
  </div>
395
 
@@ -441,8 +444,8 @@
441
  echo '<p>'.__('Select which <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a> you would like to use.', 'ajax-load-more'). '</p>';
442
  echo '</div>';
443
  echo '<div class="wrap"><div class="inner">';
444
- echo '<select name="repeater-select" id="repeater-select" class="alm_element">';
445
- echo '<option name="default" id="chk-default" value="default" selected="selected">Default</option>';
446
  if (has_action('alm_get_custom_repeaters')) {
447
  do_action('alm_get_custom_repeaters');
448
  }
@@ -452,13 +455,17 @@
452
  echo '</select>';
453
 
454
  echo '</div></div>';
 
455
 
456
 
 
 
457
  if (has_action('alm_theme_repeaters_selection')){
458
  do_action('alm_theme_repeaters_selection');
459
- }
460
-
461
-
 
462
  // Custom Repeaters v2 - /cta/extend.php
463
  if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters')) {
464
  include( ALM_PATH . 'admin/includes/cta/extend.php');
@@ -466,8 +473,109 @@
466
 
467
  echo '</div>';
468
  echo '</div>';
 
 
469
 
470
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
471
  // List registered post_types
472
  $pt_args = array(
473
  'public' => true
@@ -860,6 +968,7 @@
860
  <option value="author">Author</option>
861
  <option value="ID">ID</option>
862
  <option value="comment_count">Comment Count</option>
 
863
  <option value="meta_value_num">meta_value_num</option>
864
  </select>
865
  </div>
@@ -998,7 +1107,8 @@
998
  <h3 class="heading"><?php _e('Transition', 'ajax-load-more'); ?></h3>
999
  <div class="expand-wrap">
1000
  <div class="section-title">
1001
- <p><?php _e('Select a loading transition.', 'ajax-load-more'); ?></p>
 
1002
  </div>
1003
  <div class="wrap">
1004
  <div class="inner">
@@ -1018,6 +1128,22 @@
1018
  </ul>
1019
  </div>
1020
  </div>