Updated to the [ride] shortcode

This commit is contained in:
Justin Foell
2014-11-01 22:53:32 -05:00
parent ac7be472ab
commit 4ac9a8aebf
7 changed files with 83 additions and 128 deletions
+4 -4
View File
@@ -4,12 +4,12 @@ abstract class WPStrava_SOM {
public static function get_som( $som = NULL ) {
$som = $som ? $som : WPStrava::get_instance()->settings->som;
if ( $som == 'metric' ) {
require_once WPSTRAVA_PLUGIN_DIR . 'lib/SOMMetric.class.php';
return new WPStrava_SOMMetric();
} else {
if ( $som == 'english' ) {
require_once WPSTRAVA_PLUGIN_DIR . 'lib/SOMEnglish.class.php';
return new WPStrava_SOMEnglish();
} else { //default to metric
require_once WPSTRAVA_PLUGIN_DIR . 'lib/SOMMetric.class.php';
return new WPStrava_SOMMetric();
}
}