Skip to content

WP Shortcodes

georgholzer edited this page Oct 10, 2012 · 8 revisions

Back to start

This Plugin comes with some WP-Shortcodes which can be included in every page or post.

[pingeb_heatmap]

Renders a heatmap with downloads as "hotspots".

Parameter

  • w: Width of the heatmap - Default: 640
  • h: Height of the heatmap - Default: 480
  • zoom: Map zoom level - Default: 12
  • downloads: determines how many downloads show be used to render the map. - Default: 500
  • lat: Latitude of mapcenter - Default: 46.626425
  • lon: Longitude of mapcenter - Default: 14.304956

Example

Heatmap with a size of 900x480px, a zoomlevel of 13 and it will render the last 400 downloads.

[pingeb_heatmap w=900 h=480 zoom=13 downloads=400]

[pingeb_data_qr_nfc]

Pie chart showing technologie usage of QR vs. NFC.

Parameter

  • w: Width of the chart - Default: 640
  • h: Height of the chart - Default: 480
  • radius: Pie radius - Default: 180
  • center: Center of pie chart in chart area - Default: 200,200
  • legendpos: Position of chart legend (north,south,east or west) - Default: east
  • colors: Colors of chart parts - Format: 'color1','color2' - Default: '#feed01','#bdcc00'

Example

Chart with a size of 240x280px, a radius of 100, pie center at 120,120 and the legends is at the bottom of the chart.

[pingeb_data_qr_nfc w=240 h=280 radius=100 center=120,120 legendpos=south]

[pingeb_data_qr_nfc_by_month]

Area chart showing technologie usage of QR vs. NFC of every complete month. This means this chart won't show any data in the first month.

Parameter

  • w: Width of the chart - Default: 640
  • h: Height of the chart - Default: 480
  • radius: Pie radius - Default: 180
  • center: Center of pie chart in chart area - Default: 200,200
  • legendpos: Position of chart legend (north,south,east or west) - Default: east
  • colors: Colors of chart parts - Format: 'color1','color2' - Default: '#feed01','#bdcc00','#a4a4a4','#e9e9e9', '#919191'

Example

Chart with a size of 400x640px.

[pingeb_data_os]

[pingeb_data_os]

Pie chart showing operating system usage of QR vs. NFC of every complete month. This means this chart won't show any data in the first month.

Parameter

  • w: Width of the chart - Default: 640
  • h: Height of the chart - Default: 480
  • colorQR: Color of QR area - Default: #feed01
  • colorNFC: Color of NFC area - Default: #bdcc00

Example

Chart with a size of 400x640px.

[pingeb_data_qr_nfc_by_month h=400 w=640]

Clone this wiki locally