Advertisement
KeyDog

osm-options.php for wordpress

Jan 5th, 2012
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.97 KB | None | 0 0
  1. <?php
  2. /*
  3.   Option page for OSM wordpress plugin
  4.   Michael Kang * created: april 2009
  5.   plugin: http://www.Fotomobil.at/wp-osm-plugin
  6.   blog:   http://www.HanBlog.net
  7. */
  8. ?>
  9.  
  10. <div class="wrap">
  11. <table border="0">
  12.  <tr>
  13.   <td><p><img src="<?php echo OSM_PLUGIN_URL ?>/WP_OSM_Plugin_Logo.png" alt="Osm Logo"></p></td>
  14.   <td><h2>OpenStreetMap Plugin <?php echo PLUGIN_VER ?> </h2></td>
  15.  </tr>
  16. </table>
  17. <table border="0">
  18. <h3><?php _e('How to add a map to your post/page','OSM-plugin') ?></h3>
  19. <ol>
  20.   <li><?php _e('choose a marker if you want to','OSM-plugin') ?></li>
  21.   <li><?php _e('add a gpx file and/or marker file if you want to','OSM-plugin') ?></li>
  22.   <li><?php _e('add a border around the map and or some controls if you want to','OSM-plugin') ?></li>
  23.   <li><?php _e('click on the map to generate the shortcode (if you chose a marker it is placed where you clicked)','OSM-plugin') ?></li>
  24.   <li><?php _e('copy the shortcode from below the map and paste it in your post/page','OSM-plugin') ?></li>
  25.   <li><?php _e('delete the argument - type - if you want all osm maps to be available','OSM-plugin') ?></li>
  26.   <li><?php _e('add other arguments to insert tracks, points ... or modify mapsize ... if needed','OSM-plugin') ?></li>
  27.   <li style="color:red"> <?php _e('do not save any of your personal data in the plugins/osm folder but in the upload folder!','OSM-plugin') ?></li>
  28. </ol>
  29. <br>
  30.  
  31. <table border="0">
  32. <form name="Markerform" action="">
  33. <h3><?php _e('If you want to add a marker choose one of the supported:','OSM-plugin') ?></h3>
  34.   <li><?php _e('the marker is placed where you click into the map','OSM-plugin') ?></li>
  35.   <li><?php _e('alternativly you can also add privat marker from the upload folder (see ','OSM-plugin') ?> <a target="_new" href="http://wiki.openstreetmap.org/wiki/Wp-osm-plugin#adding_a_single_marker">osm-wiki page</a>)</li>
  36.   <colgroup>
  37.     <col width="120">
  38.     <col width="120">
  39.     <col width="120">
  40.     <col width="120">
  41.     <col width="120">
  42.   </colgroup>
  43.  <tr>
  44.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/marker_blue.png" alt="Blue Marker"><br><input type="radio" name="Art" value="marker_blue.png"></p></td>
  45.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/wpttemp-green.png" alt="Green Waypoint"><br><input type="radio" name="Art" value="wpttemp-green.png"></p></td>
  46.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/wpttemp-red.png" alt="Red Waypoint"><br><input type="radio" name="Art" value="wpttemp-red.png"></p></td>
  47.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/wpttemp-yellow.png" alt="Yellow Marker"><br><input type="radio" name="Art" value="wpttemp-yellow.png"></p></td>
  48.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/geocache.png" alt="Geocache"><br><input type="radio" name="Art" value="geocache.png"></p></td>
  49.  </tr>
  50.  <tr>
  51.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/car.png" alt="Car Marker"><br><input type="radio" name="Art" value="car.png"></p></td>
  52.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/bus.png" alt="Bus Waypoint"><br><input type="radio" name="Art" value="bus.png"></p></td>
  53.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/bicycling.png" alt="Bicycling Waypoint"><br><input type="radio" name="Art" value="bicycling.png"></p></td>
  54.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/airport.png" alt="Airport Marker"><br><input type="radio" name="Art" value="airport.png"></p></td>
  55.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/motorbike.png" alt="Motorbike"><br><input type="radio" name="Art" value="motorbike.png"></p></td>
  56.  </tr>
  57.  <tr>
  58.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/hotel.png" alt="Hotel Marker"><br><input type="radio" name="Art" value="hotel.png"></p></td>
  59.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/hostel.png" alt="Hostel Waypoint"><br><input type="radio" name="Art" value="hostel.png"></p></td>
  60.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/guest_house.png" alt="Guesthouse Waypoint"><br><input type="radio" name="Art" value="guest_house.png"></p></td>
  61.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/camping.png" alt="Camping Marker"><br><input type="radio" name="Art" value="camping.png"></p></td>
  62.   <td align="center"><p><img src="<?php echo OSM_PLUGIN_URL ?>/icons/styria_linux.png" alt="Styria Tux"><br><input type="radio" name="Art" value="styria_linux.png"></p></td>
  63.  </tr>
  64. </form>
  65. </table>
  66.  
  67. <h3><?php _e('If you want to add a gpx-track add it:','OSM-plugin') ?></h3>
  68. <form name="GPXfileform" action="">
  69.   <li><?php _e('copy the gpx file via FTP to your upload-folder','OSM-plugin') ?></li>
  70.   <li><?php _e('paste the local URL of gpx file here: ','OSM-plugin') ?> <input name="GpxFile" type="text" size="30" maxlength="200" value="http://"></li>
  71. </form>
  72. <form name="GPXcolourform" action="">
  73. <li> <?php _e('colour of your gpx-track: ','OSM-plugin') ?>
  74.   <input type="radio" name="Gpx_colour" value="red"> <span style="color:red"><?php _e('red ','OSM-plugin') ?>  </span>
  75.   <input type="radio" name="Gpx_colour" value="green"> <span style="color:green"><?php _e('green ','OSM-plugin') ?> </span>
  76.   <input type="radio" name="Gpx_colour" value="blue"> <span style="color:blue"><?php _e('blue ','OSM-plugin') ?> </span>
  77.   <input type="radio" name="Gpx_colour" value="black"> <span style="color:black"><?php _e('black ','OSM-plugin') ?> </span>
  78. </li>
  79. </form>
  80.  
  81. <h3><?php _e('If you want to add a marker file add it:','OSM-plugin') ?></h3>
  82. <form name="Markerfileform" action="">
  83.   <li><?php _e('copy the marker file via FTP to your upload-folder','OSM-plugin') ?></li>
  84.   <li><?php _e('paste the local URL of marker file here: ','OSM-plugin') ?><input name="MarkerFile" type="text" size="30" maxlength="200" value="http://"></li>
  85. </form>
  86.  
  87. <h3><?php _e('If you want to add a border around the map choose the colour:','OSM-plugin') ?></h3>
  88. <form name="Bordercolourform" action="">
  89. <li> <?php _e('colour of a thin solid border:','OSM-plugin') ?>
  90.   <input type="radio" name="Border_colour" value="red"> <span style="color:red"><?php _e('red ','OSM-plugin') ?> </span>
  91.   <input type="radio" name="Border_colour" value="green"> <span style="color:green"><?php _e('green ','OSM-plugin') ?> </span>
  92.   <input type="radio" name="Border_colour" value="blue"> <span style="color:blue"><?php _e('blue ','OSM-plugin') ?> </span>
  93.   <input type="radio" name="Border_colour" value="black"> <span style="color:black"><?php _e('black ','OSM-plugin') ?> </span>
  94. </li>
  95. </form>
  96.  
  97. <h3><?php _e('If you want to add some controls to your map add it here:','OSM-plugin') ?></h3>
  98. <form name="MapControlform" action="">
  99. <p><img src="<?php echo OSM_PLUGIN_URL ?>/WP_OSM_Plugin_Scaleline.png" alt="Scaleline"><br><input type="radio" name="MapControl" value="scaleline"> <?php _e('scaleline','OSM-plugin') ?></p>
  100. </form>
  101.  
  102. <br>
  103. <h3> <?php _e('Adjust the map and click into the map to get your shortcode below the map','OSM-plugin') ?></h3>
  104.   <li><?php _e('select the area and zoomlevel on the map (get a zoomwindow with shift and mousebutton)','OSM-plugin') ?></li>
  105.   <li><?php _e('choose your maptype with this icon ','OSM-plugin') ?><img src="http://www.openlayers.org/api/img/layer-switcher-maximize.png" alt="map type icon"> <?php _e('in the map (google maps will have a license pop up in yor post/page)','OSM-plugin') ?></li>
  106.   <li> <?php _e('your inputs (gpx-file, marker,...) are not displayed in this map but in your post/page ','OSM-plugin') ?></li>
  107.   <li> <?php _e('you can modify your inputs and click again into the map to generate another shortcode ','OSM-plugin') ?></li>
  108. <br>
  109. <?php echo Osm::sc_showMap(array('msg_box'=>'sc_gen','lat'=>'50','long'=>'18.5','zoom'=>'3', 'type'=>'All', 'width'=>'600','height'=>'450', 'map_border'=>'thin solid blue', 'control'=>'mouseposition,scaleline')); ?>
  110. <br>
  111. <h3><span style="color:green"> >> <?php _e('Copy the shortcode and paste it into the content of your post/article: ','OSM-plugin') ?></span></h3>
  112. <div id="ShortCode_Div"><?php _e('If you click into the map the shortcode is displayed instead of this text','OSM-plugin') ?></div><br>
  113.  
  114. <h3><?php _e('Some usefull sites for this plugin:','OSM-plugin') ?></h3>
  115. <ol>
  116.   <li><?php _e('for advanced samples visit the ','OSM-plugin') ?><a target="_new" href="http://www.Fotomobil.at/wp-osm-plugin">osm-plugin page</a>.</li>
  117.   <li><?php _e('for detailed information about usage visit the ','OSM-plugin') ?><a target="_new" href="http://wiki.openstreetmap.org/wiki/Wp-osm-plugin">osm-wiki page</a>.</li>
  118.   <li><?php _e('for questions, bugs and other feedback visit the','OSM-plugin') ?> <a target="_new" href="http://www.Fotomobil.at/wp-osm-plugin-forum">osm-plugin forum</a>.</li>
  119.   <li><?php _e('find news and articles about the plugin at the ','OSM-plugin') ?><a target="_new" href="http://www.HanBlog.net">osm-author page</a>.</li>
  120.   <li><?php _e('download the last version at WordPress.org ','OSM-plugin') ?><a target="_new" href="http://wordpress.org/extend/plugins/osm/">osm-plugin download</a>.</li>
  121. </ol>
  122. <h3><?php _e('If you want to express thanks for this plugin ...','OSM-plugin') ?></h3>
  123. <ol>
  124.   <li><?php _e('do not donate money but submit a photo at the ','OSM-plugin') ?><a target="_new" href="http://www.Fotomobil.at">Fotomobil.at</a> <?php _e('project.','OSM-plugin') ?></li>
  125.   <li><?php _e('put a link to the osm-plugin page on your site ','OSM-plugin') ?><a target="_new" href="http://www.Fotomobil.at/wp-osm-plugin">www.Fotomobil.at/wp-osm-plugin</a>.</li>
  126.   <li><?php _e('or simply leave a message with a link to your page at ','OSM-plugin') ?><a target="_new" href="http://www.Fotomobil.at/wp-osm-plugin-forum">www.Fotomobil.at/wp-osm-plugin-forum</a>.</li>
  127.   <li><?php _e('post an article about ','OSM-plugin') ?><a target="_new" href="http://www.OpenStreetMap.org">OpenStreetMap</a><?php _e(' on your blog.','OSM-plugin') ?></li>
  128.   <li><?php _e('give this plugin a good ranking at ','OSM-plugin') ?><a target="_new" href="http://wordpress.org/extend/plugins/osm/">WordPress.org</a>.</li>
  129. </ol>
  130. <form method="post">
  131.  <tr> <h3><?php _e('How to geotag your post/page ','OSM-plugin') ?></h3> </tr>
  132.   <ol>
  133.     <li><?php _e('Choose a Custom Field name here.','OSM-plugin') ?></li>
  134.     <li><?php _e('Add the geoaddress to this Custom Field in your post/page.','OSM-plugin') ?></li>
  135.   </ol>
  136.  <tr>
  137.   <td><label for="osm_custom_field"><?php _e('Custom Field Name','OSM-plugin') ?>:</label></td>
  138.   <td><input type="text" name="osm_custom_field" value="<?php echo $osm_custom_field ?>" /></td>
  139.  </tr>
  140.  <tr> <h3>  PHP Interface</h3> </tr>
  141.  <tr>
  142.   <td><label for="osm_zoom_level"><?php _e('Map Zoomlevel for the PHP Link (1-17)','OSM-plugin') ?>:</label></td>
  143.   <td><input type="text" name="osm_zoom_level" value="<?php echo $osm_zoom_level ?>" /></td>
  144.  </tr>
  145. </table>
  146. <div class="submit"><input type="submit" name="Options" value="<?php _e('Update Options','OSM-plugin') ?> &raquo;" /></div>
  147. </div>
  148. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement