Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

EarthJournalismNetwork/jeo-blank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JEO Blank

A blank JEO child theme so you can start your own.

JEO presents plenty of WordPress hooks (actions and filters) and JavaScript events so you can customize your child theme and transform JEO suiting your project needs. Here you will also have some ideas of what you can do.

Features

  • Deregisters default JEO site CSS
  • Deregisters default JEO site front-end JavaScript
  • Demonstrate most used JEO hooks
  • Demonstrate useful JavaScript events

Covered WordPress hooks

Actions

  • jeo_init - JEO functionality inits
  • jeo_enqueue_scripts - Hook scripts after JEO scripts are ready
  • jeo_markers_enqueue_scripts - Hook scripts after JEO Markers scripts are ready

Filters

  • jeo_marker_data - Change posts GeoJSON data (also changes the GeoJSON API output)
  • jeo_markers_data - Change GeoJSON response
  • jeo_map_data - Change map data

Covered JavaScript events

  • jeo.mapReady - A map is ready
  • jeo.groupReady - A map group is ready
  • jeo.groupChanged - The user changes the map being displayed on the group
  • jeo.rangeSliderFiltered - The map range slider filter changes

Developing

Download this repository and start your own project as a new repository. Fork this repository only if you have contributions for the JEO Blank itself.

Make sure you read WordPress child theme specifications so you understand how templates relationship works between parent and child themes.

JEO templates

JEO uses templates to visualize some of its features. You can overwrite them by creating the files in your child theme.

Note that you can change any page template from JEO theme by creating the files in your child theme, these are the ones the JEO creates so it can run properly, here they are:

content-marker-bubble.php

The content displayed inside the bubble (tooltip) of the marker when mousehovered.

content-map.php

The map itself, displayed when <?php jeo_map(); ?> is called.

content-map-group.php

Same idea as content-map.php but for the map group.

content-share.php

The page for the Share a map feature.

content-embed.php

The embed output page.