Add option to show or hide logos or photos in event blocks
This commit is contained in:
@@ -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' ),
|
||||
|
||||
Reference in New Issue
Block a user