Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme.txt file code added #266

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions includes/admin/views/html-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ class="button-secondary"><?php esc_html_e( 'Submit&nbsp;Your&nbsp;Idea', 'sermon
</div>
</div>
</div>
<?php
echo apply_filters( 'settings_page_sidebar_extra_boxs', $arg='' );
?>
</div>
</div>
</div>
10 changes: 6 additions & 4 deletions includes/class-sm-shortcodes.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ function display_latest_series_image( $atts = array() ) {
$args = shortcode_atts( $args, $atts, 'latest_series' );

// Get latest series.
$latest_series = $this->get_latest_series_with_image();
$latest_series = $this->get_latest_series_with_image( 0, $args['service_type'] );

// If for some reason we couldn't get latest series.
if ( null === $latest_series ) {
Expand Down Expand Up @@ -619,9 +619,12 @@ function display_latest_series_image( $atts = array() ) {
* @return WP_Term|null|false Term if found, null if there are no terms, false if there is no term with image.
*/
public function get_latest_series_with_image() {
//Get Order from settings
$default_orderby = SermonManager::getOption( 'archive_orderby' );
$default_order = SermonManager::getOption( 'archive_order' );

if(empty($default_order)){
$default_order = '';
}
$query_args = array(
'taxonomy' => 'wpfc_sermon_series',
'hide_empty' => false,
Expand All @@ -630,7 +633,6 @@ public function get_latest_series_with_image() {

switch ( $default_orderby ) {
case 'date_preached':
case 'date':
$query_args += array(
'orderby' => 'meta_value_num',
'meta_key' => 'sermon_date',
Expand Down Expand Up @@ -963,7 +965,7 @@ function display_sermons( $atts = array() ) {
$query_args['meta_query'][] = array(
'key' => 'sermon_date',
'value' => $after,
'compare' => '=>',
'compare' => '>=',
);
}
}
Expand Down
18 changes: 5 additions & 13 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.7.0
Tested up to: 5.1
Requires PHP: 5.3
Stable tag: 2.15.15
Stable tag: 2.15.16
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -123,17 +123,9 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man

## Changelog ##
### 2.15.16 ###
* New: Add a setting to change Service Type label
* New: Add compatibility for "Kerygma" theme
* New: Add sermons per page setting
* New: Add Uncode theme support
* Fix: Player getting out of the div
* Fix: Vimeo videos not seeking to the predefined timestamp
* Fix: Preacher label not being replaced everywhere
* Fix: Not getting the real latest series image via "latest_series" shortcode
* Fix: Some terms (series) not being ordered correctly by sermon date
* Fix: Filtering not working when sermons are on page above 1
* Dev: Add a filter to disable sidebar on supported themes
Fix: "after" parameter not working in "[sermons]" shortcode
Fix: Improve [latest_series] shortcode
New: Add sidebar in dashboard compatibility for Pro version

### 2.15.15 ###
* Fix: RSS feed not working
Expand Down Expand Up @@ -251,4 +243,4 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
* Fix: Taxonomy feed URLs not picked up by Sermon Manager
* Fix: Allow deleted imported sermons to be re-imported

Note: The rest of the changelog is in changelog.txt
Note: The rest of the changelog is in changelog.txt
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.15.15
* Version: 2.15.16
* Author: WP for Church
* Author URI: https://www.wpforchurch.com/
* Requires at least: 4.5
Expand Down