File: /home/alloesb/www/wp-content/plugins/pixtypes/features/metaboxes/fields/gallery.php
<?php
/**
* Wordpress gallery procesing
*/
global $post;
// include our gallery scripts only when we need them
wp_enqueue_media();
wp_enqueue_script( 'pixgallery' );
// ensure the wordpress modal scripts even if an editor is not present
wp_enqueue_script( 'jquery-ui-dialog', false, array( 'jquery' ), false, true );
wp_localize_script( 'pixgallery', 'locals', array(
'ajax_url' => admin_url( 'admin-ajax.php' ),
'pixtypes_l18n' => array(
'confirmClearGallery' => esc_html__( 'Are you sure you want to clear this gallery?', 'pixtypes' ),
'alertGalleryIsEmpty' => esc_html__( 'This gallery is already empty!', 'pixtypes' )
)
) ); ?>
<div id="pixgallery" class="pixgallery_field hidden">
<ul></ul>
<a class="open_pixgallery" href="#">
<input type="hidden" name="<?php echo $field['id']; ?>" id="pixgalleries" value="<?php echo '' !== $meta ? $meta : $field['std'] ?>"/>
<div><i class="icon dashicons dashicons-images-alt2"></i>
<span><?php esc_html_e( 'Add Image', 'pixtypes' ); ?></span></div>
<span class="clear_gallery"><?php esc_html_e( 'Clear', 'pixtypes' ); ?></span>
</a>
</div>