mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-13 19:56:41 +09:00
Added system of measurement to settings page
This commit is contained in:
@@ -6,7 +6,7 @@ require_once WPSTRAVA_PLUGIN_DIR . 'lib/LatestRidesWidget.class.php';
|
||||
class WPStrava {
|
||||
|
||||
private static $instance = NULL;
|
||||
public $settings = NULL;
|
||||
private $settings = NULL;
|
||||
|
||||
private function __construct() {
|
||||
$this->settings = new WPStrava_Settings();
|
||||
@@ -16,7 +16,7 @@ class WPStrava {
|
||||
}
|
||||
|
||||
// Register StravaLatestRidesWidget widget
|
||||
add_action('widgets_init', function() { return register_widget('WPStrava_LatestRidesWidget'); });
|
||||
add_action( 'widgets_init', function() { return register_widget( 'WPStrava_LatestRidesWidget' ); } );
|
||||
|
||||
}
|
||||
|
||||
@@ -25,4 +25,11 @@ class WPStrava {
|
||||
self::$instance = new WPStrava();
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
public function __get( $name ) {
|
||||
if ( isset( $this->{$name} ) )
|
||||
return $this->{$name};
|
||||
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user