SportsPress Style => SportsPress Styles

This commit is contained in:
Brian Miyaji
2017-03-22 15:22:50 +11:00
parent 6f0baa454f
commit e0f88d1a3d

View File

@@ -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'
);
}