Changeset 464857
- Timestamp:
- 11/18/2011 07:03:56 PM (14 years ago)
- File:
-
- 1 edited
-
wp-theme-options/trunk/WP-Theme-Options.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-theme-options/trunk/WP-Theme-Options.php
r464356 r464857 42 42 add_action( 'wp_ajax_wp-options-update', array( &$this, 'wp_options_update' ) ); 43 43 } 44 / *For child themes you must change the next 4 directory paths using plugin_dir_url( __FILE__ ) . 'includes/colors to use get_stylesheet_directory_uri() . '/includes/colors45 Note the / before the colors directory46 ----------------------------------------------------------------------------------------------------------------------------------------------------------------- */44 // For child themes you must change the next 4 directory paths using plugin_dir_url( __FILE__ ) . 'includes/colors to use get_stylesheet_directory_uri() . '/includes/colors 45 // Note the / before the colors directory 46 47 47 function color_scheme_scripts() { 48 48 if ( isset( $this->options['color-scheme'] ) ) { … … 122 122 // insert js 123 123 124 / *For child theme change line below to wp_register_script('wp-options.js', get_stylesheet_directory_uri() . '/includes/wp-options.js', array('jquery'));125 ---------------------------------------------------------------------------------------------------------------------------------------------------- */ 124 // For child theme change line below to wp_register_script('wp-options.js', get_stylesheet_directory_uri() . '/includes/wp-options.js', array('jquery')); 125 126 126 wp_register_script('wp-options.js', plugin_dir_url( __FILE__ ) . 'includes/wp-options.js', array('jquery')); 127 127 … … 129 129 wp_enqueue_script('wp-options.js'); 130 130 } 131 / *For child theme change $data['plugin_dir'] = plugin_dir_url( __FILE__ ); to $data['plugin_dir'] = get_stylesheet_directory_uri() . '/'; in the line below132 --------------------------------------------------------------------------------------------------------------------------------------------------------------- */131 // For child theme change $data['plugin_dir'] = plugin_dir_url( __FILE__ ); to $data['plugin_dir'] = get_stylesheet_directory_uri() . '/'; in the line below 132 133 133 function theme_options() { 134 134 $data['plugin_dir'] = plugin_dir_url( __FILE__ ); … … 147 147 require_once "includes/view/{$template}.php"; 148 148 } 149 /* You can add or remove fnts here, take a look at each font array to see how they can be added. 150 Visit http://www.google.com/webfonts for the proper codes 151 ------------------------------------------------------------------------------------------------------------------------------------------- */ 149 // You can add or remove fnts here, take a look at each font array to see how they can be added. Visit http://www.google.com/webfonts for the proper codes 150 152 151 function get_my_available_fonts() { 153 152 $fonts = array(
Note: See TracChangeset
for help on using the changeset viewer.