<?php 
wpv_description('', $desc);
?>
	</div>
	
	<div class="rcontent">
		<?php 
foreach ($selects as $id => $s) {
    ?>
			<?php 
    if (isset($s['target'])) {
        if (isset($s['options'])) {
            $s['options'] = $s['options'] + WpvConfigGenerator::get_select_target_config($s['target']);
        } else {
            $s['options'] = WpvConfigGenerator::get_select_target_config($s['target']);
        }
    }
    if (isset($GLOBALS['wpv_in_metabox'])) {
        $selected = get_post_meta($post->ID, $id, true);
    } else {
        $selected = wpv_get_option($id, $s['default']);
    }
    ?>
			<div class="single-option">
				<div class="single-desc"><?php 
    echo $s['desc'];
    ?>
</div>
				
				<select name="<?php 
Exemple #2
0
<?php

/**
 * radio
 */
if (isset($target)) {
    if (isset($options)) {
        $options = $options + WpvConfigGenerator::get_select_target_config($target);
    } else {
        $options = WpvConfigGenerator::get_select_target_config($target);
    }
}
$checked = wpv_get_option($id, $default);
$ff = empty($field_filter) ? '' : "data-field-filter='{$field_filter}'";
?>

<div class="wpv-config-row radio clearfix <?php 
echo $class;
?>
" <?php 
echo $ff;
?>
>
	
	<div class="rtitle">
		<h4><label for="<?php 
echo $id;
?>
"><?php 
echo $name;
?>