mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-16 13:13:41 +09:00
Added segment block with test
This commit is contained in:
@@ -41,6 +41,12 @@ class WPStrava {
|
||||
*/
|
||||
private $routes = null;
|
||||
|
||||
/**
|
||||
* Segment object to get segments.
|
||||
* @var WPStrava_Segments
|
||||
*/
|
||||
private $segments = null;
|
||||
|
||||
/**
|
||||
* Private constructor (singleton).
|
||||
*/
|
||||
@@ -115,6 +121,10 @@ class WPStrava {
|
||||
return $this->get_routes();
|
||||
}
|
||||
|
||||
if ( 'segments' === $name ) {
|
||||
return $this->get_segments();
|
||||
}
|
||||
|
||||
if ( isset( $this->{$name} ) ) {
|
||||
return $this->{$name};
|
||||
}
|
||||
@@ -216,6 +226,7 @@ class WPStrava {
|
||||
'WPStrava_Blocks_Activity',
|
||||
'WPStrava_Blocks_Route',
|
||||
'WPStrava_Blocks_ActivitiesList',
|
||||
'WPStrava_Blocks_Segment',
|
||||
);
|
||||
|
||||
// automatically load dependencies and version
|
||||
|
||||
Reference in New Issue
Block a user