Changeset 1947662
- Timestamp:
- 09/26/2018 08:56:38 PM (8 years ago)
- Location:
- map-pins/trunk
- Files:
-
- 2 edited
-
include/mappins.php (modified) (1 diff)
-
map-pins.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
map-pins/trunk/include/mappins.php
r1947652 r1947662 124 124 $this->load_commonresources($opts); 125 125 echo "<!-- ".print_r($opts,true)." -->"; 126 wp_enqueue_script( 'mappins_script', MAPPINS_PLUGIN_URL.'/js/mappins.js', array('jquery','mappins_coslib')); 127 wp_localize_script('mappins_script', 'mappins_allmarkers', marker::all()); // include all info of all markers 126 wp_enqueue_script( 'mappins_script', MAPPINS_PLUGIN_URL.'/js/mappins.js', array('jquery','mappins_coslib')); 127 if (isset($opts['category']) && $opts['category']) { 128 // only show markers from a certain category 129 wp_localize_script('mappins_script', 'mappins_allmarkers', marker::byCategory($opts['category']) ); // include all info of all markers 130 } 131 else 132 wp_localize_script('mappins_script', 'mappins_allmarkers', marker::all()); // include all info of all markers 128 133 } // End load_resources 129 134 -
map-pins/trunk/map-pins.php
r1947654 r1947662 4 4 * Plugin URI: http://mappins.innovader.nl 5 5 * Description: Show pins on a map from an admin defined table 6 * Version: 1.2 06 * Version: 1.21 7 7 * Author: Innovader BV 8 8 * Author URI: http://innovader.nl
Note: See TracChangeset
for help on using the changeset viewer.