Skip to content

Commit

Permalink
Release 2.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola Miljković committed Mar 7, 2018
2 parents a3a792b + 6430850 commit 16766c8
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 4 deletions.
33 changes: 33 additions & 0 deletions assets/css/sermon.css
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,12 @@ h3.wpfc_grid_title a {
.wpfc-sermon-container #wpfc_sermon_sorting > div:last-child {
margin: 0;
}

.wpfc-sermon-container #wpfc_sermon_sorting select {
display: block;
width: 100%;
max-width: 100%;
}
}

/******************************* Sermon Archive *******************************/
Expand Down Expand Up @@ -375,6 +381,27 @@ h3.wpfc_grid_title a {
border: none;
}

.wpfc-sermon-header {
display: grid;
grid-template-columns: 70% 30%;
align-items: center;
}

.wpfc-sermon-header-aside {
text-align: right;
}

.wpfc-sermon-container .wpfc-sermon-att-audio,
.wpfc-sermon-container .wpfc-sermon-att-notes,
.wpfc-sermon-container .wpfc-sermon-att-bulletin {
width: auto;
height: auto;
line-height: auto;
padding: 4px;
border: 1px solid #efefef;
margin-bottom: 4px;
}

.wpfc-sermon-main {
padding: 24px;
}
Expand Down Expand Up @@ -410,6 +437,10 @@ h3.wpfc_grid_title a {
margin: 0;
}

.wpfc-sermon-audio {
margin-top: 24px;
}

.wpfc-sermon-footer {
margin-top: 24px;
padding-top: 24px;
Expand Down Expand Up @@ -508,6 +539,8 @@ h3.wpfc_grid_title a {
flex: none;
background: white;
padding: 0 1.25rem;
box-shadow: none;
text-decoration: none;
}
.wpfc-sermon-player {
vertical-align: middle;
Expand Down
26 changes: 25 additions & 1 deletion includes/sm-template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ function wpfc_sermon_single_v2( $return = false, $post = null ) {
<?php if ( get_wpfc_sermon_meta( 'sermon_audio' ) ) : ?>
<div class="wpfc-sermon-single-audio">
<?php echo wpfc_render_audio( get_wpfc_sermon_meta( 'sermon_audio' ) ); ?>
<a class="wpfc-sermon-single-audio-download" href="<?php get_wpfc_sermon_meta('sermon_audio') ?>" download>
<a class="wpfc-sermon-single-audio-download" href="<?php echo get_wpfc_sermon_meta('sermon_audio') ?>" download="<?php echo basename( get_wpfc_sermon_meta( 'sermon_audio' ) ) ?>">
<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"/>
Expand Down Expand Up @@ -511,6 +511,8 @@ function wpfc_sermon_excerpt_v2( $return = false ) {
</div>
<?php endif; ?>
<div class="wpfc-sermon-main">
<div class="wpfc-sermon-header">
<div class="wpfc-sermon-header-main">
<?php if ( has_term( '', 'wpfc_sermon_series', $post->ID ) ) : ?>
<div class="wpfc-sermon-meta-item wpfc-sermon-meta-series">
<?php the_terms( $post->ID, 'wpfc_sermon_series' ) ?>
Expand All @@ -524,8 +526,29 @@ function wpfc_sermon_excerpt_v2( $return = false ) {
<div class="wpfc-sermon-meta-item wpfc-sermon-meta-date">
<?php sm_the_date() ?>
</div>
</div>
<?php if ( \SermonManager::getOption( 'archive_meta' ) ): ?>
<div class="wpfc-sermon-header-aside">
<?php if ( get_wpfc_sermon_meta( 'sermon_audio' ) ) : ?>
<a class="wpfc-sermon-att-audio dashicons dashicons-media-audio" href="<?php echo get_wpfc_sermon_meta( 'sermon_audio' ); ?>" download="<?php echo basename( get_wpfc_sermon_meta( 'sermon_audio' ) ); ?>" title="Audio"></a>
<?php endif; ?>
<?php if ( get_wpfc_sermon_meta( 'sermon_notes' ) ) : ?>
<a class="wpfc-sermon-att-notes dashicons dashicons-media-document" href="<?php echo get_wpfc_sermon_meta( 'sermon_notes' ); ?>" download="<?php echo basename( get_wpfc_sermon_meta( 'sermon_notes' ) ); ?>" title="Notes"></a>
<?php endif; ?>
<?php if ( get_wpfc_sermon_meta( 'sermon_bulletin' ) ) : ?>
<a class="wpfc-sermon-att-bulletin dashicons dashicons-media-text" href="<?php echo get_wpfc_sermon_meta( 'sermon_bulletin' ); ?>" download="<?php echo basename( get_wpfc_sermon_meta( 'sermon_bulletin' ) ); ?>" title="Bulletin"></a>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php $sermon_description = get_post_meta($post->ID, 'sermon_description', true); ?>
<div class="wpfc-sermon-description"><?php echo wp_trim_words($sermon_description, 30); ?></div>
<?php if ( \SermonManager::getOption( 'archive_player' ) && get_wpfc_sermon_meta( 'sermon_audio' ) ) : ?>
<div class="wpfc-sermon-audio">
<?php echo wpfc_render_audio( get_wpfc_sermon_meta( 'sermon_audio' ) ); ?>
</div>
<?php endif; ?>

<div class="wpfc-sermon-footer">
<?php if ( has_term( '', 'wpfc_preacher', $post->ID ) ) : ?>
<div class="wpfc-sermon-meta-item wpfc-sermon-meta-preacher">
Expand All @@ -548,6 +571,7 @@ function wpfc_sermon_excerpt_v2( $return = false ) {
</div>
</div>
</div>

<?php if ( ! \SermonManager::getOption( 'theme_compatibility' ) ) : ?>
</article>
<?php endif; ?>
Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: church, sermon, sermons, preaching, podcasting, manage, managing, podcasts
Requires at least: 4.5
Tested up to: 4.9.4
Requires PHP: 5.3
Stable tag: 2.12.1
Stable tag: 2.12.2
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -102,11 +102,17 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
2. Sermon Files

## Changelog ##
### 2.12.2 ###
* Fix: Audio player styling
* Fix: Audio player not loading on archive pages
* Fix: Attachments not showing on archive pages

### 2.12.1 ###
* New: Add support for Facebook video links
* New: Sermon audio download button
* Fix: `latest_series` title and description parameter not working
* Fix: `latest_series` shortcode title and description parameter not working
* Fix: Sermons won't show long description on archive page
* Fix: Issues with mp3 download button

### 2.12.0 ###
* New: Add all new views, much more improved
Expand Down
2 changes: 1 addition & 1 deletion sermons.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Sermon Manager for WordPress
* Plugin URI: https://www.wpforchurch.com/products/sermon-manager-for-wordpress/
* Description: Add audio and video sermons, manage speakers, series, and more.
* Version: 2.12.1
* Version: 2.12.2
* Author: WP for Church
* Author URI: https://www.wpforchurch.com/
* Requires at least: 4.5
Expand Down

0 comments on commit 16766c8

Please sign in to comment.