-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,7 +193,7 @@ public function get_segments() { | |
* Register/enqueue admin javascript. | ||
* | ||
* @author Justin Foell <[email protected]> | ||
* @since next | ||
* @since 2.11 | ||
*/ | ||
public function register_admin_scripts() { | ||
if ( $this->settings->is_settings_page() ) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,7 +170,7 @@ public function print_api_instructions() { | |
* Print the map type selection. | ||
* | ||
* @author Justin Foell <[email protected]> | ||
* @since next | ||
* @since 2.11 | ||
*/ | ||
public function print_map_type_input() { | ||
$gmaps_url = 'https://developers.google.com/maps/documentation/static-maps/'; | ||
|
@@ -234,7 +234,7 @@ public function print_map_type_input() { | |
* @param string $map_type | ||
* @return string | ||
* @author Justin Foell <[email protected]> | ||
* @since next | ||
* @since 2.11 | ||
*/ | ||
public function sanitize_map_type_input( $map_type ) { | ||
if ( in_array( $map_type, array( 'gmaps', 'mapbox' ), true ) ) { | ||
|
@@ -489,7 +489,7 @@ public function sanitize_gmaps_key( $key ) { | |
* Print the Mapbox token input. | ||
* | ||
* @author Justin Foell <[email protected]> | ||
* @since next | ||
* @since 2.11 | ||
*/ | ||
public function print_mapbox_token_input() { | ||
?> | ||
|
@@ -503,7 +503,7 @@ public function print_mapbox_token_input() { | |
* @param string $token | ||
* @return string | ||
* @author Justin Foell <[email protected]> | ||
* @since next | ||
* @since 2.11 | ||
*/ | ||
public function sanitize_mapbox_token( $token ) { | ||
return $token; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ abstract public function get_image_tag( $activity, $height = 320, $width = 480, | |
* | ||
* @return WPStrava_StaticMap Instance of StaticMap | ||
* @author Justin Foell <[email protected]> | ||
* @since NEXT | ||
* @since 2.11 | ||
*/ | ||
public static function get_map() { | ||
if ( 'mapbox' === WPStrava::get_instance()->settings->map_type ) { | ||
|
@@ -95,7 +95,7 @@ protected function reduce_polyline( $base_url_len, $enc ) { | |
* @param mixed $polyline Polyline string. | ||
* @return int Polyline string length. | ||
* @author Justin Foell <[email protected]> | ||
* @since next | ||
* @since 2.11 | ||
*/ | ||
protected function polyline_length( $polyline ) { | ||
return strlen( $polyline ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ public function get_image_tag( $activity, $height = 320, $width = 480, $markers | |
* @param bool $markers Display start and finish markers. | ||
* @return string Image URL. | ||
* @author Justin Foell <[email protected]> | ||
* @since next | ||
* @since 2.11 | ||
*/ | ||
private function build_url( $polyline, $height = 320, $width = 480, $markers = false ) { | ||
|
||
|
@@ -86,7 +86,7 @@ private function build_url( $polyline, $height = 320, $width = 480, $markers = f | |
* @param mixed $polyline Polyline string. | ||
* @return int Encoded polyline string length. | ||
* @author Justin Foell <[email protected]> | ||
* @since next | ||
* @since 2.11 | ||
*/ | ||
protected function polyline_length( $polyline ) { | ||
return strlen( rawurlencode( $polyline ) ); | ||
|