Changeset 1013890
- Timestamp:
- 10/25/2014 05:14:44 PM (11 years ago)
- File:
-
- 1 edited
-
ideal-interactive-map/trunk/interactive-map.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ideal-interactive-map/trunk/interactive-map.php
r1009170 r1013890 4 4 Plugin URI: http://www.globalnetforce.com 5 5 Description: Interactive and Informative map 6 Version: 1.2. 06 Version: 1.2.1 7 7 */ 8 8 define("PLUGINURL", dirname(__FILE__) ); … … 21 21 add_action("wp_ajax_nopriv_mapsubpage", array($this, "ajax_mapsubpage"), 20); 22 22 add_action( 'wp_enqueue_scripts', array($this, "header") ); 23 24 23 } 25 24 26 25 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; 30 29 31 30 $version = "1"; … … 47 46 48 47 function shortcode( $atts, $content = null){ 48 49 49 50 add_action("wp_footer", array($this, "footer"), 20); 51 50 52 $close = plugins_url( 'img/close.png' , __FILE__ ); 51 53 $attribute = shortcode_atts( array(
Note: See TracChangeset
for help on using the changeset viewer.