Code Monkey home page Code Monkey logo

geopage's Introduction

geopage

Геолокатор для страниц В текущий момент используется только апи карт Google. Однако существует возможность подключения собственного апи.

При использовании в следующие шаблоны необходимо добавить:

page.add.tpl

<tr>
	<td colspan="2">
		{PHP.L.geo_country}: {PAGEADD_FORM_GEO_COUNTRY} {PHP.L.geo_region}: {PAGEADD_FORM_GEO_REGION}<br/> 
		{PHP.L.geo_locality}: {PAGEADD_FORM_GEO_LOCALITY}
		{PHP.L.geo_street}: {PAGEADD_FORM_GEO_STREET}
		<br />
		<button name="geolocate" type="button" id="geolocate" style="display:none;">{PHP.L.getgeolocate}</button>	
		<button id="showonmap" name="showonmap" type="button" style="display:none;">{PHP.L.showonmap}</button>
	</td>
</tr>
<tr>
	<td colspan="2">
		{PHP.L.geo_longitude}: {PAGEADD_FORM_GEO_LONGITUDE} {PHP.L.geo_latitude}: {PAGEADD_FORM_GEO_LATITUDE}
	</td>
</tr>
<tr>
	<td colspan="2">
		{GEOMAP}
	</td>
</tr>

page.edit.tpl

<tr>
	<td colspan="2">
		{PHP.L.geo_country}: {PAGEEDIT_FORM_GEO_COUNTRY} {PHP.L.geo_region}: {PAGEEDIT_FORM_GEO_REGION}<br/>
		{PHP.L.geo_locality}: {PAGEEDIT_FORM_GEO_LOCALITY}
		<!--{PHP.L.rayon}: {PAGEEDIT_FORM_GEO_RAYON}-->
		{PHP.L.geo_street}: {PAGEEDIT_FORM_GEO_STREET}
		<br />
		<button name="geolocate" type="button" id="geolocate" style="display:none;">{PHP.L.getgeolocate}</button>	
		<button id="showonmap" name="showonmap" type="button" style="display:none;">{PHP.L.showonmap}</button>
	</td>
</tr>
<tr>
	<td colspan="2">
		{PHP.L.geo_longitude}: {PAGEEDIT_FORM_GEO_LONGITUDE} {PHP.L.geo_latitude}: {PAGEEDIT_FORM_GEO_LATITUDE}
	</td>
</tr>
<tr>
	<td colspan="2">
		{GEOMAP}
	</td>
</tr>

page.list.tpl

<div id="togglemap">
	{GEOMAP}
</div>

page.tpl

<div class="content clearfix" id="overview_map_view_module">
	{GEOMAP}
</div>  

geopage's People

Contributors

esclkm avatar

Watchers

 avatar  avatar

Forkers

kushelbek

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.