-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
100 lines (65 loc) · 2.53 KB
/
README
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
--------------------------------
WP REPRESENT MAP
--------------------------------
Author: Andre Cardoso aka andrebian
Contributors: @abenzer (http://www.twitter.com/abenzer), @tara (http://www.twitter.com/tara), @seanbonner (http://www.twitter.com/seanbonner)
Tested on: 3.0 and up
Stable Version: 0.2
Page: https://github.com/andrebian/wp-represent-map
Tested up to: 3.7.1
------------
Description
------------
Wordpress plugin based on Represent Map (https://github.com/abenzer/represent-map)
The original represent map is a full-system to manage startups, accelerators, coworking and much more pin on maps using Google Maps API.
This plugin is inspired on the original Represent Map providing
the wordpress admin management. The same functionality inside Wordpress.
------------
INSTALLATION
------------
Composer
--------
"andrebian/wp-represent-map": "dev-master"
Cloning
------
Clone this repository into your wp-content/plugins path keeeping the wp-represent-map path name and enable it on Wordpress admin panel.
Downloading as zip
-----------------
Download it as zip, unzip into your wp-content/plugins path keeping the wp-represent-map path name.
-----
USAGE
-----
Indispensable
--------------
On your functions.php put the following code:
/* Single item height in pixels */
if ( !defined('SINGLE_HEIGHT_MAP') ) {
define('SINGLE_HEIGHT_MAP', '150PX');
}
/* Full map height in pixels */
if ( !defined('ALL_HEIGHT_MAP') ) {
define('ALL_HEIGHT_MAP', '560px');
}
After this follow the steps bellow.
Admin Panel
----------
Configure your default location and default lat lng in 'Settings/Wp Represent Map'
admin page. After this create your item types in 'Map Items/Type' on wordpress admin panel.
Now just create your Map items providing the correct address and selecting which is the type of it.
Blog/Site
---------
The WP Represent Map works with shortcode. To show all items in a map use:
[represent-map]
To show only one type of items on map provide the slug you want to show in **type** parameter:
[represent-map type=startup]
------------
NOTE
------------
This plugin actually works with only 2 category levels, if exists more than 2 levels
the following WILL NOT APPEAR on lateral menu.
------------
CONTRIBUTING
------------
I am just starting the development and would be very happy if anyone
can help to create an awesome tool.
If you want to contribute, please read CONTRIBUTING file at https://github.com/andrebian/wp-represent-map/blob/master/CONTRIBUTING.md.