Added system of measurement to settings page

This commit is contained in:
Justin Foell
2013-02-17 22:14:10 -06:00
parent cfa7b083f9
commit 8d511f72ec
4 changed files with 51 additions and 22 deletions
+9 -2
View File
@@ -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;
}
}