Created
July 26, 2016 00:34
-
-
Save tranepura/30a28e60ed3cbfdd53589f528ad604a4 to your computer and use it in GitHub Desktop.
Markup for Where to use your card
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $collected_results_array = array(); | |
| $marker_data = array(); | |
| $i = 0; | |
| $result = db_query($google_sql); | |
| if ($result) { | |
| while ($record = $result->fetchObject()) { | |
| $markerObject = new stdClass(); | |
| $i++; | |
| ?> | |
| <div id="ac-item" class="col-md-12" > | |
| <div id="ac-tem-inner"> | |
| <div id="ac-left" class="col-md-6 col-md-offset-2"> | |
| <div class="row"> | |
| <div class="col-md-6"> | |
| <div id="ac-heading"><?php print $record->name; ?> </div> | |
| </div> | |
| <div class="col-md-6"> | |
| <div id="marker-icon-ui" data-marker-id="<?php print $i; ?>" > | |
| <i class="fa fa-map-marker" style="padding-left:20px; font-size: 30px;"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div id="ac-map-location"></div> | |
| <div id="ac-email"></div> | |
| <div id="ac-like-us"></div> | |
| <div id="ac-description"><?php print $record->descr; $t=0; //$value->short_descr ?></div> | |
| <div id="ac-rating"></div> | |
| <div class="row"> | |
| <div id="ac-phone" class="col-md-4"><?php (!empty($record->phone_1)? print t('Phone : ') . $record->phone_1:''); ?></div> | |
| <div id="ac-address" class="col-md-4"><?php (!empty($record->address)?print t('Address : ') .$record->address:''); ?></div> | |
| <div id="ac-web" class="col-md-4"><?php (!empty($record->web)?print t('Web : ') .$record->web:''); ?></div> | |
| </div> | |
| </div> | |
| <div id="ac-right" class="col-md-2"> | |
| <div id="ac-image"> <img src=" <?php print $record->image; ?> " class="pure-img-responsive"> </div> | |
| </div> | |
| </div> | |
| </div> | |
| <?php | |
| $markerObject->longitude = $record->longitude; | |
| $markerObject->latitude = $record->latitude; | |
| $markerObject->name = $record->name; | |
| array_push($marker_data, $markerObject); | |
| } | |
| } | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment