HEX
Server: LiteSpeed
System: Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: swifizcd (1555)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/swifizcd/buyease.com.ng/wp-content/plugins/essential-blocks/views/post-partials/meta/tax.php
<?php

$tax_meta_html = array();
if ( count( $tax_meta ) > 0 ) {
	foreach ( $tax_meta as $tax ) {
		$tax_item_html = '';
		/**
		 * @var WP_Post $result
		 */
		$term_obj_list = get_the_terms( $result->ID, $tax );
		$item_class    = $tax === 'category' ? 'categories' : ( $tax === 'post_tag' ? 'tags' : $tax );

		if ( is_array( $term_obj_list ) && ! empty( $term_obj_list ) ) {

			$tax_item_html .= sprintf(
				'<div class="ebpg-meta ebpg-%1$s-meta">',
				$item_class
			);

			foreach ( $term_obj_list as $term ) {
				$tax_item_html .= sprintf(
					'<a href="%1$s" title="%2$s">%2$s</a>',
					esc_attr( esc_url( get_term_link( $term->term_id ) ) ),
					esc_html( $term->name )
				);
			}

			$tax_item_html .= '</div>';
		}

		$tax_meta_html[ $tax ] = $tax_item_html;
	}
}

return $tax_meta_html;