This repository has been archived by the owner on Dec 14, 2017. It is now read-only.
/
gm_output.php
47 lines (40 loc) · 1.94 KB
/
gm_output.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
GeoMaker by Christian Heilmann (output stage)
Version: 1.0
Homepage: http://icant.co.uk/geomaker/
Copyright (c) 2009, Christian Heilmann
Code licensed under the BSD License:
http://wait-till-i.com/license.txt
*/
?>
<?php if(isset($_POST['rss'])){
include('rssmapcode.php');
}else{
include('mapcode.php');
}?>
<?php if(isset($_POST['rss'])){?>
<h3>Your Map code</h3>
<p>Following is the code to generate the map above. For you to use it in your own products you need to <a href="https://developer.yahoo.com/wsregapp/">apply for a free map developer key</a> and replace the <code>YMAPPID</code> in the code with your own key.</p>
<textarea><?php include('rssmapcode.php');?></textarea>
<?php }else{?>
<div class="yui-g">
<div class="yui-u first">
<h3>Your Map code</h3>
<p>Following is the code to generate the map above. For you to use it in your own products you need to <a href="https://developer.yahoo.com/wsregapp/">apply for a free map developer key</a> and replace the <code>YMAPPID</code> in the code with your own key.</p>
<textarea><?php include('mapcode.php');?></textarea>
</div>
<div class="yui-u">
<?php if(!isset($_POST['message'])){?>
<h3>Your Microformatted locations</h3>
<p>If all you wanted is geolocate your text, here are the geo-microformats to copy and paste into the correct sections. Notice that we are not using the <code>ABBR</code> pattern as accessibility is something we care about.</p>
<textarea><?php echo join("\n",$mf);?></textarea>
<?php } else {?>
<h3>Your microformatted message</h3>
<p>Here is your text with geo-microformats to copy and paste. Notice that we are not using the <code>ABBR</code> pattern as accessibility is something we care about. If wanted, simply hide the GEO data with CSS.</p>
<textarea><?php echo $mfmessage;?></textarea>
<?php } ?>
</div>
</div>
<?php }?>
<div class="submit"><input type="submit" value="Start over" id="send"></div>