Plugin Directory

Changeset 1013890


Ignore:
Timestamp:
10/25/2014 05:14:44 PM (11 years ago)
Author:
jhayghost
Message:
  • updated map not loading
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ideal-interactive-map/trunk/interactive-map.php

    r1009170 r1013890  
    44Plugin URI: http://www.globalnetforce.com
    55Description: Interactive and Informative map
    6 Version: 1.2.0
     6Version: 1.2.1
    77*/
    88define("PLUGINURL", dirname(__FILE__) );
     
    2121        add_action("wp_ajax_nopriv_mapsubpage", array($this, "ajax_mapsubpage"), 20);
    2222        add_action( 'wp_enqueue_scripts', array($this, "header") );
    23            
    2423    }
    2524   
    2625    function header(){
    27             $page =  isset( $this->options['page_id'] ) ? $this->options['page_id'] : 0 ;
    28 
    29             if(!is_page($page) && $page == 0) return;
     26        global $post;
     27            if( ! is_a( $post, 'WP_Post' ) && ! has_shortcode( $post->post_content, 'iwg_maps') )
     28            return false;
    3029           
    3130            $version = "1";
     
    4746   
    4847    function shortcode( $atts, $content = null){
     48       
     49       
    4950        add_action("wp_footer", array($this, "footer"), 20);
     51       
    5052        $close = plugins_url( 'img/close.png' , __FILE__ );
    5153        $attribute = shortcode_atts( array(
Note: See TracChangeset for help on using the changeset viewer.