From e0f88d1a3d2d05d7a96b99fc45720c0e00e91297 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 22 Mar 2017 15:22:50 +1100 Subject: [PATCH] SportsPress Style => SportsPress Styles --- ...press-style.php => sportspress-styles.php} | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) rename modules/{sportspress-style.php => sportspress-styles.php} (94%) diff --git a/modules/sportspress-style.php b/modules/sportspress-styles.php similarity index 94% rename from modules/sportspress-style.php rename to modules/sportspress-styles.php index 3a000339..b5dd0c12 100644 --- a/modules/sportspress-style.php +++ b/modules/sportspress-styles.php @@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/ Description: Add frontend styles to SportsPress. Author: ThemeBoy Author URI: http://themeboy.com/ -Version: 2.2.4 +Version: 2.3 */ // Exit if accessed directly @@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Styles' ) ) : * Main SportsPress Styles Class * * @class SportsPress_Styles - * @version 2.2.4 + * @version 2.3 */ class SportsPress_Styles { @@ -42,14 +42,14 @@ class SportsPress_Styles { * Define constants. */ private function define_constants() { - if ( !defined( 'SP_STYLE_VERSION' ) ) - define( 'SP_STYLE_VERSION', '2.2.4' ); + if ( !defined( 'SP_STYLES_VERSION' ) ) + define( 'SP_STYLES_VERSION', '2.3' ); - if ( !defined( 'SP_STYLE_URL' ) ) - define( 'SP_STYLE_URL', plugin_dir_url( __FILE__ ) ); + if ( !defined( 'SP_STYLES_URL' ) ) + define( 'SP_STYLES_URL', plugin_dir_url( __FILE__ ) ); - if ( !defined( 'SP_STYLE_DIR' ) ) - define( 'SP_STYLE_DIR', plugin_dir_path( __FILE__ ) ); + if ( !defined( 'SP_STYLES_DIR' ) ) + define( 'SP_STYLES_DIR', plugin_dir_path( __FILE__ ) ); } /** @@ -79,14 +79,14 @@ class SportsPress_Styles { $styles['sportspress-roboto'] = array( 'src' => '//fonts.googleapis.com/css?family=Roboto:400,500&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese', 'deps' => '', - 'version' => SP_STYLE_VERSION, + 'version' => SP_STYLES_VERSION, 'media' => 'all' ); $styles['sportspress-style'] = array( 'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style.css', 'deps' => '', - 'version' => SP_STYLE_VERSION, + 'version' => SP_STYLES_VERSION, 'media' => 'all' ); @@ -94,14 +94,14 @@ class SportsPress_Styles { $styles['sportspress-style-rtl'] = array( 'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style-rtl.css', 'deps' => 'sportspress-style', - 'version' => SP_STYLE_VERSION, + 'version' => SP_STYLES_VERSION, 'media' => 'all' ); } else { $styles['sportspress-style-ltr'] = array( 'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style-ltr.css', 'deps' => 'sportspress-style', - 'version' => SP_STYLE_VERSION, + 'version' => SP_STYLES_VERSION, 'media' => 'all' ); }