Skip to content

Instantly share code, notes, and snippets.

@465media
Created April 26, 2025 13:07
Show Gist options
  • Save 465media/138bad004d6aa3b9e0dc2b921a8c8580 to your computer and use it in GitHub Desktop.
Save 465media/138bad004d6aa3b9e0dc2b921a8c8580 to your computer and use it in GitHub Desktop.
MedPro Block
<?php
/**
* The MedPro Products block template
*/
?>
<section class="medpro-products">
<div class="medpro-products__row">
<?php if ( ! is_wp_error( get_term_link( 'sports-medicine', 'ani_product_category' ) ) ) : ?>
<div id="medpro-products-sports-medicine" class="medpro-products__column">
<a href="<?php echo get_term_link( 'sports-medicine', 'ani_product_category' ); ?>" class="medpro-products__column-image-wrap">
<img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/sports-medicine.webp" class="img--explode img--explode-below">
</a>
<a href="<?php echo get_term_link( 'sports-medicine', 'ani_product_category' ); ?>">
<h4><?php _e( 'Sports Medicine', 'anika' ); ?></h4>
<p><?php _e( 'Implants and instrumentation used in sports medicine procedures to repair the shoulder, knee, hip, and distal extremities', 'amika' ); ?></p>
<span class="medpro-products__column-checkmark"></span>
</a>
</div>
<?php endif; ?>
<?php if ( ! is_wp_error( get_term_link( 'regenerative-solutions', 'ani_product_category' ) ) ) : ?>
<div id="medpro-products-joint-technologies" class="medpro-products__column">
<a href="<?php echo get_term_link( 'regenerative-solutions', 'ani_product_category' ); ?>">
<h4><?php _e( 'Regenerative Solutions', 'anika' ); ?></h4>
<p><?php _e( 'Pioneering regenerative solutions promote the regeneration of new bone or cartilage', 'anika' ); ?></p>
<span class="medpro-products__column-checkmark"></span>
</a>
<a href="<?php echo get_term_link( 'regenerative-solutions', 'ani_product_category' ); ?>" class="medpro-products__column-image-wrap">
<img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/joint-technologies.webp" class="img--explode">
</a>
</div>
<?php endif; ?>
</div>
<div id="medpro-products-regenerative-solutions" class="medpro-products__row">
<?php if ( ! is_wp_error( get_term_link( 'oa-pain-management', 'ani_product_category' ) ) ) : ?>
<div class="medpro-products__column">
<a href="<?php echo get_term_link( 'oa-pain-management', 'ani_product_category' ); ?>" class="medpro-products__column-image-wrap">
<img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/regenerative-solutions.webp" class="img--explode">
</a>
<a href="<?php echo get_term_link( 'oa-pain-management', 'ani_product_category' ); ?>">
<h4><?php _e( 'OA Pain Management', 'anika' ); ?></h4>
<p><?php _e( 'Comprehensive portfolio of viscosupplementation products to address joint pain associated with osteoarthritis', 'anika' ); ?></p>
<span class="medpro-products__column-checkmark"></span>
</a>
</div>
<?php endif; ?>
<?php if ( ! is_wp_error( get_term_link( 'non-orthopedic-solutions', 'ani_product_category' ) ) ) : ?>
<div id="medpro-products-oa-pain-management" class="medpro-products__column">
<a href="<?php echo get_term_link( 'non-orthopedic-solutions', 'ani_product_category' ); ?>">
<h4><?php _e( 'Non-Orthopedic Solutions', 'anika' ); ?></h4>
<p><?php _e( 'Hyaluronic acid solutions including veterinary, wound care, ophthalmic, and surgical solutions', 'anika' ); ?></p>
<span class="medpro-products__column-checkmark"></span>
</a>
<a href="<?php echo get_term_link( 'non-orthopedic-solutions', 'ani_product_category' ); ?>" class="medpro-products__column-image-wrap">
<img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/oa-pain-management.webp" class="img--explode">
</a>
</div>
<?php endif; ?>
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment