Plugin Directory

Changeset 1913591


Ignore:
Timestamp:
07/23/2018 02:26:53 PM (8 years ago)
Author:
epointal
Message:

greek translation and others

Location:
lf-hiker/trunk
Files:
9 added
7 deleted
21 edited

Legend:

Unmodified
Added
Removed
  • lf-hiker/trunk/Controller/Front.php

    r1886332 r1913591  
    296296   
    297297        $data = 'div.lfh-min div.lfh-nav div.lfh-title,
     298                 div.undermap div.lfh-nav div.lfh-title,
    298299                 #content .lfh-element h3:first-child,
    299300                 #lfh-fade .lfh-element h3:first-child,
     
    315316                     border-color:'.$css['lfh_color'].';
    316317                 }
    317                  div.lfh-min a.lfh-gpx-file{
     318                 div.lfh-min a.lfh-gpx-file,
     319                 div.undermap a.lfh-gpx-file{
    318320                     background:none;
    319321                     color:inherit;
  • lf-hiker/trunk/Model/Map.php

    r1880263 r1913591  
    193193                 'filter'    => FILTER_VALIDATE_BOOLEAN,
    194194                 '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
    195202             )
    196203        );
  • lf-hiker/trunk/Model/Option.php

    r1886332 r1913591  
    6262                        'regexp'    => "/^#[0-9a-f-A-F]{6}$/",
    6363                        '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            );
    6571            break;
    6672            case 'config_tile':
     
    239245           }
    240246       }
     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       }
    241254   
    242255       $filter = self::get_defaults($tab);
  • lf-hiker/trunk/css/helper.css

    r1703926 r1913591  
    358358  border-radius: 4px;
    359359}
     360#window-add-marker {
     361  top: 125px;
     362  left: 55px;
     363  display: none;
     364}
    360365#window-edit-marker {
    361   top: 5px;
    362   right: 5px;
     366  top: 50px;
     367  left: 60px;
    363368}
    364369#window-edit-map {
    365370  top: 5px;
    366   left: 60px;
     371  right: 60px;
    367372}
    368373.lfh-form-edit .header {
     
    374379}
    375380.lfh-form-edit .header h3 {
    376   margin: ;
     381  margin: 3px;
    377382  display: inline;
    378383  width: 180px;
  • lf-hiker/trunk/css/helper.less

    r1697166 r1913591  
    9797       border-radius: 4px;
    9898    }
     99
     100     #window-add-marker{
     101       top:125px;
     102       left:55px;
     103       display:none;
     104    }
    99105    #window-edit-marker{
    100        top:5px;
    101        right:5px;
     106        top:50px;
     107        left:60px;
    102108    }
    103109    #window-edit-map{
    104110        top:5px;
    105         left:60px;
     111        right:60px;
    106112    }
    107113    .lfh-form-edit .header{
     
    113119    }
    114120    .lfh-form-edit .header h3{
    115         margin:;
     121        margin:3px;
    116122        display:inline;
    117123        width:180px;
  • lf-hiker/trunk/css/lfh-style.css

    r1880263 r1913591  
    437437  margin: 5px;
    438438}
    439 div.lfh-min div.lfh-no-data {
     439div.lfh-min div.lfh-no-data,
     440div.undermap div.lfh-no-data {
    440441  display: block;
    441442  margin-top: 2px;
     
    474475  height: 100%;
    475476}
    476 #lfh-fade.lfh-min div.lfh-map {
     477#lfh-fade.lfh-min div.lfh-map,
     478#lfh-fade.undermap div.lfh-map {
    477479  position: absolute;
    478480  width: 100%;
     
    626628  clear: both;
    627629}
    628 div.lfh-container.lfh-min div.lfh-data {
     630div.lfh-container.lfh-min div.lfh-data,
     631div.lfh-container.undermap div.lfh-data {
    629632  position: relative;
    630633  height: 200px;
    631634}
    632 #lfh-fade.lfh-min div.lfh-data {
     635#lfh-fade.lfh-min div.lfh-data,
     636#lfh-fade.undermap div.lfh-data {
    633637  position: absolute;
    634638  top: auto;
     
    637641  background-color: white;
    638642}
    639 div.lfh-min div.lfh-content {
     643div.lfh-min div.lfh-content,
     644div.undermap div.lfh-content {
    640645  margin: 0;
    641646}
    642 div.lfh-min div.lfh-control-list {
     647div.lfh-min div.lfh-control-list,
     648div.undermap div.lfh-control-list {
    643649  display: none;
    644650}
     
    651657  margin-top: 3px;
    652658}
    653 div.lfh-min div.lfh-data-content {
     659div.lfh-min div.lfh-data-content,
     660div.undermap div.lfh-data-content {
    654661  margin: 35px 5px;
    655662  display: block;
     
    657664  vertical-align: middle;
    658665}
    659 div.lfh-min div.lfh-data-content div.lfh-section {
     666div.lfh-min div.lfh-data-content div.lfh-section,
     667div.undermap div.lfh-data-content div.lfh-section {
    660668  display: block;
    661669  height: 100%;
     
    663671  line-height: 113px;
    664672}
    665 div.lfh-min div.lfh-data-content div.lfh-section div.lfh-content {
     673div.lfh-min div.lfh-data-content div.lfh-section div.lfh-content,
     674div.undermap div.lfh-data-content div.lfh-section div.lfh-content {
    666675  margin: auto;
    667676}
    668677div.lfh-container.lfh-min,
    669 #fade div.lfh-container.lfh-min {
     678#fade div.lfh-container.lfh-min,
     679div.lfh-container.undermap,
     680#fade div.lfh-container.undermap {
    670681  height: auto;
    671682}
    672683#lfh-fade.lfh-min div.lfh-nav,
    673 div.lfh-min div.lfh-nav {
     684div.lfh-min div.lfh-nav,
     685#lfh-fade.undermap div.lfh-nav,
     686div.undermap div.lfh-nav {
    674687  display: block;
    675688}
    676 div.lfh-container.lfh-min {
     689div.lfh-container.lfh-min,
     690div.lfh-container.undermap {
    677691  border: 2px solid #9e9e9e;
    678692}
     
    681695  display: none;
    682696}
    683 div.lfh-min div.lfh-head {
     697div.lfh-min div.lfh-head,
     698div.undermap div.lfh-head {
    684699  display: none;
    685700}
    686701div.lfh-min div.lfh-nav div.lfh-back,
    687 div.lfh-min div.lfh-nav div.lfh-next {
     702div.lfh-min div.lfh-nav div.lfh-next,
     703div.undermap div.lfh-nav div.lfh-back,
     704div.undermap div.lfh-nav div.lfh-next {
    688705  position: absolute;
    689706  display: none;
     
    700717  background-color: rgba(255, 255, 255, 0.6);
    701718}
    702 div.lfh-min div.lfh-nav div.lfh-back {
     719div.lfh-min div.lfh-nav div.lfh-back,
     720div.undermap div.lfh-nav div.lfh-back {
    703721  left: -1px;
    704722}
    705 div.lfh-min div.lfh-nav div.lfh-next {
     723div.lfh-min div.lfh-nav div.lfh-next,
     724div.undermap div.lfh-nav div.lfh-next {
    706725  right: 0px;
    707726}
     
    711730}
    712731div.lfh-min div.lfh-nav div.lfh-back:hover,
    713 div.lfh-min div.lfh-nav div.lfh-next:hover {
     732div.lfh-min div.lfh-nav div.lfh-next:hover,
     733div.undermap div.lfh-nav div.lfh-back:hover,
     734div.undermap div.lfh-nav div.lfh-next:hover {
    714735  opacity: 0.9;
    715736  background-color: rgba(255, 255, 255, 0.9);
     
    735756}
    736757div.lfh-min a.lfh-gpx-file,
    737 #lfh-fade.lfh-min a.lfh-gpx-file {
     758#lfh-fade.lfh-min a.lfh-gpx-file,
     759div.undermap a.lfh-gpx-file,
     760#lfh-fade.undermap a.lfh-gpx-file {
    738761  color: inherit;
    739762  pointer-events: auto;
     
    744767  margin: 0 2px;
    745768}
    746 div.lfh-min a.lfh-gpx-file {
     769div.lfh-min a.lfh-gpx-file,
     770div.undermap a.lfh-gpx-file {
    747771  pointer-events: auto;
    748772  cursor: pointer;
     
    750774  float: right;
    751775}
    752 div.lfh-min div.lfh-contributor {
     776div.lfh-min div.lfh-contributor,
     777div.undermap div.lfh-contributor {
    753778  position: absolute;
    754779  bottom: 0;
     
    757782  pointer-events: auto;
    758783}
    759 div.lfh-min div.lfh-contributor a {
     784div.lfh-min div.lfh-contributor a,
     785div.undermap div.lfh-contributor a {
    760786  text-decoration: none;
    761787}
    762 div.lfh-min div.lfh-nav div.lfh-title {
     788div.lfh-min div.lfh-nav div.lfh-title,
     789div.undermap div.lfh-nav div.lfh-title {
    763790  font-size: 1rem;
    764791  font-weight: 600;
     
    772799  overflow: hidden;
    773800}
    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 {
    775803  text-align: left;
    776804}
    777 div.lfh-min div.lfh-element {
     805div.lfh-min div.lfh-element,
     806div.undermap div.lfh-element {
    778807  position: absolute;
    779808  top: 33px;
     
    784813  max-height: 167px;
    785814}
    786 div.lfh-min div.lfh-element.lfh-small-content {
     815div.lfh-min div.lfh-element.lfh-small-content,
     816div.undermap div.lfh-element.lfh-small-content {
    787817  width: 100%;
    788818}
    789 div.lfh-min div.lfh-element.lfh-small-content div.lfh-element-content {
     819div.lfh-min div.lfh-element.lfh-small-content div.lfh-element-content,
     820div.undermap div.lfh-element.lfh-small-content div.lfh-element-content {
    790821  text-align: center;
    791822}
    792 div.lfh-min div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content {
     823div.lfh-min div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content,
     824div.undermap div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content {
    793825  text-align: left;
    794826}
    795 div.lfh-min div.lfh-element.lfh-small-content div.lfh-section {
     827div.lfh-min div.lfh-element.lfh-small-content div.lfh-section,
     828div.undermap div.lfh-element.lfh-small-content div.lfh-section {
    796829  float: none;
    797830  margin: auto;
    798831}
    799 div.lfh-min div.lfh-element.lfh-hidden {
     832div.lfh-min div.lfh-element.lfh-hidden,
     833div.undermap div.lfh-element.lfh-hidden {
    800834  -ms-transform: translateY(300px);
    801835  -webkit-transform: translateY(300px);
     
    804838  transform: translateY(300px);
    805839}
    806 div.lfh-min div.lfh-list.lfh-element.lfh-hidden {
     840div.lfh-min div.lfh-list.lfh-element.lfh-hidden,
     841div.undermap div.lfh-list.lfh-element.lfh-hidden {
    807842  opacity: 1;
    808843  max-height: 167px;
     
    815850  background: transparent;
    816851}
    817 div.lfh-min div.lfh-list.lfh-element.lfh-hidden div.lfh-description {
     852div.lfh-min div.lfh-list.lfh-element.lfh-hidden div.lfh-description,
     853div.undermap div.lfh-list.lfh-element.lfh-hidden div.lfh-description {
    818854  margin-top: 40px;
    819855}
    820856div.lfh-min div.lfh-element.step1,
    821 div.lfh-min div.lfh-list.lfh-hidden.step1 {
     857div.lfh-min div.lfh-list.lfh-hidden.step1,
     858div.undermap div.lfh-element.step1,
     859div.undermap div.lfh-list.lfh-hidden.step1 {
    822860  -ms-transform: translateX(-280px);
    823861  -webkit-transform: translateX(-280px);
     
    827865}
    828866div.lfh-min div.lfh-element.step2,
    829 div.lfh-min div.lfh-list.lfh-hidden.step2 {
     867div.lfh-min div.lfh-list.lfh-hidden.step2,
     868div.undermap div.lfh-element.step2,
     869div.undermap div.lfh-list.lfh-hidden.step2 {
    830870  -ms-transform: translateX(-560px);
    831871  -webkit-transform: translateX(-560px);
     
    835875}
    836876div.lfh-min div.lfh-element.step3,
    837 div.lfh-min div.lfh-list.lfh-hidden.step3 {
     877div.lfh-min div.lfh-list.lfh-hidden.step3,
     878div.undermap div.lfh-element.step3,
     879div.undermap div.lfh-list.lfh-hidden.step3 {
    838880  -ms-transform: translateX(-840px);
    839881  -webkit-transform: translateX(-840px);
     
    843885}
    844886div.lfh-min div.lfh-element.step4,
    845 div.lfh-min div.lfh-list.lfh-hidden.step4 {
     887div.lfh-min div.lfh-list.lfh-hidden.step4,
     888div.undermap div.lfh-element.step4,
     889div.undermap div.lfh-list.lfh-hidden.step4 {
    846890  -ms-transform: translateX(-1120px);
    847891  -webkit-transform: translateX(-1120px);
     
    851895}
    852896div.lfh-min div.lfh-element.step5,
    853 div.lfh-min div.lfh-list.lfh-hidden.step5 {
     897div.lfh-min div.lfh-list.lfh-hidden.step5,
     898div.undermap div.lfh-element.step5,
     899div.undermap div.lfh-list.lfh-hidden.step5 {
    854900  -ms-transform: translateX(-1400px);
    855901  -webkit-transform: translateX(-1400px);
     
    859905}
    860906div.lfh-min div.lfh-element.step6,
    861 div.lfh-min div.lfh-list.lfh-hidden.step6 {
     907div.lfh-min div.lfh-list.lfh-hidden.step6,
     908div.undermap div.lfh-element.step6,
     909div.undermap div.lfh-list.lfh-hidden.step6 {
    862910  -ms-transform: translateX(-1680px);
    863911  -webkit-transform: translateX(-1680px);
     
    867915}
    868916div.lfh-min div.lfh-element.step7,
    869 div.lfh-min div.lfh-list.lfh-hidden.step7 {
     917div.lfh-min div.lfh-list.lfh-hidden.step7,
     918div.undermap div.lfh-element.step7,
     919div.undermap div.lfh-list.lfh-hidden.step7 {
    870920  -ms-transform: translateX(-1960px);
    871921  -webkit-transform: translateX(-1960px);
     
    875925}
    876926div.lfh-min div.lfh-element.step8,
    877 div.lfh-min div.lfh-list.lfh-hidden.step8 {
     927div.lfh-min div.lfh-list.lfh-hidden.step8,
     928div.undermap div.lfh-element.step8,
     929div.undermap div.lfh-list.lfh-hidden.step8 {
    878930  -ms-transform: translateX(-2240px);
    879931  -webkit-transform: translateX(-2240px);
     
    883935}
    884936div.lfh-min div.lfh-element.step9,
    885 div.lfh-min div.lfh-list.lfh-hidden.step9 {
     937div.lfh-min div.lfh-list.lfh-hidden.step9,
     938div.undermap div.lfh-element.step9,
     939div.undermap div.lfh-list.lfh-hidden.step9 {
    886940  -ms-transform: translateX(-2520px);
    887941  -webkit-transform: translateX(-2520px);
     
    891945}
    892946div.lfh-min div.lfh-element.step10,
    893 div.lfh-min div.lfh-list.lfh-hidden.step10 {
     947div.lfh-min div.lfh-list.lfh-hidden.step10,
     948div.undermap div.lfh-element.step10,
     949div.undermap div.lfh-list.lfh-hidden.step10 {
    894950  -ms-transform: translateX(-2800px);
    895951  -webkit-transform: translateX(-2800px);
     
    899955}
    900956div.lfh-min div.lfh-element.lfh-hidden:not(.lfh-list),
    901 div.lfh-min div.lfh-element.lfh-hidden.step0:not(.lfh-list) {
     957div.lfh-min div.lfh-element.lfh-hidden.step0:not(.lfh-list),
     958div.undermap div.lfh-element.lfh-hidden:not(.lfh-list),
     959div.undermap div.lfh-element.lfh-hidden.step0:not(.lfh-list) {
    902960  -ms-transform: translateY(250px);
    903961  -webkit-transform: translateY(250px);
     
    906964  transform: translateY(250px);
    907965}
    908 div.lfh-min div.lfh-element.lfh-hidden.step1:not(.lfh-list) {
     966div.lfh-min div.lfh-element.lfh-hidden.step1:not(.lfh-list),
     967div.undermap div.lfh-element.lfh-hidden.step1:not(.lfh-list) {
    909968  -ms-transform: translate(-280px, 250px);
    910969  -webkit-transform: translate(-280px, 250px);
     
    913972  transform: translate(-280px, 250px);
    914973}
    915 div.lfh-min div.lfh-element.lfh-hidden.step2:not(.lfh-list) {
     974div.lfh-min div.lfh-element.lfh-hidden.step2:not(.lfh-list),
     975div.undermap div.lfh-element.lfh-hidden.step2:not(.lfh-list) {
    916976  -ms-transform: translate(-560px, 250px);
    917977  -webkit-transform: translate(-560px, 250px);
     
    920980  transform: translate(-560px, 250px);
    921981}
    922 div.lfh-min div.lfh-element.lfh-hidden.step3:not(.lfh-list) {
     982div.lfh-min div.lfh-element.lfh-hidden.step3:not(.lfh-list),
     983div.undermap div.lfh-element.lfh-hidden.step3:not(.lfh-list) {
    923984  -ms-transform: translate(-840px, 250px);
    924985  -webkit-transform: translate(-840px, 250px);
     
    927988  transform: translate(-840px, 250px);
    928989}
    929 div.lfh-min div.lfh-element.lfh-hidden.step4:not(.lfh-list) {
     990div.lfh-min div.lfh-element.lfh-hidden.step4:not(.lfh-list),
     991div.undermap div.lfh-element.lfh-hidden.step4:not(.lfh-list) {
    930992  -ms-transform: translate(-1120px, 250px);
    931993  -webkit-transform: translate(-1120px, 250px);
     
    934996  transform: translate(-1120px, 250px);
    935997}
    936 div.lfh-min div.lfh-element.lfh-hidden.step5:not(.lfh-list) {
     998div.lfh-min div.lfh-element.lfh-hidden.step5:not(.lfh-list),
     999div.undermap div.lfh-element.lfh-hidden.step5:not(.lfh-list) {
    9371000  -ms-transform: translate(-1400px, 250px);
    9381001  -webkit-transform: translate(-1400px, 250px);
     
    9411004  transform: translate(-1400px, 250px);
    9421005}
    943 div.lfh-min div.lfh-element.lfh-hidden.step6:not(.lfh-list) {
     1006div.lfh-min div.lfh-element.lfh-hidden.step6:not(.lfh-list),
     1007div.undermap div.lfh-element.lfh-hidden.step6:not(.lfh-list) {
    9441008  -ms-transform: translate(-1680px, 250px);
    9451009  -webkit-transform: translate(-1680px, 250px);
     
    9481012  transform: translate(-1680px, 250px);
    9491013}
    950 div.lfh-min div.lfh-element.lfh-hidden.step7:not(.lfh-list) {
     1014div.lfh-min div.lfh-element.lfh-hidden.step7:not(.lfh-list),
     1015div.undermap div.lfh-element.lfh-hidden.step7:not(.lfh-list) {
    9511016  -ms-transform: translate(-1960px, 250px);
    9521017  -webkit-transform: translate(-1960px, 250px);
     
    9551020  transform: translate(-1960px, 250px);
    9561021}
    957 div.lfh-min div.lfh-element.lfh-hidden.step8:not(.lfh-list) {
     1022div.lfh-min div.lfh-element.lfh-hidden.step8:not(.lfh-list),
     1023div.undermap div.lfh-element.lfh-hidden.step8:not(.lfh-list) {
    9581024  -ms-transform: translate(-2240px, 250px);
    9591025  -webkit-transform: translate(-2240px, 250px);
     
    9621028  transform: translate(-2240px, 250px);
    9631029}
    964 div.lfh-min div.lfh-element.lfh-hidden.step9:not(.lfh-list) {
     1030div.lfh-min div.lfh-element.lfh-hidden.step9:not(.lfh-list),
     1031div.undermap div.lfh-element.lfh-hidden.step9:not(.lfh-list) {
    9651032  -ms-transform: translate(-2520px, 250px);
    9661033  -webkit-transform: translate(-2520px, 250px);
     
    9691036  transform: translate(-2520px, 250px);
    9701037}
    971 div.lfh-min div.lfh-element.lfh-hidden.step10:not(.lfh-list) {
     1038div.lfh-min div.lfh-element.lfh-hidden.step10:not(.lfh-list),
     1039div.undermap div.lfh-element.lfh-hidden.step10:not(.lfh-list) {
    9721040  -ms-transform: translate(-2800px, 250px);
    9731041  -webkit-transform: translate(-2800px, 250px);
     
    9761044  transform: translate(-2800px, 250px);
    9771045}
    978 div.lfh-min div.lfh-section {
     1046div.lfh-min div.lfh-section,
     1047div.undermap div.lfh-section {
    9791048  float: left;
    9801049  display: inline-block;
     
    9861055  height: auto;
    9871056}
    988 div.lfh-min .lfh-content > div {
     1057div.lfh-min .lfh-content > div,
     1058div.undermap .lfh-content > div {
    9891059  max-width: 280px;
    9901060  width: 280px;
     
    10051075  margin: 0;
    10061076}
    1007 div.lfh-min .lfh-element svg {
     1077div.lfh-min .lfh-element svg,
     1078div.undermap .lfh-element svg {
    10081079  margin-top: 0;
    10091080  min-height: 160px;
     
    10131084}
    10141085div.lfh-min div.lfh-file,
    1015 div.lfh-min div.lfh-position {
     1086div.lfh-min div.lfh-position,
     1087div.undermap div.lfh-file,
     1088div.undermap div.lfh-position {
    10161089  display: none;
    10171090}
    1018 div.lfh-min .lfh-section .lfh-header h4 {
     1091div.lfh-min .lfh-section .lfh-header h4,
     1092div.undermap .lfh-section .lfh-header h4 {
    10191093  display: none;
    10201094}
    1021 div.lfh-min div.lfh-data-content .lfh-section .lfh-header h4 {
     1095div.lfh-min div.lfh-data-content .lfh-section .lfh-header h4,
     1096div.undermap div.lfh-data-content .lfh-section .lfh-header h4 {
    10221097  display: block;
    10231098}
    10241099div.lfh-min .lfh-section .lfh-header h4::before,
    1025 div.lfh-min .lfh-section.lfh-hidden .lfh-header h4::before {
     1100div.lfh-min .lfh-section.lfh-hidden .lfh-header h4::before,
     1101div.undermap .lfh-section .lfh-header h4::before,
     1102div.undermap .lfh-section.lfh-hidden .lfh-header h4::before {
    10261103  content: none;
    10271104}
    10281105div.lfh-min div.lfh-content,
    10291106div.lfh-min div.lfh-content svg,
    1030 div.lfh-min div.lfh-content ~ div {
     1107div.lfh-min div.lfh-content ~ div,
     1108div.undermap div.lfh-content,
     1109div.undermap div.lfh-content svg,
     1110div.undermap div.lfh-content ~ div {
    10311111  display: inline-block;
    10321112}
    1033 div.lfh-min div.lfh-content ~ div {
     1113div.lfh-min div.lfh-content ~ div,
     1114div.undermap div.lfh-content ~ div {
    10341115  max-width: 280px;
    10351116}
    1036 div.lfh-min div.lfh-content > div {
     1117div.lfh-min div.lfh-content > div,
     1118div.undermap div.lfh-content > div {
    10371119  width: 280px;
    1038   /*  height: @height - @height_title - 2*@padding_title;*/
     1120  /* height: @height - @height_title - 2*@padding_title;*/
    10391121  max-width: 280px;
    10401122  max-height: 167px;
    10411123}
    1042 div.lfh-min div.lfh-content div.wp-caption {
     1124div.lfh-min div.lfh-content div.wp-caption,
     1125div.undermap div.lfh-content div.wp-caption {
    10431126  max-width: 280px;
    10441127  max-height: 167px;
    10451128}
    1046 div.lfh-min div.lfh-content img {
     1129div.lfh-min div.lfh-content img,
     1130div.undermap div.lfh-content img {
    10471131  max-width: 270px;
    10481132  max-height: 167px;
    10491133}
    1050 div.lfh-min .lfh-element-content {
     1134div.lfh-min .lfh-element-content,
     1135div.undermap .lfh-element-content {
    10511136  float: left;
    10521137  height: 167px;
     
    10581143}
    10591144div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-next,
    1060 div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-back {
     1145div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-back,
     1146div.undermap .lfh-element:hover ~ div.lfh-nav div.lfh-next,
     1147div.undermap .lfh-element:hover ~ div.lfh-nav div.lfh-back {
    10611148  opacity: 0.7;
    10621149  /* border-radius: 50% 50%;
     
    11001187  pointer-events: auto;
    11011188}
    1102 div.lfh-min span.lfh-close {
     1189div.lfh-min span.lfh-close,
     1190div.undermap span.lfh-close {
    11031191  margin-right: 0px;
    11041192}
     
    11061194  cursor: pointer;
    11071195}
    1108 div.lfh-min div.lfh-data span.lfh-close {
     1196div.lfh-min div.lfh-data span.lfh-close,
     1197div.undermap div.lfh-data span.lfh-close {
    11091198  margin-left: 5px;
    11101199  display: none;
    11111200}
    1112 div.lfh-min div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back {
     1201div.lfh-min div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back,
     1202div.undermap div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back {
    11131203  display: inline;
    11141204}
    11151205div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav span.lfh-close,
    11161206div.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 {
     1207div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next,
     1208div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav span.lfh-close,
     1209div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back,
     1210div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next {
    11181211  display: inline;
    11191212}
    1120 div.lfh-min div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back {
     1213div.lfh-min div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back,
     1214div.undermap div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back {
    11211215  display: none;
    11221216}
  • lf-hiker/trunk/css/lfh-style.less

    r1880263 r1913591  
    187187    margin: 5px;
    188188}
    189 div.lfh-min div.lfh-no-data{
     189div.lfh-min div.lfh-no-data,
     190div.undermap div.lfh-no-data{
    190191    display:block;
    191192    margin-top:2px;
     
    230231}
    231232
    232 #lfh-fade.lfh-min div.lfh-map{
     233#lfh-fade.lfh-min div.lfh-map,
     234#lfh-fade.undermap div.lfh-map{
    233235    position:absolute;
    234236    width:100%;
     
    387389    clear:both;
    388390}
    389 div.lfh-container.lfh-min div.lfh-data{
     391div.lfh-container.lfh-min div.lfh-data,
     392div.lfh-container.undermap div.lfh-data{
    390393 
    391394    position: relative;
    392395    height:@height;
    393396}
    394 #lfh-fade.lfh-min div.lfh-data{
     397#lfh-fade.lfh-min div.lfh-data,
     398#lfh-fade.undermap div.lfh-data{
    395399    position:absolute;
    396400    top:auto;
     
    399403    background-color:white;
    400404}
    401 div.lfh-min div.lfh-content{
     405div.lfh-min div.lfh-content,
     406div.undermap div.lfh-content{
    402407    margin:0;
    403408}
    404 div.lfh-min div.lfh-control-list{
     409div.lfh-min div.lfh-control-list,
     410div.undermap div.lfh-control-list{
    405411    display:none;
    406412}
     
    413419    margin-top:3px;
    414420}
    415 div.lfh-min div.lfh-data-content{
     421div.lfh-min div.lfh-data-content,
     422div.undermap div.lfh-data-content{
    416423    margin: 35px 5px;
    417424    display:block;
     
    419426    vertical-align:middle;
    420427}
    421 div.lfh-min div.lfh-data-content div.lfh-section{
     428div.lfh-min div.lfh-data-content div.lfh-section,
     429div.undermap div.lfh-data-content div.lfh-section{
    422430
    423431    display:block;
     
    427435}
    428436 
    429 div.lfh-min div.lfh-data-content div.lfh-section div.lfh-content{
     437div.lfh-min div.lfh-data-content div.lfh-section div.lfh-content,
     438div.undermap div.lfh-data-content div.lfh-section div.lfh-content{
    430439    margin:auto;
    431440}
    432441div.lfh-container.lfh-min,
    433 #fade div.lfh-container.lfh-min{
     442#fade div.lfh-container.lfh-min,
     443div.lfh-container.undermap,
     444#fade div.lfh-container.undermap{
    434445    height:auto;
    435446}
    436447#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{
    438451    display: block;
    439452 }
    440  div.lfh-container.lfh-min{
     453 div.lfh-container.lfh-min,
     454  div.lfh-container.undermap{
    441455     border: 2px solid #9e9e9e;
    442456 }
     
    446460     display:none;
    447461 }
    448  div.lfh-min div.lfh-head{
     462 div.lfh-min div.lfh-head,
     463 div.undermap div.lfh-head{
    449464     display:none;
    450465 }
    451466 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{
    453470    position:absolute;
    454471    display:none;
     
    467484   
    468485 }
    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{
    470488      left:-1px;
    471489 }
    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{
    473492     right:0px;
    474493 }
     
    478497}
    479498 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{
    481502     opacity:0.9;
    482503     background-color:rgba(255,255,255,0.9);
     
    503524}
    504525 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,
     527div.undermap a.lfh-gpx-file,
     528#lfh-fade.undermap a.lfh-gpx-file{
    506529     color:inherit;
    507530     pointer-events: auto;
     
    513536 }
    514537
    515  div.lfh-min a.lfh-gpx-file{
     538 div.lfh-min a.lfh-gpx-file,
     539 div.undermap a.lfh-gpx-file{
    516540      pointer-events: auto;
    517541      cursor: pointer;
     
    520544 }
    521545
    522  div.lfh-min div.lfh-contributor{
     546 div.lfh-min div.lfh-contributor,
     547 div.undermap div.lfh-contributor{
    523548     position:absolute;
    524549     bottom:0;
     
    527552     pointer-events:auto;
    528553 }
    529   div.lfh-min div.lfh-contributor a{
     554  div.lfh-min div.lfh-contributor a,
     555  div.undermap div.lfh-contributor a{
    530556     text-decoration:none;
    531557  }
     
    534560 @height_title:27px;
    535561 @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{
    537564     font-size:1rem;
    538565     font-weight:600;
     
    547574 }
    548575 
    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{
    550578     text-align:left;
    551579 }
    552580 
    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;
    555584    top: @height_title + 6px;
    556585    left:0;
     
    562591}
    563592
    564 div.lfh-min div.lfh-element.lfh-small-content{
     593div.lfh-min div.lfh-element.lfh-small-content,
     594div.undermap div.lfh-element.lfh-small-content{
    565595    width:100%;
    566596}
    567597
    568 div.lfh-min div.lfh-element.lfh-small-content div.lfh-element-content{
     598div.lfh-min div.lfh-element.lfh-small-content div.lfh-element-content,
     599div.undermap div.lfh-element.lfh-small-content div.lfh-element-content{
    569600    text-align:center;
    570601}
    571 div.lfh-min div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content{
     602div.lfh-min div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content,
     603div.undermap div.lfh-element.lfh-small-content:not(.lfh-list) div.lfh-content{
    572604    text-align:left;
    573605}
    574 div.lfh-min div.lfh-element.lfh-small-content div.lfh-section{
     606div.lfh-min div.lfh-element.lfh-small-content div.lfh-section,
     607div.undermap div.lfh-element.lfh-small-content div.lfh-section{
    575608    float:none;
    576609    margin:auto;
    577610}
    578 div.lfh-min div.lfh-element.lfh-hidden{
     611div.lfh-min div.lfh-element.lfh-hidden,
     612div.undermap div.lfh-element.lfh-hidden{
    579613   -ms-transform: translateY(300px);
    580614   -webkit-transform: translateY(300px);
     
    584618
    585619 }
    586 div.lfh-min div.lfh-list.lfh-element.lfh-hidden{
     620div.lfh-min div.lfh-list.lfh-element.lfh-hidden,
     621div.undermap div.lfh-list.lfh-element.lfh-hidden{
    587622   opacity:1;
    588623   max-height:@height - @height_title - 2* @padding_title;
     
    595630   background: transparent;
    596631}
    597 div.lfh-min div.lfh-list.lfh-element.lfh-hidden div.lfh-description{
     632div.lfh-min div.lfh-list.lfh-element.lfh-hidden div.lfh-description,
     633div.undermap div.lfh-list.lfh-element.lfh-hidden div.lfh-description{
    598634    margin-top:40px;
    599635}
    600636.loopingClass (@i) when (@i < 11) {
    601637    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} {
    603641        -ms-transform: translateX(-(@i * @width));
    604642        -webkit-transform: translateX(-(@i * @width));
     
    612650
    613651 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){
    615655   -ms-transform: translateY( @height + 50px);
    616656   -webkit-transform: translateY( @height + 50px );
     
    620660 }
    621661.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) {
    623664        -ms-transform: translate(-(@k * @width), @height + 50);
    624665        -webkit-transform: translate(-(@k * @width),@height + 50);
     
    632673
    633674
    634 div.lfh-min div.lfh-section{
     675div.lfh-min div.lfh-section,
     676div.undermap div.lfh-section{
    635677    float:left;
    636678    display:inline-block;
     
    643685    height:auto;
    644686}
    645 div.lfh-min .lfh-content > div
     687div.lfh-min .lfh-content > div,
     688div.undermap .lfh-content > div
    646689{
    647690     max-width:@width;
     
    663706    margin:0;
    664707}
    665 div.lfh-min .lfh-element svg{
     708div.lfh-min .lfh-element svg,
     709div.undermap .lfh-element svg{
    666710    margin-top:0;
    667711    min-height:@height - @height_title - 13px;
     
    671715}
    672716div.lfh-min div.lfh-file,
    673 div.lfh-min div.lfh-position{
     717div.lfh-min div.lfh-position,
     718div.undermap div.lfh-file,
     719div.undermap div.lfh-position{
    674720    display:none;
    675721}
    676722
    677 div.lfh-min .lfh-section .lfh-header h4{
     723div.lfh-min .lfh-section .lfh-header h4,
     724div.undermap .lfh-section .lfh-header h4{
    678725    display:none;
    679726}
    680 div.lfh-min div.lfh-data-content .lfh-section .lfh-header h4{
     727div.lfh-min div.lfh-data-content .lfh-section .lfh-header h4,
     728div.undermap div.lfh-data-content .lfh-section .lfh-header h4{
    681729    display: block;
    682730}
    683731div.lfh-min .lfh-section .lfh-header h4::before,
    684 div.lfh-min .lfh-section.lfh-hidden .lfh-header h4::before
     732div.lfh-min .lfh-section.lfh-hidden .lfh-header h4::before,
     733div.undermap .lfh-section .lfh-header h4::before,
     734div.undermap .lfh-section.lfh-hidden .lfh-header h4::before
    685735{
    686736    content:none;
     
    690740div.lfh-min div.lfh-content,
    691741div.lfh-min div.lfh-content svg,
    692 div.lfh-min div.lfh-content ~ div{
     742div.lfh-min div.lfh-content ~ div,
     743div.undermap div.lfh-content,
     744div.undermap div.lfh-content svg,
     745div.undermap div.lfh-content ~ div{
    693746    display:inline-block;
    694747}
    695748
    696 div.lfh-min div.lfh-content ~ div{
     749div.lfh-min div.lfh-content ~ div,
     750div.undermap div.lfh-content ~ div{
    697751       max-width:@width;
    698752
    699753    }
    700 div.lfh-min div.lfh-content > div{
     754div.lfh-min div.lfh-content > div,
     755div.undermap div.lfh-content > div{
    701756    width: @width;
    702    /* height: @height - @height_title - 2*@padding_title;*/
     757    /* height: @height - @height_title - 2*@padding_title;*/
    703758    max-width: @width;
    704759    max-height: @height - @height_title - 2*@padding_title;
    705760}
    706 div.lfh-min div.lfh-content div.wp-caption{
     761div.lfh-min div.lfh-content div.wp-caption,
     762div.undermap div.lfh-content div.wp-caption{
    707763    max-width: @width;
    708764    max-height: @height - @height_title - 2*@padding_title;
    709765   
    710766}
    711 div.lfh-min div.lfh-content  img{
     767div.lfh-min div.lfh-content  img,
     768div.undermap div.lfh-content  img{
    712769    max-width: @width - 10px;
    713770     max-height: @height - @height_title - 2*@padding_title;
    714771}
    715772
    716 div.lfh-min .lfh-element-content{
     773div.lfh-min .lfh-element-content,
     774div.undermap .lfh-element-content{
    717775    float:left;
    718776    height:@height - @height_title - 2*@padding_title;
     
    724782}
    725783div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-next,
    726 div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-back{
     784div.lfh-min .lfh-element:hover ~ div.lfh-nav div.lfh-back,
     785div.undermap .lfh-element:hover ~ div.lfh-nav div.lfh-next,
     786div.undermap .lfh-element:hover ~ div.lfh-nav div.lfh-back{
    727787    opacity:0.7;
    728788    /* border-radius: 50% 50%;
     
    768828    pointer-events:auto;
    769829}
    770 div.lfh-min span.lfh-close{
     830div.lfh-min span.lfh-close,
     831div.undermap span.lfh-close{
    771832    margin-right:0px;
    772833}
     
    775836}
    776837
    777 div.lfh-min div.lfh-data span.lfh-close{
     838div.lfh-min div.lfh-data span.lfh-close,
     839div.undermap div.lfh-data span.lfh-close{
    778840    margin-left:5px;
    779841    display:none;
    780842}
    781843
    782 div.lfh-min div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back{
     844div.lfh-min div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back,
     845div.undermap div.lfh-data div.lfh-list:not(.step0) ~ div.lfh-nav div.lfh-back{
    783846    display:inline;
    784847}
    785848div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav span.lfh-close,
    786849div.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{
     850div.lfh-min div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next,
     851div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav span.lfh-close,
     852div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back,
     853div.undermap div.lfh-data div.lfh-element:not(.lfh-hidden) ~ div.lfh-nav div.lfh-next{
    788854    display:inline;
    789855}
    790856
    791 div.lfh-min div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back{
     857div.lfh-min div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back,
     858div.undermap div.lfh-data div.lfh-element.step0:not(.lfh-hidden) ~ div.lfh-nav div.lfh-back{
    792859    display:none;
    793860}
  • lf-hiker/trunk/gulpfile.js

    r1886332 r1913591  
    22//there are in files readme others version numbers: for releases, tested browsers, and the most important wordpress
    33
    4 var old_version = '1.9.0';
    5 var version = '1.10.0';
     4var old_version = '1.10.0';
     5var version = '1.11.0';
    66var gulp = require('gulp');
    77var less = require('gulp-less');
  • lf-hiker/trunk/js/helper.js

    r1830724 r1913591  
    113113                return lfh.current_marker;
    114114        },
    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        },
    116121        delete_marker: function(marker){
    117122            var answer = confirm( lfh.confirm);
     
    151156                //show move_marker
    152157                lfh.move_marker.setOpacity(1);
     158                //show manual marker
     159                document.querySelector('#window-add-marker').style.display = 'block';
    153160            }else{
    154161                //hide move_marker
     
    212219                document.querySelector('#lfh-edit-map').dispatchEvent(evt);
    213220                break;
     221            case 'window-add-marker':
     222                document.querySelector('#' + id).style.display = 'none';
     223                break;
    214224            }
    215225           
     
    246256                shortcode += ' class="' + document.querySelector('input[name="lfh-form-map-class"]').value.replaceAll('-','\\-') +'"';
    247257            }
    248             ['autocenter', 'fullscreen', 'reset', 'list', 'mousewheel', 'open'].forEach(function(key){
     258            ['autocenter', 'fullscreen', 'reset', 'list', 'mousewheel', 'open', 'undermap'].forEach(function(key){
    249259                shortcode += ' '+ key + '=' + document.querySelector('input[name="lfh-form-map-' + key + '"]').checked;
    250260            });
     
    374384       });
    375385   });
     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();})
    376390   // - for edit map
    377391   //-----------------
  • lf-hiker/trunk/js/leaflet-gpx.js

    r1873579 r1913591  
    429429
    430430      if (last != null) {
     431        var dist = this._dist3d(last, ll);
     432        console.log(dist);
    431433        this._info.length += this._dist3d(last, ll);
    432434
  • lf-hiker/trunk/js/lfh-plugin.js

    r1886332 r1913591  
    408408    var node = document.querySelector('#'+ container.id + '-data');
    409409    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){
    411412        height -= 70;
    412413    }else{
     
    783784                _markers[i].addTo(map);
    784785            }
    785             _latlngbounds.push([info.lat, info.lng]);
    786            
     786            if (_auto_center) {
     787                _latlngbounds.push([info.lat, info.lng]);
     788            }
    787789            var link = new lfh.Link( map, _markers[i], marker_id, _selected_element, null);
    788790            return link;
     
    863865                   map.setZoom( _zoom );
    864866               }
    865                if(buttonreset){
     867               if(buttonreset && _auto_center){
    866868                   map.addControl(new lfh.ResetControl(_center, _zoom));
    867869               }
    868870               lfh.resize_content(map.getContainer());
    869                _auto_center = true;
     871               // _auto_center = true;
    870872               
    871873               //wait all is loaded
     
    12931295             // No data elevation : remove svg
    12941296             _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);
    13001302         }
    13011303         _track.querySelector('.lfh-gpx-name').textContent = _gpx.get_name();
  • lf-hiker/trunk/languages/lfh-default.po

    r1886332 r1913591  
    22msgstr ""
    33"Project-Id-Version: lfh\n"
    4 "POT-Creation-Date: 2018-06-03 00:33+0100\n"
    5 "PO-Revision-Date: 2018-06-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"
    66"Last-Translator: Elisabeth Pointal <elisabeth.pointal@free.fr>\n"
    77"Language-Team: elisabeth\n"
     
    7979
    8080#: 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:20
     81#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:21
    8282msgid "list"
    8383msgstr "list"
     
    9595msgstr "Open profile automaticaly"
    9696
    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
     98msgid "Display information under map"
     99msgstr "Display information under map"
     100
     101#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:244
    98102msgid "no named gpx"
    99103msgstr "no named gpx"
    100104
    101 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:316
     105#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:323
    102106msgid "no named marker"
    103107msgstr "no named marker"
     
    143147msgstr "Selected path color"
    144148
    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
     150msgid "Display information window always under the map"
     151msgstr "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
     155msgid ""
     156"You can change it for only on map in its shortcode by using property "
     157"<code>undermap</code>"
     158msgstr ""
     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
    146163msgid "Display button download gpx"
    147164msgstr "Display button download gpx"
    148165
    149 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:76
     166#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:82
    150167msgid ""
    151168"You can change it for one gpx in shortcode by using property <code>button</"
     
    155172"code>"
    156173
    157 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:81
     174#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:87
    158175msgid "Open profile window automatically"
    159176msgstr "Open profile window automatically"
    160177
    161 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:83
    162 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:102
    163 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:111
     178#: 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
    164181msgid "You can change it for one map in shortcode by using property"
    165182msgstr "You can change it for one map in shortcode by using property"
    166183
    167 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:89
     184#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:95
    168185msgid "Number of gpx to display a checkbox show/hide"
    169186msgstr "Number of gpx to display a checkbox show/hide"
    170187
    171 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:100
     188#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:106
    172189msgid "Display button fullscreen"
    173190msgstr "Display button fullscreen"
    174191
    175 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:108
     192#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:114
    176193msgid "Default map tiles"
    177194msgstr "Default map tiles"
    178195
    179 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:116
     196#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:122
    180197msgid "Default distance unit"
    181198msgstr "Default distance unit"
    182199
    183 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:124
     200#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:130
    184201msgid "Default height unit"
    185202msgstr "Default height unit"
    186203
    187 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:132
     204#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:138
    188205msgid "Minimum step on elevation axis in meters ( four steps in general)"
    189206msgstr "Minimum step on elevation axis in meters ( four steps in general)"
    190207
    191 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:138
     208#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:144
    192209msgid "You can change it for one gpx in shortcode by using property"
    193210msgstr "You can change it for one gpx in shortcode by using property"
    194211
    195 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:165
     212#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:171
    196213msgid "Use cdn host for leaflet"
    197214msgstr "Use cdn host for leaflet"
    198215
    199 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:167
     216#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:173
    200217msgid "If unchecked, use local leaflet version"
    201218msgstr "If unckecked, use local leaflet version"
    202219
    203 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:210
     220#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:216
    204221msgid "Failed to create a new cache"
    205222msgstr "Failed to create a new cache"
    206223
    207 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:257
     224#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:270
    208225msgid "data updated"
    209226msgstr "data updated"
    210227
    211 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:277
     228#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:290
    212229msgid "data reseted"
    213230msgstr "data reseted"
     
    223240#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Tools/Editor.php:128
    224241#: 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
    225244msgid "Add marker"
    226245msgstr "Add marker"
     
    368387
    369388#: 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:72
     389#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:95
    371390msgid "title"
    372391msgstr "title"
    373392
    374393#: 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:80
     394#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:103
    376395#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:37
    377396#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/track.phtml:117
     
    415434#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:19
    416435#: 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:57
     436#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:58
    418437msgid "Insert shortcodes"
    419438msgstr "Insert shortcodes"
     
    428447
    429448#: 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:56
     449#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:57
    431450msgid "Cancel"
    432451msgstr "Cancel"
     
    438457
    439458#: 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:67
     459#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:90
    441460msgid "Edit marker"
    442461msgstr "Edit marker"
    443462
    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
     464msgid "Click on the map or enter coordinates to add marker"
     465msgstr "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
     469msgid "latitude"
     470msgstr "latitude"
     471
     472#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:75
     473msgid "Must be a number between -90 and 90"
     474msgstr "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
     478msgid "longitude"
     479msgstr "longitude"
     480
     481#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:80
     482msgid "Must be a number between -180 and 180"
     483msgstr "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
    445486msgid "Popup"
    446487msgstr "Popup"
    447488
    448 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:84
     489#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:107
    449490msgid "Visibility"
    450491msgstr "Visibility"
    451492
    452 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:86
     493#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:109
    453494msgid "Always"
    454495msgstr "Always"
    455496
    456 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:87
     497#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:110
    457498msgid "According to zoom"
    458499msgstr "According to zoom"
    459500
    460 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:91
     501#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:114
    461502msgid "Icon color"
    462503msgstr "Icon color"
    463504
    464 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:109
     505#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:132
    465506msgid "Inside icon"
    466507msgstr "Inside icon"
     
    470511msgstr "Pan and zoom until find the position, and when ready save the position"
    471512
    472 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:39
     513#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:40
    473514msgid "information"
    474515msgstr "information"
    475516
    476 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:48
     517#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:49
    477518msgid ""
    478519"Click following button or element on the map to see information about it."
    479520msgstr ""
    480521"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:24
    483 msgid "latitude"
    484 msgstr "latitude"
    485 
    486 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:28
    487 msgid "longitude"
    488 msgstr "longitude"
    489522
    490523#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/track.phtml:32
     
    531564msgstr "duration"
    532565
     566#, fuzzy
     567#~ msgid "Latitude"
     568#~ msgstr "latitude"
     569
     570#, fuzzy
     571#~ msgid "Longitude"
     572#~ msgstr "longitude"
     573
    533574#~ msgid ""
    534575#~ "You can add tiles layers which need key here, or choose unit for distance"
  • lf-hiker/trunk/languages/lfh-fr_FR.po

    r1886332 r1913591  
    22msgstr ""
    33"Project-Id-Version: lfh\n"
    4 "POT-Creation-Date: 2018-06-03 00:34+0100\n"
    5 "PO-Revision-Date: 2018-06-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"
    66"Last-Translator: Elisabeth Pointal <elisabeth.pointal@free.fr>\n"
    77"Language-Team: elisabeth\n"
     
    4141#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Tools/Editor.php:128
    4242#: 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
    4345#: 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
    4448msgid "Add marker"
    4549msgstr "Ajouter un marqueur"
     
    178182
    179183#: 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:20
    181 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/map.phtml:20
     184#: 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
    182186msgid "list"
    183187msgstr "liste"
     
    195199msgstr "Ouvrir le profile automatiquemement"
    196200
    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
     202msgid "Display information under map"
     203msgstr "Afficher les informations sous la carte"
     204
     205#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:244
    198206msgid "no named gpx"
    199207msgstr "gpx sans nom"
    200208
    201 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:316
     209#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Map.php:323
    202210msgid "no named marker"
    203211msgstr "marqueur sans nom"
     
    243251msgstr "Couleur du chemin s&eacute;lectionn&eacute;"
    244252
    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
     254msgid "Display information window always under the map"
     255msgstr "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
     259msgid ""
     260"You can change it for only on map in its shortcode by using property "
     261"<code>undermap</code>"
     262msgstr ""
     263"Vous pouvez le modifier pour un fichier gpx dans le shortcode, en utilisant "
     264"la propri&eacute;t&eacute; <code>button</code>"
     265
     266#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:80
    246267msgid "Display button download gpx"
    247268msgstr "Afficher le bouton t&eacute;l&eacute;charger gpx"
    248269
    249 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:76
     270#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:82
    250271msgid ""
    251272"You can change it for one gpx in shortcode by using property <code>button</"
     
    255276"la propri&eacute;t&eacute; <code>button</code>"
    256277
    257 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:81
     278#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:87
    258279msgid "Open profile window automatically"
    259280msgstr "Ouvrir le profile automatiquement"
    260281
    261 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:83
    262 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:102
    263 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:111
     282#: 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
    264285msgid "You can change it for one map in shortcode by using property"
    265286msgstr ""
     
    267288"propri&eacute;t&eacute; "
    268289
    269 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:89
     290#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:95
    270291msgid "Number of gpx to display a checkbox show/hide"
    271292msgstr "Nombre de gpx pour afficher une case &agrave; cocher montrer/cacher"
    272293
    273 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:100
     294#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:106
    274295msgid "Display button fullscreen"
    275296msgstr "Afficher le bouton plein &eacute;cran"
    276297
    277 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:108
     298#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:114
    278299msgid "Default map tiles"
    279300msgstr "Fond de carte par d&eacute;faut"
    280301
    281 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:116
     302#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:122
    282303msgid "Default distance unit"
    283304msgstr "Unit&eacute; de distance (d&eacute;faut)"
    284305
    285 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:124
     306#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:130
    286307msgid "Default height unit"
    287308msgstr "Unit&eacute; de hauteur (d&eacute;faut)"
    288309
    289 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:132
     310#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:138
    290311msgid "Minimum step on elevation axis in meters ( four steps in general)"
    291312msgstr ""
     
    293314"g&eacute;n&eacute;ral)"
    294315
    295 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:138
     316#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:144
    296317msgid "You can change it for one gpx in shortcode by using property"
    297318msgstr ""
     
    299320"propri&eacute;t&eacute; "
    300321
    301 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:165
     322#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:171
    302323msgid "Use cdn host for leaflet"
    303324msgstr "Utiliser l'hôte cdn pour Leaflet"
    304325
    305 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:167
     326#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:173
    306327msgid "If unchecked, use local leaflet version"
    307328msgstr "Si décoché, utilise la version locale de leaflet"
    308329
    309 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:210
     330#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:216
    310331msgid "Failed to create a new cache"
    311332msgstr "&Eacute;chec lors de la cr&eacute;ation du cache"
    312333
    313 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:257
     334#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:270
    314335msgid "data updated"
    315336msgstr "donn&eacute;es mises &agrave; jour"
    316337
    317 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:277
     338#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\Model/Option.php:290
    318339msgid "data reseted"
    319340msgstr "Donn&eacute;es initialis&eacute;es"
     
    416437
    417438#: 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:72
     439#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:95
    419440#: 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:72
     441#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:95
    421442msgid "title"
    422443msgstr "titre"
    423444
    424445#: 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:80
     446#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:103
    426447#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:37
    427448#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/track.phtml:117
     
    429450#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/track.phtml:117
    430451#: 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:80
     452#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:103
    432453msgid "description"
    433454msgstr "description"
     
    482503#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:19
    483504#: 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:57
     505#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:58
    485506#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:19
    486507#: 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:57
     508#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:58
    488509msgid "Insert shortcodes"
    489510msgstr "Ins&eacute;rer les shortcodes"
     
    500521
    501522#: 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:56
     523#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:57
    503524#: 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:56
     525#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:57
    505526msgid "Cancel"
    506527msgstr "Annuler"
     
    514535
    515536#: 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:67
     537#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:90
    517538#: 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:67
     539#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:90
    519540msgid "Edit marker"
    520541msgstr "Editer les  marqueurs"
    521542
    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
     545msgid "Click on the map or enter coordinates to add marker"
     546msgstr ""
     547"Cliquez sur la carte ou entrez les coordon&eacute;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
     553msgid "latitude"
     554msgstr "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
     558msgid "Must be a number between -90 and 90"
     559msgstr "Doit &ecirc;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
     565msgid "longitude"
     566msgstr "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
     570msgid "Must be a number between -180 and 180"
     571msgstr "Doit &ecirc;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
    524575msgid "Popup"
    525576msgstr "Popup"
    526577
    527 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:84
    528 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:84
     578#: 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
    529580msgid "Visibility"
    530581msgstr "Visible"
    531582
    532 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:86
    533 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:86
     583#: 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
    534585msgid "Always"
    535586msgstr "Toujours"
    536587
    537 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:87
    538 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:87
     588#: 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
    539590msgid "According to zoom"
    540591msgstr "Suivant le zoom"
    541592
    542 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:91
    543 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:91
     593#: 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
    544595msgid "Icon color"
    545596msgstr "Couleur"
    546597
    547 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/back/editor/add-marker.phtml:109
    548 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\back/editor/add-marker.phtml:109
     598#: 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
    549600msgid "Inside icon"
    550601msgstr "Icone"
     
    557608"sauvegarder"
    558609
    559 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:39
    560 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/map.phtml:39
     610#: 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
    561612msgid "information"
    562613msgstr "information"
    563614
    564 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/map.phtml:48
    565 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/map.phtml:48
     615#: 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
    566617msgid ""
    567618"Click following button or element on the map to see information about it."
     
    569620"Cliquez sur le bouton suivant ou l&prime;&eacute;l&eacute;ment sur la carte "
    570621"pour voir ses informations"
    571 
    572 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:24
    573 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/marker.phtml:24
    574 msgid "latitude"
    575 msgstr "latitude"
    576 
    577 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/marker.phtml:28
    578 #: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views\front/marker.phtml:28
    579 msgid "longitude"
    580 msgstr "longitude"
    581622
    582623#: C:\wamp\www\rancs\blog\wp-content\plugins\lf-hiker\views/front/track.phtml:32
  • lf-hiker/trunk/lf-hiker.php

    r1886332 r1913591  
    66    Author: epointal
    77    Author URI: http://elisabeth.pointal.org/
    8     Version: 1.10.0
     8    Version: 1.11.0
    99    License: GPL2
    1010    Text domain: lfh
     
    5151class Lf_Hiker_Plugin
    5252{
    53     const VERSION = '1.10.0';
     53    const VERSION = '1.11.0';
    5454    const LEAFLET_VERSION = '1.3.1';
    5555   
  • lf-hiker/trunk/lib/leaflet-gpx.js

    r1873579 r1913591  
    396396    var coords = [];
    397397    var last = null;
    398 
     398    var elevfirst = null;
     399    var dist = 0;
    399400    for (var i = 0; i < el.length; i++) {
    400401      var _, ll = new L.LatLng(
     
    430431
    431432      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);
    438451        t = Math.abs(ll.meta.time - last.meta.time);
    439452        this._info.duration.total += t;
     
    442455        this._info.duration.start = ll.meta.time;
    443456      }
    444 
    445457      last = ll;
    446458      coords.push(ll);
    447459    }
    448 
    449460    return coords;
    450461  },
  • lf-hiker/trunk/package.json

    r1886332 r1913591  
    11{
    22  "name": "lf-hiker",
    3   "version": "1.10.0",
     3  "version": "1.11.0",
    44  "description": "plugin for wordpress for display track with profil elevation",
    55  "main": "index.js",
  • lf-hiker/trunk/readme.txt

    r1899491 r1913591  
    77Tested up to: 4.9 
    88Stable tag: 1.0 
    9 Version: 1.10.0
     9Version: 1.11.0
    1010License: GPLv2 or later 
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    2626
    2727Display 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: 
    3130 * title
    3231 * description
     
    8685 * the size of the map
    8786 * classnames for the map ( including your custom class)
    88  * zoom on mousewheel
    89  * start with profile elevation displayed
    90  
     87 * to zoom on mousewheel
     88 * to start with profile elevation displayed
     89 * to display the description always under the map
    9190 
    9291#### for the markers:
     
    114113 * English (en_US)
    115114 * Deutsch (de_DE) by [Kristof Kling](https://lg-buggingen.de/bugginger-feierabendlauf/strecke/) 
     115 * Greek (gr_GR) by [Pol Gkitsas](http://eoskarditsas.gr)
    116116 
    117117 If you need language of **Lf Hiker** which is not included. You can easily translate with poedit from the file :   
     
    151151
    152152== 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 
    153160= 1.10.0 =
    154161 * Fixed: lf hiker is destroying the AMP pages
    155162 * Fixed: bug with tabby-responsive-tabs plugin
    156163 * 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
    158165 
    159166= 1.9.0 =
  • lf-hiker/trunk/views/back/editor/add-marker.phtml

    r1697166 r1913591  
    1212    <head>
    1313    <?php wp_print_styles();?>
    14     </head>
     14    </head>
    1515
    16     <body>
    17     <div id="fade" class="hidden">
     16    <body>
     17    <div id="fade" class="hidden">
    1818    <div class="modal lfh-modal">
    1919    <h3><?=__('Insert shortcodes', 'lfh')?></h3>
     
    3333    </div>
    3434    </div>
    35     </div>
     35    </div>
    3636<!-- <div id="debug"  style="position:absolute;top:20px;left:400px;display:block;z-index:90000;"></div>-->
    3737<!-- control for marker on map -->
     
    5252   
    5353</div>
     54
    5455<!-- banner buttons bottom right -->
    5556     <div id="banner" >
     
    6162<?php   include 'map-form.phtml';?>
    6263
    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>
    6487<!-- window for editing marker -->
    6588    <div id="window-edit-marker"  class="lfh-form-edit" style="display:none;">
  • lf-hiker/trunk/views/front/map.phtml

    r1880263 r1913591  
    77if ( ! defined( 'ABSPATH' ) ) exit;
    88
     9$undermap = ($options['undermap']?' undermap':'');
    910?>
    1011<!-- -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']?>%;">
    1213<div id="lfh-<?=$map_count?>-fadable" class="lfh-fadable <?php echo ($is_connected>0? ' fakefull':'');?>">
    1314    <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.