Inventory_Presser_Badges::add_nextgear()

Outputs an HTML button to open NextGear Mechanic’s Reports.

On This Page


Return Return

(void)


Top ↑

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 _button _button-small' );

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

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

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