WordPress Infinite Scroll – Ajax Load More - Version 2.8.1.2

Version Description

  • SECURITY - Due to a security scare with non-admin logged-in users I have updated all admin-ajax.php calls to verify nonce variables (wp_verify_nonce) and check user capabilities(edit_theme_options).
Download this release

Release Info

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

Code changes from version 2.8.0 to 2.8.1.2

README.txt CHANGED
@@ -4,7 +4,7 @@ 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
5
  Requires at least: 3.6
6
  Tested up to: 4.3.1
7
- Stable tag: 2.8.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -132,7 +132,7 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
132
  > [Get More Information](http://connekthq.com/plugins/ajax-load-more/preloaded/)
133
  >
134
  > #### Previous Post
135
- > The **[Preloaded](http://connekthq.com/plugins/ajax-load-more/previous-post/)** add-on will allow you to navigate single posts with Ajax Load More.<br />
136
  > [Get More Information](http://connekthq.com/plugins/ajax-load-more/previous-post/)
137
  >
138
  > #### Search Engine Optimization
@@ -278,6 +278,20 @@ How to install Ajax Load More.
278
  == Changelog ==
279
 
280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  = 2.8.0 =
282
  * NEW - Adding required support and functionality for new Previous Post add-on - https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/
283
  * NEW - Adding a set of filters to inject content into ALM containers.
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.3.1
7
+ Stable tag: 2.8.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
132
  > [Get More Information](http://connekthq.com/plugins/ajax-load-more/preloaded/)
133
  >
134
  > #### Previous Post
135
+ > The **[Previous Post](http://connekthq.com/plugins/ajax-load-more/previous-post/)** add-on will allow you to navigate single posts with Ajax Load More.<br />
136
  > [Get More Information](http://connekthq.com/plugins/ajax-load-more/previous-post/)
137
  >
138
  > #### Search Engine Optimization
278
  == Changelog ==
279
 
280
 
281
+ = 2.8.1.2 =
282
+ * SECURITY - Due to a security scare with non-admin logged-in users I have updated all admin-ajax.php calls to verify nonce variables (wp_verify_nonce) and check user capabilities(edit_theme_options).
283
+
284
+ = 2.8.1.1 =
285
+ * FIX - Update for issue where Ajax Load More CSS would load even if unchecked.
286
+
287
+
288
+ = 2.8.1.1 =
289
+ * UPDATE - Adding required support/update for Language Pack translations (https://translate.wordpress.org/)
290
+ * FIX - Update to automatically set posts_per_page to 1 if Previous Post add-on is in use.
291
+ * FIX - Various core JS updates/improvements
292
+ * FIX - Licenses not showing for Theme Repeaters and Previous Post add-ons
293
+ * UPDATE - Various admin UI updates and enhancements.
294
+
295
  = 2.8.0 =
296
  * NEW - Adding required support and functionality for new Previous Post add-on - https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/
297
  * NEW - Adding a set of filters to inject content into ALM containers.
admin/admin.php CHANGED
@@ -3,7 +3,6 @@
3
  /* Admin function */
4
 
5
  add_action( 'plugins_loaded', 'alm_core_update' ); // Core Update
6
- add_action( 'admin_head', 'alm_admin_vars' ); // Localized Vars
7
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
8
  add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
9
  add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxonomy Terms
@@ -29,6 +28,17 @@ function alm_admin_vars() { ?>
29
  <?php }
30
 
31
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  /**
34
  * alm_core_update
@@ -114,11 +124,11 @@ function alm_update_template_files(){
114
  try {
115
  $o = fopen($f, 'w+'); //Open file
116
  if ( !$o ) {
117
- throw new Exception(__('[Ajax Load More] Error opening default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory', ALM_NAME));
118
  }
119
  $w = fwrite($o, $data); //Save the file
120
  if ( !$w ) {
121
- throw new Exception(__('[Ajax Load More] Error updating default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory.', ALM_NAME));
122
  }
123
  fclose($o); //now close it
124
 
@@ -228,6 +238,7 @@ function alm_admin_menu() {
228
  //Add our admin scripts
229
  add_action( 'load-' . $alm_settings_page, 'alm_load_admin_js' );
230
  add_action( 'load-' . $alm_template_page, 'alm_load_admin_js' );
 
231
  add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
232
  add_action( 'load-' . $alm_examples_page, 'alm_load_admin_js' );
233
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
@@ -265,7 +276,7 @@ function alm_enqueue_admin_scripts(){
265
  wp_enqueue_style( 'alm-admin-css', ALM_ADMIN_URL. 'css/admin.css');
266
  wp_enqueue_style( 'alm-select2-css', ALM_ADMIN_URL. 'css/select2.css');
267
  wp_enqueue_style( 'alm-core-css', ALM_URL. '/core/css/ajax-load-more.css');
268
- wp_enqueue_style( 'alm-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css');
269
 
270
  //Load CodeMirror Syntax Highlighting if on Repater Template page
271
  $screen = get_current_screen();
@@ -390,37 +401,6 @@ function alm_cache_page(){
390
 
391
 
392
 
393
- /*
394
- * alm_delete_cache
395
- * Delete induvidual cached items
396
- *
397
- * @return null
398
- * @since 2.6.0
399
- */
400
-
401
- function alm_delete_cache(){
402
- $nonce = $_POST["nonce"];
403
- $cache = $_POST["cache"];
404
- // Check our nonce, if they don't match then bounce!
405
- if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
406
- die('Get Bounced!');
407
-
408
- $dir = ALM_CACHE_PATH .'_cache/'.$cache;
409
-
410
- if (is_dir($dir)) {
411
- foreach (glob($dir."/*.*") as $filename) {
412
- if (is_file($filename)) {
413
- unlink($filename);
414
- }
415
- }
416
- rmdir($dir);
417
- }
418
-
419
- die();
420
- }
421
-
422
-
423
-
424
  /*
425
  * alm_save_repeater
426
  * Repeater Save function
@@ -431,102 +411,108 @@ function alm_delete_cache(){
431
 
432
  function alm_save_repeater(){
433
 
434
- global $wpdb;
435
- $table_name = $wpdb->prefix . "alm";
436
- $blog_id = $wpdb->blogid;
437
- $options = get_option( 'alm_settings' ); //Get plugin options
438
-
439
- $nonce = $_POST["nonce"];
440
- // Check our nonce, if they don't match then bounce!
441
- if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
442
- die('Error - unable to verify nonce, please try again.');
443
 
444
- // Get _POST Vars
445
- $c = Trim(stripslashes($_POST["value"])); // Repeater Value
446
- $n = Trim(stripslashes($_POST["repeater"])); // Repeater name
447
- $t = Trim(stripslashes($_POST["type"])); // Repeater name
448
- $a = Trim(stripslashes($_POST["alias"])); // Repeater alias
449
-
450
- // Write to repeater templates
451
-
452
- // (Default)
453
- if($t === 'default'){
454
 
455
- if($blog_id > 1){
456
- $dir = ALM_PATH. 'core/repeater/'. $blog_id;
457
- if( !is_dir($dir) ){
458
- mkdir($dir);
459
- }
460
- $f = ALM_PATH. 'core/repeater/'. $blog_id .'/default.php';
461
- }else{
462
- $f = ALM_PATH. 'core/repeater/default.php';
463
- }
 
464
 
465
- }
466
- // (Unlimited)
467
- elseif($t === 'unlimited'){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
 
469
- if($blog_id > 1){
470
- $dir = ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id;
471
- if( !is_dir($dir) ){
472
- mkdir($dir);
473
  }
474
- $f = ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id .'/'.$n .'.php';
475
- }else{
476
- $f = ALM_UNLIMITED_PATH. 'repeaters/'.$n .'.php';
477
- }
478
 
479
- }
480
- // (Unlimited v1)
481
- else{
482
-
483
- $f = ALM_REPEATER_PATH. 'repeaters/'.$n .'.php';
 
 
 
 
 
 
 
 
 
 
 
 
484
 
485
- }
486
-
487
- try {
488
- $o = fopen($f, 'w+'); //Open file
489
- if ( !$o ) {
490
- throw new Exception(__('[Ajax Load More] Unable to open repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', ALM_NAME));
491
- }
492
- $w = fwrite($o, $c); //Save the file
493
- if ( !$w ) {
494
- throw new Exception(__('[Ajax Load More] Error saving repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', ALM_NAME));
495
- }
496
- fclose($o); //now close it
497
-
498
- } catch ( Exception $e ) {
499
- // Display error message in console.
500
- if(!isset($options['_alm_error_notices']) || $options['_alm_error_notices'] == '1'){
501
- echo '<script>console.log("' .$e->getMessage(). '");</script>';
502
- }
503
- }
504
-
505
- //Save to database
506
 
507
- if($t === 'default') {
508
- $data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
509
- $data_where = array('name' => "default");
510
- }
511
- elseif($t === 'unlimited'){ // Unlimited Repeaters
512
- $table_name = $wpdb->prefix . "alm_unlimited";
513
- $data_update = array('repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_UNLIMITED_VERSION);
514
- $data_where = array('name' => $n);
515
- }
516
- else{ // Custom Repeaters
517
- $data_update = array('repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_REPEATER_VERSION);
518
- $data_where = array('name' => $n);
519
- }
520
-
521
- $wpdb->update($table_name , $data_update, $data_where);
522
-
523
- //Our results
524
- if($w){
525
- echo '<span class="saved">Template Saved Successfully</span>';
526
- } else {
527
- echo '<span class="saved-error"><b>'. __('Error Writing File', ALM_NAME) .'</b></span><br/>Something went wrong and the data could not be saved.';
528
  }
529
- die();
530
  }
531
 
532
 
@@ -542,28 +528,36 @@ function alm_save_repeater(){
542
  */
543
 
544
  function alm_update_repeater(){
545
- $nonce = $_POST["nonce"];
546
- // Check our nonce, if they don't match then bounce!
547
- if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
548
- die('Error - unable to verify nonce, please try again.');
549
 
550
- // Get _POST Vars
551
- $n = Trim(stripslashes($_POST["repeater"])); // Repeater name
552
- $t = Trim(stripslashes($_POST["type"])); // Repeater type (default | unlimited)
553
-
554
-
555
- // Get value from database
556
- global $wpdb;
557
- $table_name = $wpdb->prefix . "alm";
558
 
559
- if($t === 'default') $n = 'default';
560
- if($t === 'unlimited') $table_name = $wpdb->prefix . "alm_unlimited";
561
-
562
- $the_repeater = $wpdb->get_var("SELECT repeaterDefault FROM " . $table_name . " WHERE name = '$n'");
563
-
564
- echo $the_repeater; // Return repeater value
565
-
566
- die();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
567
  }
568
 
569
 
@@ -638,7 +632,7 @@ function alm_admin_init(){
638
 
639
  add_settings_field( // Container type
640
  '_alm_container_type',
641
- __('Container Type', ALM_NAME ),
642
  'alm_container_type_callback',
643
  'ajax-load-more',
644
  'alm_general_settings'
@@ -646,7 +640,7 @@ function alm_admin_init(){
646
 
647
  add_settings_field( // Classnames
648
  '_alm_classname',
649
- __('Container Classes', ALM_NAME ),
650
  'alm_class_callback',
651
  'ajax-load-more',
652
  'alm_general_settings'
@@ -654,7 +648,7 @@ function alm_admin_init(){
654
 
655
  add_settings_field( // Disbale CSS
656
  '_alm_disable_css',
657
- __('Disable CSS', ALM_NAME ),
658
  'alm_disable_css_callback',
659
  'ajax-load-more',
660
  'alm_general_settings'
@@ -662,7 +656,7 @@ function alm_admin_init(){
662
 
663
  add_settings_field( // Btn color
664
  '_alm_btn_color',
665
- __('Button Color', ALM_NAME ),
666
  'alm_btn_color_callback',
667
  'ajax-load-more',
668
  'alm_general_settings'
@@ -670,7 +664,7 @@ function alm_admin_init(){
670
 
671
  add_settings_field( // Button classes
672
  '_alm_btn_classname',
673
- __('Button Classes', ALM_NAME ),
674
  'alm_btn_class_callback',
675
  'ajax-load-more',
676
  'alm_general_settings'
@@ -678,7 +672,7 @@ function alm_admin_init(){
678
 
679
  add_settings_field( // Nonce security
680
  '_alm_nonce_security',
681
- __('Ajax Security', ALM_NAME ),
682
  '_alm_nonce_security_callback',
683
  'ajax-load-more',
684
  'alm_general_settings'
@@ -686,7 +680,7 @@ function alm_admin_init(){
686
 
687
  add_settings_field( // Scroll to top on load
688
  '_alm_scroll_top',
689
- __('Top of Page', ALM_NAME ),
690
  '_alm_scroll_top_callback',
691
  'ajax-load-more',
692
  'alm_general_settings'
@@ -694,7 +688,7 @@ function alm_admin_init(){
694
 
695
  add_settings_field( // Load dynamic queries
696
  '_alm_disable_dynamic',
697
- __('Dynamic Content', ALM_NAME ),
698
  'alm_disable_dynamic_callback',
699
  'ajax-load-more',
700
  'alm_admin_settings'
@@ -702,7 +696,7 @@ function alm_admin_init(){
702
 
703
  add_settings_field( // Hide btn
704
  '_alm_hide_btn',
705
- __('Editor Button', ALM_NAME ),
706
  'alm_hide_btn_callback',
707
  'ajax-load-more',
708
  'alm_admin_settings'
@@ -710,7 +704,7 @@ function alm_admin_init(){
710
 
711
  add_settings_field( // Display error notices
712
  '_alm_error_notices',
713
- __('Error Notices', ALM_NAME ),
714
  '_alm_error_notices_callback',
715
  'ajax-load-more',
716
  'alm_admin_settings'
@@ -769,7 +763,7 @@ function alm_admin_init(){
769
  */
770
 
771
  function alm_general_settings_callback() {
772
- echo '<p>' . __('Customize the user experience of Ajax Load More by updating the fields below.', ALM_NAME) . '</p>';
773
  }
774
 
775
 
@@ -782,7 +776,7 @@ function alm_general_settings_callback() {
782
  */
783
 
784
  function alm_admin_settings_callback() {
785
- echo '<p>' . __('The following settings affect the WordPress admin area only.', ALM_NAME) . '</p>';
786
  }
787
 
788
 
@@ -813,7 +807,7 @@ function alm_disable_css_callback(){
813
 
814
  $html = '<input type="hidden" name="alm_settings[_alm_disable_css]" value="0" />';
815
  $html .= '<input type="checkbox" id="alm_disable_css_input" name="alm_settings[_alm_disable_css]" value="1"'. (($options['_alm_disable_css']) ? ' checked="checked"' : '') .' />';
816
- $html .= '<label for="alm_disable_css_input">'.__('I want to use my own CSS styles.', ALM_NAME).'<br/><span style="display:block;"><i class="fa fa-file-text-o"></i> &nbsp;<a href="'.ALM_URL.'/core/css/ajax-load-more.css" target="blank">'.__('View Ajax Load More CSS', ALM_NAME).'</a></span></label>';
817
 
818
  echo $html;
819
  }
@@ -833,7 +827,7 @@ function alm_hide_btn_callback(){
833
  $options['_alm_hide_btn'] = '0';
834
 
835
  $html = '<input type="hidden" name="alm_settings[_alm_hide_btn]" value="0" /><input type="checkbox" id="alm_hide_btn" name="alm_settings[_alm_hide_btn]" value="1"'. (($options['_alm_hide_btn']) ? ' checked="checked"' : '') .' />';
836
- $html .= '<label for="alm_hide_btn">'.__('Hide shortcode button in WYSIWYG editor.', ALM_NAME).'</label>';
837
 
838
  echo $html;
839
  }
@@ -854,7 +848,7 @@ function _alm_error_notices_callback(){
854
 
855
  $html = '<input type="hidden" name="alm_settings[_alm_error_notices]" value="0" />';
856
  $html .= '<input type="checkbox" name="alm_settings[_alm_error_notices]" id="_alm_error_notices" value="1"'. (($options['_alm_error_notices']) ? ' checked="checked"' : '') .' />';
857
- $html .= '<label for="_alm_error_notices">'.__('Display error messaging regarding repeater template updates in the browser console.', ALM_NAME).'</label>';
858
 
859
  echo $html;
860
  }
@@ -875,7 +869,7 @@ function alm_disable_dynamic_callback(){
875
 
876
  $html = '<input type="hidden" name="alm_settings[_alm_disable_dynamic]" value="0" />';
877
  $html .= '<input type="checkbox" name="alm_settings[_alm_disable_dynamic]" id="_alm_disable_dynamic" value="1"'. (($options['_alm_disable_dynamic']) ? ' checked="checked"' : '') .' />';
878
- $html .= '<label for="_alm_disable_dynamic">'.__('Disable dynamic population of categories, tags and authors in the Shortcode Builder.<span style="display:block">Recommended if you have an extraordinary number of categories, tags and/or authors.', ALM_NAME).'</label>';
879
 
880
  echo $html;
881
  }
@@ -896,12 +890,12 @@ function alm_container_type_callback() {
896
  $options['_alm_container_type'] = '1';
897
 
898
  $html = '<input type="radio" id="_alm_container_type_one" name="alm_settings[_alm_container_type]" value="1"' . checked( 1, $options['_alm_container_type'], false ) . '/>';
899
- $html .= '<label for="_alm_container_type_one">&lt;ul&gt; <span>&lt;!-- '.__('Ajax Posts Here', ALM_NAME).' --&gt;</span> &lt;/ul&gt;</label><br/>';
900
 
901
  $html .= '<input type="radio" id="_alm_container_type_two" name="alm_settings[_alm_container_type]" value="2"' . checked( 2, $options['_alm_container_type'], false ) . '/>';
902
- $html .= '<label for="_alm_container_type_two">&lt;div&gt; <span>&lt;!-- '.__('Ajax Posts Here', ALM_NAME).' --&gt;</span> &lt;/div&gt;</label>';
903
 
904
- $html .= '<label style="cursor: default !important"><span style="display:block">'.__('You can modify the container type when building a shortcode.', ALM_NAME).'</span></label>';
905
 
906
  echo $html;
907
 
@@ -918,7 +912,7 @@ function alm_container_type_callback() {
918
  function alm_class_callback(){
919
  $options = get_option( 'alm_settings' );
920
 
921
- $html = '<label for="alm_settings[_alm_classname]">'.__('Add classes to Ajax Load More container - classes are applied globally and will appear with every instance of Ajax Load More. <span style="display:block">You can also add classes when building a shortcode.</span>', ALM_NAME).'</label><br/>';
922
  $html .= '<input type="text" id="alm_settings[_alm_classname]" name="alm_settings[_alm_classname]" value="'.$options['_alm_classname'].'" placeholder="posts listing etc..." /> ';
923
 
924
  echo $html;
@@ -962,7 +956,7 @@ function alm_btn_color_callback() {
962
  $selected6 = '';
963
  if($color == 'white') $selected6 = 'selected="selected"';
964
 
965
- $html = '<label for="alm_settings_btn_color">'.__('Choose your <strong>Load More</strong> button color', ALM_NAME).'.</label><br/>';
966
  $html .= '<select id="alm_settings_btn_color" name="alm_settings[_alm_btn_color]">';
967
  $html .= '<option value="default" ' . $selected0 .'>Default (Orange)</option>';
968
  $html .= '<option value="blue" ' . $selected1 .'>Blue</option>';
@@ -973,7 +967,7 @@ function alm_btn_color_callback() {
973
  $html .= '<option value="white" ' . $selected6 .'>White</option>';
974
  $html .= '</select>';
975
 
976
- $html .= '<div class="clear"></div><div class="ajax-load-more-wrap core '.$color.'"><span>'.__('Preview', ALM_NAME) .'</span><button class="alm-load-more-btn loading" disabled="disabled">Load More</button></div>';
977
  echo $html;
978
  }
979
 
@@ -992,7 +986,7 @@ function alm_btn_class_callback(){
992
  if(!isset($options['_alm_btn_classname']))
993
  $options['_alm_btn_classname'] = '';
994
 
995
- $html = '<label for="alm_settings[_alm_btn_classname]">'.__('Add classes to your <strong>Load More</strong> button', ALM_NAME).'.</label>';
996
  $html .= '<input type="text" class="btn-classes" id="alm_settings[_alm_btn_classname]" name="alm_settings[_alm_btn_classname]" value="'.$options['_alm_btn_classname'].'" placeholder="button rounded listing etc..." /> ';
997
 
998
  echo $html;
@@ -1052,7 +1046,7 @@ function _alm_scroll_top_callback(){
1052
 
1053
  $html = '<input type="hidden" name="alm_settings[_alm_scroll_top]" value="0" />';
1054
  $html .= '<input type="checkbox" name="alm_settings[_alm_scroll_top]" id="_alm_scroll_top" value="1"'. (($options['_alm_scroll_top']) ? ' checked="checked"' : '') .' />';
1055
- $html .= '<label for="_alm_scroll_top">'.__('On initial page load, move the user\'s browser window to the top of the screen.<span style="display:block">This <u>may</u> help prevent the loading of unnecessary posts.</span>', ALM_NAME).'</label>';
1056
 
1057
  echo $html;
1058
  }
@@ -1073,7 +1067,7 @@ function _alm_nonce_security_callback(){
1073
 
1074
  $html = '<input type="hidden" name="alm_settings[_alm_nonce_security]" value="0" />';
1075
  $html .= '<input type="checkbox" name="alm_settings[_alm_nonce_security]" id="_alm_nonce_security" value="1"'. (($options['_alm_nonce_security']) ? ' checked="checked"' : '') .' />';
1076
- $html .= '<label for="_alm_nonce_security">'.__('Enable <a href="https://codex.wordpress.org/WordPress_Nonces" target="_blank">WP nonce</a> verification to help protect URLs against certain types of misuse, malicious or otherwise on each Ajax Load More query.', ALM_NAME).'</label>';
1077
 
1078
  echo $html;
1079
  }
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
8
  add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxonomy Terms
28
  <?php }
29
 
30
 
31
+ /*
32
+ * alm_set_admin_nonce
33
+ * Create admin nonce on Repeater Template page only
34
+ *
35
+ * @since 2.8.2
36
+ */
37
+ function alm_set_admin_nonce(){
38
+ add_action( 'admin_head', 'alm_admin_vars' ); // Localized Vars
39
+ }
40
+
41
+
42
 
43
  /**
44
  * alm_core_update
124
  try {
125
  $o = fopen($f, 'w+'); //Open file
126
  if ( !$o ) {
127
+ throw new Exception(__('[Ajax Load More] Error opening default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory', 'ajax-load-more'));
128
  }
129
  $w = fwrite($o, $data); //Save the file
130
  if ( !$w ) {
131
+ throw new Exception(__('[Ajax Load More] Error updating default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory.', 'ajax-load-more'));
132
  }
133
  fclose($o); //now close it
134
 
238
  //Add our admin scripts
239
  add_action( 'load-' . $alm_settings_page, 'alm_load_admin_js' );
240
  add_action( 'load-' . $alm_template_page, 'alm_load_admin_js' );
241
+ add_action( 'load-' . $alm_template_page, 'alm_set_admin_nonce' );
242
  add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
243
  add_action( 'load-' . $alm_examples_page, 'alm_load_admin_js' );
244
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
276
  wp_enqueue_style( 'alm-admin-css', ALM_ADMIN_URL. 'css/admin.css');
277
  wp_enqueue_style( 'alm-select2-css', ALM_ADMIN_URL. 'css/select2.css');
278
  wp_enqueue_style( 'alm-core-css', ALM_URL. '/core/css/ajax-load-more.css');
279
+ wp_enqueue_style( 'alm-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
280
 
281
  //Load CodeMirror Syntax Highlighting if on Repater Template page
282
  $screen = get_current_screen();
401
 
402
 
403
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
  /*
405
  * alm_save_repeater
406
  * Repeater Save function
411
 
412
  function alm_save_repeater(){
413
 
414
+ if (current_user_can( 'edit_theme_options' )){
 
 
 
 
 
 
 
 
415
 
416
+ global $wpdb;
417
+ $table_name = $wpdb->prefix . "alm";
418
+ $blog_id = $wpdb->blogid;
419
+ $options = get_option( 'alm_settings' ); //Get plugin options
 
 
 
 
 
 
420
 
421
+ $nonce = $_POST["nonce"];
422
+ // Check our nonce, if they don't match then bounce!
423
+ if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
424
+ die('Error - unable to verify nonce, please try again.');
425
+
426
+ // Get _POST Vars
427
+ $c = Trim(stripslashes($_POST["value"])); // Repeater Value
428
+ $n = Trim(stripslashes($_POST["repeater"])); // Repeater name
429
+ $t = Trim(stripslashes($_POST["type"])); // Repeater name
430
+ $a = Trim(stripslashes($_POST["alias"])); // Repeater alias
431
 
432
+ // Write to repeater templates
433
+
434
+ // (Default)
435
+ if($t === 'default'){
436
+
437
+ if($blog_id > 1){
438
+ $dir = ALM_PATH. 'core/repeater/'. $blog_id;
439
+ if( !is_dir($dir) ){
440
+ mkdir($dir);
441
+ }
442
+ $f = ALM_PATH. 'core/repeater/'. $blog_id .'/default.php';
443
+ }else{
444
+ $f = ALM_PATH. 'core/repeater/default.php';
445
+ }
446
+
447
+ }
448
+ // (Unlimited)
449
+ elseif($t === 'unlimited'){
450
+
451
+ if($blog_id > 1){
452
+ $dir = ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id;
453
+ if( !is_dir($dir) ){
454
+ mkdir($dir);
455
+ }
456
+ $f = ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id .'/'.$n .'.php';
457
+ }else{
458
+ $f = ALM_UNLIMITED_PATH. 'repeaters/'.$n .'.php';
459
+ }
460
+
461
+ }
462
+ // (Unlimited v1)
463
+ else{
464
+
465
+ $f = ALM_REPEATER_PATH. 'repeaters/'.$n .'.php';
466
+
467
+ }
468
+
469
+ try {
470
+ $o = fopen($f, 'w+'); //Open file
471
+ if ( !$o ) {
472
+ throw new Exception(__('[Ajax Load More] Unable to open repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', 'ajax-load-more'));
473
+ }
474
+ $w = fwrite($o, $c); //Save the file
475
+ if ( !$w ) {
476
+ throw new Exception(__('[Ajax Load More] Error saving repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', 'ajax-load-more'));
477
+ }
478
+ fclose($o); //now close it
479
 
480
+ } catch ( Exception $e ) {
481
+ // Display error message in console.
482
+ if(!isset($options['_alm_error_notices']) || $options['_alm_error_notices'] == '1'){
483
+ echo '<script>console.log("' .$e->getMessage(). '");</script>';
484
  }
485
+ }
 
 
 
486
 
487
+ //Save to database
488
+
489
+ if($t === 'default') {
490
+ $data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
491
+ $data_where = array('name' => "default");
492
+ }
493
+ elseif($t === 'unlimited'){ // Unlimited Repeaters
494
+ $table_name = $wpdb->prefix . "alm_unlimited";
495
+ $data_update = array('repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_UNLIMITED_VERSION);
496
+ $data_where = array('name' => $n);
497
+ }
498
+ else{ // Custom Repeaters
499
+ $data_update = array('repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_REPEATER_VERSION);
500
+ $data_where = array('name' => $n);
501
+ }
502
+
503
+ $wpdb->update($table_name , $data_update, $data_where);
504
 
505
+ //Our results
506
+ if($w){
507
+ echo '<span class="saved">Template Saved Successfully</span>';
508
+ } else {
509
+ echo '<span class="saved-error"><b>'. __('Error Writing File', 'ajax-load-more') .'</b></span><br/>Something went wrong and the data could not be saved.';
510
+ }
511
+ die();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
512
 
513
+ }else {
514
+ echo __('You don\'t belong here.', 'ajax-load-more');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
515
  }
 
516
  }
517
 
518
 
528
  */
529
 
530
  function alm_update_repeater(){
 
 
 
 
531
 
532
+ if (current_user_can( 'edit_theme_options' )){
 
 
 
 
 
 
 
533
 
534
+ $nonce = $_POST["nonce"];
535
+ // Check our nonce, if they don't match then bounce!
536
+ if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
537
+ die('Error - unable to verify nonce, please try again.');
538
+
539
+ // Get _POST Vars
540
+ $n = Trim(stripslashes($_POST["repeater"])); // Repeater name
541
+ $t = Trim(stripslashes($_POST["type"])); // Repeater type (default | unlimited)
542
+
543
+
544
+ // Get value from database
545
+ global $wpdb;
546
+ $table_name = $wpdb->prefix . "alm";
547
+
548
+ if($t === 'default') $n = 'default';
549
+ if($t === 'unlimited') $table_name = $wpdb->prefix . "alm_unlimited";
550
+
551
+ $the_repeater = $wpdb->get_var("SELECT repeaterDefault FROM " . $table_name . " WHERE name = '$n'");
552
+
553
+ echo $the_repeater; // Return repeater value
554
+
555
+ die();
556
+
557
+ } else {
558
+ echo __('You don\'t belong here.', 'ajax-load-more');
559
+ }
560
+
561
  }
562
 
563
 
632
 
633
  add_settings_field( // Container type
634
  '_alm_container_type',
635
+ __('Container Type', 'ajax-load-more' ),
636
  'alm_container_type_callback',
637
  'ajax-load-more',
638
  'alm_general_settings'
640
 
641
  add_settings_field( // Classnames
642
  '_alm_classname',
643
+ __('Container Classes', 'ajax-load-more' ),
644
  'alm_class_callback',
645
  'ajax-load-more',
646
  'alm_general_settings'
648
 
649
  add_settings_field( // Disbale CSS
650
  '_alm_disable_css',
651
+ __('Disable CSS', 'ajax-load-more' ),
652
  'alm_disable_css_callback',
653
  'ajax-load-more',
654
  'alm_general_settings'
656
 
657
  add_settings_field( // Btn color
658
  '_alm_btn_color',
659
+ __('Button Color', 'ajax-load-more' ),
660
  'alm_btn_color_callback',
661
  'ajax-load-more',
662
  'alm_general_settings'
664
 
665
  add_settings_field( // Button classes
666
  '_alm_btn_classname',
667
+ __('Button Classes', 'ajax-load-more' ),
668
  'alm_btn_class_callback',
669
  'ajax-load-more',
670
  'alm_general_settings'
672
 
673
  add_settings_field( // Nonce security
674
  '_alm_nonce_security',
675
+ __('Ajax Security', 'ajax-load-more' ),
676
  '_alm_nonce_security_callback',
677
  'ajax-load-more',
678
  'alm_general_settings'
680
 
681
  add_settings_field( // Scroll to top on load
682
  '_alm_scroll_top',
683
+ __('Top of Page', 'ajax-load-more' ),
684
  '_alm_scroll_top_callback',
685
  'ajax-load-more',
686
  'alm_general_settings'
688
 
689
  add_settings_field( // Load dynamic queries
690
  '_alm_disable_dynamic',
691
+ __('Dynamic Content', 'ajax-load-more' ),
692
  'alm_disable_dynamic_callback',
693
  'ajax-load-more',
694
  'alm_admin_settings'
696
 
697
  add_settings_field( // Hide btn
698
  '_alm_hide_btn',
699
+ __('Editor Button', 'ajax-load-more' ),
700
  'alm_hide_btn_callback',
701
  'ajax-load-more',
702
  'alm_admin_settings'
704
 
705
  add_settings_field( // Display error notices
706
  '_alm_error_notices',
707
+ __('Error Notices', 'ajax-load-more' ),
708
  '_alm_error_notices_callback',
709
  'ajax-load-more',
710
  'alm_admin_settings'
763
  */
764
 
765
  function alm_general_settings_callback() {
766
+ echo '<p>' . __('Customize the user experience of Ajax Load More by updating the fields below.', 'ajax-load-more') . '</p>';
767
  }
768
 
769
 
776
  */
777
 
778
  function alm_admin_settings_callback() {
779
+ echo '<p>' . __('The following settings affect the WordPress admin area only.', 'ajax-load-more') . '</p>';
780
  }
781
 
782
 
807
 
808
  $html = '<input type="hidden" name="alm_settings[_alm_disable_css]" value="0" />';
809
  $html .= '<input type="checkbox" id="alm_disable_css_input" name="alm_settings[_alm_disable_css]" value="1"'. (($options['_alm_disable_css']) ? ' checked="checked"' : '') .' />';
810
+ $html .= '<label for="alm_disable_css_input">'.__('I want to use my own CSS styles.', 'ajax-load-more').'<br/><span style="display:block;"><i class="fa fa-file-text-o"></i> &nbsp;<a href="'.ALM_URL.'/core/css/ajax-load-more.css" target="blank">'.__('View Ajax Load More CSS', 'ajax-load-more').'</a></span></label>';
811
 
812
  echo $html;
813
  }
827
  $options['_alm_hide_btn'] = '0';
828
 
829
  $html = '<input type="hidden" name="alm_settings[_alm_hide_btn]" value="0" /><input type="checkbox" id="alm_hide_btn" name="alm_settings[_alm_hide_btn]" value="1"'. (($options['_alm_hide_btn']) ? ' checked="checked"' : '') .' />';
830
+ $html .= '<label for="alm_hide_btn">'.__('Hide shortcode button in WYSIWYG editor.', 'ajax-load-more').'</label>';
831
 
832
  echo $html;
833
  }
848
 
849
  $html = '<input type="hidden" name="alm_settings[_alm_error_notices]" value="0" />';
850
  $html .= '<input type="checkbox" name="alm_settings[_alm_error_notices]" id="_alm_error_notices" value="1"'. (($options['_alm_error_notices']) ? ' checked="checked"' : '') .' />';
851
+ $html .= '<label for="_alm_error_notices">'.__('Display error messaging regarding repeater template updates in the browser console.', 'ajax-load-more').'</label>';
852
 
853
  echo $html;
854
  }
869
 
870
  $html = '<input type="hidden" name="alm_settings[_alm_disable_dynamic]" value="0" />';
871
  $html .= '<input type="checkbox" name="alm_settings[_alm_disable_dynamic]" id="_alm_disable_dynamic" value="1"'. (($options['_alm_disable_dynamic']) ? ' checked="checked"' : '') .' />';
872
+ $html .= '<label for="_alm_disable_dynamic">'.__('Disable dynamic population of categories, tags and authors in the Shortcode Builder.<span style="display:block">Recommended if you have an extraordinary number of categories, tags and/or authors.', 'ajax-load-more').'</label>';
873
 
874
  echo $html;
875
  }
890
  $options['_alm_container_type'] = '1';
891
 
892
  $html = '<input type="radio" id="_alm_container_type_one" name="alm_settings[_alm_container_type]" value="1"' . checked( 1, $options['_alm_container_type'], false ) . '/>';
893
+ $html .= '<label for="_alm_container_type_one">&lt;ul&gt; <span>&lt;!-- '.__('Ajax Posts Here', 'ajax-load-more').' --&gt;</span> &lt;/ul&gt;</label><br/>';
894
 
895
  $html .= '<input type="radio" id="_alm_container_type_two" name="alm_settings[_alm_container_type]" value="2"' . checked( 2, $options['_alm_container_type'], false ) . '/>';
896
+ $html .= '<label for="_alm_container_type_two">&lt;div&gt; <span>&lt;!-- '.__('Ajax Posts Here', 'ajax-load-more').' --&gt;</span> &lt;/div&gt;</label>';
897
 
898
+ $html .= '<label style="cursor: default !important"><span style="display:block">'.__('You can modify the container type when building a shortcode.', 'ajax-load-more').'</span></label>';
899
 
900
  echo $html;
901
 
912
  function alm_class_callback(){
913
  $options = get_option( 'alm_settings' );
914
 
915
+ $html = '<label for="alm_settings[_alm_classname]">'.__('Add classes to Ajax Load More container - classes are applied globally and will appear with every instance of Ajax Load More. <span style="display:block">You can also add classes when building a shortcode.</span>', 'ajax-load-more').'</label><br/>';
916
  $html .= '<input type="text" id="alm_settings[_alm_classname]" name="alm_settings[_alm_classname]" value="'.$options['_alm_classname'].'" placeholder="posts listing etc..." /> ';
917
 
918
  echo $html;
956
  $selected6 = '';
957
  if($color == 'white') $selected6 = 'selected="selected"';
958
 
959
+ $html = '<label for="alm_settings_btn_color">'.__('Choose your <strong>Load More</strong> button color', 'ajax-load-more').'.</label><br/>';
960
  $html .= '<select id="alm_settings_btn_color" name="alm_settings[_alm_btn_color]">';
961
  $html .= '<option value="default" ' . $selected0 .'>Default (Orange)</option>';
962
  $html .= '<option value="blue" ' . $selected1 .'>Blue</option>';
967
  $html .= '<option value="white" ' . $selected6 .'>White</option>';
968
  $html .= '</select>';
969
 
970
+ $html .= '<div class="clear"></div><div class="ajax-load-more-wrap core '.$color.'"><span>'.__('Preview', 'ajax-load-more') .'</span><button class="alm-load-more-btn loading" disabled="disabled">Load More</button></div>';
971
  echo $html;
972
  }
973
 
986
  if(!isset($options['_alm_btn_classname']))
987
  $options['_alm_btn_classname'] = '';
988
 
989
+ $html = '<label for="alm_settings[_alm_btn_classname]">'.__('Add classes to your <strong>Load More</strong> button', 'ajax-load-more').'.</label>';
990
  $html .= '<input type="text" class="btn-classes" id="alm_settings[_alm_btn_classname]" name="alm_settings[_alm_btn_classname]" value="'.$options['_alm_btn_classname'].'" placeholder="button rounded listing etc..." /> ';
991
 
992
  echo $html;
1046
 
1047
  $html = '<input type="hidden" name="alm_settings[_alm_scroll_top]" value="0" />';
1048
  $html .= '<input type="checkbox" name="alm_settings[_alm_scroll_top]" id="_alm_scroll_top" value="1"'. (($options['_alm_scroll_top']) ? ' checked="checked"' : '') .' />';
1049
+ $html .= '<label for="_alm_scroll_top">'.__('On initial page load, move the user\'s browser window to the top of the screen.<span style="display:block">This <u>may</u> help prevent the loading of unnecessary posts.</span>', 'ajax-load-more').'</label>';
1050
 
1051
  echo $html;
1052
  }
1067
 
1068
  $html = '<input type="hidden" name="alm_settings[_alm_nonce_security]" value="0" />';
1069
  $html .= '<input type="checkbox" name="alm_settings[_alm_nonce_security]" id="_alm_nonce_security" value="1"'. (($options['_alm_nonce_security']) ? ' checked="checked"' : '') .' />';
1070
+ $html .= '<label for="_alm_nonce_security">'.__('Enable <a href="https://codex.wordpress.org/WordPress_Nonces" target="_blank">WP nonce</a> verification to help protect URLs against certain types of misuse, malicious or otherwise on each Ajax Load More query.', 'ajax-load-more').'</label>';
1071
 
1072
  echo $html;
1073
  }
admin/css/admin.css CHANGED
@@ -1578,6 +1578,31 @@ table.highlight{
1578
  margin: 0 0 10px;
1579
  line-height: 1.4;
1580
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1581
  .ajax-load-more .cnkt-sidebar .item i{
1582
  font-size: 12px;
1583
  float: left;
@@ -2393,20 +2418,36 @@ p.cache-stats{
2393
  */
2394
 
2395
  #alm-mailing-list{}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2396
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn{
2397
  display: inline-block;
2398
  background-color: #fff;
2399
  color: #333;
2400
- font-size: 24px;
2401
  padding: 0;
2402
  width: 44px;
2403
  height: 44px;
2404
  line-height: 44px;
2405
  text-align: center;
2406
  vertical-align: top;
2407
- border-radius: 4px;
2408
- margin: 5px 5px 20px 0;
2409
- opacity: 0.9;
2410
  }
2411
 
2412
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn.facebook{
@@ -2418,7 +2459,6 @@ p.cache-stats{
2418
  color: #fff;
2419
  }
2420
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn:hover{
2421
- box-shadow: 0 0 0 4px #efefef;
2422
  opacity: 1;
2423
  }
2424
 
1578
  margin: 0 0 10px;
1579
  line-height: 1.4;
1580
  }
1581
+
1582
+ .ajax-load-more .cnkt-sidebar .cta.resources li{
1583
+ display: block;
1584
+ width: 100%;
1585
+ line-height: 1;
1586
+ margin: 1px 0;
1587
+ }
1588
+ .ajax-load-more .cnkt-sidebar .cta.resources li a{
1589
+ text-decoration: none;
1590
+ padding: 10px 0;
1591
+ display: block;
1592
+ border-top: 1px solid #efefef;
1593
+ }
1594
+ .ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a{
1595
+ border: none;
1596
+ padding-top: 0;
1597
+ }
1598
+ .ajax-load-more .cnkt-sidebar .cta.resources li i{
1599
+ display: inline-block;
1600
+ width: 20px;
1601
+ text-align: center;
1602
+ color: #ccc;
1603
+ text-decoration: none;
1604
+ font-size: 14px;
1605
+ }
1606
  .ajax-load-more .cnkt-sidebar .item i{
1607
  font-size: 12px;
1608
  float: left;
2418
  */
2419
 
2420
  #alm-mailing-list{}
2421
+ #alm-mailing-list .center{
2422
+ text-align: center;
2423
+ display: block;
2424
+ background: #f7f7f7;
2425
+ border: 1px solid #efefef;
2426
+ padding: 15px;
2427
+ margin: -5px 0 20px;
2428
+ border-radius: 2px;
2429
+ box-shadow: inset 0 0 0 1px #fff;
2430
+ }
2431
+ .center-text{
2432
+ text-align: center;
2433
+ }
2434
+ #alm-mailing-list .center p{
2435
+ margin-bottom: 15px;
2436
+ }
2437
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn{
2438
  display: inline-block;
2439
  background-color: #fff;
2440
  color: #333;
2441
+ font-size: 20px;
2442
  padding: 0;
2443
  width: 44px;
2444
  height: 44px;
2445
  line-height: 44px;
2446
  text-align: center;
2447
  vertical-align: top;
2448
+ border-radius: 100%;
2449
+ margin: 0 1px 0 0;
2450
+ opacity: 0.8;
2451
  }
2452
 
2453
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn.facebook{
2459
  color: #fff;
2460
  }
2461
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn:hover{
 
2462
  opacity: 1;
2463
  }
2464
 
admin/editor/editor-build.php CHANGED
@@ -37,21 +37,21 @@ tinyMCEPopup.onInit.add(AjaxLoadMoreModal.init, AjaxLoadMoreModal);
37
  <div class="pop-up-jump">
38
  <div class="jump-menu-wrap">
39
  <select class="jump-menu">
40
- <option value="null" selected="selected">-- <?php _e('Jump to Option', ALM_NAME); ?> --</option>
41
  </select>
42
  </div>
43
  <div class="intro-wrap">
44
- <p class="intro"><?php _e('Create your own Ajax Load More shortcode by adjusting the parameters below:', ALM_NAME); ?></p>
45
  </div>
46
  </div>
47
  <div class="clear"></div>
48
  <?php include (ALM_PATH . '/admin/shortcode-builder/shortcode-builder.php'); ?>
49
 
50
  <div class="output-wrap">
51
- <a href="javascript:AjaxLoadMoreModal.insert(AjaxLoadMoreModal.local_ed)" id="insert" class="insert_alm"><i class="fa fa-chevron-circle-right"></i> <?php _e('Insert Shortcode', ALM_NAME); ?></a>
52
  <div class="shortcode-display">
53
  <div id="shortcode_output"></div>
54
- <span class="copy"><?php _e('Copy', ALM_NAME); ?></span>
55
  </div>
56
  </div
57
  </div>
37
  <div class="pop-up-jump">
38
  <div class="jump-menu-wrap">
39
  <select class="jump-menu">
40
+ <option value="null" selected="selected">-- <?php _e('Jump to Option', 'ajax-load-more'); ?> --</option>
41
  </select>
42
  </div>
43
  <div class="intro-wrap">
44
+ <p class="intro"><?php _e('Create your own Ajax Load More shortcode by adjusting the parameters below:', 'ajax-load-more'); ?></p>
45
  </div>
46
  </div>
47
  <div class="clear"></div>
48
  <?php include (ALM_PATH . '/admin/shortcode-builder/shortcode-builder.php'); ?>
49
 
50
  <div class="output-wrap">
51
+ <a href="javascript:AjaxLoadMoreModal.insert(AjaxLoadMoreModal.local_ed)" id="insert" class="insert_alm"><i class="fa fa-chevron-circle-right"></i> <?php _e('Insert Shortcode', 'ajax-load-more'); ?></a>
52
  <div class="shortcode-display">
53
  <div id="shortcode_output"></div>
54
+ <span class="copy"><?php _e('Copy', 'ajax-load-more'); ?></span>
55
  </div>
56
  </div
57
  </div>
admin/editor/editor.php CHANGED
@@ -16,7 +16,7 @@ add_action('wp_ajax_alm_lightbox', 'alm_ajax_tinymce' );
16
  function alm_ajax_tinymce(){
17
  // check for rights
18
  if ( ! current_user_can('edit_pages') && ! current_user_can('edit_posts') )
19
- die( __("You are not allowed to be here", ALM_NAME) );
20
 
21
  $window = dirname(__FILE__) . '/editor-build.php';
22
  include_once( $window );
16
  function alm_ajax_tinymce(){
17
  // check for rights
18
  if ( ! current_user_can('edit_pages') && ! current_user_can('edit_posts') )
19
+ die( __("You are not allowed to be here", 'ajax-load-more') );
20
 
21
  $window = dirname(__FILE__) . '/editor-build.php';
22
  include_once( $window );
admin/includes/components/repeater-options.php CHANGED
@@ -1,10 +1,10 @@
1
  <div class="alm-drop-btn alm-repeater-options">
2
- <a href="javascript:void(0);" class="target"><i class="fa fa-cog"></i> <?php _e('Options', ALM_NAME); ?></a>
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', ALM_NAME); ?></a></li>
7
- <li class="copy"><a href="javascript:void(0);"><i class="fa fa-files-o"></i> <?php _e('Copy Template Data', ALM_NAME); ?></a></li>
8
  </ul>
9
  </div>
10
  </div>
1
  <div class="alm-drop-btn alm-repeater-options">
2
+ <a href="javascript:void(0);" class="target"><i class="fa fa-cog"></i> <?php _e('Options', 'ajax-load-more'); ?></a>
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>
admin/includes/cta/config.php CHANGED
@@ -1,13 +1,13 @@
1
  <div class="cta">
2
- <h3><?php _e('Plugin Configurations', ALM_NAME); ?></h3>
3
  <div class="item">
4
- <h4><?php _e('Plugin Version', ALM_NAME); ?></h4>
5
  <?php
6
  echo '<p>'. ALM_VERSION .'</p>';
7
  ?>
8
  </div>
9
  <div class="item">
10
- <h4><?php _e('Release Date', ALM_NAME); ?></h4>
11
  <?php
12
  echo '<p>'. ALM_RELEASE .'</p>';
13
  ?>
1
  <div class="cta">
2
+ <h3><?php _e('Plugin Configurations', 'ajax-load-more'); ?></h3>
3
  <div class="item">
4
+ <h4><?php _e('Plugin Version', 'ajax-load-more'); ?></h4>
5
  <?php
6
  echo '<p>'. ALM_VERSION .'</p>';
7
  ?>
8
  </div>
9
  <div class="item">
10
+ <h4><?php _e('Release Date', 'ajax-load-more'); ?></h4>
11
  <?php
12
  echo '<p>'. ALM_RELEASE .'</p>';
13
  ?>
admin/includes/cta/dyk.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="cta">
2
- <h3><?php _e('Did you know?', ALM_NAME); ?></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.', ALM_NAME); ?></p>
5
  </div>
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>
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>', ALM_NAME); ?> <a class="cnkt-button" href="http://connekthq.com/plugins/ajax-load-more/custom-repeaters" target="_blank"><?php _e('More Info', ALM_NAME); ?></a></div>
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/custom-repeaters" target="_blank"><?php _e('More Info', 'ajax-load-more'); ?></a></div>
admin/includes/cta/mailinglist.php CHANGED
@@ -1,20 +1,15 @@
1
  <div class="cta mailing-list social" id="alm-mailing-list">
2
  <div class="head-wrap">
3
- <h3><?php _e('Stay Informed', ALM_NAME); ?></h3>
4
- <h4><?php _e('Follow Ajax Load More', ALM_NAME); ?></h4>
5
- <a class="follow-btn facebook" href="http://facebook.com/ajaxloadmore" target="_blank"><i class="fa fa-facebook"></i></a>
6
- <a class="follow-btn twitter" href="http://twitter.com/ajaxloadmore" target="_blank"><i class="fa fa-twitter"></i></a>
7
-
8
- <h4 style="padding-top: 15px; border-top: 1px solid #efefef;"><?php _e('Join the Mailing List', ALM_NAME); ?></h4>
9
- <p><?php _e('Receive product updates delivered (infrequently) directly to your inbox.', ALM_NAME); ?></p>
10
  </div>
11
  <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>
12
  <div class="form-wrap">
13
  <div class="inner-wrap">
14
  <i class="fa fa-envelope"></i>
15
- <label for="mc_email" class="offscreen"><?php _e('Email Address', ALM_NAME); ?> <span class="asterisk">*</span> </label>
16
- <input type="email" value="" name="email" placeholder="<?php _e('Enter email address', ALM_NAME); ?>" class="required email" id="mc_email">
17
- <button type="submit" class="submit" id="mc_signup_submit" name="mc_signup_submit" title="Subscribe"><span class="offscreen"><?php _e('Subscribe', ALM_NAME); ?></span><i class="fa fa-arrow-circle-right"></i></button>
18
  <div id="response"><div class="p-wrap"><p></p></div></div>
19
  </div>
20
  </div>
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">
8
  <div class="inner-wrap">
9
  <i class="fa fa-envelope"></i>
10
+ <label for="mc_email" class="offscreen"><?php _e('Email Address', 'ajax-load-more'); ?> <span class="asterisk">*</span> </label>
11
+ <input type="email" value="" name="email" placeholder="<?php _e('Enter email address', 'ajax-load-more'); ?>" class="required email" id="mc_email">
12
+ <button type="submit" class="submit" id="mc_signup_submit" name="mc_signup_submit" title="Subscribe"><span class="offscreen"><?php _e('Subscribe', 'ajax-load-more'); ?></span><i class="fa fa-arrow-circle-right"></i></button>
13
  <div id="response"><div class="p-wrap"><p></p></div></div>
14
  </div>
15
  </div>
admin/includes/cta/resources.php CHANGED
@@ -1,10 +1,12 @@
1
- <div class="cta padding-bottom">
2
- <h3>Resources</h3>
3
  <ul>
4
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/">Ajax Load More Demo Site</a></li>
5
- <li><a target="blank" href="http://wordpress.org/plugins/ajax-load-more">Documentation</a></li>
6
- <li><a target="blank" href="http://wordpress.org/support/plugin/ajax-load-more">Plugin Support/Issues</a></li>
7
- <li><a target="blank" href="https://wordpress.org/support/view/plugin-reviews/ajax-load-more">Reviews</a></li>
 
 
8
  </ul>
9
- <a href="https://github.com/dcooney/wordpress-ajax-load-more" target="blank" class="visit"><i class="fa fa-github"></i> Latest build on Github</a>
10
  </div>
1
+ <div class="cta padding-bottom resources">
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/plugins/ajax-load-more"><i class="fa fa-file-text"></i> <?php _e('Documentation', 'ajax-load-more'); ?></a></li>
6
+ <li><a target="blank" href="http://wordpress.org/support/plugin/ajax-load-more"><i class="fa fa-question-circle"></i> <?php _e('Plugin Support/Issue', 'ajax-load-more'); ?>s</a></li>
7
+ <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>
8
+ <li><a target="blank" href="http://facebook.com/ajaxloadmore"><i class="fa fa-facebook"></i> <?php _e('Facebook', 'ajax-load-more'); ?></a></li>
9
+ <li><a target="blank" href="http://twitter.com/ajaxloadmore"><i class="fa fa-twitter"></i> <?php _e('Twitter', 'ajax-load-more'); ?></a></li>
10
  </ul>
11
+ <a href="https://github.com/dcooney/wordpress-ajax-load-more" target="blank" class="visit"><i class="fa fa-github"></i> <?php _e('Latest build on Github', 'ajax-load-more'); ?></a>
12
  </div>
admin/includes/cta/writeable.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="cta">
2
- <h3><?php _e('Read/Write Access', ALM_NAME); ?></h3>
3
  <div class="item">
4
  <?php
5
  //Test server for write capabilities
@@ -7,11 +7,11 @@
7
  $alm_file = ALM_PATH .'core/repeater/default.php'; // Default ALM repeater
8
  if(file_exists($alm_file)){
9
  if (is_writable($alm_file))
10
- echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>Ajax Load More</strong></p><p class="desc">Yay! Read/Write access is enabled within the /ajax-load-more/ directory.', ALM_NAME);
11
  else
12
- echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>Ajax Load More</strong></p>Access Denied! You must enable read and write access for Ajax Load More directory (/ajax-load-more/core/repeater/) in order to save repeater template data.<br/><br/>Please contact your hosting provider or site administrator for more information.', ALM_NAME);
13
  }else{
14
- echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>Ajax Load More</strong></p><p class="desc">Unable to locate configuration file. Directory access may not be granted.', ALM_NAME);
15
  }
16
  ?>
17
 
@@ -22,11 +22,11 @@
22
  $alm_custom_repeater_file = ALM_REPEATER_PATH. '/repeaters/repeater2.php'; // Test file
23
  if(file_exists($alm_custom_repeater_file)){
24
  if (is_writable($alm_custom_repeater_file))
25
- echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>ALM - Custom Repeaters</strong></p><p class="desc">Nice! Read/Write access is enabled within the /ajax-load-more-repeaters/repeaters/ directory.', ALM_NAME);
26
  else
27
- echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM Custom Repeaters</strong></p><p class="desc">Access Denied! You must enable read and write access for Ajax Load More Custom Repeaters directory (/ajax-load-more-repeaters/repeaters/) in order to save repeater template data.<br/><br/>Please contact your hosting provider or site administrator for more information.', ALM_NAME);
28
  }else{
29
- echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM Custom Repeaters</strong></p><p class="desc">Unable to locate configuration file. Directory access may not be granted.', ALM_NAME);
30
  }
31
  }
32
  ?>
@@ -38,11 +38,11 @@
38
  $alm_unlimited_file = ALM_UNLIMITED_REPEATER_PATH .'_is_writeable.php'; // Test file
39
  if(file_exists($alm_unlimited_file)){
40
  if (is_writable($alm_unlimited_file))
41
- echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>ALM - Custom Repeaters v2</strong></p><p class="desc">Oh Ya! Read/Write access is enabled within the /ajax-load-more-repeaters-v2/repeaters/ directory.', ALM_NAME);
42
  else
43
- echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM - Custom Repeaters v2</strong></p><p class="desc">Access Denied! You must enable read and write access for Ajax Load More Unlimited directory (/ajax-load-more-repeaters-v2/repeaters/) in order to save repeater template data.<br/><br/>Please contact your hosting provider or site administrator for more information.', ALM_NAME);
44
  }else{
45
- echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM Unlimited</strong></p><p class="desc">Unable to locate configuration file. Directory access may not be granted.', ALM_NAME);
46
  }
47
  }
48
  ?>
1
  <div class="cta">
2
+ <h3><?php _e('Read/Write Access', 'ajax-load-more'); ?></h3>
3
  <div class="item">
4
  <?php
5
  //Test server for write capabilities
7
  $alm_file = ALM_PATH .'core/repeater/default.php'; // Default ALM repeater
8
  if(file_exists($alm_file)){
9
  if (is_writable($alm_file))
10
+ echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>Ajax Load More</strong></p><p class="desc">Yay! Read/Write access is enabled within the /ajax-load-more/ directory.', 'ajax-load-more');
11
  else
12
+ echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>Ajax Load More</strong></p>Access Denied! You must enable read and write access for Ajax Load More directory (/ajax-load-more/core/repeater/) in order to save repeater template data.<br/><br/>Please contact your hosting provider or site administrator for more information.', 'ajax-load-more');
13
  }else{
14
+ echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>Ajax Load More</strong></p><p class="desc">Unable to locate configuration file. Directory access may not be granted.', 'ajax-load-more');
15
  }
16
  ?>
17
 
22
  $alm_custom_repeater_file = ALM_REPEATER_PATH. '/repeaters/repeater2.php'; // Test file
23
  if(file_exists($alm_custom_repeater_file)){
24
  if (is_writable($alm_custom_repeater_file))
25
+ echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>ALM - Custom Repeaters</strong></p><p class="desc">Nice! Read/Write access is enabled within the /ajax-load-more-repeaters/repeaters/ directory.', 'ajax-load-more');
26
  else
27
+ echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM Custom Repeaters</strong></p><p class="desc">Access Denied! You must enable read and write access for Ajax Load More Custom Repeaters directory (/ajax-load-more-repeaters/repeaters/) in order to save repeater template data.<br/><br/>Please contact your hosting provider or site administrator for more information.', 'ajax-load-more');
28
  }else{
29
+ echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM Custom Repeaters</strong></p><p class="desc">Unable to locate configuration file. Directory access may not be granted.', 'ajax-load-more');
30
  }
31
  }
32
  ?>
38
  $alm_unlimited_file = ALM_UNLIMITED_REPEATER_PATH .'_is_writeable.php'; // Test file
39
  if(file_exists($alm_unlimited_file)){
40
  if (is_writable($alm_unlimited_file))
41
+ echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>ALM - Custom Repeaters v2</strong></p><p class="desc">Oh Ya! Read/Write access is enabled within the /ajax-load-more-repeaters-v2/repeaters/ directory.', 'ajax-load-more');
42
  else
43
+ echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM - Custom Repeaters v2</strong></p><p class="desc">Access Denied! You must enable read and write access for Ajax Load More Unlimited directory (/ajax-load-more-repeaters-v2/repeaters/) in order to save repeater template data.<br/><br/>Please contact your hosting provider or site administrator for more information.', 'ajax-load-more');
44
  }else{
45
+ echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM Unlimited</strong></p><p class="desc">Unable to locate configuration file. Directory access may not be granted.', 'ajax-load-more');
46
  }
47
  }
48
  ?>
admin/js/admin.js CHANGED
@@ -200,8 +200,7 @@ jQuery(document).ready(function($) {
200
  $(window).resize(function() {
201
  setTimeout(function(){
202
  equalheight(addOnColumns);
203
- }, 500);
204
-
205
  });
206
  }
207
 
200
  $(window).resize(function() {
201
  setTimeout(function(){
202
  equalheight(addOnColumns);
203
+ }, 500);
 
204
  });
205
  }
206
 
admin/shortcode-builder/includes/meta-query-options.php CHANGED
@@ -1,18 +1,18 @@
1
  <div class="inner border-top">
2
  <div class="wrap-30 wrap-50">
3
  <?php // Meta Key ?>
4
- <label for="meta-key" class="full"><?php _e('Key (Name):', ALM_NAME); ?></label>
5
- <input class="alm_element sm meta-key" name="meta-key" type="text" value="" placeholder="<?php _e('Enter custom field key(name)', ALM_NAME); ?>">
6
  </div>
7
  <?php // Meta Value ?>
8
  <div class="wrap-30 wrap-50">
9
- <label for="meta-value" class="full"><?php _e('Value:', ALM_NAME); ?></label>
10
- <input class="alm_element sm meta-value" name="meta-value" type="text" value="" placeholder="<?php _e('Enter custom field value', ALM_NAME); ?>">
11
  </div>
12
  <div class="clear"></div>
13
  <?php // Meta Compare ?>
14
  <div class="wrap-30 wrap-50 padding-top">
15
- <label for="meta-compare" class="full"><?php _e('Operator:', ALM_NAME); ?></label>
16
  <select class="alm_element meta-compare" name="meta-compare">
17
  <option value="IN" selected="selected">IN</option>
18
  <option value="NOT IN">NOT IN</option>
@@ -32,7 +32,7 @@
32
  </div>
33
  <?php // Meta Type ?>
34
  <div class="wrap-30 wrap-50 padding-top">
35
- <label for="meta-type" class="full"><?php _e('Type:', ALM_NAME); ?></label>
36
  <select class="alm_element meta-type" name="meta-type">
37
  <option value="BINARY">BINARY</option>
38
  <option value="CHAR" selected="selected">CHAR</option>
1
  <div class="inner border-top">
2
  <div class="wrap-30 wrap-50">
3
  <?php // Meta Key ?>
4
+ <label for="meta-key" class="full"><?php _e('Key (Name):', 'ajax-load-more'); ?></label>
5
+ <input class="alm_element sm meta-key" name="meta-key" type="text" value="" placeholder="<?php _e('Enter custom field key(name)', 'ajax-load-more'); ?>">
6
  </div>
7
  <?php // Meta Value ?>
8
  <div class="wrap-30 wrap-50">
9
+ <label for="meta-value" class="full"><?php _e('Value:', 'ajax-load-more'); ?></label>
10
+ <input class="alm_element sm meta-value" name="meta-value" type="text" value="" placeholder="<?php _e('Enter custom field value', 'ajax-load-more'); ?>">
11
  </div>
12
  <div class="clear"></div>
13
  <?php // Meta Compare ?>
14
  <div class="wrap-30 wrap-50 padding-top">
15
+ <label for="meta-compare" class="full"><?php _e('Operator:', 'ajax-load-more'); ?></label>
16
  <select class="alm_element meta-compare" name="meta-compare">
17
  <option value="IN" selected="selected">IN</option>
18
  <option value="NOT IN">NOT IN</option>
32
  </div>
33
  <?php // Meta Type ?>
34
  <div class="wrap-30 wrap-50 padding-top">
35
+ <label for="meta-type" class="full"><?php _e('Type:', 'ajax-load-more'); ?></label>
36
  <select class="alm_element meta-type" name="meta-type">
37
  <option value="BINARY">BINARY</option>
38
  <option value="CHAR" selected="selected">CHAR</option>
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -1,4 +1,4 @@
1
- <span class="toggle-all"><span class="inner-wrap"><em class="collapse"><?php _e('Collapse All', ALM_NAME); ?></em><em class="expand"><?php _e('Expand All', ALM_NAME); ?></em></span></span>
2
 
3
  <?php
4
  $alm_options = get_option( 'alm_settings' );
@@ -13,22 +13,22 @@
13
  <?php if(has_action('alm_cache_installed')){ ?>
14
  <!-- CACHE -->
15
  <div class="row input cache add-on" id="alm-cache">
16
- <h3 class="heading"><?php _e('Cache', ALM_NAME); ?></h3>
17
  <div class="expand-wrap">
18
  <div class="section-title">
19
- <h4>Enable Caching</h4>
20
- <p><?php _e('Turn on content caching.', ALM_NAME); ?></p>
21
  </div>
22
  <div class="wrap">
23
  <div class="inner">
24
  <ul>
25
  <li>
26
  <input class="alm_element" type="radio" name="cache" value="true" id="cache-true" >
27
- <label for="cache-true"><?php _e('True', ALM_NAME); ?></label>
28
  </li>
29
  <li>
30
  <input class="alm_element" type="radio" name="cache" value="false" id="cache-false" checked="checked">
31
- <label for="cache-false"><?php _e('False', ALM_NAME); ?></label>
32
  </li>
33
  </ul>
34
  </div>
@@ -38,14 +38,14 @@
38
  <div class="clear"></div>
39
  <hr>
40
  <div class="section-title">
41
- <h4>Cache ID</h4>
42
- <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.', ALM_NAME); ?></p>
43
  </div>
44
  <div class="wrap">
45
  <div class="inner">
46
  <input type="text" class="alm_element disabled" name="cache-id" id="cache-id" disabled="disabled">
47
  <div class="clear"></div>
48
- <p class="generate-cache-id"><a href="javascript:void(0);"><i class="fa fa-random"></i> <?php _e('Generate New ID', ALM_NAME); ?></a></p>
49
  </div>
50
  </div>
51
  </div>
@@ -56,21 +56,21 @@
56
  <?php if(has_action('alm_paging_installed')){ ?>
57
  <!-- PAGING -->
58
  <div class="row input paging add-on" id="alm-paging">
59
- <h3 class="heading"><?php _e('Paging', ALM_NAME); ?></h3>
60
  <div class="expand-wrap">
61
  <div class="section-title">
62
- <p><?php _e('Replace infinite scrolling with a paged ajax navigation system.', ALM_NAME); ?></p>
63
  </div>
64
  <div class="wrap">
65
  <div class="inner">
66
  <ul>
67
  <li>
68
  <input class="alm_element" type="radio" name="paging" value="true" id="paging-true" >
69
- <label for="paging-true"><?php _e('True', ALM_NAME); ?></label>
70
  </li>
71
  <li>
72
  <input class="alm_element" type="radio" name="paging" value="false" id="paging-false" checked="checked">
73
- <label for="paging-false"><?php _e('False', ALM_NAME); ?></label>
74
  </li>
75
  </ul>
76
  </div>
@@ -81,19 +81,19 @@
81
 
82
  <hr/>
83
  <div class="section-title">
84
- <h4><?php _e('Paging Controls', ALM_NAME); ?></h4>
85
- <p><?php _e('Show (&laquo;)previous and next(&raquo;) buttons.', ALM_NAME); ?></p>
86
  </div>
87
  <div class="wrap">
88
  <div class="inner">
89
  <ul>
90
  <li>
91
  <input class="alm_element" type="radio" name="paging-controls" value="true" id="paging-controls-true" >
92
- <label for="paging-controls-true"><?php _e('True', ALM_NAME); ?></label>
93
  </li>
94
  <li>
95
  <input class="alm_element" type="radio" name="paging-controls" value="false" id="paging-controls-false" checked="checked">
96
- <label for="paging-controls-false"><?php _e('False', ALM_NAME); ?></label>
97
  </li>
98
  </ul>
99
  </div>
@@ -102,8 +102,8 @@
102
  <div class="clear"></div>
103
  <hr/>
104
  <div class="section-title">
105
- <h4><?php _e('Paging Navigation Classes', ALM_NAME); ?></h4>
106
- <p><?php _e('Add custom CSS classes to the paging navigation menu.', ALM_NAME); ?></p>
107
  </div>
108
  <div class="wrap">
109
  <div class="inner">
@@ -114,8 +114,8 @@
114
  <div class="clear"></div>
115
  <hr/>
116
  <div class="section-title">
117
- <h4><?php _e('Show at Most', ALM_NAME); ?></h4>
118
- <p><?php _e('The maximum amount of page menu items to show at a time. <br/.>0 = no maximum', ALM_NAME); ?></p>
119
  </div>
120
  <div class="wrap">
121
  <div class="inner">
@@ -133,21 +133,21 @@
133
  <?php if(has_action('alm_preload_installed')){ ?>
134
  <!-- PRELOAD -->
135
  <div class="row input preload add-on" id="alm-preload">
136
- <h3 class="heading"><?php _e('Preloaded', ALM_NAME); ?></h3>
137
  <div class="expand-wrap">
138
  <div class="section-title">
139
- <p><?php _e('Preload posts prior to making Ajax requests.', ALM_NAME); ?></p>
140
  </div>
141
  <div class="wrap">
142
  <div class="inner">
143
  <ul>
144
  <li>
145
  <input class="alm_element" type="radio" name="preload" value="true" id="preload-true" >
146
- <label for="preload-true"><?php _e('True', ALM_NAME); ?></label>
147
  </li>
148
  <li>
149
  <input class="alm_element" type="radio" name="preload" value="false" id="preload-false" checked="checked">
150
- <label for="preload-false"><?php _e('False', ALM_NAME); ?></label>
151
  </li>
152
  </ul>
153
  </div>
@@ -157,8 +157,8 @@
157
  <div class="clear"></div>
158
  <hr>
159
  <div class="section-title">
160
- <h4><?php _e('Preload Amount', ALM_NAME); ?></h4>
161
- <p><?php _e('Enter the number of posts to preload.', ALM_NAME); ?></p>
162
  </div>
163
  <div class="wrap">
164
  <div class="inner">
@@ -174,21 +174,21 @@
174
  <?php if(has_action('alm_prev_post_installed')){ ?>
175
  <!-- PREV POST -->
176
  <div class="row input previous-post add-on" id="alm-previous-post">
177
- <h3 class="heading"><?php _e('Previous Post', ALM_NAME); ?></h3>
178
  <div class="expand-wrap">
179
  <div class="section-title">
180
- <p><?php _e('Enable the infinite scrolling of single posts.', ALM_NAME); ?></p>
181
  </div>
182
  <div class="wrap">
183
  <div class="inner">
184
  <ul>
185
  <li>
186
  <input class="alm_element" type="radio" name="prev-post" value="true" id="prev-post-true" >
187
- <label for="prev-post-true"><?php _e('True', ALM_NAME); ?></label>
188
  </li>
189
  <li>
190
  <input class="alm_element" type="radio" name="prev-post" value="false" id="prev-post-false" checked="checked">
191
- <label for="prev-post-false"><?php _e('False', ALM_NAME); ?></label>
192
  </li>
193
  </ul>
194
  </div>
@@ -198,8 +198,8 @@
198
  <div class="clear"></div>
199
  <hr>
200
  <div class="section-title">
201
- <h4><?php _e('Post ID', ALM_NAME); ?></h4>
202
- <p><?php _e('The current post ID to pass to Ajax Load More.', ALM_NAME); ?></p>
203
  </div>
204
  <div class="wrap">
205
  <div class="inner">
@@ -207,7 +207,7 @@
207
  </div>
208
  </div>
209
  <p class="warning-callout">
210
- <?php _e('You must add the Previous Post 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. &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/" target="_blank">View documentation</a>', ALM_NAME); ?>
211
  </p>
212
  </div>
213
  </div>
@@ -218,21 +218,21 @@
218
  <?php if(has_action('alm_seo_installed')){ ?>
219
  <!-- SEO -->
220
  <div class="row input seo add-on" id="alm-seo">
221
- <h3 class="heading"><?php _e('SEO (Search Engine Optimization)', ALM_NAME); ?></h3>
222
  <div class="expand-wrap">
223
  <div class="section-title">
224
- <p><?php _e('Enable address bar URL rewrites as users page through ajax loaded content.', ALM_NAME); ?></p>
225
  </div>
226
  <div class="wrap">
227
  <div class="inner">
228
  <ul>
229
  <li>
230
  <input class="alm_element" type="radio" name="seo" value="true" id="seo-true" >
231
- <label for="seo-true"><?php _e('True', ALM_NAME); ?></label>
232
  </li>
233
  <li>
234
  <input class="alm_element" type="radio" name="seo" value="false" id="seo-false" checked="checked">
235
- <label for="seo-false"><?php _e('False', ALM_NAME); ?></label>
236
  </li>
237
  </ul>
238
  </div>
@@ -245,13 +245,13 @@
245
 
246
  // List available repeaters
247
  echo '<div class="row repeater" id="alm-repeaters">';
248
- echo '<h3 class="heading">'.__('Template', ALM_NAME). '</h3>';
249
  echo '<div class="expand-wrap">';
250
  echo '<div class="section-title">';
251
  if (has_action('alm_theme_repeaters_selection')){
252
- echo '<h4>'.__('Repeater Template', ALM_NAME).'</h4>';
253
  }
254
- echo '<p>'.__('Select which <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a> you would like to use.', ALM_NAME). '</p>';
255
  echo '</div>';
256
  echo '<div class="wrap"><div class="inner">';
257
  echo '<select name="repeater-select" id="repeater-select" class="alm_element">';
@@ -288,10 +288,10 @@
288
  $types = get_post_types($pt_args);
289
  if($types){
290
  echo '<div class="row checkboxes post_types" id="alm-post-types">';
291
- echo '<h3 class="heading">'.__('Post Types', ALM_NAME). '</h3>';
292
  echo '<div class="expand-wrap">';
293
  echo '<div class="section-title">';
294
- echo '<p>'.__('Select Post Types to query.', ALM_NAME). '</p>';
295
  echo '</div>';
296
  echo '<div class="wrap"><div class="inner"><ul>';
297
  foreach( $types as $type ){
@@ -312,14 +312,14 @@
312
  $post_formats = get_theme_support( 'post-formats' );
313
  if($post_formats){
314
  echo '<div class="row checkboxes post_format" id="alm-post-format">';
315
- echo '<h3 class="heading">'.__('Post Format', ALM_NAME). '</h3>';
316
  echo '<div class="expand-wrap">';
317
  echo '<div class="section-title">';
318
- echo '<p>'.__('Select a <a href="http://codex.wordpress.org/Post_Formats" target="_blank">Post Format</a> to query.', ALM_NAME). '</p>';
319
  echo '</div>';
320
  echo '<div class="wrap"><div class="inner"><select class="alm_element" name="post-format-select" id="post-format-select">';
321
- echo '<option value="" selected="selected">-- ' . __('Select Post Format', ALM_NAME) . ' --</option>';
322
- echo '<option name="chk-standard" id="chk-standard" value="standard">' . __('Standard', ALM_NAME) . '</option>';
323
  foreach( $post_formats[0] as $post_format ){
324
  echo '<option name="chk-'.$post_format.'" id="chk-'.$post_format.'" value="'.$post_format.'">'.ucwords($post_format).'</option>';
325
  }
@@ -339,13 +339,13 @@
339
  }
340
  if($cats){ ?>
341
  <div class="row checkboxes categories" id="alm-categories">
342
- <h3 class="heading"><?php _e('Category', ALM_NAME); ?></h3>
343
  <div class="expand-wrap">
344
  <div class="section-title">
345
  <h4>Include</h4>
346
- <p><?php _e('A comma separated list of categories to include by slug. (design, research etc...)', ALM_NAME); ?><br/>
347
  &raquo; <a href="admin.php?page=ajax-load-more-examples#example-category">
348
- <?php _e('view example', ALM_NAME); ?></a></p>
349
  </div>
350
  <div class="wrap">
351
  <div class="inner">
@@ -367,8 +367,8 @@
367
  <hr/>
368
 
369
  <div class="section-title">
370
- <h4><?php _e('Exclude', ALM_NAME); ?></h4>
371
- <p><?php _e('A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)', ALM_NAME); ?></p>
372
  </div>
373
  <div class="wrap">
374
  <div class="inner">
@@ -399,11 +399,11 @@
399
  }
400
  if($tags){ ?>
401
  <div class="row checkboxes tags" id="alm-tags">
402
- <h3 class="heading"><?php _e('Tag', ALM_NAME); ?></h3>
403
  <div class="expand-wrap">
404
  <div class="section-title">
405
- <h4><?php _e('Include', ALM_NAME); ?></h4>
406
- <p><?php _e('A comma separated list of tags to include by slug. (toronto, canada etc...)', ALM_NAME); ?><br/>&raquo; <a href="admin.php?page=ajax-load-more-examples#example-tag">view example</a></p>
407
  </div>
408
  <div class="wrap">
409
  <div class="inner">
@@ -424,8 +424,8 @@
424
  <hr/>
425
 
426
  <div class="section-title">
427
- <h4><?php _e('Exclude', ALM_NAME); ?></h4>
428
- <p><?php _e('A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)', ALM_NAME); ?></p>
429
  </div>
430
  <div class="wrap">
431
  <div class="inner">
@@ -457,17 +457,17 @@
457
  $taxonomies = get_taxonomies( $tax_args, $tax_output );
458
  if ( $taxonomies ) {
459
  echo '<div class="row taxonomy" id="alm-taxonomy">';
460
- echo '<h3 class="heading">'.__('Taxonomy', ALM_NAME). '</h3>';
461
  echo '<div class="expand-wrap">';
462
  echo '<div class="section-title">';
463
- echo '<p>'.__('Select your custom taxonomy then select the terms and operator.', ALM_NAME). '</p>';
464
  echo '</div>';
465
 
466
  echo '<div class="wrap">';
467
 
468
  echo '<div class="inner">';
469
  echo '<select class="alm_element" name="taxonomy-select" id="taxonomy-select">';
470
- echo '<option value="" selected="selected">-- ' . __('Select Taxonomy', ALM_NAME) . ' --</option>';
471
  foreach( $taxonomies as $taxonomy ){
472
  echo '<option name="chk-'.$taxonomy->query_var.'" id="chk-'.$taxonomy->query_var.'" value="'.$taxonomy->query_var.'">'.$taxonomy->label.'</option>';
473
  }
@@ -476,12 +476,12 @@
476
 
477
  echo '<div id="taxonomy-extended">';
478
  echo '<div class="inner border-top" id="tax-terms">';
479
- echo '<label class="full">'. __('Taxonomy Terms:', ALM_NAME) .'</label>';
480
  echo '<div id="tax-terms-container" class="checkboxes"></div>';
481
  echo '</div>';
482
 
483
  echo '<div class="inner border-top" id="tax-operator-select">';
484
- echo '<label class="full">'. __('Taxonomy Operator:', ALM_NAME) .'</label>';
485
  echo '<ul class="radio">';
486
  echo '<li><input class="alm_element" name="tax-operator" id="tax-in-radio" value="IN" type="radio" checked="checked"><label for="tax-in-radio">IN (default)</li>';
487
  echo '<li><input class="alm_element" name="tax-operator" id="tax-not-in-radio" value="NOT IN" type="radio"><label for="tax-not-in-radio">NOT IN</li>';
@@ -497,24 +497,24 @@
497
 
498
  <!-- Date -->
499
  <div class="row input date" id="alm-date">
500
- <h3 class="heading"><?php _e('Date', ALM_NAME); ?></h3>
501
  <div class="expand-wrap">
502
  <div class="section-title">
503
- <p><?php _e('Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a href="admin.php?page=ajax-load-more-examples#example-date">view example</a>', ALM_NAME); ?></p>
504
  </div>
505
  <div class="wrap">
506
  <div class="inner">
507
  <div class="wrap-30">
508
  <?php $today = getdate(); ?>
509
- <label for="input-year" class="full"><?php _e('Year:', ALM_NAME); ?></label>
510
  <input name="input-year" class="alm_element sm numbers-only" type="text" id="input-year" maxlength="4" placeholder="<?php echo $today['year']; ?>">
511
  </div>
512
  <div class="wrap-30">
513
- <label for="input-month" class="full"><?php _e('Month:', ALM_NAME); ?></label>
514
  <input name="input-month" class="alm_element sm numbers-only" type="text" id="input-month" maxlength="2" placeholder="<?php echo $today['mon']; ?>">
515
  </div>
516
  <div class="wrap-30">
517
- <label for="input-day" class="full"><?php _e('Day:', ALM_NAME); ?></label>
518
  <input name="input-day" class="alm_element sm numbers-only" type="text" id="input-day" maxlength="2" placeholder="<?php echo $today['mday']; ?>">
519
  </div>
520
  </div>
@@ -525,10 +525,10 @@
525
 
526
  <?php // Meta_Query / Custom Fields ?>
527
  <div class="row input meta-key" id="alm-meta-key">
528
- <h3 class="heading"><?php _e('Custom Fields (Meta_Query)', ALM_NAME); ?></h3>
529
  <div class="expand-wrap">
530
  <div class="section-title full">
531
- <p><?php _e('Query for <a href="http://codex.wordpress.org/Class_Reference/WP_Meta_Query" target="_blank">custom field</a> by entering a custom field key, value and operator.', ALM_NAME); ?></p>
532
  </div>
533
  <div class="wrap full">
534
 
@@ -538,7 +538,7 @@
538
  <div id="meta-query-relation">
539
  <div class="inner border-top highlighted">
540
  <div class="wrap-30">
541
- <label for="meta-relation" class="full"><?php _e('Relation:', ALM_NAME); ?></label>
542
  <select class="alm_element meta-relation" name="meta-relation">
543
  <option value="AND" selected="selected">AND</option>
544
  <option value="OR">OR</option>
@@ -551,7 +551,7 @@
551
  </div>
552
 
553
  <div class="inner border-top controls">
554
- <button class="button button-primary" id="add-meta-query"><?php _e('Add Another', ALM_NAME); ?></button>
555
  </div>
556
 
557
  </div>
@@ -567,15 +567,15 @@
567
  }
568
  if($authors){
569
  echo '<div class="row checkboxes authors" id="alm-authors">';
570
- echo '<h3 class="heading">' . __('Author', ALM_NAME) . '</h3>';
571
  echo '<div class="expand-wrap">';
572
  echo '<div class="section-title">';
573
- echo '<p>' . __('Select an Author to query(by ID).', ALM_NAME) . '<br/>&raquo; <a href="admin.php?page=ajax-load-more-examples#example-author">view example</a></p>';
574
  echo '</div>';
575
  echo '<div class="wrap"><div class="inner">';
576
  if(!$disable_dynamic_content){
577
  echo '<select class="alm_element" name="author-select" id="author-select">';
578
- echo '<option value="" selected="selected">-- ' . __('Select Author', ALM_NAME) . ' --</option>';
579
  foreach( $authors as $author ){
580
  echo '<option name="chk-'.$author->user_login.'" id="chk-'.$author->user_login.'" value="'.$author->ID.'">'.$author->display_name.'</option>';
581
  }
@@ -591,14 +591,14 @@
591
 
592
  <!-- Search term -->
593
  <div class="row input search-term" id="alm-search">
594
- <h3 class="heading"><?php _e('Search Term', ALM_NAME); ?></h3>
595
  <div class="expand-wrap">
596
  <div class="section-title">
597
- <p><?php _e('Enter a search term to query.', ALM_NAME); ?></p>
598
  </div>
599
  <div class="wrap">
600
  <div class="inner">
601
- <input name="search-term" class="alm_element" type="text" id="search-term" value="" placeholder="<?php _e('Enter search term', ALM_NAME); ?>">
602
  </div>
603
  </div>
604
  </div>
@@ -606,14 +606,14 @@
606
 
607
  <!-- Custom Arguments -->
608
  <div class="row input custom-arguments" id="alm-custom-args">
609
- <h3 class="heading"><?php _e('Custom Arguments', ALM_NAME); ?></h3>
610
  <div class="expand-wrap">
611
  <div class="section-title">
612
- <p><?php _e('A semicolon separated list of custom value:pair arguments.<br/><br/>e.g. tag_slug__and:design,development; event_display:upcoming. Default', ALM_NAME); ?></p>
613
  </div>
614
  <div class="wrap">
615
  <div class="inner">
616
- <input name="custom-args" class="alm_element" type="text" id="custom-args" value="" placeholder="<?php _e('event_display:upcoming', ALM_NAME); ?>">
617
  </div>
618
  </div>
619
  </div>
@@ -621,22 +621,22 @@
621
 
622
  <!-- Post Parameters -->
623
  <div class="row input post-in" id="alm-post-in">
624
- <h3 class="heading"><?php _e('Post Parameters', ALM_NAME); ?></h3>
625
  <div class="expand-wrap">
626
  <div class="section-title">
627
- <h4><?php _e('Include', ALM_NAME); ?></h4>
628
- <p><?php _e('A comma separated list of post ID\'s to query.', ALM_NAME); ?></p>
629
  </div>
630
  <div class="wrap">
631
  <div class="inner">
632
- <input name="post__in" class="alm_element numbers-only" type="text" id="post__in" value="" placeholder="<?php _e('225, 340, 818, etc...', ALM_NAME); ?>">
633
  </div>
634
  </div>
635
  <div class="clear"></div>
636
  <hr/>
637
  <div class="section-title">
638
- <h4><?php _e('Exclude', ALM_NAME); ?></h4>
639
- <p><?php _e('A comma separated list of post ID\'s to exclude from query.', ALM_NAME); ?><br/>&raquo; <a href="admin.php?page=ajax-load-more-examples#example-exclude">view example</a></p>
640
  </div>
641
  <div class="wrap">
642
  <div class="inner">
@@ -648,15 +648,15 @@
648
 
649
  <!-- Post Status -->
650
  <div class="row input post-status" id="alm-post-status">
651
- <h3 class="heading"><?php _e('Post Status', ALM_NAME); ?></h3>
652
  <div class="expand-wrap">
653
  <div class="section-title">
654
- <p><?php _e('Select status of the post.', ALM_NAME); ?></p>
655
  </div>
656
  <div class="wrap">
657
  <div class="inner">
658
  <select class="alm_element" name="post-status" id="post-status">
659
- <option value="publish" selected="selected"><?php _e('Published', ALM_NAME); ?></option>
660
  <option value="future">Future</option>
661
  <option value="draft">Draft</option>
662
  <option value="pending">Pending</option>
@@ -670,21 +670,21 @@
670
 
671
  <!-- Ordering -->
672
  <div class="row ordering" id="alm-order">
673
- <h3 class="heading"><?php _e('Ordering', ALM_NAME); ?></h3>
674
  <div class="expand-wrap">
675
  <div class="section-title">
676
- <p><?php _e('Sort posts by Order and Orderby parameters.', ALM_NAME); ?></p>
677
  </div>
678
  <div class="wrap">
679
  <div class="inner half">
680
- <label class="full"><?php _e('Order', ALM_NAME); ?>:</label>
681
  <select class="alm_element" name="post-order" id="post-order">
682
  <option value="DESC" selected="selected">DESC (default)</option>
683
  <option value="ASC">ASC</option>
684
  </select>
685
  </div>
686
  <div class="inner half">
687
- <label class="full"><?php _e('Order By', ALM_NAME); ?>:</label>
688
  <select class="alm_element" name="post-orderby" id="post-orderby">
689
  <option value="date" selected="selected">Date (default)</option>
690
  <option value="title">Title</option>
@@ -702,10 +702,10 @@
702
 
703
  <!-- Offset -->
704
  <div class="row input offset" id="alm-offset">
705
- <h3 class="heading"><?php _e('Offset', ALM_NAME); ?></h3>
706
  <div class="expand-wrap">
707
  <div class="section-title">
708
- <p><?php _e('Offset the initial WordPress query by <em>\'n\'</em> number of posts', ALM_NAME); ?></p>
709
  </div>
710
  <div class="wrap">
711
  <div class="inner">
@@ -717,10 +717,10 @@
717
 
718
  <!-- Posts Per Page -->
719
  <div class="row input posts_per_page" id="alm-post-page">
720
- <h3 class="heading"><?php _e('Posts Per Page', ALM_NAME); ?></h3>
721
  <div class="expand-wrap">
722
  <div class="section-title">
723
- <p><?php _e('Select the number of posts to load with each request.', ALM_NAME); ?></p>
724
  </div>
725
  <div class="wrap">
726
  <div class="inner">
@@ -732,21 +732,21 @@
732
 
733
  <!-- Pause -->
734
  <div class="row checkbox pause_load" id="alm-pause">
735
- <h3 class="heading"><?php _e('Pause', ALM_NAME); ?></h3>
736
  <div class="expand-wrap">
737
  <div class="section-title">
738
- <p><?php _e('Do <u>NOT</u> load any posts until user the clicks <em>Load More</em> button.', ALM_NAME); ?></p>
739
  </div>
740
  <div class="wrap">
741
  <div class="inner">
742
  <ul>
743
  <li>
744
  <input class="alm_element" type="radio" name="pause" value="t" id="pause_t">
745
- <label for="pause_t"><?php _e('True', ALM_NAME); ?></label>
746
  </li>
747
  <li>
748
  <input class="alm_element" type="radio" name="pause" value="f" id="pause_f" checked>
749
- <label for="pause_f"><?php _e('False', ALM_NAME); ?></label>
750
  </li>
751
  </ul>
752
  </div>
@@ -756,22 +756,22 @@
756
 
757
  <!-- Allow Scrolling Load -->
758
  <div class="row checkbox scroll_load" id="alm-scroll">
759
- <h3 class="heading"><?php _e('Scrolling', ALM_NAME); ?></h3>
760
  <div class="expand-wrap">
761
  <div class="section-title">
762
- <h4><?php _e('Enable Scrolling', ALM_NAME); ?></h4>
763
- <p><?php _e('Load more posts as the user scrolls the page.', ALM_NAME); ?></p>
764
  </div>
765
  <div class="wrap">
766
  <div class="inner">
767
  <ul>
768
  <li>
769
  <input class="alm_element" type="radio" name="scroll" value="t" id="scroll_t" checked>
770
- <label for="scroll_t"><?php _e('True', ALM_NAME); ?></label>
771
  </li>
772
  <li>
773
  <input class="alm_element" type="radio" name="scroll" value="f" id="scroll_f">
774
- <label for="scroll_f"><?php _e('False', ALM_NAME); ?></label>
775
  </li>
776
  </ul>
777
  </div>
@@ -781,8 +781,8 @@
781
  <div class="clear"></div>
782
  <hr>
783
  <div class="section-title">
784
- <h4><?php _e('Scroll Distance', ALM_NAME); ?></h4>
785
- <p><?php _e('The distance from the bottom of the screen to trigger the loading of posts while scrolling. (Default = 150)', ALM_NAME); ?></p>
786
  </div>
787
  <div class="wrap">
788
  <div class="inner">
@@ -794,8 +794,8 @@
794
  <div class="clear"></div>
795
  <hr>
796
  <div class="section-title">
797
- <h4><?php _e('Maximum Pages', ALM_NAME); ?></h4>
798
- <p><?php _e('Maximum number of pages to load while scrolling. (0 = unlimited)', ALM_NAME); ?></p>
799
  </div>
800
  <div class="wrap">
801
  <div class="inner">
@@ -807,18 +807,18 @@
807
  <div class="clear"></div>
808
  <hr>
809
  <div class="section-title">
810
- <h4><?php _e('Pause Override', ALM_NAME); ?></h4>
811
- <p><?php _e('Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll.', ALM_NAME); ?></p>
812
  </div>
813
  <div class="wrap">
814
  <ul>
815
  <li>
816
  <input class="alm_element" type="radio" name="pause_override" value="t" id="pause_override_t">
817
- <label for="pause_override_t"><?php _e('True', ALM_NAME); ?></label>
818
  </li>
819
  <li>
820
  <input class="alm_element" type="radio" name="pause_override" value="f" id="pause_override_f" checked="checked">
821
- <label for="pause_override_f"><?php _e('False', ALM_NAME); ?></label>
822
  </li>
823
  </ul>
824
  </div>
@@ -828,25 +828,25 @@
828
 
829
  <!-- Transition -->
830
  <div class="row input transition" id="alm-transition">
831
- <h3 class="heading"><?php _e('Transition', ALM_NAME); ?></h3>
832
  <div class="expand-wrap">
833
  <div class="section-title">
834
- <p><?php _e('Select a loading transition.', ALM_NAME); ?></p>
835
  </div>
836
  <div class="wrap">
837
  <div class="inner">
838
  <ul>
839
  <li>
840
  <input class="alm_element" type="radio" name="transition" value="slide" id="transition-slide" checked="checked">
841
- <label for="transition-slide"><?php _e('Slide', ALM_NAME); ?></label>
842
  </li>
843
  <li>
844
  <input class="alm_element" type="radio" name="transition" value="fade" id="transition-fade">
845
- <label for="transition-fade"><?php _e('Fade', ALM_NAME); ?></label>
846
  </li>
847
  <li>
848
  <input class="alm_element" type="radio" name="transition" value="none" id="transition-none">
849
- <label for="transition-none"><?php _e('None', ALM_NAME); ?></label>
850
  </li>
851
  </ul>
852
  </div>
@@ -856,21 +856,21 @@
856
 
857
  <!-- Images Loaded -->
858
  <div class="row checkbox images_loaded" id="alm-images-loaded">
859
- <h3 class="heading"><?php _e('Images Loaded', ALM_NAME); ?></h3>
860
  <div class="expand-wrap">
861
  <div class="section-title">
862
- <p><?php _e('Wait for all images to load before displaying ajax loaded content.', ALM_NAME); ?></p>
863
  </div>
864
  <div class="wrap">
865
  <div class="inner">
866
  <ul>
867
  <li>
868
  <input class="alm_element" type="radio" name="images_loaded" value="t" id="images_loaded_t">
869
- <label for="images_loaded_t"><?php _e('True', ALM_NAME); ?></label>
870
  </li>
871
  <li>
872
  <input class="alm_element" type="radio" name="images_loaded" value="f" id="images_loaded_f" checked="checked">
873
- <label for="images_loaded_f"><?php _e('False', ALM_NAME); ?></label>
874
  </li>
875
  </ul>
876
  </div>
@@ -880,10 +880,10 @@
880
 
881
  <!-- Destroy After -->
882
  <div class="row input destroy-after" id="alm-destroy-after">
883
- <h3 class="heading"><?php _e('Destroy After', ALM_NAME); ?></h3>
884
  <div class="expand-wrap">
885
  <div class="section-title">
886
- <p><?php _e('Remove ajax load more functionality after \'<em>n</em>\' number of pages have been loaded.', ALM_NAME); ?></p>
887
  </div>
888
  <div class="wrap">
889
  <div class="inner">
@@ -895,14 +895,14 @@
895
 
896
  <!-- Button Text -->
897
  <div class="row input btn-label" id="alm-btn-label">
898
- <h3 class="heading"><?php _e('Button Label', ALM_NAME); ?></h3>
899
  <div class="expand-wrap">
900
  <div class="section-title">
901
- <p><?php _e('Customize the <em>Load More</em> button label.', ALM_NAME); ?></p>
902
  </div>
903
  <div class="wrap">
904
  <div class="inner">
905
- <input class="alm_element" name="button-label" type="text" id="button-label" value="<?php _e('Older Posts', ALM_NAME); ?>">
906
  </div>
907
  </div>
908
  </div>
@@ -910,12 +910,12 @@
910
 
911
  <!-- Container Classes -->
912
  <div class="row input alm-classes" id="alm-classes">
913
- <h3 class="heading"><?php _e('Container Options', ALM_NAME); ?></h3>
914
  <div class="expand-wrap">
915
 
916
  <div class="section-title">
917
- <h4><?php _e('Container Type', ALM_NAME); ?></h4>
918
- <p><?php _e('Override the global Container Type that was set on <a href="admin.php?page=ajax-load-more">ALM Settings page</a>.', ALM_NAME); ?></p>
919
  </div>
920
  <div class="wrap">
921
  <div class="inner">
@@ -934,8 +934,8 @@
934
  <div class="clear"></div>
935
  <hr/>
936
  <div class="section-title">
937
- <h4><?php _e('Container Classes', ALM_NAME); ?></h4>
938
- <p><?php _e('Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. portfolio-listing large-12 etc', ALM_NAME); ?></p>
939
  </div>
940
  <div class="wrap">
941
  <div class="inner">
1
+ <span class="toggle-all"><span class="inner-wrap"><em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em><em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em></span></span>
2
 
3
  <?php
4
  $alm_options = get_option( 'alm_settings' );
13
  <?php if(has_action('alm_cache_installed')){ ?>
14
  <!-- CACHE -->
15
  <div class="row input cache add-on" id="alm-cache">
16
+ <h3 class="heading"><?php _e('Cache', 'ajax-load-more'); ?></h3>
17
  <div class="expand-wrap">
18
  <div class="section-title">
19
+ <h4><?php _e('Enable Caching', 'ajax-load-more'); ?></h4>
20
+ <p><?php _e('Turn on content caching.', 'ajax-load-more'); ?></p>
21
  </div>
22
  <div class="wrap">
23
  <div class="inner">
24
  <ul>
25
  <li>
26
  <input class="alm_element" type="radio" name="cache" value="true" id="cache-true" >
27
+ <label for="cache-true"><?php _e('True', 'ajax-load-more'); ?></label>
28
  </li>
29
  <li>
30
  <input class="alm_element" type="radio" name="cache" value="false" id="cache-false" checked="checked">
31
+ <label for="cache-false"><?php _e('False', 'ajax-load-more'); ?></label>
32
  </li>
33
  </ul>
34
  </div>
38
  <div class="clear"></div>
39
  <hr>
40
  <div class="section-title">
41
+ <h4><?php _e('Cache ID', 'ajax-load-more'); ?></h4>
42
+ <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>
43
  </div>
44
  <div class="wrap">
45
  <div class="inner">
46
  <input type="text" class="alm_element disabled" name="cache-id" id="cache-id" disabled="disabled">
47
  <div class="clear"></div>
48
+ <p class="generate-cache-id"><a href="javascript:void(0);"><i class="fa fa-random"></i> <?php _e('Generate New ID', 'ajax-load-more'); ?></a></p>
49
  </div>
50
  </div>
51
  </div>
56
  <?php if(has_action('alm_paging_installed')){ ?>
57
  <!-- PAGING -->
58
  <div class="row input paging add-on" id="alm-paging">
59
+ <h3 class="heading"><?php _e('Paging', 'ajax-load-more'); ?></h3>
60
  <div class="expand-wrap">
61
  <div class="section-title">
62
+ <p><?php _e('Replace infinite scrolling with a paged ajax navigation system.', 'ajax-load-more'); ?></p>
63
  </div>
64
  <div class="wrap">
65
  <div class="inner">
66
  <ul>
67
  <li>
68
  <input class="alm_element" type="radio" name="paging" value="true" id="paging-true" >
69
+ <label for="paging-true"><?php _e('True', 'ajax-load-more'); ?></label>
70
  </li>
71
  <li>
72
  <input class="alm_element" type="radio" name="paging" value="false" id="paging-false" checked="checked">
73
+ <label for="paging-false"><?php _e('False', 'ajax-load-more'); ?></label>
74
  </li>
75
  </ul>
76
  </div>
81
 
82
  <hr/>
83
  <div class="section-title">
84
+ <h4><?php _e('Paging Controls', 'ajax-load-more'); ?></h4>
85
+ <p><?php _e('Show (&laquo;)previous and next(&raquo;) buttons.', 'ajax-load-more'); ?></p>
86
  </div>
87
  <div class="wrap">
88
  <div class="inner">
89
  <ul>
90
  <li>
91
  <input class="alm_element" type="radio" name="paging-controls" value="true" id="paging-controls-true" >
92
+ <label for="paging-controls-true"><?php _e('True', 'ajax-load-more'); ?></label>
93
  </li>
94
  <li>
95
  <input class="alm_element" type="radio" name="paging-controls" value="false" id="paging-controls-false" checked="checked">
96
+ <label for="paging-controls-false"><?php _e('False', 'ajax-load-more'); ?></label>
97
  </li>
98
  </ul>
99
  </div>
102
  <div class="clear"></div>
103
  <hr/>
104
  <div class="section-title">
105
+ <h4><?php _e('Paging Navigation Classes', 'ajax-load-more'); ?></h4>
106
+ <p><?php _e('Add custom CSS classes to the paging navigation menu.', 'ajax-load-more'); ?></p>
107
  </div>
108
  <div class="wrap">
109
  <div class="inner">
114
  <div class="clear"></div>
115
  <hr/>
116
  <div class="section-title">
117
+ <h4><?php _e('Show at Most', 'ajax-load-more'); ?></h4>
118
+ <p><?php _e('The maximum amount of page menu items to show at a time. <br/.>0 = no maximum', 'ajax-load-more'); ?></p>
119
  </div>
120
  <div class="wrap">
121
  <div class="inner">
133
  <?php if(has_action('alm_preload_installed')){ ?>
134
  <!-- PRELOAD -->
135
  <div class="row input preload add-on" id="alm-preload">
136
+ <h3 class="heading"><?php _e('Preloaded', 'ajax-load-more'); ?></h3>
137
  <div class="expand-wrap">
138
  <div class="section-title">
139
+ <p><?php _e('Preload posts prior to making Ajax requests.', 'ajax-load-more'); ?></p>
140
  </div>
141
  <div class="wrap">
142
  <div class="inner">
143
  <ul>
144
  <li>
145
  <input class="alm_element" type="radio" name="preload" value="true" id="preload-true" >
146
+ <label for="preload-true"><?php _e('True', 'ajax-load-more'); ?></label>
147
  </li>
148
  <li>
149
  <input class="alm_element" type="radio" name="preload" value="false" id="preload-false" checked="checked">
150
+ <label for="preload-false"><?php _e('False', 'ajax-load-more'); ?></label>
151
  </li>
152
  </ul>
153
  </div>
157
  <div class="clear"></div>
158
  <hr>
159
  <div class="section-title">
160
+ <h4><?php _e('Preload Amount', 'ajax-load-more'); ?></h4>
161
+ <p><?php _e('Enter the number of posts to preload.', 'ajax-load-more'); ?></p>
162
  </div>
163
  <div class="wrap">
164
  <div class="inner">
174
  <?php if(has_action('alm_prev_post_installed')){ ?>
175
  <!-- PREV POST -->
176
  <div class="row input previous-post add-on" id="alm-previous-post">
177
+ <h3 class="heading"><?php _e('Previous Post', 'ajax-load-more'); ?></h3>
178
  <div class="expand-wrap">
179
  <div class="section-title">
180
+ <p><?php _e('Enable the infinite scrolling of single posts.', 'ajax-load-more'); ?></p>
181
  </div>
182
  <div class="wrap">
183
  <div class="inner">
184
  <ul>
185
  <li>
186
  <input class="alm_element" type="radio" name="prev-post" value="true" id="prev-post-true" >
187
+ <label for="prev-post-true"><?php _e('True', 'ajax-load-more'); ?></label>
188
  </li>
189
  <li>
190
  <input class="alm_element" type="radio" name="prev-post" value="false" id="prev-post-false" checked="checked">
191
+ <label for="prev-post-false"><?php _e('False', 'ajax-load-more'); ?></label>
192
  </li>
193
  </ul>
194
  </div>
198
  <div class="clear"></div>
199
  <hr>
200
  <div class="section-title">
201
+ <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
202
+ <p><?php _e('The current post ID to pass to Ajax Load More.', 'ajax-load-more'); ?></p>
203
  </div>
204
  <div class="wrap">
205
  <div class="inner">
207
  </div>
208
  </div>
209
  <p class="warning-callout">
210
+ <?php _e('You must add the Previous Post 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. &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
211
  </p>
212
  </div>
213
  </div>
218
  <?php if(has_action('alm_seo_installed')){ ?>
219
  <!-- SEO -->
220
  <div class="row input seo add-on" id="alm-seo">
221
+ <h3 class="heading"><?php _e('SEO (Search Engine Optimization)', 'ajax-load-more'); ?></h3>
222
  <div class="expand-wrap">
223
  <div class="section-title">
224
+ <p><?php _e('Enable address bar URL rewrites as users page through ajax loaded content.', 'ajax-load-more'); ?></p>
225
  </div>
226
  <div class="wrap">
227
  <div class="inner">
228
  <ul>
229
  <li>
230
  <input class="alm_element" type="radio" name="seo" value="true" id="seo-true" >
231
+ <label for="seo-true"><?php _e('True', 'ajax-load-more'); ?></label>
232
  </li>
233
  <li>
234
  <input class="alm_element" type="radio" name="seo" value="false" id="seo-false" checked="checked">
235
+ <label for="seo-false"><?php _e('False', 'ajax-load-more'); ?></label>
236
  </li>
237
  </ul>
238
  </div>
245
 
246
  // List available repeaters
247
  echo '<div class="row repeater" id="alm-repeaters">';
248
+ echo '<h3 class="heading">'.__('Template', 'ajax-load-more'). '</h3>';
249
  echo '<div class="expand-wrap">';
250
  echo '<div class="section-title">';
251
  if (has_action('alm_theme_repeaters_selection')){
252
+ echo '<h4>'.__('Repeater Template', 'ajax-load-more').'</h4>';
253
  }
254
+ 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>';
255
  echo '</div>';
256
  echo '<div class="wrap"><div class="inner">';
257
  echo '<select name="repeater-select" id="repeater-select" class="alm_element">';
288
  $types = get_post_types($pt_args);
289
  if($types){
290
  echo '<div class="row checkboxes post_types" id="alm-post-types">';
291
+ echo '<h3 class="heading">'.__('Post Types', 'ajax-load-more'). '</h3>';
292
  echo '<div class="expand-wrap">';
293
  echo '<div class="section-title">';
294
+ echo '<p>'.__('Select Post Types to query.', 'ajax-load-more'). '</p>';
295
  echo '</div>';
296
  echo '<div class="wrap"><div class="inner"><ul>';
297
  foreach( $types as $type ){
312
  $post_formats = get_theme_support( 'post-formats' );
313
  if($post_formats){
314
  echo '<div class="row checkboxes post_format" id="alm-post-format">';
315
+ echo '<h3 class="heading">'.__('Post Format', 'ajax-load-more'). '</h3>';
316
  echo '<div class="expand-wrap">';
317
  echo '<div class="section-title">';
318
+ echo '<p>'.__('Select a <a href="http://codex.wordpress.org/Post_Formats" target="_blank">Post Format</a> to query.', 'ajax-load-more'). '</p>';
319
  echo '</div>';
320
  echo '<div class="wrap"><div class="inner"><select class="alm_element" name="post-format-select" id="post-format-select">';
321
+ echo '<option value="" selected="selected">-- ' . __('Select Post Format', 'ajax-load-more') . ' --</option>';
322
+ echo '<option name="chk-standard" id="chk-standard" value="standard">' . __('Standard', 'ajax-load-more') . '</option>';
323
  foreach( $post_formats[0] as $post_format ){
324
  echo '<option name="chk-'.$post_format.'" id="chk-'.$post_format.'" value="'.$post_format.'">'.ucwords($post_format).'</option>';
325
  }
339
  }
340
  if($cats){ ?>
341
  <div class="row checkboxes categories" id="alm-categories">
342
+ <h3 class="heading"><?php _e('Category', 'ajax-load-more'); ?></h3>
343
  <div class="expand-wrap">
344
  <div class="section-title">
345
  <h4>Include</h4>
346
+ <p><?php _e('A comma separated list of categories to include by slug. (design, research etc...)', 'ajax-load-more'); ?><br/>
347
  &raquo; <a href="admin.php?page=ajax-load-more-examples#example-category">
348
+ <?php _e('view example', 'ajax-load-more'); ?></a></p>
349
  </div>
350
  <div class="wrap">
351
  <div class="inner">
367
  <hr/>
368
 
369
  <div class="section-title">
370
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
371
+ <p><?php _e('A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)', 'ajax-load-more'); ?></p>
372
  </div>
373
  <div class="wrap">
374
  <div class="inner">
399
  }
400
  if($tags){ ?>
401
  <div class="row checkboxes tags" id="alm-tags">
402
+ <h3 class="heading"><?php _e('Tag', 'ajax-load-more'); ?></h3>
403
  <div class="expand-wrap">
404
  <div class="section-title">
405
+ <h4><?php _e('Include', 'ajax-load-more'); ?></h4>
406
+ <p><?php _e('A comma separated list of tags to include by slug. (toronto, canada etc...)', 'ajax-load-more'); ?><br/>&raquo; <a href="admin.php?page=ajax-load-more-examples#example-tag">view example</a></p>
407
  </div>
408
  <div class="wrap">
409
  <div class="inner">
424
  <hr/>
425
 
426
  <div class="section-title">
427
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
428
+ <p><?php _e('A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)', 'ajax-load-more'); ?></p>
429
  </div>
430
  <div class="wrap">
431
  <div class="inner">
457
  $taxonomies = get_taxonomies( $tax_args, $tax_output );
458
  if ( $taxonomies ) {
459
  echo '<div class="row taxonomy" id="alm-taxonomy">';
460
+ echo '<h3 class="heading">'.__('Taxonomy', 'ajax-load-more'). '</h3>';
461
  echo '<div class="expand-wrap">';
462
  echo '<div class="section-title">';
463
+ echo '<p>'.__('Select your custom taxonomy then select the terms and operator.', 'ajax-load-more'). '</p>';
464
  echo '</div>';
465
 
466
  echo '<div class="wrap">';
467
 
468
  echo '<div class="inner">';
469
  echo '<select class="alm_element" name="taxonomy-select" id="taxonomy-select">';
470
+ echo '<option value="" selected="selected">-- ' . __('Select Taxonomy', 'ajax-load-more') . ' --</option>';
471
  foreach( $taxonomies as $taxonomy ){
472
  echo '<option name="chk-'.$taxonomy->query_var.'" id="chk-'.$taxonomy->query_var.'" value="'.$taxonomy->query_var.'">'.$taxonomy->label.'</option>';
473
  }
476
 
477
  echo '<div id="taxonomy-extended">';
478
  echo '<div class="inner border-top" id="tax-terms">';
479
+ echo '<label class="full">'. __('Taxonomy Terms:', 'ajax-load-more') .'</label>';
480
  echo '<div id="tax-terms-container" class="checkboxes"></div>';
481
  echo '</div>';
482
 
483
  echo '<div class="inner border-top" id="tax-operator-select">';
484
+ echo '<label class="full">'. __('Taxonomy Operator:', 'ajax-load-more') .'</label>';
485
  echo '<ul class="radio">';
486
  echo '<li><input class="alm_element" name="tax-operator" id="tax-in-radio" value="IN" type="radio" checked="checked"><label for="tax-in-radio">IN (default)</li>';
487
  echo '<li><input class="alm_element" name="tax-operator" id="tax-not-in-radio" value="NOT IN" type="radio"><label for="tax-not-in-radio">NOT IN</li>';
497
 
498
  <!-- Date -->
499
  <div class="row input date" id="alm-date">
500
+ <h3 class="heading"><?php _e('Date', 'ajax-load-more'); ?></h3>
501
  <div class="expand-wrap">
502
  <div class="section-title">
503
+ <p><?php _e('Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a href="admin.php?page=ajax-load-more-examples#example-date">view example</a>', 'ajax-load-more'); ?></p>
504
  </div>
505
  <div class="wrap">
506
  <div class="inner">
507
  <div class="wrap-30">
508
  <?php $today = getdate(); ?>
509
+ <label for="input-year" class="full"><?php _e('Year:', 'ajax-load-more'); ?></label>
510
  <input name="input-year" class="alm_element sm numbers-only" type="text" id="input-year" maxlength="4" placeholder="<?php echo $today['year']; ?>">
511
  </div>
512
  <div class="wrap-30">
513
+ <label for="input-month" class="full"><?php _e('Month:', 'ajax-load-more'); ?></label>
514
  <input name="input-month" class="alm_element sm numbers-only" type="text" id="input-month" maxlength="2" placeholder="<?php echo $today['mon']; ?>">
515
  </div>
516
  <div class="wrap-30">
517
+ <label for="input-day" class="full"><?php _e('Day:', 'ajax-load-more'); ?></label>
518
  <input name="input-day" class="alm_element sm numbers-only" type="text" id="input-day" maxlength="2" placeholder="<?php echo $today['mday']; ?>">
519
  </div>
520
  </div>
525
 
526
  <?php // Meta_Query / Custom Fields ?>
527
  <div class="row input meta-key" id="alm-meta-key">
528
+ <h3 class="heading"><?php _e('Custom Fields (Meta_Query)', 'ajax-load-more'); ?></h3>
529
  <div class="expand-wrap">
530
  <div class="section-title full">
531
+ <p><?php _e('Query for <a href="http://codex.wordpress.org/Class_Reference/WP_Meta_Query" target="_blank">custom field</a> by entering a custom field key, value and operator.', 'ajax-load-more'); ?></p>
532
  </div>
533
  <div class="wrap full">
534
 
538
  <div id="meta-query-relation">
539
  <div class="inner border-top highlighted">
540
  <div class="wrap-30">
541
+ <label for="meta-relation" class="full"><?php _e('Relation:', 'ajax-load-more'); ?></label>
542
  <select class="alm_element meta-relation" name="meta-relation">
543
  <option value="AND" selected="selected">AND</option>
544
  <option value="OR">OR</option>
551
  </div>
552
 
553
  <div class="inner border-top controls">
554
+ <button class="button button-primary" id="add-meta-query"><?php _e('Add Another', 'ajax-load-more'); ?></button>
555
  </div>
556
 
557
  </div>
567
  }
568
  if($authors){
569
  echo '<div class="row checkboxes authors" id="alm-authors">';
570
+ echo '<h3 class="heading">' . __('Author', 'ajax-load-more') . '</h3>';
571
  echo '<div class="expand-wrap">';
572
  echo '<div class="section-title">';
573
+ echo '<p>' . __('Select an Author to query(by ID).', 'ajax-load-more') . '<br/>&raquo; <a href="admin.php?page=ajax-load-more-examples#example-author">view example</a></p>';
574
  echo '</div>';
575
  echo '<div class="wrap"><div class="inner">';
576
  if(!$disable_dynamic_content){
577
  echo '<select class="alm_element" name="author-select" id="author-select">';
578
+ echo '<option value="" selected="selected">-- ' . __('Select Author', 'ajax-load-more') . ' --</option>';
579
  foreach( $authors as $author ){
580
  echo '<option name="chk-'.$author->user_login.'" id="chk-'.$author->user_login.'" value="'.$author->ID.'">'.$author->display_name.'</option>';
581
  }
591
 
592
  <!-- Search term -->
593
  <div class="row input search-term" id="alm-search">
594
+ <h3 class="heading"><?php _e('Search Term', 'ajax-load-more'); ?></h3>
595
  <div class="expand-wrap">
596
  <div class="section-title">
597
+ <p><?php _e('Enter a search term to query.', 'ajax-load-more'); ?></p>
598
  </div>
599
  <div class="wrap">
600
  <div class="inner">
601
+ <input name="search-term" class="alm_element" type="text" id="search-term" value="" placeholder="<?php _e('Enter search term', 'ajax-load-more'); ?>">
602
  </div>
603
  </div>
604
  </div>
606
 
607
  <!-- Custom Arguments -->
608
  <div class="row input custom-arguments" id="alm-custom-args">
609
+ <h3 class="heading"><?php _e('Custom Arguments', 'ajax-load-more'); ?></h3>
610
  <div class="expand-wrap">
611
  <div class="section-title">
612
+ <p><?php _e('A semicolon separated list of custom value:pair arguments.<br/><br/>e.g. tag_slug__and:design,development; event_display:upcoming. Default', 'ajax-load-more'); ?></p>
613
  </div>
614
  <div class="wrap">
615
  <div class="inner">
616
+ <input name="custom-args" class="alm_element" type="text" id="custom-args" value="" placeholder="<?php _e('event_display:upcoming', 'ajax-load-more'); ?>">
617
  </div>
618
  </div>
619
  </div>
621
 
622
  <!-- Post Parameters -->
623
  <div class="row input post-in" id="alm-post-in">
624
+ <h3 class="heading"><?php _e('Post Parameters', 'ajax-load-more'); ?></h3>
625
  <div class="expand-wrap">
626
  <div class="section-title">
627
+ <h4><?php _e('Include', 'ajax-load-more'); ?></h4>
628
+ <p><?php _e('A comma separated list of post ID\'s to query.', 'ajax-load-more'); ?></p>
629
  </div>
630
  <div class="wrap">
631
  <div class="inner">
632
+ <input name="post__in" class="alm_element numbers-only" type="text" id="post__in" value="" placeholder="<?php _e('225, 340, 818, etc...', 'ajax-load-more'); ?>">
633
  </div>
634
  </div>
635
  <div class="clear"></div>
636
  <hr/>
637
  <div class="section-title">
638
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
639
+ <p><?php _e('A comma separated list of post ID\'s to exclude from query.', 'ajax-load-more'); ?><br/>&raquo; <a href="admin.php?page=ajax-load-more-examples#example-exclude"><?php _e('view example', 'ajax-load-more'); ?></a></p>
640
  </div>
641
  <div class="wrap">
642
  <div class="inner">
648
 
649
  <!-- Post Status -->
650
  <div class="row input post-status" id="alm-post-status">
651
+ <h3 class="heading"><?php _e('Post Status', 'ajax-load-more'); ?></h3>
652
  <div class="expand-wrap">
653
  <div class="section-title">
654
+ <p><?php _e('Select status of the post.', 'ajax-load-more'); ?></p>
655
  </div>
656
  <div class="wrap">
657
  <div class="inner">
658
  <select class="alm_element" name="post-status" id="post-status">
659
+ <option value="publish" selected="selected"><?php _e('Published', 'ajax-load-more'); ?></option>
660
  <option value="future">Future</option>
661
  <option value="draft">Draft</option>
662
  <option value="pending">Pending</option>
670
 
671
  <!-- Ordering -->
672
  <div class="row ordering" id="alm-order">
673
+ <h3 class="heading"><?php _e('Ordering', 'ajax-load-more'); ?></h3>
674
  <div class="expand-wrap">
675
  <div class="section-title">
676
+ <p><?php _e('Sort posts by Order and Orderby parameters.', 'ajax-load-more'); ?></p>
677
  </div>
678
  <div class="wrap">
679
  <div class="inner half">
680
+ <label class="full"><?php _e('Order', 'ajax-load-more'); ?>:</label>
681
  <select class="alm_element" name="post-order" id="post-order">
682
  <option value="DESC" selected="selected">DESC (default)</option>
683
  <option value="ASC">ASC</option>
684
  </select>
685
  </div>
686
  <div class="inner half">
687
+ <label class="full"><?php _e('Order By', 'ajax-load-more'); ?>:</label>
688
  <select class="alm_element" name="post-orderby" id="post-orderby">
689
  <option value="date" selected="selected">Date (default)</option>
690
  <option value="title">Title</option>
702
 
703
  <!-- Offset -->
704
  <div class="row input offset" id="alm-offset">
705
+ <h3 class="heading"><?php _e('Offset', 'ajax-load-more'); ?></h3>
706
  <div class="expand-wrap">
707
  <div class="section-title">
708
+ <p><?php _e('Offset the initial WordPress query by <em>\'n\'</em> number of posts', 'ajax-load-more'); ?></p>
709
  </div>
710
  <div class="wrap">
711
  <div class="inner">
717
 
718
  <!-- Posts Per Page -->
719
  <div class="row input posts_per_page" id="alm-post-page">
720
+ <h3 class="heading"><?php _e('Posts Per Page', 'ajax-load-more'); ?></h3>
721
  <div class="expand-wrap">
722
  <div class="section-title">
723
+ <p><?php _e('Select the number of posts to load with each request.', 'ajax-load-more'); ?></p>
724
  </div>
725
  <div class="wrap">
726
  <div class="inner">
732
 
733
  <!-- Pause -->
734
  <div class="row checkbox pause_load" id="alm-pause">
735
+ <h3 class="heading"><?php _e('Pause', 'ajax-load-more'); ?></h3>
736
  <div class="expand-wrap">
737
  <div class="section-title">
738
+ <p><?php _e('Do <u>NOT</u> load any posts until user the clicks <em>Load More</em> button.', 'ajax-load-more'); ?></p>
739
  </div>
740
  <div class="wrap">
741
  <div class="inner">
742
  <ul>
743
  <li>
744
  <input class="alm_element" type="radio" name="pause" value="t" id="pause_t">
745
+ <label for="pause_t"><?php _e('True', 'ajax-load-more'); ?></label>
746
  </li>
747
  <li>
748
  <input class="alm_element" type="radio" name="pause" value="f" id="pause_f" checked>
749
+ <label for="pause_f"><?php _e('False', 'ajax-load-more'); ?></label>
750
  </li>
751
  </ul>
752
  </div>
756
 
757
  <!-- Allow Scrolling Load -->
758
  <div class="row checkbox scroll_load" id="alm-scroll">
759
+ <h3 class="heading"><?php _e('Scrolling', 'ajax-load-more'); ?></h3>
760
  <div class="expand-wrap">
761
  <div class="section-title">
762
+ <h4><?php _e('Enable Scrolling', 'ajax-load-more'); ?></h4>
763
+ <p><?php _e('Load more posts as the user scrolls the page.', 'ajax-load-more'); ?></p>
764
  </div>
765
  <div class="wrap">
766
  <div class="inner">
767
  <ul>
768
  <li>
769
  <input class="alm_element" type="radio" name="scroll" value="t" id="scroll_t" checked>
770
+ <label for="scroll_t"><?php _e('True', 'ajax-load-more'); ?></label>
771
  </li>
772
  <li>
773
  <input class="alm_element" type="radio" name="scroll" value="f" id="scroll_f">
774
+ <label for="scroll_f"><?php _e('False', 'ajax-load-more'); ?></label>
775
  </li>
776
  </ul>
777
  </div>
781
  <div class="clear"></div>
782
  <hr>
783
  <div class="section-title">
784
+ <h4><?php _e('Scroll Distance', 'ajax-load-more'); ?></h4>
785
+ <p><?php _e('The distance from the bottom of the screen to trigger the loading of posts while scrolling. (Default = 150)', 'ajax-load-more'); ?></p>
786
  </div>
787
  <div class="wrap">
788
  <div class="inner">
794
  <div class="clear"></div>
795
  <hr>
796
  <div class="section-title">
797
+ <h4><?php _e('Maximum Pages', 'ajax-load-more'); ?></h4>
798
+ <p><?php _e('Maximum number of pages to load while scrolling. (0 = unlimited)', 'ajax-load-more'); ?></p>
799
  </div>
800
  <div class="wrap">
801
  <div class="inner">
807
  <div class="clear"></div>
808
  <hr>
809
  <div class="section-title">
810
+ <h4><?php _e('Pause Override', 'ajax-load-more'); ?></h4>
811
+ <p><?php _e('Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll.', 'ajax-load-more'); ?></p>
812
  </div>
813
  <div class="wrap">
814
  <ul>
815
  <li>
816
  <input class="alm_element" type="radio" name="pause_override" value="t" id="pause_override_t">
817
+ <label for="pause_override_t"><?php _e('True', 'ajax-load-more'); ?></label>
818
  </li>
819
  <li>
820
  <input class="alm_element" type="radio" name="pause_override" value="f" id="pause_override_f" checked="checked">
821
+ <label for="pause_override_f"><?php _e('False', 'ajax-load-more'); ?></label>
822
  </li>
823
  </ul>
824
  </div>
828
 
829
  <!-- Transition -->
830
  <div class="row input transition" id="alm-transition">
831
+ <h3 class="heading"><?php _e('Transition', 'ajax-load-more'); ?></h3>
832
  <div class="expand-wrap">
833
  <div class="section-title">
834
+ <p><?php _e('Select a loading transition.', 'ajax-load-more'); ?></p>
835
  </div>
836
  <div class="wrap">
837
  <div class="inner">
838
  <ul>
839
  <li>