Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/18/2018 10:51:34 PM (8 years ago)
Author:
djpaul
Message:

Templates, Nouveau: general code review/tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress-functions.php

    r11899 r11900  
    3838    protected static $instance = null;
    3939
    40     /** Functions *************************************************************/
    41 
    4240    /**
    4341     * Return the instance of this class.
     
    4644     */
    4745    public static function get_instance() {
    48 
    49         // If the single instance hasn't been set, set it now.
    5046        if ( null === self::$instance ) {
    5147            self::$instance = new self;
     
    6359        parent::start();
    6460
    65         // Include needed files
    6661        $this->includes();
    67 
    68         // Setup features support
    6962        $this->setup_support();
    7063    }
     
    8376
    8477        $this->includes_dir  = trailingslashit( $this->dir ) . 'includes/';
    85         $this->lang_dir      = trailingslashit( $this->dir ) . 'languages';
    86         $this->domain        = 'bp-nouveau';
    8778        $this->directory_nav = new BP_Core_Nav();
    8879    }
     
    175166        add_action( 'bp_actions', array( $this, 'neutralize_core_template_notices' ), 6 );
    176167
    177         /** Scripts ***********************************************************/
    178 
     168        // Scripts
    179169        add_action( 'bp_enqueue_scripts', array( $this, 'register_scripts' ), 2 ); // Register theme JS
    180 
    181         // We won't use this.
    182170        remove_action( 'bp_enqueue_scripts', 'bp_core_confirmation_js' );
    183 
    184171        add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Enqueue theme CSS
    185172        add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS
    186173        add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization
    187174
    188         /** Body no-js Class **************************************************/
    189 
     175        // Body no-js class
    190176        add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 );
    191177
     
    367353     *
    368354     * @param array $classes Array of classes to append to body tag.
     355     *
    369356     * @return array $classes
    370357     */
     
    549536     * @see bp_buffer_template_part()
    550537     *
    551      * @param  string $retval Current template part contents.
     538     * @param string $retval Current template part contents.
     539     *
    552540     * @return string
    553541     */
Note: See TracChangeset for help on using the changeset viewer.