SportsPress Style => SportsPress Styles
This commit is contained in:
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
|
|||||||
Description: Add frontend styles to SportsPress.
|
Description: Add frontend styles to SportsPress.
|
||||||
Author: ThemeBoy
|
Author: ThemeBoy
|
||||||
Author URI: http://themeboy.com/
|
Author URI: http://themeboy.com/
|
||||||
Version: 2.2.4
|
Version: 2.3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Exit if accessed directly
|
// Exit if accessed directly
|
||||||
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Styles' ) ) :
|
|||||||
* Main SportsPress Styles Class
|
* Main SportsPress Styles Class
|
||||||
*
|
*
|
||||||
* @class SportsPress_Styles
|
* @class SportsPress_Styles
|
||||||
* @version 2.2.4
|
* @version 2.3
|
||||||
*/
|
*/
|
||||||
class SportsPress_Styles {
|
class SportsPress_Styles {
|
||||||
|
|
||||||
@@ -42,14 +42,14 @@ class SportsPress_Styles {
|
|||||||
* Define constants.
|
* Define constants.
|
||||||
*/
|
*/
|
||||||
private function define_constants() {
|
private function define_constants() {
|
||||||
if ( !defined( 'SP_STYLE_VERSION' ) )
|
if ( !defined( 'SP_STYLES_VERSION' ) )
|
||||||
define( 'SP_STYLE_VERSION', '2.2.4' );
|
define( 'SP_STYLES_VERSION', '2.3' );
|
||||||
|
|
||||||
if ( !defined( 'SP_STYLE_URL' ) )
|
if ( !defined( 'SP_STYLES_URL' ) )
|
||||||
define( 'SP_STYLE_URL', plugin_dir_url( __FILE__ ) );
|
define( 'SP_STYLES_URL', plugin_dir_url( __FILE__ ) );
|
||||||
|
|
||||||
if ( !defined( 'SP_STYLE_DIR' ) )
|
if ( !defined( 'SP_STYLES_DIR' ) )
|
||||||
define( 'SP_STYLE_DIR', plugin_dir_path( __FILE__ ) );
|
define( 'SP_STYLES_DIR', plugin_dir_path( __FILE__ ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -79,14 +79,14 @@ class SportsPress_Styles {
|
|||||||
$styles['sportspress-roboto'] = array(
|
$styles['sportspress-roboto'] = array(
|
||||||
'src' => '//fonts.googleapis.com/css?family=Roboto:400,500&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese',
|
'src' => '//fonts.googleapis.com/css?family=Roboto:400,500&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese',
|
||||||
'deps' => '',
|
'deps' => '',
|
||||||
'version' => SP_STYLE_VERSION,
|
'version' => SP_STYLES_VERSION,
|
||||||
'media' => 'all'
|
'media' => 'all'
|
||||||
);
|
);
|
||||||
|
|
||||||
$styles['sportspress-style'] = array(
|
$styles['sportspress-style'] = array(
|
||||||
'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style.css',
|
'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style.css',
|
||||||
'deps' => '',
|
'deps' => '',
|
||||||
'version' => SP_STYLE_VERSION,
|
'version' => SP_STYLES_VERSION,
|
||||||
'media' => 'all'
|
'media' => 'all'
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -94,14 +94,14 @@ class SportsPress_Styles {
|
|||||||
$styles['sportspress-style-rtl'] = array(
|
$styles['sportspress-style-rtl'] = array(
|
||||||
'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style-rtl.css',
|
'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style-rtl.css',
|
||||||
'deps' => 'sportspress-style',
|
'deps' => 'sportspress-style',
|
||||||
'version' => SP_STYLE_VERSION,
|
'version' => SP_STYLES_VERSION,
|
||||||
'media' => 'all'
|
'media' => 'all'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$styles['sportspress-style-ltr'] = array(
|
$styles['sportspress-style-ltr'] = array(
|
||||||
'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style-ltr.css',
|
'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style-ltr.css',
|
||||||
'deps' => 'sportspress-style',
|
'deps' => 'sportspress-style',
|
||||||
'version' => SP_STYLE_VERSION,
|
'version' => SP_STYLES_VERSION,
|
||||||
'media' => 'all'
|
'media' => 'all'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user