Add option to show or hide logos or photos in event blocks

This commit is contained in:
Brian Miyaji
2016-05-24 16:54:32 +10:00
parent 3ec2eca9de
commit 9ca1e03448
3 changed files with 27 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
Description: Add event calendars to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.0
Version: 2.0.7
*/
// Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Calendars' ) ) :
* Main SportsPress Calendars Class
*
* @class SportsPress_Calendars
* @version 2.0
* @version 2.0.7
*/
class SportsPress_Calendars {
@@ -49,7 +49,7 @@ class SportsPress_Calendars {
*/
private function define_constants() {
if ( !defined( 'SP_CALENDARS_VERSION' ) )
define( 'SP_CALENDARS_VERSION', '2.0' );
define( 'SP_CALENDARS_VERSION', '2.0.7' );
if ( !defined( 'SP_CALENDARS_URL' ) )
define( 'SP_CALENDARS_URL', plugin_dir_url( __FILE__ ) );
@@ -311,6 +311,14 @@ class SportsPress_Calendars {
'type' => 'checkbox',
),
array(
'title' => __( 'Teams', 'sportspress' ),
'desc' => __( 'Display logos', 'sportspress' ),
'id' => 'sportspress_event_blocks_show_logos',
'default' => 'yes',
'type' => 'checkbox',
),
array(
'title' => __( 'Details', 'sportspress' ),
'desc' => __( 'Display competition', 'sportspress' ),