/*
* With embedded HTML ... not so good
*/
function show_metabox_syntax() {
global $post;
extract( $this->metaboxes['syntax']['field'] );
$meta = get_post_meta($post->ID, $id, true);
// echo $meta;
?>
<input type="hidden" name="codesnips_syntax_metabox_nonce" value="<?php
echo wp_create_nonce(basename(__FILE__)) ?>" />
<div class="lang-syntax-wrap">
<div class="codesnips_field_type_<?php echo str_replace(' ', '_', $type) ?>">
<?php foreach ($options as $key => $option) { ?>
<span class="lang-syntax <?php echo $key ?>">
<input id="<?php echo $key ?>" type="radio" name="<?php
echo $id ?>" value="<?php echo $key ?>"<?php
echo ($meta == $key ? ' checked="checked"' : '') ?> />
<label for="<?php echo $key ?>"><?php echo $option ?></label>
</span>
<?php }// end foreach ?>
<?php echo $desc != '' ? '<br><span class="desc">' . stripslashes($desc) . '</span>' : '' ?>
<div class="clr"></div>
</div>
</div>
<?php
}