Plugin Directory

Changeset 1947662


Ignore:
Timestamp:
09/26/2018 08:56:38 PM (8 years ago)
Author:
rvwoens
Message:

use categories in tag

Location:
map-pins/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • map-pins/trunk/include/mappins.php

    r1947652 r1947662  
    124124        $this->load_commonresources($opts);
    125125        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
    128133    } // End load_resources
    129134
  • map-pins/trunk/map-pins.php

    r1947654 r1947662  
    44 * Plugin URI: http://mappins.innovader.nl
    55 * Description: Show pins on a map from an admin defined table
    6  * Version: 1.20
     6 * Version: 1.21
    77 * Author: Innovader BV
    88 * Author URI: http://innovader.nl
Note: See TracChangeset for help on using the changeset viewer.