| Server IP : 172.67.71.254 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/leapdubai/public_html/wp-content/plugins/pure-metafields/metaboxes/fields/ |
Upload File : |
<?php
/**
*
* Tabs
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if(!isset($default)){
$default = false;
}
?>
<?php if(!isset($row_db_value)): ?>
<div class="tm-button-groups">
<?php foreach($choices as $key => $val): ?>
<label class="tm-button-radio">
<?php if(tpmeta_field($id) == ''): ?>
<input
type="radio"
name="<?php echo esc_attr($id); ?>" <?php checked(esc_html($default), $key); ?>
value="<?php echo esc_html($key); ?>"
class="<?php echo esc_attr($id); ?>-tab">
<?php else: ?>
<input
type="radio"
name="<?php echo esc_attr($id); ?>" <?php checked(tpmeta_field($id), $key); ?>
value="<?php echo esc_html($key); ?>"
class="<?php echo esc_attr($id); ?>-tab">
<?php endif; ?>
<span><?php echo esc_html($val); ?></span>
</label>
<?php endforeach; ?>
</div>
<?php else:
$bind_keys = isset($bind)? $bind : '';
?>
<div class="tm-button-groups">
<?php foreach($choices as $key => $val): ?>
<label class="tm-button-radio">
<input
data-key="<?php echo esc_attr($bind_keys); ?>"
type="radio"
name="<?php echo esc_attr($id); ?>[]" <?php checked(esc_html($row_db_value), $key); ?>
value="<?php echo esc_html($key); ?>"
class="<?php echo esc_attr($id); ?>-tab tm-repeater-conditional">
<span><?php echo esc_html($val); ?></span>
</label>
<?php endforeach; ?>
</div>
<?php endif; ?>