Clean up spaces, tabs, indentation, and bracket formatting
This commit is contained in:
@@ -9,52 +9,57 @@
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'SportsPress_Widgets' ) ) :
|
||||
|
||||
/**
|
||||
* Main SportsPress Widgets Class
|
||||
*
|
||||
* @class SportsPress_Widgets
|
||||
* @version 1.8.3
|
||||
*/
|
||||
class SportsPress_Widgets {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Main SportsPress Widgets Class
|
||||
*
|
||||
* @class SportsPress_Widgets
|
||||
* @version 1.8.3
|
||||
*/
|
||||
public function __construct() {
|
||||
// Define constants
|
||||
$this->define_constants();
|
||||
class SportsPress_Widgets {
|
||||
|
||||
add_action( 'widgets_init', array( $this, 'includes' ) );
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
// Define constants
|
||||
$this->define_constants();
|
||||
|
||||
add_action( 'widgets_init', array( $this, 'includes' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Define constants.
|
||||
*/
|
||||
private function define_constants() {
|
||||
if ( ! defined( 'SP_WIDGETS_VERSION' ) ) {
|
||||
define( 'SP_WIDGETS_VERSION', '1.8.3' );
|
||||
}
|
||||
|
||||
if ( ! defined( 'SP_WIDGETS_URL' ) ) {
|
||||
define( 'SP_WIDGETS_URL', plugin_dir_url( __FILE__ ) );
|
||||
}
|
||||
|
||||
if ( ! defined( 'SP_WIDGETS_DIR' ) ) {
|
||||
define( 'SP_WIDGETS_DIR', plugin_dir_path( __FILE__ ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Include widgets.
|
||||
*/
|
||||
public function includes() {
|
||||
include_once SP()->plugin_path() . '/includes/widgets/class-sp-widget-staff.php';
|
||||
|
||||
do_action( 'sportspress_widgets' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Define constants.
|
||||
*/
|
||||
private function define_constants() {
|
||||
if ( !defined( 'SP_WIDGETS_VERSION' ) )
|
||||
define( 'SP_WIDGETS_VERSION', '1.8.3' );
|
||||
|
||||
if ( !defined( 'SP_WIDGETS_URL' ) )
|
||||
define( 'SP_WIDGETS_URL', plugin_dir_url( __FILE__ ) );
|
||||
|
||||
if ( !defined( 'SP_WIDGETS_DIR' ) )
|
||||
define( 'SP_WIDGETS_DIR', plugin_dir_path( __FILE__ ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Include widgets.
|
||||
*/
|
||||
public function includes() {
|
||||
include_once( SP()->plugin_path() . '/includes/widgets/class-sp-widget-staff.php' );
|
||||
|
||||
do_action( 'sportspress_widgets' );
|
||||
}
|
||||
}
|
||||
|
||||
endif;
|
||||
|
||||
new SportsPress_Widgets();
|
||||
|
||||
Reference in New Issue
Block a user