Changeset 1914834
- Timestamp:
- 07/25/2018 02:10:13 PM (8 years ago)
- Location:
- oi-yamaps/trunk
- Files:
-
- 3 edited
-
Readme.md (modified) (1 diff)
-
oi-yamaps.php (modified) (12 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
oi-yamaps/trunk/Readme.md
r1897230 r1914834 47 47 ## Changelog 48 48 49 ### 3.1.8 (25.07.2018) 50 * fix: custom placemark special attribut added; 49 51 ### 3.1.7 (22.06.2018) 50 52 * fix: the symbol of the number 1 was deleted before the map; -
oi-yamaps/trunk/oi-yamaps.php
r1897230 r1914834 5 5 Description: The plugin allows you to use Yandex.Maps on your site pages and put the placemarks on the map. Without an API key. <strong>Don't forget to reactivate the plugin!</strong> 6 6 Author: Alexei Isaenko 7 Version: 3.1. 77 Version: 3.1.8 8 8 Author URI: https://oiplug.com/members/isaenkoalexei 9 9 Text Domain: oi-yamaps … … 202 202 'hint' => '', 203 203 'coordinates' => '', 204 'iconlayout' => '', 204 205 'iconimage' => '', 205 206 'button_caption' => __( 'Show the map', 'oi-yamaps' ), … … 366 367 } 367 368 368 $result = array( $address, $coordinates, $is_coordinates);369 $result = array($address, $coordinates, $is_coordinates); 369 370 370 371 if ( $flag == false ) { … … 642 643 'iconcaption' => $atts['iconcaption'], 643 644 'placemark' => $atts['placemark'], 645 'iconlayout' => $atts['iconlayout'], 644 646 'iconimage' => $atts['iconimage'], 645 647 'iconsize' => '', … … 696 698 $atts['lon'] = array(); 697 699 foreach ( $vars['placemarks'] as $key => $value ) { 698 // set placemark if it's not... 699 if ( empty( $value['placemark'] ) ) { 700 $value['placemark'] = $atts['placemark']; 700 if ( ! empty( $value ) ) { 701 702 // set placemark if it's not... 703 if ( empty( $value['placemark'] ) ) { 704 $value['placemark'] = $atts['placemark']; 705 } 706 707 if ( empty( $atts['center'] ) ) { 708 list( $atts['lat'][], $atts['lon'][] ) = explode( ',', $value['coordinates'] ); 709 } 710 $atts['placemark_code'] .= placemark_code( $value ); 701 711 } 702 if ( empty( $atts['center'] ) ) {703 list( $atts['lat'][], $atts['lon'][] ) = explode( ',', $value['coordinates'] );704 }705 $atts['placemark_code'] .= placemark_code( $value );706 712 } 707 713 if ( empty( $atts['center'] ) ) { … … 829 835 'iconcaption' => '', 830 836 'placemark' => '', 837 'iconlayout' => '', 831 838 'iconimage' => '', 832 839 'iconsize' => '', … … 835 842 ), $atts ); 836 843 844 if ( ! empty( $atts['iconimage'] ) && empty( $atts['iconlayout'] ) ) { 845 $atts['iconlayout'] = 'default#image'; 846 } 847 837 848 foreach ( $atts as $key => $value ) { 838 849 if ( ! empty( $atts[ $key ] ) ) { … … 865 876 $atts['footer'] = 'balloonContentFooter: "' . $atts['footer'] . '",'; 866 877 break; 867 868 869 878 case 'hint': 870 879 $atts['hint'] = 'hintContent: "' . $atts['hint'] . '"'; 871 880 break; 872 881 case 'iconlayout': 882 $atts['iconlayout'] = 'iconLayout: "' . $atts['iconlayout'] . '", '; 883 break; 873 884 case 'iconimage': 874 885 $atts['iconimage'] = 'iconImageHref: "' . $atts['iconimage'] . '", '; … … 895 906 896 907 // replace braces with triangular brackets 897 $content_tags = array( 'header', 'body', 'footer',);908 $content_tags = array('header', 'body', 'footer',); 898 909 foreach ( $content_tags as $tag ) { 899 910 if ( ! empty( $atts[ $tag ] ) ) { 900 $atts[ $tag ] = str_replace( array( '{', '}', ), array( '<', '>',), $atts[ $tag ] );911 $atts[ $tag ] = str_replace( array('{', '}',), array('<', '>',), $atts[ $tag ] ); 901 912 } 902 913 } … … 913 924 {' . 914 925 $atts['placemark'] . 926 $atts['iconlayout'] . 915 927 $atts['iconimage'] . 916 928 $atts['iconsize'] . … … 939 951 'iconcaption' => '', 940 952 'placemark' => '', 953 'iconlayout' => '', 941 954 'iconimage' => '', 942 955 'iconsize' => '', … … 981 994 'iconcaption' => $atts['iconcaption'], 982 995 'placemark' => $atts['placemark'], 996 'iconlayout' => $atts['iconlayout'], 983 997 'iconimage' => $atts['iconimage'], 984 998 'iconsize' => $atts['iconsize'], -
oi-yamaps/trunk/readme.txt
r1897230 r1914834 59 59 == Changelog == 60 60 61 = 3.1.6 (22.06.2018) = 61 3.1.8 (25.07.2018) 62 * fix: custom placemark special attribut added; 63 = 3.1.7 (22.06.2018) = 62 64 * fix: the symbol of the number 1 was deleted before the map; 63 65 = 3.1.6 (29.05.2018) =
Note: See TracChangeset
for help on using the changeset viewer.