mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-17 05:33:44 +09:00
Skeletal StyleTranslations class, CSS fixes
This commit is contained in:
+9
-1
@@ -41,6 +41,12 @@ class WPStrava {
|
||||
*/
|
||||
private $routes = null;
|
||||
|
||||
/**
|
||||
* Style Translation object for responsive tables.
|
||||
* @var WPStrava_StyleTranslations
|
||||
*/
|
||||
private $style_translations = null;
|
||||
|
||||
/**
|
||||
* Private constructor (singleton).
|
||||
*/
|
||||
@@ -78,7 +84,9 @@ class WPStrava {
|
||||
|
||||
if ( is_admin() ) {
|
||||
$this->settings->hook();
|
||||
} else {
|
||||
} else { // Front-end.
|
||||
$this->style_translations = new WPStrava_StyleTranslations();
|
||||
$this->style_translations->hook();
|
||||
add_action( 'init', array( $this, 'register_shortcodes' ) );
|
||||
add_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user