Changeset 1913591
- Timestamp:
- 07/23/2018 02:26:53 PM (8 years ago)
- Location:
- lf-hiker/trunk
- Files:
-
- 9 added
- 7 deleted
- 21 edited
-
Controller/Front.php (modified) (2 diffs)
-
Model/Map.php (modified) (1 diff)
-
Model/Option.php (modified) (2 diffs)
-
css/helper.css (modified) (2 diffs)
-
css/helper.less (modified) (2 diffs)
-
css/lfh-style.css (modified) (45 diffs)
-
css/lfh-style.less (modified) (29 diffs)
-
dist/helper-min.1.10.0.js (deleted)
-
dist/helper-min.1.11.0.js (added)
-
dist/helper.1.10.0.css (deleted)
-
dist/helper.1.11.0.css (added)
-
dist/lfh-front-min.1.10.0.js (deleted)
-
dist/lfh-front-min.1.11.0.js (added)
-
dist/lfh-post-editor-min.1.10.0.js (deleted)
-
dist/lfh-post-editor-min.1.11.0.js (added)
-
dist/lfh-post-editor.1.10.0.css (deleted)
-
dist/lfh-post-editor.1.11.0.css (added)
-
dist/lfh-style-min.1.10.0.css (deleted)
-
dist/lfh-style-min.1.11.0.css (added)
-
dist/tinymce-lfh-plugin-min.1.10.0.js (deleted)
-
dist/tinymce-lfh-plugin-min.1.11.0.js (added)
-
gulpfile.js (modified) (1 diff)
-
js/helper.js (modified) (5 diffs)
-
js/leaflet-gpx.js (modified) (1 diff)
-
js/lfh-plugin.js (modified) (4 diffs)
-
languages/lfh-default.mo (modified) (previous)
-
languages/lfh-default.po (modified) (12 diffs)
-
languages/lfh-el.mo (added)
-
languages/lfh-el.po (added)
-
languages/lfh-fr_FR.mo (modified) (previous)
-
languages/lfh-fr_FR.po (modified) (16 diffs)
-
lf-hiker.php (modified) (2 diffs)
-
lib/leaflet-gpx.js (modified) (3 diffs)
-
package.json (modified) (1 diff)
-
readme.txt (modified) (5 diffs)
-
views/back/editor/add-marker.phtml (modified) (4 diffs)
-
views/front/map.phtml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lf-hiker/trunk/Controller/Front.php
r1886332 r1913591 296 296 297 297 $data = 'div.lfh-min div.lfh-nav div.lfh-title, 298 div.undermap div.lfh-nav div.lfh-title, 298 299 #content .lfh-element h3:first-child, 299 300 #lfh-fade .lfh-element h3:first-child, … … 315 316 border-color:'.$css['lfh_color'].'; 316 317 } 317 div.lfh-min a.lfh-gpx-file{ 318 div.lfh-min a.lfh-gpx-file, 319 div.undermap a.lfh-gpx-file{ 318 320 background:none; 319 321 color:inherit; -
lf-hiker/trunk/Model/Map.php
r1880263 r1913591 193 193 'filter' => FILTER_VALIDATE_BOOLEAN, 194 194 'flags' => FILTER_NULL_ON_FAILURE 195 ), 196 'undermap' => array( 197 'type' => 'checkbox', 198 'label' => ucfirst(__('Display information under map' , 'lfh')), 199 'default' => boolval( Lfh_Model_Option::get_option('lfh_position_under')), 200 'filter' => FILTER_VALIDATE_BOOLEAN, 201 'flags' => FILTER_NULL_ON_FAILURE 195 202 ) 196 203 ); -
lf-hiker/trunk/Model/Option.php
r1886332 r1913591 62 62 'regexp' => "/^#[0-9a-f-A-F]{6}$/", 63 63 'default' => '#00ff00')), 64 ); 64 'lfh_position_under' => array( 65 'type' => 'checkbox', 66 'default' => false, 67 'label' => __('Display information window always under the map', 'lfh'), 68 'filter' => FILTER_VALIDATE_BOOLEAN, 69 'helper' => esc_html__('You can change it for only on map in its shortcode by using property <code>undermap</code>', 'lfh')) 70 ); 65 71 break; 66 72 case 'config_tile': … … 239 245 } 240 246 } 247 if( $tab == 'custom_css'){ 248 if( isset( $data["lfh_position_under"])){ 249 $data["lfh_position_under"] = true; 250 }else{ 251 $data["lfh_position_under"] = false; 252 } 253 } 241 254 242 255 $filter = self::get_defaults($tab); -
lf-hiker/trunk/css/helper.css
r1703926 r1913591 358 358 border-radius: 4px; 359 359 } 360 #window-add-marker { 361 top: 125px; 362 left: 55px; 363 display: none; 364 } 360 365 #window-edit-marker { 361 top: 5 px;362 right: 5px;366 top: 50px; 367 left: 60px; 363 368 } 364 369 #window-edit-map { 365 370 top: 5px; 366 left: 60px;371 right: 60px; 367 372 } 368 373 .lfh-form-edit .header { … … 374 379 } 375 380 .lfh-form-edit .header h3 { 376 margin: ;381 margin: 3px; 377 382 display: inline; 378 383 width: 180px; -
lf-hiker/trunk/css/helper.less
r1697166 r1913591 97 97 border-radius: 4px; 98 98 } 99 100 #window-add-marker{ 101 top:125px; 102 left:55px; 103 display:none; 104 } 99 105 #window-edit-marker{ 100 top:5px;101 right:5px;106 top:50px; 107 left:60px; 102 108 } 103 109 #window-edit-map{ 104 110 top:5px; 105 left:60px;111 right:60px; 106 112 } 107 113 .lfh-form-edit .header{ … … 113 119 } 114 120 .lfh-form-edit .header h3{ 115 margin: ;121 margin:3px; 116 122 display:inline; 117 123 width:180px; -
lf-hiker/trunk/css/lfh-style.css
r1880263 r1913591 437 437 margin: 5px; 438 438 } 439 div.lfh-min div.lfh-no-data { 439 div.lfh-min div.lfh-no-data, 440 div.undermap div.lfh-no-data { 440 441 display: block; 441 442 margin-top: 2px; … … 474 475 height: 100%; 475 476 } 476 #lfh-fade.lfh-min div.lfh-map { 477 #lfh-fade.lfh-min div.lfh-map, 478 #lfh-fade.undermap div.lfh-map { 477 479 position: absolute; 478 480 width: 100%; … … 626 628 clear: both; 627 629 } 628 div.lfh-container.lfh-min div.lfh-data { 630 div.lfh-container.lfh-min div.lfh-data, 631 div.lfh-container.undermap div.lfh-data { 629 632 position: relative; 630 633 height: 200px; 631 634 } 632 #lfh-fade.lfh-min div.lfh-data { 635 #lfh-fade.lfh-min div.lfh-data, 636 #lfh-fade.undermap div.lfh-data { 633 637 position: absolute; 634 638 top: auto; … … 637 641 background-color: white; 638 642 } 639 div.lfh-min div.lfh-content { 643 div.lfh-min div.lfh-content, 644 div.undermap div.lfh-content { 640 645 margin: 0; 641 646 } 642 div.lfh-min div.lfh-control-list { 647 div.lfh-min div.lfh-control-list, 648 div.undermap div.lfh-control-list { 643 649 display: none; 644 650 } … … 651 657 margin-top: 3px; 652 658 } 653 div.lfh-min div.lfh-data-content { 659 div.lfh-min div.lfh-data-content, 660 div.undermap div.lfh-data-content { 654 661 margin: 35px 5px; 655 662 display: block; … … 657 664 vertical-align: middle; 658 665 } 659 div.lfh-min div.lfh-data-content div.lfh-section { 666 div.lfh-min div.lfh-data-content div.lfh-section, 667 div.undermap div.lfh-data-content div.lfh-section { 660 668 display: block; 661 669 height: 100%; … … 663 671 line-height: 113px; 664 672 } 665 div.lfh-min div.lfh-data-content div.lfh-section div.lfh-content { 673 div.lfh-min div.lfh-data-content div.lfh-section div.lfh-content, 674 div.undermap div.lfh-data-content div.lfh-section div.lfh-content { 666 675 margin: auto; 667 676 } 668 677 div.lfh-container.lfh-min, 669 #fade div.lfh-container.lfh-min { 678 #fade div.lfh-container.lfh-min, 679 div.lfh-container.undermap, 680 #fade div.lfh-container.undermap { 670 681 height: auto; 671 682 } 672 683 #lfh-fade.lfh-min div.lfh-nav, 673 div.lfh-min div.lfh-nav { 684 div.lfh-min div.lfh-nav, 685 #lfh-fade.undermap div.lfh-nav, 686 div.undermap div.lfh-nav { 674 687 display: block; 675 688 } 676 div.lfh-container.lfh-min { 689 div.lfh-container.lfh-min, 690 div.lfh-container.undermap { 677 691 border: 2px solid #9e9e9e; 678 692 } … … 681 695 display: none; 682 696 } 683 div.lfh-min div.lfh-head { 697 div.lfh-min div.lfh-head, 698 div.undermap div.lfh-head { 684 699 display: none; 685 700 } 686 701 div.lfh-min div.lfh-nav div.lfh-back, 687 div.lfh-min div.lfh-nav div.lfh-next { 702 div.lfh-min div.lfh-nav div.lfh-next, 703 div.undermap div.lfh-nav div.lfh-back, 704 div.undermap div.lfh-nav div.lfh-next { 688 705 position: absolute; 689 706 display: none; … … 700 717 background-color: rgba(255, 255, 255, 0.6); 701 718 } 702 div.lfh-min div.lfh-nav div.lfh-back { 719 div.lfh-min div.lfh-nav div.lfh-back, 720 div.undermap div.lfh-nav div.lfh-back { 703 721 left: -1px; 704 722 } 705 div.lfh-min div.lfh-nav div.lfh-next { 723 div.lfh-min div.lfh-nav div.lfh-next, 724 div.undermap div.lfh-nav div.lfh-next { 706 725 right: 0px; 707 726 } … … 711 730 } 712 731 div.lfh-min div.lfh-nav div.lfh-back:hover, 713 div.lfh-min div.lfh-nav div.lfh-next:hover { 732 div.lfh-min div.lfh-nav div.lfh-next:hover, 733 div.undermap div.lfh-nav div.lfh-back:hover, 734 div.undermap div.lfh-nav div.lfh-next:hover { 714 735 opacity: 0.9; 715 736 background-color: rgba(255, 255, 255, 0.9); … … 735 756 } 736 757 div.lfh-min a.lfh-gpx-file, 737 #lfh-fade.lfh-min a.lfh-gpx-file { 758 #lfh-fade.lfh-min a.lfh-gpx-file, 759 div.undermap a.lfh-gpx-file, 760 #lfh-fade.undermap a.lfh-gpx-file { 738 761 color: inherit; 739 762 pointer-events: auto; … … 744 767 margin: 0 2px; 745 768 } 746 div.lfh-min a.lfh-gpx-file { 769 div.lfh-min a.lfh-gpx-file, 770 div.undermap a.lfh-gpx-file { 747 771 pointer-events: auto; 748 772 cursor: pointer; … … 750 774 float: right; 751 775 } 752 div.lfh-min div.lfh-contributor { 776 div.lfh-min div.lfh-contributor, 777 div.undermap div.lfh-contributor { 753 778 position: absolute; 754 779 bottom: 0; … … 757 782 pointer-events: auto; 758 783 } 759 div.lfh-min div.lfh-contributor a { 784 div.lfh-min div.lfh-contributor a, 785 div.undermap div.lfh-contributor a { 760 786 text-decoration: none; 761 787 } 762 div.lfh-min div.lfh-nav div.lfh-title { 788 div.lfh-min div.lfh-nav div.lfh-title, 789 div.undermap div.lfh-nav div.lfh-title { 763 790 font-size: 1rem; 764 791 font-weight: 600; … … 772 799 overflow: hidden; 773 800 } 774 #lfh-fade.lfh-min div.lfh-nav div.lfh-title { 801 #lfh-fade.lfh-min div.lfh-nav div.lfh-title, 802 #lfh-fade.undermap div.lfh-nav div.lfh-title { 775 803 text-align: left; 776 804 } 777 div.lfh-min div.lfh-element { 805 div.lfh-min div.lfh-element, 806 div.undermap div.lfh-element { 778 807 position: absolute; 779 808 top: 33px; … … 784 813 max-height: 167px; 785 814 } 786 div.lfh-min div.lfh-element.lfh-small-content { 815 div.lfh-min div.lfh-element.lfh-small-content, 816 div.undermap div.lfh-element.lfh-small-content { 787 817 width: 100%; 788 818 } 789 div.lfh-min div.lfh-element.lfh-small-content div.lfh-element-content { 819 div.lfh-min div.lfh-element.lfh-small-content div.lfh-element-content, 820 div.undermap div.lfh-element.lfh-small-content div.lfh-element-content { 790 821 text-align: center; 791 822 } 792 div.lfh-min div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content { 823 div.lfh-min div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content, 824 div.undermap div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content { 793 825 text-align: left; 794 826 } 795 div.lfh-min div.lfh-element.lfh-small-content div.lfh-section { 827 div.lfh-min div.lfh-element.lfh-small-content div.lfh-section, 828 div.undermap div.lfh-element.lfh-small-content div.lfh-section { 796 829 float: none; 797 830 margin: auto; 798 831 } 799 div.lfh-min div.lfh-element.lfh-hidden { 832 div.lfh-min div.lfh-element.lfh-hidden, 833 div.undermap div.lfh-element.lfh-hidden { 800 834 -ms-transform: translateY(300px); 801 835 -webkit-transform: translateY(300px); … … 804 838 transform: translateY(300px); 805 839 } 806 div.lfh-min div.lfh-list.lfh-element.lfh-hidden { 840 div.lfh-min div.lfh-list.lfh-element.lfh-hidden, 841 div.undermap div.lfh-list.lfh-element.lfh-hidden { 807 842 opacity: 1; 808 843 max-height: 167px; … … 815 850 background: transparent; 816 851 } 817 div.lfh-min div.lfh-list.lfh-element.lfh-hidden div.lfh-description { 852 div.lfh-min div.lfh-list.lfh-element.lfh-hidden div.lfh-description, 853 div.undermap div.lfh-list.lfh-element.lfh-hidden div.lfh-description { 818 854 margin-top: 40px; 819 855 } 820 856 div.lfh-min div.lfh-element.step1, 821 div.lfh-min div.lfh-list.lfh-hidden.step1 { 857 div.lfh-min div.lfh-list.lfh-hidden.step1, 858 div.undermap div.lfh-element.step1, 859 div.undermap div.lfh-list.lfh-hidden.step1 { 822 860 -ms-transform: translateX(-280px); 823 861 -webkit-transform: translateX(-280px); … … 827 865 } 828 866 div.lfh-min div.lfh-element.step2, 829 div.lfh-min div.lfh-list.lfh-hidden.step2 { 867 div.lfh-min div.lfh-list.lfh-hidden.step2, 868 div.undermap div.lfh-element.step2, 869 div.undermap div.lfh-list.lfh-hidden.step2 { 830 870 -ms-transform: translateX(-560px); 831 871 -webkit-transform: translateX(-560px); … … 835 875 } 836 876 div.lfh-min div.lfh-element.step3, 837 div.lfh-min div.lfh-list.lfh-hidden.step3 { 877 div.lfh-min div.lfh-list.lfh-hidden.step3, 878 div.undermap div.lfh-element.step3, 879 div.undermap div.lfh-list.lfh-hidden.step3 { 838 880 -ms-transform: translateX(-840px); 839 881 -webkit-transform: translateX(-840px); … … 843 885 } 844 886 div.lfh-min div.lfh-element.step4, 845 div.lfh-min div.lfh-list.lfh-hidden.step4 { 887 div.lfh-min div.lfh-list.lfh-hidden.step4, 888 div.undermap div.lfh-element.step4, 889 div.undermap div.lfh-list.lfh-hidden.step4 { 846 890 -ms-transform: translateX(-1120px); 847 891 -webkit-transform: translateX(-1120px); … … 851 895 } 852 896 div.lfh-min div.lfh-element.step5, 853 div.lfh-min div.lfh-list.lfh-hidden.step5 { 897 div.lfh-min div.lfh-list.lfh-hidden.step5, 898 div.undermap div.lfh-element.step5, 899 div.undermap div.lfh-list.lfh-hidden.step5 { 854 900 -ms-transform: translateX(-1400px); 855 901 -webkit-transform: translateX(-1400px); … … 859 905 } 860 906 div.lfh-min div.lfh-element.step6, 861 div.lfh-min div.lfh-list.lfh-hidden.step6 { 907 div.lfh-min div.lfh-list.lfh-hidden.step6, 908 div.undermap div.lfh-element.step6, 909 div.undermap div.lfh-list.lfh-hidden.step6 { 862 910 -ms-transform: translateX(-1680px); 863 911 -webkit-transform: translateX(-1680px); … … 867 915 } 868 916 div.lfh-min div.lfh-element.step7, 869 div.lfh-min div.lfh-list.lfh-hidden.step7 { 917 div.lfh-min div.lfh-list.lfh-hidden.step7, 918 div.undermap div.lfh-element.step7, 919 div.undermap div.lfh-list.lfh-hidden.step7 { 870 920 -ms-transform: translateX(-1960px); 871 921 -webkit-transform: translateX(-1960px); … … 875 925 } 876 926 div.lfh-min div.lfh-element.step8, 877 div.lfh-min div.lfh-list.lfh-hidden.step8 { 927 div.lfh-min div.lfh-list.lfh-hidden.step8, 928 div.undermap div.lfh-element.step8, 929 div.undermap div.lfh-list.lfh-hidden.step8 { 878 930 -ms-transform: translateX(-2240px); 879 931 -webkit-transform: translateX(-2240px); … … 883 935 } 884 936 div.lfh-min div.lfh-element.step9, 885 div.lfh-min div.lfh-list.lfh-hidden.step9 { 937 div.lfh-min div.lfh-list.lfh-hidden.step9, 938 div.undermap div.lfh-element.step9, 939 div.undermap div.lfh-list.lfh-hidden.step9 { 886 940 -ms-transform: translateX(-2520px); 887 941 -webkit-transform: translateX(-2520px); … … 891 945 } 892 946 div.lfh-min div.lfh-element.step10, 893 div.lfh-min div.lfh-list.lfh-hidden.step10 { 947 div.lfh-min div.lfh-list.lfh-hidden.step10, 948 div.undermap div.lfh-element.step10, 949 div.undermap div.lfh-list.lfh-hidden.step10 { 894 950 -ms-transform: translateX(-2800px); 895 951 -webkit-transform: translateX(-2800px); … … 899 955 } 900 956 div.lfh-min div.lfh-element.lfh-hidden:not(.lfh-list), 901 div.lfh-min div.lfh-element.lfh-hidden.step0:not(.lfh-list) { 957 div.lfh-min div.lfh-element.lfh-hidden.step0:not(.lfh-list), 958 div.undermap div.lfh-element.lfh-hidden:not(.lfh-list), 959 div.undermap div.lfh-element.lfh-hidden.step0:not(.lfh-list) { 902 960 -ms-transform: translateY(250px); 903 961 -webkit-transform: translateY(250px); … … 906 964 transform: translateY(250px); 907 965 } 908 div.lfh-min div.lfh-element.lfh-hidden.step1:not(.lfh-list) { 966 div.lfh-min div.lfh-element.lfh-hidden.step1:not(.lfh-list), 967 div.undermap div.lfh-element.lfh-hidden.step1:not(.lfh-list) { 909 968 -ms-transform: translate(-280px, 250px); 910 969 -webkit-transform: translate(-280px, 250px); … … 913 972 transform: translate(-280px, 250px); 914 973 } 915 div.lfh-min div.lfh-element.lfh-hidden.step2:not(.lfh-list) { 974 div.lfh-min div.lfh-element.lfh-hidden.step2:not(.lfh-list), 975 div.undermap div.lfh-element.lfh-hidden.step2:not(.lfh-list) { 916 976 -ms-transform: translate(-560px, 250px); 917 977 -webkit-transform: translate(-560px, 250px); … … 920 980 transform: translate(-560px, 250px); 921 981 } 922 div.lfh-min div.lfh-element.lfh-hidden.step3:not(.lfh-list) { 982 div.lfh-min div.lfh-element.lfh-hidden.step3:not(.lfh-list), 983 div.undermap div.lfh-element.lfh-hidden.step3:not(.lfh-list) { 923 984 -ms-transform: translate(-840px, 250px); 924 985 -webkit-transform: translate(-840px, 250px); … … 927 988 transform: translate(-840px, 250px); 928 989 } 929 div.lfh-min div.lfh-element.lfh-hidden.step4:not(.lfh-list) { 990 div.lfh-min div.lfh-element.lfh-hidden.step4:not(.lfh-list), 991 div.undermap div.lfh-element.lfh-hidden.step4:not(.lfh-list) { 930 992 -ms-transform: translate(-1120px, 250px); 931 993 -webkit-transform: translate(-1120px, 250px); … … 934 996 transform: translate(-1120px, 250px); 935 997 } 936 div.lfh-min div.lfh-element.lfh-hidden.step5:not(.lfh-list) { 998 div.lfh-min div.lfh-element.lfh-hidden.step5:not(.lfh-list), 999 div.undermap div.lfh-element.lfh-hidden.step5:not(.lfh-list) { 937 1000 -ms-transform: translate(-1400px, 250px); 938 1001 -webkit-transform: translate(-1400px, 250px); … … 941 1004 transform: translate(-1400px, 250px); 942 1005 } 943 div.lfh-min div.lfh-element.lfh-hidden.step6:not(.lfh-list) { 1006 div.lfh-min div.lfh-element.lfh-hidden.step6:not(.lfh-list), 1007 div.undermap div.lfh-element.lfh-hidden.step6:not(.lfh-list) { 944 1008 -ms-transform: translate(-1680px, 250px); 945 1009 -webkit-transform: translate(-1680px, 250px); … … 948 1012 transform: translate(-1680px, 250px); 949 1013 } 950 div.lfh-min div.lfh-element.lfh-hidden.step7:not(.lfh-list) { 1014 div.lfh-min div.lfh-element.lfh-hidden.step7:not(.lfh-list), 1015 div.undermap div.lfh-element.lfh-hidden.step7:not(.lfh-list) { 951 1016 -ms-transform: translate(-1960px, 250px); 952 1017 -webkit-transform: translate(-1960px, 250px); … … 955 1020 transform: translate(-1960px, 250px); 956 1021 } 957 div.lfh-min div.lfh-element.lfh-hidden.step8:not(.lfh-list) { 1022 div.lfh-min div.lfh-element.lfh-hidden.step8:not(.lfh-list), 1023 div.undermap div.lfh-element.lfh-hidden.step8:not(.lfh-list) { 958 1024 -ms-transform: translate(-2240px, 250px); 959 1025 -webkit-transform: translate(-2240px, 250px); … … 962 1028 transform: translate(-2240px, 250px); 963 1029 } 964 div.lfh-min div.lfh-element.lfh-hidden.step9:not(.lfh-list) { 1030 div.lfh-min div.lfh-element.lfh-hidden.step9:not(.lfh-list), 1031 div.undermap div.lfh-element.lfh-hidden.step9:not(.lfh-list) { 965 1032 -ms-transform: translate(-2520px, 250px); 966 1033 -webkit-transform: translate(-2520px, 250px); … … 969 1036 transform: translate(-2520px, 250px); 970 1037 } 971 div.lfh-min div.lfh-element.lfh-hidden.step10:not(.lfh-list) { 1038 div.lfh-min div.lfh-element.lfh-hidden.step10:not(.lfh-list), 1039 div.undermap div.lfh-element.lfh-hidden.step10:not(.lfh-list) { 972 1040 -ms-transform: translate(-2800px, 250px); 973 1041 -webkit-transform: translate(-2800px, 250px); … … 976 1044 transform: translate(-2800px, 250px); 977 1045 } 978 div.lfh-min div.lfh-section { 1046 div.lfh-min div.lfh-section, 1047 div.undermap div.lfh-section { 979 1048 float: left; 980 1049 display: inline-block; … … 986 1055 height: auto; 987 1056 } 988 div.lfh-min .lfh-content > div { 1057 div.lfh-min .lfh-content > div, 1058 div.undermap .lfh-content > div { 989 1059 max-width: 280px; 990 1060 width: 280px; … … 1005 1075 margin: 0; 1006 1076 } 1007 div.lfh-min .lfh-element svg { 1077 div.lfh-min .lfh-element svg, 1078 div.undermap .lfh-element svg { 1008 1079 margin-top: 0; 1009 1080 min-height: 160px; … … 1013 1084 } 1014 1085 div.lfh-min div.lfh-file, 1015 div.lfh-min div.lfh-position { 1086 div.lfh-min div.lfh-position, 1087 div.undermap div.lfh-file, 1088 div.undermap div.lfh-position { 1016 1089 display: none; 1017 1090 } 1018 div.lfh-min .lfh-section .lfh-header h4 { 1091 div.lfh-min .lfh-section .lfh-header h4, 1092 div.undermap .lfh-section .lfh-header h4 { 1019 1093 display: none; 1020 1094 } 1021 div.lfh-min div.lfh-data-content .lfh-section .lfh-header h4 { 1095 div.lfh-min div.lfh-data-content .lfh-section .lfh-header h4, 1096 div.undermap div.lfh-data-content .lfh-section .lfh-header h4 { 1022 1097 display: block; 1023 1098 } 1024 1099 div.lfh-min .lfh-section .lfh-header h4::before, 1025 div.lfh-min .lfh-section.lfh-hidden .lfh-header h4::before { 1100 div.lfh-min .lfh-section.lfh-hidden .lfh-header h4::before, 1101 div.undermap .lfh-section .lfh-header h4::before, 1102 div.undermap .lfh-section.lfh-hidden .lfh-header h4::before { 1026 1103 content: none; 1027 1104 } 1028 1105 div.lfh-min div.lfh-content, 1029 1106 div.lfh-min div.lfh-content svg, 1030 div.lfh-min div.lfh-content ~ div { 1107 div.lfh-min div.lfh-content ~ div, 1108 div.undermap div.lfh-content, 1109 div.undermap div.lfh-content svg, 1110 div.undermap div.lfh-content ~ div { 1031 1111 display: inline-block; 1032 1112 } 1033 div.lfh-min div.lfh-content ~ div { 1113 div.lfh-min div.lfh-content ~ div, 1114 div.undermap div.lfh-content ~ div { 1034 1115 max-width: 280px; 1035 1116 } 1036 div.lfh-min div.lfh-content > div { 1117 div.lfh-min div.lfh-content > div, 1118 div.undermap div.lfh-content > div { 1037 1119 width: 280px; 1038 /* height: @height - @height_title - 2*@padding_title;*/1120 /* height: @height - @height_title - 2*@padding_title;*/ 1039 1121 max-width: 280px; 1040 1122 max-height: 167px; 1041 1123 } 1042 div.lfh-min div.lfh-content div.wp-caption { 1124 div.lfh-min div.lfh-content div.wp-caption, 1125 div.undermap div.lfh-content div.wp-caption { 1043 1126 max-width: 280px; 1044 1127 max-height: 167px; 1045 1128 } 1046 div.lfh-min div.lfh-content img { 1129 div.lfh-min div.lfh-content img, 1130 div.undermap div.lfh-content img { 1047 1131 max-width: 270px; 1048 1132 max-height: 167px; 1049 1133 } 1050 div.lfh-min .lfh-element-content { 1134 div.lfh-min .lfh-element-content, 1135 div.undermap .lfh-element-content { 1051 1136 float: left; 1052 1137 height: 167px; … … 1058 1143 } 1059 1144 div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-next, 1060 div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-back { 1145 div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-back, 1146 div.undermap .lfh-element:hover ~ div.lfh-nav div.lfh-next, 1147 div.undermap .lfh-element:hover ~ div.lfh-nav div.lfh-back { 1061 1148 opacity: 0.7; 1062 1149 /* border-radius: 50% 50%; … … 1100 1187 pointer-events: auto; 1101 1188 } 1102 div.lfh-min span.lfh-close { 1189 div.lfh-min span.lfh-close, 1190 div.undermap span.lfh-close { 1103 1191 margin-right: 0px; 1104 1192 } … … 1106 1194 cursor: pointer; 1107 1195 } 1108 div.lfh-min div.lfh-data span.lfh-close { 1196 div.lfh-min div.lfh-data span.lfh-close, 1197 div.undermap div.lfh-data span.lfh-close { 1109 1198 margin-left: 5px; 1110 1199 display: none; 1111 1200 } 1112 div.lfh-min div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back { 1201 div.lfh-min div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back, 1202 div.undermap div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back { 1113 1203 display: inline; 1114 1204 } 1115 1205 div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav span.lfh-close, 1116 1206 div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back, 1117 div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next { 1207 div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next, 1208 div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav span.lfh-close, 1209 div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back, 1210 div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next { 1118 1211 display: inline; 1119 1212 } 1120 div.lfh-min div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back { 1213 div.lfh-min div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back, 1214 div.undermap div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back { 1121 1215 display: none; 1122 1216 } -
lf-hiker/trunk/css/lfh-style.less
r1880263 r1913591 187 187 margin: 5px; 188 188 } 189 div.lfh-min div.lfh-no-data{ 189 div.lfh-min div.lfh-no-data, 190 div.undermap div.lfh-no-data{ 190 191 display:block; 191 192 margin-top:2px; … … 230 231 } 231 232 232 #lfh-fade.lfh-min div.lfh-map{ 233 #lfh-fade.lfh-min div.lfh-map, 234 #lfh-fade.undermap div.lfh-map{ 233 235 position:absolute; 234 236 width:100%; … … 387 389 clear:both; 388 390 } 389 div.lfh-container.lfh-min div.lfh-data{ 391 div.lfh-container.lfh-min div.lfh-data, 392 div.lfh-container.undermap div.lfh-data{ 390 393 391 394 position: relative; 392 395 height:@height; 393 396 } 394 #lfh-fade.lfh-min div.lfh-data{ 397 #lfh-fade.lfh-min div.lfh-data, 398 #lfh-fade.undermap div.lfh-data{ 395 399 position:absolute; 396 400 top:auto; … … 399 403 background-color:white; 400 404 } 401 div.lfh-min div.lfh-content{ 405 div.lfh-min div.lfh-content, 406 div.undermap div.lfh-content{ 402 407 margin:0; 403 408 } 404 div.lfh-min div.lfh-control-list{ 409 div.lfh-min div.lfh-control-list, 410 div.undermap div.lfh-control-list{ 405 411 display:none; 406 412 } … … 413 419 margin-top:3px; 414 420 } 415 div.lfh-min div.lfh-data-content{ 421 div.lfh-min div.lfh-data-content, 422 div.undermap div.lfh-data-content{ 416 423 margin: 35px 5px; 417 424 display:block; … … 419 426 vertical-align:middle; 420 427 } 421 div.lfh-min div.lfh-data-content div.lfh-section{ 428 div.lfh-min div.lfh-data-content div.lfh-section, 429 div.undermap div.lfh-data-content div.lfh-section{ 422 430 423 431 display:block; … … 427 435 } 428 436 429 div.lfh-min div.lfh-data-content div.lfh-section div.lfh-content{ 437 div.lfh-min div.lfh-data-content div.lfh-section div.lfh-content, 438 div.undermap div.lfh-data-content div.lfh-section div.lfh-content{ 430 439 margin:auto; 431 440 } 432 441 div.lfh-container.lfh-min, 433 #fade div.lfh-container.lfh-min{ 442 #fade div.lfh-container.lfh-min, 443 div.lfh-container.undermap, 444 #fade div.lfh-container.undermap{ 434 445 height:auto; 435 446 } 436 447 #lfh-fade.lfh-min div.lfh-nav, 437 div.lfh-min div.lfh-nav{ 448 div.lfh-min div.lfh-nav, 449 #lfh-fade.undermap div.lfh-nav, 450 div.undermap div.lfh-nav{ 438 451 display: block; 439 452 } 440 div.lfh-container.lfh-min{ 453 div.lfh-container.lfh-min, 454 div.lfh-container.undermap{ 441 455 border: 2px solid #9e9e9e; 442 456 } … … 446 460 display:none; 447 461 } 448 div.lfh-min div.lfh-head{ 462 div.lfh-min div.lfh-head, 463 div.undermap div.lfh-head{ 449 464 display:none; 450 465 } 451 466 div.lfh-min div.lfh-nav div.lfh-back, 452 div.lfh-min div.lfh-nav div.lfh-next{ 467 div.lfh-min div.lfh-nav div.lfh-next, 468 div.undermap div.lfh-nav div.lfh-back, 469 div.undermap div.lfh-nav div.lfh-next{ 453 470 position:absolute; 454 471 display:none; … … 467 484 468 485 } 469 div.lfh-min div.lfh-nav div.lfh-back{ 486 div.lfh-min div.lfh-nav div.lfh-back, 487 div.undermap div.lfh-nav div.lfh-back{ 470 488 left:-1px; 471 489 } 472 div.lfh-min div.lfh-nav div.lfh-next{ 490 div.lfh-min div.lfh-nav div.lfh-next, 491 div.undermap div.lfh-nav div.lfh-next{ 473 492 right:0px; 474 493 } … … 478 497 } 479 498 div.lfh-min div.lfh-nav div.lfh-back:hover, 480 div.lfh-min div.lfh-nav div.lfh-next:hover{ 499 div.lfh-min div.lfh-nav div.lfh-next:hover, 500 div.undermap div.lfh-nav div.lfh-back:hover, 501 div.undermap div.lfh-nav div.lfh-next:hover{ 481 502 opacity:0.9; 482 503 background-color:rgba(255,255,255,0.9); … … 503 524 } 504 525 div.lfh-min a.lfh-gpx-file, 505 #lfh-fade.lfh-min a.lfh-gpx-file{ 526 #lfh-fade.lfh-min a.lfh-gpx-file, 527 div.undermap a.lfh-gpx-file, 528 #lfh-fade.undermap a.lfh-gpx-file{ 506 529 color:inherit; 507 530 pointer-events: auto; … … 513 536 } 514 537 515 div.lfh-min a.lfh-gpx-file{ 538 div.lfh-min a.lfh-gpx-file, 539 div.undermap a.lfh-gpx-file{ 516 540 pointer-events: auto; 517 541 cursor: pointer; … … 520 544 } 521 545 522 div.lfh-min div.lfh-contributor{ 546 div.lfh-min div.lfh-contributor, 547 div.undermap div.lfh-contributor{ 523 548 position:absolute; 524 549 bottom:0; … … 527 552 pointer-events:auto; 528 553 } 529 div.lfh-min div.lfh-contributor a{ 554 div.lfh-min div.lfh-contributor a, 555 div.undermap div.lfh-contributor a{ 530 556 text-decoration:none; 531 557 } … … 534 560 @height_title:27px; 535 561 @padding_title:3px; 536 div.lfh-min div.lfh-nav div.lfh-title{ 562 div.lfh-min div.lfh-nav div.lfh-title, 563 div.undermap div.lfh-nav div.lfh-title{ 537 564 font-size:1rem; 538 565 font-weight:600; … … 547 574 } 548 575 549 #lfh-fade.lfh-min div.lfh-nav div.lfh-title{ 576 #lfh-fade.lfh-min div.lfh-nav div.lfh-title, 577 #lfh-fade.undermap div.lfh-nav div.lfh-title{ 550 578 text-align:left; 551 579 } 552 580 553 div.lfh-min div.lfh-element{ 554 position:absolute; 581 div.lfh-min div.lfh-element, 582 div.undermap div.lfh-element{ 583 position:absolute; 555 584 top: @height_title + 6px; 556 585 left:0; … … 562 591 } 563 592 564 div.lfh-min div.lfh-element.lfh-small-content{ 593 div.lfh-min div.lfh-element.lfh-small-content, 594 div.undermap div.lfh-element.lfh-small-content{ 565 595 width:100%; 566 596 } 567 597 568 div.lfh-min div.lfh-element.lfh-small-content div.lfh-element-content{ 598 div.lfh-min div.lfh-element.lfh-small-content div.lfh-element-content, 599 div.undermap div.lfh-element.lfh-small-content div.lfh-element-content{ 569 600 text-align:center; 570 601 } 571 div.lfh-min div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content{ 602 div.lfh-min div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content, 603 div.undermap div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content{ 572 604 text-align:left; 573 605 } 574 div.lfh-min div.lfh-element.lfh-small-content div.lfh-section{ 606 div.lfh-min div.lfh-element.lfh-small-content div.lfh-section, 607 div.undermap div.lfh-element.lfh-small-content div.lfh-section{ 575 608 float:none; 576 609 margin:auto; 577 610 } 578 div.lfh-min div.lfh-element.lfh-hidden{ 611 div.lfh-min div.lfh-element.lfh-hidden, 612 div.undermap div.lfh-element.lfh-hidden{ 579 613 -ms-transform: translateY(300px); 580 614 -webkit-transform: translateY(300px); … … 584 618 585 619 } 586 div.lfh-min div.lfh-list.lfh-element.lfh-hidden{ 620 div.lfh-min div.lfh-list.lfh-element.lfh-hidden, 621 div.undermap div.lfh-list.lfh-element.lfh-hidden{ 587 622 opacity:1; 588 623 max-height:@height - @height_title - 2* @padding_title; … … 595 630 background: transparent; 596 631 } 597 div.lfh-min div.lfh-list.lfh-element.lfh-hidden div.lfh-description{ 632 div.lfh-min div.lfh-list.lfh-element.lfh-hidden div.lfh-description, 633 div.undermap div.lfh-list.lfh-element.lfh-hidden div.lfh-description{ 598 634 margin-top:40px; 599 635 } 600 636 .loopingClass (@i) when (@i < 11) { 601 637 div.lfh-min div.lfh-element.step@{i}, 602 div.lfh-min div.lfh-list.lfh-hidden.step@{i} { 638 div.lfh-min div.lfh-list.lfh-hidden.step@{i}, 639 div.undermap div.lfh-element.step@{i}, 640 div.undermap div.lfh-list.lfh-hidden.step@{i} { 603 641 -ms-transform: translateX(-(@i * @width)); 604 642 -webkit-transform: translateX(-(@i * @width)); … … 612 650 613 651 div.lfh-min div.lfh-element.lfh-hidden:not(.lfh-list), 614 div.lfh-min div.lfh-element.lfh-hidden.step0:not(.lfh-list){ 652 div.lfh-min div.lfh-element.lfh-hidden.step0:not(.lfh-list), 653 div.undermap div.lfh-element.lfh-hidden:not(.lfh-list), 654 div.undermap div.lfh-element.lfh-hidden.step0:not(.lfh-list){ 615 655 -ms-transform: translateY( @height + 50px); 616 656 -webkit-transform: translateY( @height + 50px ); … … 620 660 } 621 661 .loopHidden (@k) when (@k < 11) { 622 div.lfh-min div.lfh-element.lfh-hidden.step@{k}:not(.lfh-list) { 662 div.lfh-min div.lfh-element.lfh-hidden.step@{k}:not(.lfh-list), 663 div.undermap div.lfh-element.lfh-hidden.step@{k}:not(.lfh-list) { 623 664 -ms-transform: translate(-(@k * @width), @height + 50); 624 665 -webkit-transform: translate(-(@k * @width),@height + 50); … … 632 673 633 674 634 div.lfh-min div.lfh-section{ 675 div.lfh-min div.lfh-section, 676 div.undermap div.lfh-section{ 635 677 float:left; 636 678 display:inline-block; … … 643 685 height:auto; 644 686 } 645 div.lfh-min .lfh-content > div 687 div.lfh-min .lfh-content > div, 688 div.undermap .lfh-content > div 646 689 { 647 690 max-width:@width; … … 663 706 margin:0; 664 707 } 665 div.lfh-min .lfh-element svg{ 708 div.lfh-min .lfh-element svg, 709 div.undermap .lfh-element svg{ 666 710 margin-top:0; 667 711 min-height:@height - @height_title - 13px; … … 671 715 } 672 716 div.lfh-min div.lfh-file, 673 div.lfh-min div.lfh-position{ 717 div.lfh-min div.lfh-position, 718 div.undermap div.lfh-file, 719 div.undermap div.lfh-position{ 674 720 display:none; 675 721 } 676 722 677 div.lfh-min .lfh-section .lfh-header h4{ 723 div.lfh-min .lfh-section .lfh-header h4, 724 div.undermap .lfh-section .lfh-header h4{ 678 725 display:none; 679 726 } 680 div.lfh-min div.lfh-data-content .lfh-section .lfh-header h4{ 727 div.lfh-min div.lfh-data-content .lfh-section .lfh-header h4, 728 div.undermap div.lfh-data-content .lfh-section .lfh-header h4{ 681 729 display: block; 682 730 } 683 731 div.lfh-min .lfh-section .lfh-header h4::before, 684 div.lfh-min .lfh-section.lfh-hidden .lfh-header h4::before 732 div.lfh-min .lfh-section.lfh-hidden .lfh-header h4::before, 733 div.undermap .lfh-section .lfh-header h4::before, 734 div.undermap .lfh-section.lfh-hidden .lfh-header h4::before 685 735 { 686 736 content:none; … … 690 740 div.lfh-min div.lfh-content, 691 741 div.lfh-min div.lfh-content svg, 692 div.lfh-min div.lfh-content ~ div{ 742 div.lfh-min div.lfh-content ~ div, 743 div.undermap div.lfh-content, 744 div.undermap div.lfh-content svg, 745 div.undermap div.lfh-content ~ div{ 693 746 display:inline-block; 694 747 } 695 748 696 div.lfh-min div.lfh-content ~ div{ 749 div.lfh-min div.lfh-content ~ div, 750 div.undermap div.lfh-content ~ div{ 697 751 max-width:@width; 698 752 699 753 } 700 div.lfh-min div.lfh-content > div{ 754 div.lfh-min div.lfh-content > div, 755 div.undermap div.lfh-content > div{ 701 756 width: @width; 702 /*height: @height - @height_title - 2*@padding_title;*/757 /* height: @height - @height_title - 2*@padding_title;*/ 703 758 max-width: @width; 704 759 max-height: @height - @height_title - 2*@padding_title; 705 760 } 706 div.lfh-min div.lfh-content div.wp-caption{ 761 div.lfh-min div.lfh-content div.wp-caption, 762 div.undermap div.lfh-content div.wp-caption{ 707 763 max-width: @width; 708 764 max-height: @height - @height_title - 2*@padding_title; 709 765 710 766 } 711 div.lfh-min div.lfh-content img{ 767 div.lfh-min div.lfh-content img, 768 div.undermap div.lfh-content img{ 712 769 max-width: @width - 10px; 713 770 max-height: @height - @height_title - 2*@padding_title; 714 771 } 715 772 716 div.lfh-min .lfh-element-content{ 773 div.lfh-min .lfh-element-content, 774 div.undermap .lfh-element-content{ 717 775 float:left; 718 776 height:@height - @height_title - 2*@padding_title; … … 724 782 } 725 783 div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-next, 726 div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-back{ 784 div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-back, 785 div.undermap .lfh-element:hover ~ div.lfh-nav div.lfh-next, 786 div.undermap .lfh-element:hover ~ div.lfh-nav div.lfh-back{ 727 787 opacity:0.7; 728 788 /* border-radius: 50% 50%; … … 768 828 pointer-events:auto; 769 829 } 770 div.lfh-min span.lfh-close{ 830 div.lfh-min span.lfh-close, 831 div.undermap span.lfh-close{ 771 832 margin-right:0px; 772 833 } … … 775 836 } 776 837 777 div.lfh-min div.lfh-data span.lfh-close{ 838 div.lfh-min div.lfh-data span.lfh-close, 839 div.undermap div.lfh-data span.lfh-close{ 778 840 margin-left:5px; 779 841 display:none; 780 842 } 781 843 782 div.lfh-min div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back{ 844 div.lfh-min div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back, 845 div.undermap div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back{ 783 846 display:inline; 784 847 } 785 848 div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav span.lfh-close, 786 849 div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back, 787 div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next{ 850 div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next, 851 div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav span.lfh-close, 852 div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back, 853 div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next{ 788 854 display:inline; 789 855 } 790 856 791 div.lfh-min div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back{ 857 div.lfh-min div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back, 858 div.undermap div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back{ 792 859 display:none; 793 860 } -
lf-hiker/trunk/gulpfile.js
r1886332 r1913591 2 2 //there are in files readme others version numbers: for releases, tested browsers, and the most important wordpress 3 3 4 var old_version = '1. 9.0';5 var version = '1.1 0.0';4 var old_version = '1.10.0'; 5 var version = '1.11.0'; 6 6 var gulp = require('gulp'); 7 7 var less = require('gulp-less'); -
lf-hiker/trunk/js/helper.js
r1830724 r1913591 113 113 return lfh.current_marker; 114 114 }, 115 115 add_marker_from_form: function(){ 116 var lat = document.querySelector('#window-add-marker input[name="lfh-lat"]').value; 117 var lng = document.querySelector('#window-add-marker input[name="lfh-lng"]').value; 118 var latlng = {lat: lat, lng: lng} 119 lfh.add_marker({latlng: latlng}); 120 }, 116 121 delete_marker: function(marker){ 117 122 var answer = confirm( lfh.confirm); … … 151 156 //show move_marker 152 157 lfh.move_marker.setOpacity(1); 158 //show manual marker 159 document.querySelector('#window-add-marker').style.display = 'block'; 153 160 }else{ 154 161 //hide move_marker … … 212 219 document.querySelector('#lfh-edit-map').dispatchEvent(evt); 213 220 break; 221 case 'window-add-marker': 222 document.querySelector('#' + id).style.display = 'none'; 223 break; 214 224 } 215 225 … … 246 256 shortcode += ' class="' + document.querySelector('input[name="lfh-form-map-class"]').value.replaceAll('-','\\-') +'"'; 247 257 } 248 ['autocenter', 'fullscreen', 'reset', 'list', 'mousewheel', 'open' ].forEach(function(key){258 ['autocenter', 'fullscreen', 'reset', 'list', 'mousewheel', 'open', 'undermap'].forEach(function(key){ 249 259 shortcode += ' '+ key + '=' + document.querySelector('input[name="lfh-form-map-' + key + '"]').checked; 250 260 }); … … 374 384 }); 375 385 }); 386 // - for add manual marker 387 // ------------------------ 388 var node = document.querySelector('#window-add-marker input[name="placeMarker"]'); 389 L.DomEvent.addListener(node, 'click', function(e){lfh.add_marker_from_form();}) 376 390 // - for edit map 377 391 //----------------- -
lf-hiker/trunk/js/leaflet-gpx.js
r1873579 r1913591 429 429 430 430 if (last != null) { 431 var dist = this._dist3d(last, ll); 432 console.log(dist); 431 433 this._info.length += this._dist3d(last, ll); 432 434 -
lf-hiker/trunk/js/lfh-plugin.js
r1886332 r1913591 408 408 var node = document.querySelector('#'+ container.id + '-data'); 409 409 var height = node.offsetHeight ; 410 if(container.parentNode.parentNode.className.indexOf('lfh-min')<0){ 410 if(container.parentNode.parentNode.className.indexOf('lfh-min')<0 411 && container.parentNode.parentNode.className.indexOf('undermap')<0){ 411 412 height -= 70; 412 413 }else{ … … 783 784 _markers[i].addTo(map); 784 785 } 785 _latlngbounds.push([info.lat, info.lng]); 786 786 if (_auto_center) { 787 _latlngbounds.push([info.lat, info.lng]); 788 } 787 789 var link = new lfh.Link( map, _markers[i], marker_id, _selected_element, null); 788 790 return link; … … 863 865 map.setZoom( _zoom ); 864 866 } 865 if(buttonreset ){867 if(buttonreset && _auto_center){ 866 868 map.addControl(new lfh.ResetControl(_center, _zoom)); 867 869 } 868 870 lfh.resize_content(map.getContainer()); 869 _auto_center = true;871 // _auto_center = true; 870 872 871 873 //wait all is loaded … … 1293 1295 // No data elevation : remove svg 1294 1296 _track.querySelector('svg').parentNode.removeChild( _track.querySelector('svg')); 1295 var _duration = _gpx.get_total_time();1296 if( _duration )1297 {1298 _track.querySelector('.lfh-gpx-duration').textContent = _gpx.get_duration_string(_duration);1299 }1297 } 1298 var _duration = _gpx.get_total_time(); 1299 if( _duration ) 1300 { 1301 _track.querySelector('.lfh-gpx-duration').textContent = _gpx.get_duration_string(_duration); 1300 1302 } 1301 1303 _track.querySelector('.lfh-gpx-name').textContent = _gpx.get_name(); -
lf-hiker/trunk/languages/lfh-default.po
r1886332 r1913591 2 2 msgstr "" 3 3 "Project-Id-Version: lfh\n" 4 "POT-Creation-Date: 2018-0 6-03 00:33+0100\n"5 "PO-Revision-Date: 2018-0 6-03 00:34+0100\n"4 "POT-Creation-Date: 2018-07-22 18:49+0100\n" 5 "PO-Revision-Date: 2018-07-22 18:50+0100\n" 6 6 "Last-Translator: Elisabeth Pointal <elisabeth.pointal@free.fr>\n" 7 7 "Language-Team: elisabeth\n" … … 79 79 80 80 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:170 81 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:2 081 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:21 82 82 msgid "list" 83 83 msgstr "list" … … 95 95 msgstr "Open profile automaticaly" 96 96 97 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:237 97 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:198 98 msgid "Display information under map" 99 msgstr "Display information under map" 100 101 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:244 98 102 msgid "no named gpx" 99 103 msgstr "no named gpx" 100 104 101 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:3 16105 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:323 102 106 msgid "no named marker" 103 107 msgstr "no named marker" … … 143 147 msgstr "Selected path color" 144 148 145 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:74 149 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:67 150 msgid "Display information window always under the map" 151 msgstr "Display information window always under the map" 152 153 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:69 154 #, fuzzy 155 msgid "" 156 "You can change it for only on map in its shortcode by using property " 157 "<code>undermap</code>" 158 msgstr "" 159 "You can change it for one gpx in shortcode by using property <code>button</" 160 "code>" 161 162 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:80 146 163 msgid "Display button download gpx" 147 164 msgstr "Display button download gpx" 148 165 149 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php: 76166 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:82 150 167 msgid "" 151 168 "You can change it for one gpx in shortcode by using property <code>button</" … … 155 172 "code>" 156 173 157 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:8 1174 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:87 158 175 msgid "Open profile window automatically" 159 176 msgstr "Open profile window automatically" 160 177 161 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:8 3162 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:10 2163 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:11 1178 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:89 179 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:108 180 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:117 164 181 msgid "You can change it for one map in shortcode by using property" 165 182 msgstr "You can change it for one map in shortcode by using property" 166 183 167 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php: 89184 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:95 168 185 msgid "Number of gpx to display a checkbox show/hide" 169 186 msgstr "Number of gpx to display a checkbox show/hide" 170 187 171 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:10 0188 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:106 172 189 msgid "Display button fullscreen" 173 190 msgstr "Display button fullscreen" 174 191 175 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 08192 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:114 176 193 msgid "Default map tiles" 177 194 msgstr "Default map tiles" 178 195 179 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 16196 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:122 180 197 msgid "Default distance unit" 181 198 msgstr "Default distance unit" 182 199 183 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 24200 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:130 184 201 msgid "Default height unit" 185 202 msgstr "Default height unit" 186 203 187 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:13 2204 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:138 188 205 msgid "Minimum step on elevation axis in meters ( four steps in general)" 189 206 msgstr "Minimum step on elevation axis in meters ( four steps in general)" 190 207 191 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 38208 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:144 192 209 msgid "You can change it for one gpx in shortcode by using property" 193 210 msgstr "You can change it for one gpx in shortcode by using property" 194 211 195 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 65212 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:171 196 213 msgid "Use cdn host for leaflet" 197 214 msgstr "Use cdn host for leaflet" 198 215 199 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 67216 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:173 200 217 msgid "If unchecked, use local leaflet version" 201 218 msgstr "If unckecked, use local leaflet version" 202 219 203 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:21 0220 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:216 204 221 msgid "Failed to create a new cache" 205 222 msgstr "Failed to create a new cache" 206 223 207 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:2 57224 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:270 208 225 msgid "data updated" 209 226 msgstr "data updated" 210 227 211 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:2 77228 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:290 212 229 msgid "data reseted" 213 230 msgstr "data reseted" … … 223 240 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Tools/Editor.php:128 224 241 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:42 242 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:67 243 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:83 225 244 msgid "Add marker" 226 245 msgstr "Add marker" … … 368 387 369 388 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/about-page.phtml:54 370 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 72389 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:95 371 390 msgid "title" 372 391 msgstr "title" 373 392 374 393 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/about-page.phtml:55 375 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 80394 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:103 376 395 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:37 377 396 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/track.phtml:117 … … 415 434 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:19 416 435 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:31 417 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:5 7436 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:58 418 437 msgid "Insert shortcodes" 419 438 msgstr "Insert shortcodes" … … 428 447 429 448 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:30 430 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:5 6449 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:57 431 450 msgid "Cancel" 432 451 msgstr "Cancel" … … 438 457 439 458 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:45 440 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 67459 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:90 441 460 msgid "Edit marker" 442 461 msgstr "Edit marker" 443 462 444 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:76 463 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:70 464 msgid "Click on the map or enter coordinates to add marker" 465 msgstr "Click on the map or enter coordinates to add marker" 466 467 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:73 468 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:24 469 msgid "latitude" 470 msgstr "latitude" 471 472 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:75 473 msgid "Must be a number between -90 and 90" 474 msgstr "Must be a number between -90 and 90" 475 476 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:78 477 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:28 478 msgid "longitude" 479 msgstr "longitude" 480 481 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:80 482 msgid "Must be a number between -180 and 180" 483 msgstr "Must be a number between -180 and 180" 484 485 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:99 445 486 msgid "Popup" 446 487 msgstr "Popup" 447 488 448 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 84489 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:107 449 490 msgid "Visibility" 450 491 msgstr "Visibility" 451 492 452 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 86493 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:109 453 494 msgid "Always" 454 495 msgstr "Always" 455 496 456 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 87497 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:110 457 498 msgid "According to zoom" 458 499 msgstr "According to zoom" 459 500 460 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 91501 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:114 461 502 msgid "Icon color" 462 503 msgstr "Icon color" 463 504 464 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:1 09505 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:132 465 506 msgid "Inside icon" 466 507 msgstr "Inside icon" … … 470 511 msgstr "Pan and zoom until find the position, and when ready save the position" 471 512 472 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml: 39513 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:40 473 514 msgid "information" 474 515 msgstr "information" 475 516 476 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:4 8517 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:49 477 518 msgid "" 478 519 "Click following button or element on the map to see information about it." 479 520 msgstr "" 480 521 "Click following button or element on the map to see information about it." 481 482 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:24483 msgid "latitude"484 msgstr "latitude"485 486 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:28487 msgid "longitude"488 msgstr "longitude"489 522 490 523 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/track.phtml:32 … … 531 564 msgstr "duration" 532 565 566 #, fuzzy 567 #~ msgid "Latitude" 568 #~ msgstr "latitude" 569 570 #, fuzzy 571 #~ msgid "Longitude" 572 #~ msgstr "longitude" 573 533 574 #~ msgid "" 534 575 #~ "You can add tiles layers which need key here, or choose unit for distance" -
lf-hiker/trunk/languages/lfh-fr_FR.po
r1886332 r1913591 2 2 msgstr "" 3 3 "Project-Id-Version: lfh\n" 4 "POT-Creation-Date: 2018-0 6-03 00:34+0100\n"5 "PO-Revision-Date: 2018-0 6-03 00:35+0100\n"4 "POT-Creation-Date: 2018-07-22 18:51+0100\n" 5 "PO-Revision-Date: 2018-07-22 18:53+0100\n" 6 6 "Last-Translator: Elisabeth Pointal <elisabeth.pointal@free.fr>\n" 7 7 "Language-Team: elisabeth\n" … … 41 41 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Tools/Editor.php:128 42 42 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:42 43 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:67 44 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:83 43 45 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:42 46 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:67 47 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:83 44 48 msgid "Add marker" 45 49 msgstr "Ajouter un marqueur" … … 178 182 179 183 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:170 180 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:2 0181 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/map.phtml:2 0184 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:21 185 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/map.phtml:21 182 186 msgid "list" 183 187 msgstr "liste" … … 195 199 msgstr "Ouvrir le profile automatiquemement" 196 200 197 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:237 201 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:198 202 msgid "Display information under map" 203 msgstr "Afficher les informations sous la carte" 204 205 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:244 198 206 msgid "no named gpx" 199 207 msgstr "gpx sans nom" 200 208 201 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:3 16209 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:323 202 210 msgid "no named marker" 203 211 msgstr "marqueur sans nom" … … 243 251 msgstr "Couleur du chemin sélectionné" 244 252 245 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:74 253 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:67 254 msgid "Display information window always under the map" 255 msgstr "Toujours afficher les informations sous la carte" 256 257 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:69 258 #, fuzzy 259 msgid "" 260 "You can change it for only on map in its shortcode by using property " 261 "<code>undermap</code>" 262 msgstr "" 263 "Vous pouvez le modifier pour un fichier gpx dans le shortcode, en utilisant " 264 "la propriété <code>button</code>" 265 266 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:80 246 267 msgid "Display button download gpx" 247 268 msgstr "Afficher le bouton télécharger gpx" 248 269 249 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php: 76270 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:82 250 271 msgid "" 251 272 "You can change it for one gpx in shortcode by using property <code>button</" … … 255 276 "la propriété <code>button</code>" 256 277 257 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:8 1278 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:87 258 279 msgid "Open profile window automatically" 259 280 msgstr "Ouvrir le profile automatiquement" 260 281 261 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:8 3262 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:10 2263 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:11 1282 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:89 283 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:108 284 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:117 264 285 msgid "You can change it for one map in shortcode by using property" 265 286 msgstr "" … … 267 288 "propriété " 268 289 269 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php: 89290 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:95 270 291 msgid "Number of gpx to display a checkbox show/hide" 271 292 msgstr "Nombre de gpx pour afficher une case à cocher montrer/cacher" 272 293 273 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:10 0294 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:106 274 295 msgid "Display button fullscreen" 275 296 msgstr "Afficher le bouton plein écran" 276 297 277 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 08298 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:114 278 299 msgid "Default map tiles" 279 300 msgstr "Fond de carte par défaut" 280 301 281 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 16302 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:122 282 303 msgid "Default distance unit" 283 304 msgstr "Unité de distance (défaut)" 284 305 285 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 24306 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:130 286 307 msgid "Default height unit" 287 308 msgstr "Unité de hauteur (défaut)" 288 309 289 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:13 2310 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:138 290 311 msgid "Minimum step on elevation axis in meters ( four steps in general)" 291 312 msgstr "" … … 293 314 "général)" 294 315 295 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 38316 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:144 296 317 msgid "You can change it for one gpx in shortcode by using property" 297 318 msgstr "" … … 299 320 "propriété " 300 321 301 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 65322 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:171 302 323 msgid "Use cdn host for leaflet" 303 324 msgstr "Utiliser l'hôte cdn pour Leaflet" 304 325 305 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:1 67326 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:173 306 327 msgid "If unchecked, use local leaflet version" 307 328 msgstr "Si décoché, utilise la version locale de leaflet" 308 329 309 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:21 0330 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:216 310 331 msgid "Failed to create a new cache" 311 332 msgstr "Échec lors de la création du cache" 312 333 313 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:2 57334 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:270 314 335 msgid "data updated" 315 336 msgstr "données mises à jour" 316 337 317 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:2 77338 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:290 318 339 msgid "data reseted" 319 340 msgstr "Données initialisées" … … 416 437 417 438 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/about-page.phtml:54 418 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 72439 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:95 419 440 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/about-page.phtml:54 420 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml: 72441 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:95 421 442 msgid "title" 422 443 msgstr "titre" 423 444 424 445 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/about-page.phtml:55 425 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 80446 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:103 426 447 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:37 427 448 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/track.phtml:117 … … 429 450 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/track.phtml:117 430 451 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/about-page.phtml:55 431 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml: 80452 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:103 432 453 msgid "description" 433 454 msgstr "description" … … 482 503 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:19 483 504 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:31 484 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:5 7505 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:58 485 506 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:19 486 507 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:31 487 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:5 7508 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:58 488 509 msgid "Insert shortcodes" 489 510 msgstr "Insérer les shortcodes" … … 500 521 501 522 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:30 502 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:5 6523 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:57 503 524 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:30 504 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:5 6525 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:57 505 526 msgid "Cancel" 506 527 msgstr "Annuler" … … 514 535 515 536 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:45 516 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 67537 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:90 517 538 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:45 518 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml: 67539 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:90 519 540 msgid "Edit marker" 520 541 msgstr "Editer les marqueurs" 521 542 522 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:76 523 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:76 543 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:70 544 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:70 545 msgid "Click on the map or enter coordinates to add marker" 546 msgstr "" 547 "Cliquez sur la carte ou entrez les coordonées pour ajouter un marqueur" 548 549 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:73 550 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:24 551 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/marker.phtml:24 552 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:73 553 msgid "latitude" 554 msgstr "latitude" 555 556 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:75 557 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:75 558 msgid "Must be a number between -90 and 90" 559 msgstr "Doit être un nombre entre -90 et 90" 560 561 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:78 562 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:28 563 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/marker.phtml:28 564 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:78 565 msgid "longitude" 566 msgstr "longitude" 567 568 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:80 569 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:80 570 msgid "Must be a number between -180 and 180" 571 msgstr "Doit être un nombre entre -180 et 180" 572 573 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:99 574 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:99 524 575 msgid "Popup" 525 576 msgstr "Popup" 526 577 527 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 84528 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml: 84578 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:107 579 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:107 529 580 msgid "Visibility" 530 581 msgstr "Visible" 531 582 532 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 86533 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml: 86583 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:109 584 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:109 534 585 msgid "Always" 535 586 msgstr "Toujours" 536 587 537 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 87538 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml: 87588 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:110 589 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:110 539 590 msgid "According to zoom" 540 591 msgstr "Suivant le zoom" 541 592 542 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml: 91543 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml: 91593 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:114 594 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:114 544 595 msgid "Icon color" 545 596 msgstr "Couleur" 546 597 547 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:1 09548 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:1 09598 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:132 599 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:132 549 600 msgid "Inside icon" 550 601 msgstr "Icone" … … 557 608 "sauvegarder" 558 609 559 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml: 39560 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/map.phtml: 39610 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:40 611 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/map.phtml:40 561 612 msgid "information" 562 613 msgstr "information" 563 614 564 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:4 8565 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/map.phtml:4 8615 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:49 616 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/map.phtml:49 566 617 msgid "" 567 618 "Click following button or element on the map to see information about it." … … 569 620 "Cliquez sur le bouton suivant ou l′élément sur la carte " 570 621 "pour voir ses informations" 571 572 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:24573 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/marker.phtml:24574 msgid "latitude"575 msgstr "latitude"576 577 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:28578 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/marker.phtml:28579 msgid "longitude"580 msgstr "longitude"581 622 582 623 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/track.phtml:32 -
lf-hiker/trunk/lf-hiker.php
r1886332 r1913591 6 6 Author: epointal 7 7 Author URI: http://elisabeth.pointal.org/ 8 Version: 1.1 0.08 Version: 1.11.0 9 9 License: GPL2 10 10 Text domain: lfh … … 51 51 class Lf_Hiker_Plugin 52 52 { 53 const VERSION = '1.1 0.0';53 const VERSION = '1.11.0'; 54 54 const LEAFLET_VERSION = '1.3.1'; 55 55 -
lf-hiker/trunk/lib/leaflet-gpx.js
r1873579 r1913591 396 396 var coords = []; 397 397 var last = null; 398 398 var elevfirst = null; 399 var dist = 0; 399 400 for (var i = 0; i < el.length; i++) { 400 401 var _, ll = new L.LatLng( … … 430 431 431 432 if (last != null) { 432 this._info.length += this._dist3d(last, ll); 433 434 var t = ll.meta.ele - last.meta.ele; 435 if (t > 0) this._info.elevation.gain += t; 436 else this._info.elevation.loss += Math.abs(t); 437 433 dist0 = this._dist3d(last, ll); 434 this._info.length += dist0; 435 // @author epointal keep only the elevation diff when distance between 436 // 2 points is more than 100m 437 if (elevfirst === null){ 438 elevfirst = last.meta.ele; 439 } 440 dist += dist0; 441 if (dist > 100 || i === el.length - 1) { 442 t = ll.meta.ele - elevfirst; 443 if (t > 0) this._info.elevation.gain += t; 444 else this._info.elevation.loss += Math.abs(t); 445 dist = 0; 446 elevfirst = ll.meta.ele; 447 } 448 // var t = ll.meta.ele - last.meta.ele; 449 // if (t > 0) this._info.elevation.gain += t; 450 // else this._info.elevation.loss += Math.abs(t); 438 451 t = Math.abs(ll.meta.time - last.meta.time); 439 452 this._info.duration.total += t; … … 442 455 this._info.duration.start = ll.meta.time; 443 456 } 444 445 457 last = ll; 446 458 coords.push(ll); 447 459 } 448 449 460 return coords; 450 461 }, -
lf-hiker/trunk/package.json
r1886332 r1913591 1 1 { 2 2 "name": "lf-hiker", 3 "version": "1.1 0.0",3 "version": "1.11.0", 4 4 "description": "plugin for wordpress for display track with profil elevation", 5 5 "main": "index.js", -
lf-hiker/trunk/readme.txt
r1899491 r1913591 7 7 Tested up to: 4.9 8 8 Stable tag: 1.0 9 Version: 1.1 0.09 Version: 1.11.0 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 26 26 27 27 Display the post/page : you have an interactive view of your track. 28 29 30 #### The trail is displayed on an [OSM map](https://www.openstreetmap.org) by default, and have its own information window with: 28 29 #### The trail is displayed on an OSM map by default, and have its own information window with: 31 30 * title 32 31 * description … … 86 85 * the size of the map 87 86 * classnames for the map ( including your custom class) 88 * zoom on mousewheel89 * start with profile elevation displayed90 87 * to zoom on mousewheel 88 * to start with profile elevation displayed 89 * to display the description always under the map 91 90 92 91 #### for the markers: … … 114 113 * English (en_US) 115 114 * Deutsch (de_DE) by [Kristof Kling](https://lg-buggingen.de/bugginger-feierabendlauf/strecke/) 115 * Greek (gr_GR) by [Pol Gkitsas](http://eoskarditsas.gr) 116 116 117 117 If you need language of **Lf Hiker** which is not included. You can easily translate with poedit from the file : … … 151 151 152 152 == Changelog == 153 = 1.11.0 = 154 * Evolution: Ability to always display the caption under the map 155 * Evolution: Helper - Ability to add marker with its coordinates 156 * Evolution: Add greek translation 157 * Fixed: duration is not displayed 158 * Fixed: choose center and zoom is not working 159 153 160 = 1.10.0 = 154 161 * Fixed: lf hiker is destroying the AMP pages 155 162 * Fixed: bug with tabby-responsive-tabs plugin 156 163 * Evolution: gpx buttons are ordered in list as the gpx files in post/page 157 * Evolution: Ability to choose the leaflet host (local or cdn)164 * Evolution: Ability to choose the leaflet host 158 165 159 166 = 1.9.0 = -
lf-hiker/trunk/views/back/editor/add-marker.phtml
r1697166 r1913591 12 12 <head> 13 13 <?php wp_print_styles();?> 14 </head>14 </head> 15 15 16 <body>17 <div id="fade" class="hidden">16 <body> 17 <div id="fade" class="hidden"> 18 18 <div class="modal lfh-modal"> 19 19 <h3><?=__('Insert shortcodes', 'lfh')?></h3> … … 33 33 </div> 34 34 </div> 35 </div>35 </div> 36 36 <!-- <div id="debug" style="position:absolute;top:20px;left:400px;display:block;z-index:90000;"></div>--> 37 37 <!-- control for marker on map --> … … 52 52 53 53 </div> 54 54 55 <!-- banner buttons bottom right --> 55 56 <div id="banner" > … … 61 62 <?php include 'map-form.phtml';?> 62 63 63 64 <!-- block to choose position --> 65 <div id="window-add-marker" class="lfh-form-edit"> 66 <div class="header" > 67 <h3><?=_e('Add marker', 'lfh')?></h3> 68 <div class="lfhicon lfhicon-close"></div> 69 </div> 70 <div style="padding:5px;"><?=_e('Click on the map or enter coordinates to add marker', 'lfh')?></div> 71 <form> 72 <div> 73 <label for="lfh-lat"><?=ucfirst(__('latitude', 'lfh'))?></label> 74 <input name="lfh-lat" type="text" pattern="-?(90|([1-8]?[1-9](\.{1}\d{0,8})*))" 75 title="<?=_e('Must be a number between -90 and 90')?>" value="0" /> 76 </div> 77 <div> 78 <label for="lfh-lng"><?=ucfirst(__('longitude', 'lfh'))?></label> 79 <input name="lfh-lng" type="text" pattern="-?(180|(1?[0-7]?[0-9](\.{1}\d{0,8})*))" 80 title="<?=_e('Must be a number between -180 and 180')?>" value="0" /> 81 </div> 82 <div style="text-align:right;"> 83 <input type="button" name="placeMarker" value="<?=_e('Add marker', 'lfh')?>"/> 84 </div> 85 </form> 86 </div> 64 87 <!-- window for editing marker --> 65 88 <div id="window-edit-marker" class="lfh-form-edit" style="display:none;"> -
lf-hiker/trunk/views/front/map.phtml
r1880263 r1913591 7 7 if ( ! defined( 'ABSPATH' ) ) exit; 8 8 9 $undermap = ($options['undermap']?' undermap':''); 9 10 ?> 10 11 <!-- -div of map --> 11 <div id="lfh-<?=$map_count?>-skin" class="lfh-container <?=$options['class']?> " style="position:relative;width:<?=$options['width']?>%;">12 <div id="lfh-<?=$map_count?>-skin" class="lfh-container <?=$options['class']?><?=$undermap?>" style="position:relative;width:<?=$options['width']?>%;"> 12 13 <div id="lfh-<?=$map_count?>-fadable" class="lfh-fadable <?php echo ($is_connected>0? ' fakefull':'');?>"> 13 14 <div id="lfh-<?=$map_count?>" class="lfh-map" style="height:<?=($options['height'])?>px;width:100%;">
Note: See TracChangeset
for help on using the changeset viewer.