Plugin Directory

Changeset 464857


Ignore:
Timestamp:
11/18/2011 07:03:56 PM (14 years ago)
Author:
zeaks
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-theme-options/trunk/WP-Theme-Options.php

    r464356 r464857  
    4242            add_action( 'wp_ajax_wp-options-update', array( &$this, 'wp_options_update' ) );
    4343        }
    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 ----------------------------------------------------------------------------------------------------------------------------------------------------------------- */       
     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   
    4747        function color_scheme_scripts() {
    4848            if ( isset( $this->options['color-scheme'] ) ) {
     
    122122            // insert js
    123123           
    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
    126126            wp_register_script('wp-options.js', plugin_dir_url( __FILE__ ) . 'includes/wp-options.js', array('jquery'));
    127127
     
    129129            wp_enqueue_script('wp-options.js');
    130130        }   
    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 --------------------------------------------------------------------------------------------------------------------------------------------------------------- */     
     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   
    133133        function theme_options() {
    134134            $data['plugin_dir'] = plugin_dir_url( __FILE__ );
     
    147147            require_once "includes/view/{$template}.php";           
    148148        }
    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       
    152151        function get_my_available_fonts() {
    153152            $fonts = array(
Note: See TracChangeset for help on using the changeset viewer.