HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/themes/shootinschool/vc_templates/stm_player_quick_stats.php
<?php
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );

$attsDecode = json_decode(urldecode($atts["stm_pl_qk_sts"]));
?>

<div class="stm-player-quick-stats ">
	<table>
		<thead>
			<tr>
				<th colspan="2" class="heading-font"><?php echo $atts["title"]; ?></th>
			</tr>
		</thead>
		<tbody>
		<?php
		foreach ($attsDecode as $val):
		?>
			<tr>
				<td class="<?php echo (!is_layout("af")) ? "heading-font" : "normal_font"; ?>"><?php echo esc_html($val->label); ?></td>
				<td class="<?php echo (!is_layout("af")) ? "heading-font" : "normal_font"; ?>"><?php echo esc_html($val->data); ?></td>
			</tr>
		<?php
		endforeach;
		?>
		</tbody>
	</table>
</div>