コード例 #1
0
ファイル: node--plot.tpl.php プロジェクト: Antfen/ecoEvo
?>

  <div class="content clearfix"<?php 
print $content_attributes;
?>
>
 
     <?php 
hide($content['comments']);
hide($content['links']);
print render($content);
?>
  <?php 
$lat = $location['latitude'];
$long = $location['longitude'];
print gmap_simple_map($lat, $long, $markername = 'drupal', '', $zoom = 'auto', $width = 'auto', $height = 'auto', $autoshow = FALSE, $map = array());
// print gmap_simple_map($lat, $long, 'blank', '', 14, '100%', '100px',true );
// print gmap_simple_map($lat, $long);
?>
	
       <!-- <pre>
     <?php 
print_r($location);
?>
    
   </pre> -->
  </div>

  <div class="clearfix">
    <?php 
if (!empty($content['links'])) {
コード例 #2
0
ファイル: node--plot.tpl.php プロジェクト: Antfen/ecoEvo
?>

  <div class="content clearfix"<?php 
print $content_attributes;
?>
>
 
     <?php 
hide($content['comments']);
hide($content['links']);
print render($content);
?>
  <?php 
$lat = $location['latitude'];
$long = $location['longitude'];
print gmap_simple_map($lat, $long, 'blank', '', 14, '100%', '100px', true);
?>
       <!-- <pre>
      <?php 
print_r($location);
?>
    
   </pre> -->
  </div>

  <div class="clearfix">
    <?php 
if (!empty($content['links'])) {
    ?>
      <div class="links"><?php 
    print render($content['links']);
コード例 #3
0
		</div>
		<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4ddd07af51706810"></script>
		<!-- AddThis Button END -->
	</div>
	<div id="internal-body-text">
		<?php 
if ($node->location['latitude'] != 0) {
    ?>
			<div id="location-map">
				<?php 
    // "Geo" microformat, see http://microformats.org/wiki/geo
    if ($node->location['latitude'] && $node->location['longitude']) {
        // Assume that 0, 0 is invalid.
        if ($node->location['latitude'] != 0 || $node->location['longitude'] != 0) {
            $marker = 'Whatever you want the marker to be.';
            print gmap_simple_map($node->location['latitude'], $node->location['longitude'], '', '', 15, '286px', '197px', false, '');
        }
    }
    ?>
			</div>
		<?php 
}
?>
		<?php 
print $node->body;
?>
	</div>
	<?php 
if ($node->field_bottom_button[0]['title']) {
    ?>
		<a id="bottom-button-link" href="<?php 
コード例 #4
0
function simpleGmap()
{
    drupal_add_js(path_to_theme() . '/js/map-controls.js');
    return gmap_simple_map("45.3972948", "11.9538438", "", "", '14', '930px', '210px');
}