Changeset 3470902
- Timestamp:
- 02/27/2026 07:59:54 AM (13 days ago)
- Location:
- locatoraid/trunk
- Files:
-
- 8 edited
-
locatoraid.php (modified) (2 diffs)
-
modules/front.conf/map/form.php (modified) (1 diff)
-
modules/front.conf/map/view.php (modified) (1 diff)
-
modules/front/_config_settings.php (modified) (1 diff)
-
modules/front/assets/js/front.js (modified) (8 diffs)
-
modules/front/view_map.php (modified) (2 diffs)
-
modules/front/view_map_template.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
locatoraid/trunk/locatoraid.php
r3463159 r3470902 4 4 Plugin URI: https://www.locatoraid.com/ 5 5 Description: Store locator plugin 6 Version: 3.9.6 76 Version: 3.9.68 7 7 Author: plainware.com 8 8 Author URI: https://www.locatoraid.com/ … … 12 12 13 13 if( ! defined('LC3_VERSION') ){ 14 define( 'LC3_VERSION', 396 7);14 define( 'LC3_VERSION', 3968 ); 15 15 } 16 16 -
locatoraid/trunk/modules/front.conf/map/form.php
r2859421 r3470902 38 38 } 39 39 40 $return['front_map:linktolist'] = array( 41 'input' => $this->app->make('/form/text'), 42 'label' => __('More info link label', 'locatoraid'), 43 'help' => __('On click it will scroll to the results list. Leave blank to hide.', 'locatoraid'), 44 ); 45 46 47 // $return['front_map:linktolist'] = $this->app->make('/form/text'); 48 40 49 return $return; 41 50 } -
locatoraid/trunk/modules/front.conf/map/view.php
r2859421 r3470902 54 54 else { 55 55 $out_inputs = $this->_render_simple( $inputs_view ); 56 57 $inputs2_view = array('front_map:linktolist' => $inputs_view['front_map:linktolist']); 58 $out_linktolist = $helper->render_inputs( $inputs2_view ); 59 60 $out_inputs = $this->app->make('/html/list') 61 ->set_gutter(2) 62 ->add($out_inputs) 63 ->add($out_linktolist) 64 ; 56 65 57 66 $links -
locatoraid/trunk/modules/front/_config_settings.php
r2927304 r3470902 51 51 52 52 $config['settings']['front:show_credits'] = true; 53 $config['settings']['front_map:linktolist'] = ''; -
locatoraid/trunk/modules/front/assets/js/front.js
r3463159 r3470902 543 543 { 544 544 var html_id = $this.attr('id'); 545 this.html_id = html_id; 545 546 // var $this = jQuery( '#' + html_id ); 546 547 var self = this; 547 548 this.observers = new observers; 548 549 549 console.log($this.data);550 // console.log($this.data); 550 551 551 552 this.params = { … … 751 752 this.scroll_to = function( id ) 752 753 { 753 754 754 var ids = Array.isArray(id) ? id : [id]; 755 755 var thisId = ids[0]; … … 758 758 var new_top = $this.scrollTop() + $container.position().top; 759 759 $this.scrollTop( new_top ); 760 }760 } 761 761 762 762 this.highlight = function( id ) … … 776 776 } 777 777 778 this.map = function( $this )778 this.map = function( $this, myList ) 779 779 // this.map = function( html_id ) 780 780 { 781 781 var html_id = $this.attr('id'); 782 782 // var $this = jQuery( '#' + html_id ); 783 this.html_id = html_id; 783 784 var self = this; 784 785 this.observers = new observers; 786 this.myList = myList; 785 787 $this.hide(); 788 this.linkToListLabel = $this.data('linktolist-label'); 786 789 787 790 self.template = jQuery( '#' + html_id + '_template' ).html(); … … 1125 1128 { 1126 1129 var template = new Hc2Template( self.template ); 1130 var listHtmlId = self.myList.html_id; 1127 1131 1128 1132 if( Array.isArray(thisId) ){ … … 1138 1142 1139 1143 var templateVars = thisLoc; 1144 templateVars.linktolist = '<a onclick="document.getElementById(\'' + listHtmlId + '\').scrollIntoView(); return false;">' + this.linkToListLabel + '</a>'; 1145 1140 1146 var thisLocView = template.render( templateVars ); 1141 1147 … … 1166 1172 var thisLoc = self.entries[ thisId ]; 1167 1173 var templateVars = thisLoc; 1174 templateVars.linktolist = '<a onclick="document.getElementById(\'' + listHtmlId + '\').scrollIntoView(); return false;">' + this.linkToListLabel + '</a>'; 1175 1168 1176 var thisLocView = template.render( templateVars ); 1169 1177 … … 1222 1230 var form = new self.form( jQuery(forms[ii]) ); 1223 1231 var list = new self.list( jQuery(lists[ii]) ); 1224 var map = new self.map( jQuery(maps[ii]) );1232 var map = new self.map( jQuery(maps[ii]), list ); 1225 1233 1226 1234 form.observers.add( map ); -
locatoraid/trunk/modules/front/view_map.php
r3134369 r3470902 31 31 } 32 32 33 $app_settings = $this->app->make('/app/settings'); 34 35 $map_attr['data-linktolist-label'] = $app_settings->get('front_map:linktolist'); 36 33 37 foreach( $map_attr as $k => $v ){ 34 38 $div … … 37 41 } 38 42 39 $app_settings = $this->app->make('/app/settings');40 43 $template = $app_settings->get('front_map:template'); 41 44 $template = htmlspecialchars( $template ); -
locatoraid/trunk/modules/front/view_map_template.php
r3058040 r3470902 22 22 if( $thisFieldShow ){ 23 23 $out[] = '<div class="hc-italic lpr-location-address">{{=address}}</div>'; 24 } 25 26 $thisFieldPname = 'front_map:' . 'linktolist'; 27 $thisFieldShow = $app_settings->get( $thisFieldPname ); 28 if( $thisFieldShow ){ 29 $out[] = '<div class="lpr-location-linktolist">{{=linktolist}}</div>'; 24 30 } 25 31 -
locatoraid/trunk/readme.txt
r3463159 r3470902 4 4 Tags: dealer locator, geocoding, store locator, location finder, zip code 5 5 License: GPLv2 or later 6 Stable tag: 3.9.6 76 Stable tag: 3.9.68 7 7 Requires at least: 3.3 8 8 Tested up to: 6.9 … … 87 87 88 88 == Changelog == 89 90 = 3.9.68 = 91 Added an option to add a "Click for more details" link to the map info box that will lead to the respective entry in the results list. It can be helpful if the information in the list is more detailed that the map's info box. 89 92 90 93 = 3.9.67 =
Note: See TracChangeset
for help on using the changeset viewer.