Skip to content

Commit

Permalink
Merge pull request #239 from TheCraigHewitt/release/1.18.1
Browse files Browse the repository at this point in the history
Release/1.18.1
  • Loading branch information
jonathanbossenger authored Nov 5, 2017
2 parents 3e551f0 + 9bc96b5 commit 9bb2894
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
25 changes: 21 additions & 4 deletions includes/class-ssp-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,18 +410,35 @@ public function episode_meta_details ( $episode_id = 0, $context = 'content' ) {

$meta_display .= "<p>".__( 'Podcast:', 'seriously-simple-podcasting' )." ".$podcast_display."</p>";

$terms = get_the_terms( $episode_id, 'series' );

$itunes_url = get_option( 'ss_podcasting_itunes_url', '' );
$stitcher_url = get_option( 'ss_podcasting_stitcher_url', '' );
$google_play_url = get_option( 'ss_podcasting_google_play_url', '' );

if ( is_array( $terms ) ) {
if ( isset( $terms[0] ) ) {
if ( false !== get_option( 'ss_podcasting_itunes_url_' . $terms[0]->term_id, '' ) ) {
$itunes_url = get_option( 'ss_podcasting_itunes_url_' . $terms[0]->term_id, '' );
}
if ( false !== get_option( 'ss_podcasting_stitcher_url_' . $terms[0]->term_id, '' ) ) {
$stitcher_url = get_option( 'ss_podcasting_stitcher_url_' . $terms[0]->term_id, '' );
}
if ( false !== get_option( 'ss_podcasting_google_play_url_' . $terms[0]->term_id, '' ) ) {
$google_play_url = get_option( 'ss_podcasting_google_play_url_' . $terms[0]->term_id, '' );
}
}
}

if ( ! empty( $itunes_url ) ) {
$subscribe_display .= '<a href="' . esc_url( $itunes_url ) . '" target="_blank" title="' . apply_filters( 'ssp_subscribe_link_name_itunes', __( 'iTunes', 'seriously-simple-podcasting' ) ) . '" class="podcast-meta-itunes">' . apply_filters( 'ssp_subscribe_link_name_itunes', __( 'iTunes', 'seriously-simple-podcasting' ) ) . '</a>';
}

$stitcher_url = get_option( 'ss_podcasting_stitcher_url', '' );

if ( ! empty( $stitcher_url ) ) {
if( empty( $itunes_url ) ) { $meta_sep = ''; } else { $meta_sep = ' | '; }
$subscribe_display .= $meta_sep . '<a href="' . esc_url( $stitcher_url ) . '" target="_blank" title="' . apply_filters( 'ssp_subscribe_link_name_stitcher', __( 'Stitcher', 'seriously-simple-podcasting' ) ) . '" class="podcast-meta-itunes">' . apply_filters( 'ssp_subscribe_link_name_stitcher', __( 'Stitcher', 'seriously-simple-podcasting' ) ) . '</a>';
}

$google_play_url = get_option( 'ss_podcasting_google_play_url', '' );

if ( ! empty( $google_play_url ) ) {
if( empty( $stitcher_url ) ) { $meta_sep = ''; } else { $meta_sep = ' | '; }
$subscribe_display .= $meta_sep . '<a href="' . esc_url( $google_play_url ) . '" target="_blank" title="' . apply_filters( 'ssp_subscribe_link_name_google_play', __( 'Google Play', 'seriously-simple-podcasting' ) ) . '" class="podcast-meta-itunes">' . apply_filters( 'ssp_subscribe_link_name_google_play', __( 'Google Play', 'seriously-simple-podcasting' ) ) . '</a>';
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: podcast, audio, video, vodcast, rss, mp3, mp4, feed, itunes, podcasting, m
Requires at least: 4.4
Tested up to: 4.8
Requires PHP: 5.3.3
Stable tag: 1.18.0
Stable tag: 1.18.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -96,6 +96,10 @@ You can find complete user and developer documentation (along with the FAQs) on

== Changelog ==

= 1.18.1 =
* 2017-10-25
* [FIX] Fixed subscribe links for episodes in a series

= 1.18.0 =
* 2017-10-09
* [NEW] Added new and updated iTunes tags to podcast feed as announced at WWDC2017
Expand Down
4 changes: 2 additions & 2 deletions seriously-simple-podcasting.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: Seriously Simple Podcasting
* Version: 1.18.0
* Version: 1.18.1
* Plugin URI: https://www.seriouslysimplepodcasting.com/
* Description: Podcasting the way it's meant to be. No mess, no fuss - just you and your content taking over the world.
* Author: PodcastMotor
Expand Down Expand Up @@ -38,7 +38,7 @@
return;
}

define( 'SSP_VERSION', '1.18.0' );
define( 'SSP_VERSION', '1.18.1' );
define( 'SSP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'SSP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );

Expand Down

0 comments on commit 9bb2894

Please sign in to comment.