Inventory_Presser_Badges::add_nextgear()


Source Source

File: includes/class-badges.php

	public function add_nextgear()
	{
		$url = INVP::get_meta( 'nextgear_inspection_url' );
		if( ! empty( $url ) )
		{
			//CSS classes on the <a>
			$classes = apply_filters( 'invp_button_classes_nextgear_inspection_url', 'wp-block-button__link button' );

			?><div class="nextgear-wrapper">
				<a class="<?php echo $classes; ?>" href="<?php echo $url; ?>"><?php

				echo apply_filters( 'invp_button_text_nextgear_inspection_url', __( 'Mechanic\'s Report', 'inventory-presser' ) );

			?></a>
			</div><?php
		}
	}