Inventory_Presser_Badges::add_nextgear()
Outputs an HTML button to open NextGear Mechanic’s Reports.
Return Return
(void)
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', esc_html__( 'Mechanic\'s Report', 'inventory-presser' ) ); ?> </a> </div> <?php } }
Expand full source codeCollapse full source codeView on Github