wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder.php
/**
	 * Display Toggle themify builder
	 * wp admin bar
	 */
Display Toggle themify builder
wp admin bar
Display Toggle themify builder wp admin bar
public function builder_admin_bar_menu($wp_admin_bar) {
		if(!is_admin_bar_showing()){
			return;
		}
		$post_id=self::builder_is_available();
		$isAvailable = $post_id!==false;
		$title='<span data-id="'.$post_id.'" class="tb_front_icon"></span>';
		$title.='<span class="tb_tooltip">'.__( 'Builder is not available on this page','themify' ).'</span>'.esc_html__( 'Turn On Builder','themify' );
		$args=array(
			array(
				'id'=>'themify_builder',
				'title'=>$title,
				'href'=>'#',
				'meta'=>array('class'=>'toggle_tb_builder'.( $isAvailable===true ? '' : ' tb_disabled_turn_on' ))
			)
		);
		$args=apply_filters( 'themify_builder_admin_bar_menu',$args,$isAvailable );
		foreach($args as $arg){
			$wp_admin_bar->add_node( $arg );
		}
	}
public function builder_admin_bar_menu ( $ wp_admin_bar ) { if ( ! is_admin_bar_showing ( ) ) { return ; } $ post_id = self :: builder_is_available ( ) ; $ isAvailable = $ post_id !== false ; $ title = '<span data-id="' . $ post_id . '" class="tb_front_icon"></span>' ; $ title .= '<span class="tb_tooltip">' . __ ( 'Builder is not available on this page' , 'themify' ) . '</span>' . esc_html__ ( 'Turn On Builder' , 'themify' ) ; $ args = array ( array ( 'id' => 'themify_builder' , 'title' => $ title , 'href' => '#' , 'meta' => array ( 'class' => 'toggle_tb_builder' . ( $ isAvailable === true ? '' : ' tb_disabled_turn_on' ) ) ) ) ; $ args = apply_filters ( 'themify_builder_admin_bar_menu' , $ args , $ isAvailable ) ; foreach ( $ args as $ arg ) { $ wp_admin_bar -> add_node ( $ arg ) ; } }
Display Toggle themify builder
 wp admin bar
Display Toggle themify builder wp admin bar