<input type="hidden" name="thememakers_meta_saving" value="1">


<div id="thememakers_image_buffer"></div>


<table class="form-table">
    <tbody>
        <tr style="border-top:1px solid #eeeeee;" >
            <th style="width:25%">
                <label for="preview_videos">
                    <strong><?php _e('Videos', THEMEMAKERS_THEME_FOLDER_NAME); ?></strong>
                    <span style=" display:block; color:#999; margin:5px 0 0 0; line-height: 18px;">
                        <?php _e('Add or remove video fields. MP4,youtube,vimeo', THEMEMAKERS_THEME_FOLDER_NAME); ?>
                    </span>
                </label>
            </th>
            <td>
                <a href="#" style="float:left;" class="repeatable-add button"><?php _e('Add Field', THEMEMAKERS_THEME_FOLDER_NAME); ?></a>
            </td>
        </tr>

        <?php if (!empty($videos) AND is_array($videos)): ?>
            <?php foreach ($videos as $key => $value) : ?>
                <tr style="border-top:1px solid #eeeeee;" class="repeatable-field">
                    <th style="width:25%"></th>
                    <td>
                        <input type="text" style="width:75%; margin-right: 20px; float:left;" size="30" value="<?php echo $value; ?>" class="" name="preview_videos[]">
                        <a class="button image-button" href="#" style="float: left;"><?php _e('Browse', THEMEMAKERS_THEME_FOLDER_NAME); ?></a>
                        <a href="#" class="repeatable-remove button" style="float:left;margin-left:10px;"><?php _e('Remove', THEMEMAKERS_THEME_FOLDER_NAME); ?></a>
                    </td>
                </tr>
            <?php endforeach; ?>
        <?php else: ?>
            <tr style="border-top:1px solid #eeeeee;" class="repeatable-field">
                <th style="width:25%"></th>
                <td>
                    <input type="text" style="width:75%; margin-right: 20px; float:left;" size="30" value="" class="" name="preview_videos[]">
                    <a class="button image-button" href="#" style="float: left;"><?php _e('Browse', THEMEMAKERS_THEME_FOLDER_NAME); ?></a>
                    <a href="#" class="repeatable-remove button" style="float:left;margin-left:10px;"><?php _e('Remove', THEMEMAKERS_THEME_FOLDER_NAME); ?></a>
                </td>
            </tr>
        <?php endif; ?>



    </tbody>
</table>
<script type="text/javascript" src="<?php echo THEMEMAKERS_THEME_URI; ?>/admin/js/gallery.js"></script>
