<?php 
/**
 * Your Inspiration Themes
 * 
 * In this files the framework register default metaboxes.
 * 
 * @package WordPress
 * @subpackage Your Inspiration Themes
 * @author Your Inspiration Themes Team <info@yithemes.com>
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

extract( $args );

$size = isset( $size ) ? " style=\"width:{$size}px;\"" : '';
?>
<label for="<?php echo $id ?>"><?php echo $title ?> <small><?php echo $desc ?></small></label>
<p>
    <?php foreach ( $fields as $field_name => $field_label ) : ?>
        <?php echo $field_label ?>: <input type="text" name="<?php echo $name ?>[<?php echo $field_name ?>]" id="<?php echo $id ?>_<?php echo $field_name ?>" value="<?php echo isset( $value[$field_name] ) ? str_replace( '"', "'", $value[$field_name] ) : '' ?>"<?php echo $size ?> /> &nbsp; &nbsp;
    <?php endforeach ?>
</p>