HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //home/madepabj/www/wp-content/themes/rehub-theme/amp/rehub-amp-header-before-title.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php echo re_badge_create('labelsmall', $this->ID)?>
<?php 	
$post_id = $this->ID;
if(rehub_option('exclude_cat_meta') != 1){ 
	echo '<div class="rh-cat-list-title">';
	if ('post' == get_post_type($post_id)) {
		$categories = get_the_category($post_id);
		$separator = '';
		$output = '';
		if ( ! empty( $categories ) ) {
		    foreach( $categories as $category ) {
		        $output .= '<a class="rh-cat-label-title rh-cat-'.$category->term_id.'" href="' . esc_url( get_category_link( $category->term_id ) ) . '" title="' . esc_attr( sprintf( esc_html__( 'View all posts in %s', 'rehub-theme' ), $category->name ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
		    }
		    echo trim( $output, $separator );
		}
		if(rehub_option('enable_brand_taxonomy') == 1){ 
			$dealcats = wp_get_post_terms($post_id, 'dealstore', array("fields" => "all"));	
			if( ! empty( $dealcats ) && ! is_wp_error( $dealcats ) ) {
				foreach( $dealcats as $dealcat ) {
			        echo '<a class="rh-cat-label-title rh-dealstore-cat rh-cat-'.$dealcat->term_id.'" href="' . esc_url( get_term_link( $dealcat->term_id ) ) . '" title="' . esc_attr( sprintf( esc_html__( 'View all posts in %s', 'rehub-theme' ), $dealcat->name ) ) . '">' . esc_html( $dealcat->name ) . '</a>' . $separator;						
				}
			}								
		}		
	}
	echo '</div>';
}
?>