Your IP : 216.73.216.95


Current Path : /var/www/spmeat/wp-content/themes/jannah/framework/plugins/
Upload File :
Current File : /var/www/spmeat/wp-content/themes/jannah/framework/plugins/class-tielabs-bbpress.php

<?php
/**
 * BBPRESS Class
 *
 */

defined( 'ABSPATH' ) || exit; // Exit if accessed directly



if( ! class_exists( 'TIELABS_BBPRESS' ) ) {

	class TIELABS_BBPRESS{

		/**
		 * __construct
		 *
		 * Class constructor where we will call our filter and action hooks.
		 */
		function __construct(){

			// Disable if the BBPRESS plugin is not active
			if( ! TIELABS_BBPRESS_IS_ACTIVE ){
				return;
			}

			// Disable the default bbpress breadcrumb
			add_filter( 'bbp_no_breadcrumb', '__return_true' );

			// Enqueue and Dequeue CSS files
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ) );
		}


		/*
		 * Enqueue and Dequeue CSS files
		 */
		function enqueue_styles(){

			// Enqueue bbPress Custom Css file
			wp_enqueue_style( 'tie-css-bbpress', TIELABS_TEMPLATE_URL.'/assets/css/plugins/bbpress'. TIELABS_STYLES::is_minified() .'.css', array(), TIELABS_DB_VERSION, 'all' );

			// Dequeue bbPress Default Css files
			wp_dequeue_style( 'bbp-default' );
			wp_dequeue_style( 'bbp-default-rtl' );
		}

	}

	// Instantiate the class
	new TIELABS_BBPRESS();
}




add_action( 'bbp_template_after_single_topic', 'ddw_jetpack_sharing_bbpress' );
/**
* Display Jetpack "Sharing" buttons on bbPress 2.x forums/ topics/ lead topics/ replies.
*
* @author David Decker - DECKERWEB
* @link http://deckerweb.de/twitter
*/
function ddw_jetpack_sharing_bbpress() {
/** If Jetpack "Sharing" function is active, just display it :) */

		// Get the top share buttons
		TIELABS_HELPER::get_template_part( 'templates/single-post/share', '', array( 'share_position' => 'bottom' ) );


} // end function