} ?> <p style="margin-bottom:15px; padding-top:5px;"><a href="#" class="docopy-docs button">Add Document</a></p> <h2>Media Library</h2> <?php $wpalchemy_media_access = new WPAlchemy_MediaAccess(); $mb->the_field('imgurl'); $wpalchemy_media_access->setGroupName('nn')->setInsertButtonLabel('Insert'); ?> <p> <?php echo $wpalchemy_media_access->getField(array('name' => $mb->get_the_name(), 'value' => $mb->get_the_value())); echo $wpalchemy_media_access->getButton(); ?> </p> <?php $mb->the_field('imgurl2'); $wpalchemy_media_access->setGroupName('nn2')->setInsertButtonLabel('Insert This')->setTab('gallery'); ?> <p> <?php echo $wpalchemy_media_access->getField(array('name' => $mb->get_the_name(), 'value' => $mb->get_the_value())); echo $wpalchemy_media_access->getButton(array('label' => 'Add Image From Library')); ?> </p>
?> <?php $mb->the_field('imgurl'); ?> <?php $property_media_metabox->setGroupName('img-n' . $mb->get_the_index())->setInsertButtonLabel(__('Insert', 'aviators')); ?> <p> <?php echo $property_media_metabox->getField(array('name' => $mb->get_the_name(), 'value' => $mb->get_the_value())); ?> <?php echo $property_media_metabox->getButton(); ?> <a href="#" class="dodelete button"><?php echo __('Remove', 'aviators'); ?> </a> </p> <?php $mb->the_group_close(); ?> <?php } ?> <p>