?>
][tags]" data-tags='<?php 
        echo json_encode($all_tags);
        ?>
' value="<?php 
        echo implode(",", (array) $flash->old('variants.' . $key . '.tags'));
        ?>
" type="text" class="form-control ui-select2-tags" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <label><small>Image Slug</small></label>
                                        <?php 
        echo \Assets\Admin\Controllers\Assets::instance()->fetchElementImage('variants_' . preg_replace('/[^\\da-z]/i', '', $key) . '_image', $flash->old('variants.' . $key . '.image'), array('field' => 'variants[' . $key . '][image]'));
        ?>
                                    
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php 
    }
    ?>
                </div>
                </div>
                <?php 
} else {
    ?>
Example #2
0
<div class="row">
    <div class="col-md-2">
        
        <h3>Featured Image</h3>
        <p class="help-block">Some helpful text</p>
                
    </div>
    <!-- /.col-md-2 -->
                
    <div class="col-md-10">
    
        <div class="form-group">
            <label>Primary Image</label>
            <?php 
echo \Assets\Admin\Controllers\Assets::instance()->fetchElementImage('featured_image', $flash->old('featured_image.slug'), array('field' => 'featured_image[slug]'));
?>
        </div>
        <!-- /.form-group -->
        
    </div>
    <!-- /.col-md-10 -->
    
</div>
<!-- /.row -->

<hr/>

<div class="row">
    <div class="col-md-2">
        
        <h3>Description</h3>
Example #3
0
<!-- /.col-md-8 -->

<div class="col-md-4 col-sidebar-right">

    <input type="hidden" name="images[][image]" value="" />

    <template type="text/template" id="add-image-template">
        <fieldset class="template well clearfix">
            <a class="remove-image btn btn-xs btn-danger pull-right" onclick="ShopRemoveRelatedImage(this);" href="javascript:void(0);">
                <i class="fa fa-times"></i>
            </a>                        
            <label>New Image</label>
            <div class="form-group clearfix">
                <div class="col-md-12">
                    <?php 
echo \Assets\Admin\Controllers\Assets::instance()->fetchElementImage('image_{id}', null, array('field' => 'images[{id}][image]'));
?>
                </div>
            </div>
        </fieldset>
    </template>
    
    <div class="form-group">
        <a class="btn btn-warning" id="add-image">Add New Image</a>
    </div>
    
    <div id="new-images" class="form-group"></div>
    
    <script>
    jQuery(document).ready(function(){
        window.new_images = <?php