Changeset 2984576
- Timestamp:
- 10/26/2023 06:37:34 PM (2 years ago)
- Location:
- wp-custom-cssjs/trunk
- Files:
-
- 2 edited
-
index.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-custom-cssjs/trunk/index.php
r2326825 r2984576 28 28 add_action( 'admin_menu', array($this,'addPanel') ); 29 29 add_action('init',array($this,'main')); 30 30 31 } 31 32 function addPanel(){ 32 33 add_theme_page( __('Add CSS, JS or Tracking Pixel on the site right from your dashboard',"wpcssjs"), __('Custom CSS/JS',"wpcssjs"), 'edit_theme_options', 'wp_custom_css_js', array($this, 'backendConf') ); 33 34 } 35 36 34 37 function hook_pie_html_box_header(){ 35 echo $this->wpccj_option['pie_html_box_header'];38 echo apply_filters( 'pie_header_scripts', $this->wpccj_option['pie_html_box_header']); 36 39 } 37 40 … … 56 59 57 60 function hook_pie_html_box_footer(){ 58 echo $this->wpccj_option['pie_html_box_footer'];61 echo apply_filters( 'pie_footer_scripts', $this->wpccj_option['pie_html_box_footer']); 59 62 } 60 63 function hook_pie_css_box_footer(){ … … 87 90 //$this->wpccj_option['pie_wpccj_enable']; 88 91 if($this->wpccj_option['pie_html_box_header'] != ''){ 92 add_filter( 'pie_header_scripts', 'do_shortcode' ); 89 93 add_action('wp_head',array($this,'hook_pie_html_box_header')); 90 94 } … … 96 100 } 97 101 if($this->wpccj_option['pie_html_box_footer'] != ''){ 102 add_filter( 'pie_footer_scripts', 'do_shortcode' ); 98 103 add_action('wp_footer',array($this,'hook_pie_html_box_footer')); 99 104 } -
wp-custom-cssjs/trunk/readme.txt
r2822350 r2984576 2 2 Contributors: johnibom 3 3 Tags: css, js, jquery, javascript, tracking pixel, custom, css js 4 Requires at least: 3.55 Tested up to: 6. 1.14 Requires at least: 4.5 5 Tested up to: 6.3.2 6 6 Requires PHP: 5.6 7 7 Stable tag: 1.4.1
Note: See TracChangeset
for help on using the changeset viewer.