From d52c599aa63d4de87b97e795ad1c3b81f45638e1 Mon Sep 17 00:00:00 2001 From: maslybs Date: Mon, 10 Dec 2018 17:11:04 +0200 Subject: [PATCH 01/25] add wordpress filter to function --- includes/sm-template-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/sm-template-functions.php b/includes/sm-template-functions.php index 7555c50..5823072 100755 --- a/includes/sm-template-functions.php +++ b/includes/sm-template-functions.php @@ -60,7 +60,7 @@ function render_wpfc_sorting( $args = array() ) { $action = ''; // Filters HTML fields data. - $filters = array( + $filters = apply_filters( 'sm_render_wpfc_before_sorting', array( array( 'className' => 'sortPreacher', 'taxonomy' => 'wpfc_preacher', @@ -86,7 +86,7 @@ function render_wpfc_sorting( $args = array() ) { 'taxonomy' => 'wpfc_service_type', 'title' => __( 'Service Type', 'sermon-manager-for-wordpress' ), ), - ); + ) ); $visibility_mapping = array( 'wpfc_sermon_topics' => 'hide_topics', From b9f433bbbbec80ce56af3f1130f3ec8eba03f78a Mon Sep 17 00:00:00 2001 From: maslybs Date: Thu, 13 Dec 2018 15:25:00 +0200 Subject: [PATCH 02/25] add new hook for podcast --- views/wpfc-podcast-feed.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/views/wpfc-podcast-feed.php b/views/wpfc-podcast-feed.php index 3bbefb2..743cc85 100644 --- a/views/wpfc-podcast-feed.php +++ b/views/wpfc-podcast-feed.php @@ -289,15 +289,22 @@ - - + ID, $settings ) ) ) : + echo $custom_enclosure; + else: ?> + + + + + + Date: Fri, 14 Dec 2018 12:39:39 +0200 Subject: [PATCH 03/25] fix default value in the filter --- views/partials/content-sermon-filtering.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/partials/content-sermon-filtering.php b/views/partials/content-sermon-filtering.php index 4a5d2b6..7194147 100644 --- a/views/partials/content-sermon-filtering.php +++ b/views/partials/content-sermon-filtering.php @@ -56,7 +56,7 @@