Skip to content

Commit

Permalink
Updated readme and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfoell committed Dec 30, 2021
1 parent 51cc4b7 commit 9abd2e9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ On the WP-Strava settings page you cannot currently remove and add another athle
== Changelog ==

= 2.11.0 =
Added additional block transformations for "Activity" (from: Paragraph, Classic Shortcode; to: Paragraph)
Add additional block transformations for "Activity" (from: Paragraph, Classic Shortcode; to: Paragraph)
Add Mapbox Static Map support https://github.com/cmanon/wp-strava/issues/26


= 2.10.1 =
Expand Down
2 changes: 1 addition & 1 deletion src/WPStrava.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) {
Expand Down
8 changes: 4 additions & 4 deletions src/WPStrava/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/';
Expand Down Expand Up @@ -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 ) ) {
Expand Down Expand Up @@ -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() {
?>
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/WPStrava/StaticMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions src/WPStrava/StaticMapbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {

Expand Down Expand Up @@ -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 ) );
Expand Down

0 comments on commit 9abd2e9

Please sign in to comment.