Skip to content

Commit

Permalink
Setting code update, paging add-on fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooney committed Feb 7, 2024
1 parent 883b333 commit 4acd0b9
Show file tree
Hide file tree
Showing 16 changed files with 8,913 additions and 14,021 deletions.
3 changes: 1 addition & 2 deletions admin/functions/licensing.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ function alm_license_activation() {
'method' => 'POST',
'body' => $api_params,
'timeout' => 30,
'sslverify' => false,
// phpcs:ignore
'sslverify' => apply_filters( 'alm_licensing_sslverify', false ),
// 'blocking' => true
]
);
Expand Down
484 changes: 191 additions & 293 deletions admin/functions/settings.php

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions ajax-load-more.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
* @package AjaxLoadMore
*/

/*
* NEW: Added 'alm_licensing_sslverify' hook to allow users to disable SSL verification when checking for updates.
* NEW: Added new Paging add-on parameter `paging_container_classes` used for adding CSS classes to the paging HTML container.
* NEW: Added support for Elementor Loop Grid widget when using Elementor add-on.
* FIX: Fixed issue with Elementor add-on potentially not disabling the Load More button when no content remains.
* SECURITY: Various security fixes for admin level plugin settings.
*/

define( 'ALM_VERSION', '7.0.1' );
define( 'ALM_RELEASE', 'January 23, 2024' );
define( 'ALM_STORE_URL', 'https://connekthq.com' );
Expand Down
2 changes: 1 addition & 1 deletion build/admin/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'c3869ab83f8f89db72f3');
<?php return array('dependencies' => array(), 'version' => '94106781e37454d4d7c3');
5,172 changes: 5,171 additions & 1 deletion build/admin/index.css

Large diffs are not rendered by default.

998 changes: 83 additions & 915 deletions build/admin/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/frontend/ajax-load-more.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '3892fb7639a1773e6f01');
<?php return array('dependencies' => array(), 'version' => '397f767f581b6192e816');
519 changes: 518 additions & 1 deletion build/frontend/ajax-load-more.css

Large diffs are not rendered by default.

13,671 changes: 960 additions & 12,711 deletions build/frontend/ajax-load-more.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/frontend/ajax-load-more.min.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'e4d1b5dfe5c5c740d5e5');
<?php return array('dependencies' => array(), 'version' => '397f767f581b6192e816');
519 changes: 518 additions & 1 deletion build/frontend/ajax-load-more.min.css

Large diffs are not rendered by default.

1,357 changes: 1,351 additions & 6 deletions build/frontend/ajax-load-more.min.js

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions core/classes/class-alm-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ public static function alm_render_shortcode( $atts ) {
'paging' => 'false',
'paging_controls' => 'false',
'paging_show_at_most' => '7',
'paging_classes' => '',
'paging_scroll' => false,
'paging_classes' => apply_filters( 'paging_classes', '' ),
'paging_container_classes' => apply_filters( 'alm_paging_container_classes', '' ),
'paging_first_label' => apply_filters( 'alm_paging_first_label', '' ),
'paging_last_label' => apply_filters( 'alm_paging_last_label', '' ),
'paging_previous_label' => apply_filters( 'alm_paging_previous_label', '&laquo;' ),
Expand Down Expand Up @@ -377,10 +378,6 @@ public static function alm_render_shortcode( $atts ) {

// End Enqueue Scripts.

if ( $seo === 'true' && has_action( 'alm_seo_installed' ) ) {
$filters = false;
}

// Filters - Set initial shortcode state.
$filters = $filters === 'true' && class_exists( 'ALMFilters' );
if ( $filters ) {
Expand Down Expand Up @@ -1216,7 +1213,8 @@ public static function alm_render_shortcode( $atts ) {

// Paging before.
if ( has_action( 'alm_paging_installed' ) && $paging === 'true' ) {
$ajaxloadmore .= apply_filters( 'alm_paging_after', '<div class="alm-paging-content" style="opacity: 0; outline: none;">' );
$paging_container_classes = $paging_container_classes ? ' ' . esc_attr( $paging_container_classes ) : '';
$ajaxloadmore .= apply_filters( 'alm_paging_before', '<div class="alm-paging-content' . $paging_container_classes .'" style="opacity: 0; outline: none;">' );
}

// Preloaded.
Expand Down
Loading

0 comments on commit 4acd0b9

Please sign in to comment.