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

<table class="form-table">
    <tbody>
        <tr>
            <th style="width:25%">
                <label for="portfolio_date">
                    <strong><?php _e('Release Date', THEMEMAKERS_THEME_FOLDER_NAME); ?></strong>
                    <span style=" display:block; color:#999; margin:5px 0 0 0; line-height: 18px;"></span>
                </label>
            </th>
            <td>
                <input type="text" style="width:75%; margin-right: 20px; float:left;" size="30" value="<?php echo $portfolio_date ?>" id="portfolio_date" name="portfolio_date">
            </td>
        </tr>
        <tr style="border-top:1px solid #eeeeee;">
            <th style="width:25%">
                <label for="portfolio_url">
                    <strong><?php _e('Project URL', THEMEMAKERS_THEME_FOLDER_NAME); ?></strong>
                    <span style=" display:block; color:#999; margin:5px 0 0 0; line-height: 18px;">For example http://demolink.org</span>
                </label>
            </th>
            <td>
                <input type="text" style="width:75%; margin-right: 20px; float:left;" size="30" value="<?php echo $portfolio_url ?>" id="portfolio_url" name="portfolio_url">
            </td>
        </tr>
        <tr style="border-top:1px solid #eeeeee;"><th style="width:25%">
                <label for="portfolio_url_title">
                    <strong><?php _e('URL Title', THEMEMAKERS_THEME_FOLDER_NAME); ?></strong>
                    <span style=" display:block; color:#999; margin:5px 0 0 0; line-height: 18px;"></span>
                </label>
            </th>
            <td>
                <input type="text" style="width:75%; margin-right: 20px; float:left;" size="30" value="<?php echo $portfolio_url_title ?>" id="portfolio_url_title" name="portfolio_url_title">
            </td>
        </tr>        
        <tr style="border-top:1px solid #eeeeee;">
            <th style="width:25%">
                <label for="portfolio_tools">
                    <strong><?php _e('Tools', THEMEMAKERS_THEME_FOLDER_NAME); ?></strong>
                    <span style=" display:block; color:#999; margin:5px 0 0 0; line-height: 18px;">Tools used to create this portfolio.</span>
                </label>
            </th>
            <td>
                <input type="text" style="width:75%; margin-right: 20px; float:left;" size="30" value="<?php echo $portfolio_tools ?>" id="portfolio_tools" name="portfolio_tools">
            </td>
        </tr>


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

        <?php if (!empty($thememakers_portfolio) AND is_array($thememakers_portfolio)): ?>
            <?php foreach ($thememakers_portfolio 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="" id="thememakers_portfolio" name="thememakers_portfolio[]">
                        <a class="button image-button" href="#" style="float: left;">Browse</a>
                        <a href="#" class="repeatable-remove button" style="float:left;margin-left:10px;">Remove</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="" id="thememakers_portfolio" name="thememakers_portfolio[]">
                    <a class="button image-button" href="#" style="float: left;">Browse</a>
                    <a href="#" class="repeatable-remove button" style="float:left;margin-left:10px;">Remove</a>
                </td>
            </tr>
        <?php endif; ?>



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