* @since 1.0.0
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
/***********************************************************/
// Display Albums
/***********************************************************/
$prefix = '_dt_albums_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-display_albums', 'title' => _x('Display Photo & Video Albums', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}display", 'type' => 'fancy_category', 'mode' => 'both', 'post_type' => 'dt_gallery', 'taxonomy' => 'dt_gallery_category', 'post_type_info' => array('categories', 'posts'), 'main_tab_class' => 'dt_all_albums', 'desc' => sprintf('<h2>%s</h2><p><strong>%s</strong> %s</p><p><strong>%s</strong></p><ul><li><strong>%s</strong>%s</li><li><strong>%s</strong>%s</li><li><strong>%s</strong>%s</li></ul>', _x('ALL your Photo & Video albums are being displayed on this page!', 'backend', 'the7mk2'), _x('By default all your Albums will be displayed on this page. ', 'backend', 'the7mk2'), _x('But you can specify which Album(s) or Album category(s) will (or will not) be shown.', 'backend', 'the7mk2'), _x('In tabs above you can select from the following options:', 'backend', 'the7mk2'), _x('All', 'backend', 'the7mk2'), _x(' &mdash; all Albums will be shown on this page.', 'backend', 'the7mk2'), _x('Only', 'backend', 'the7mk2'), _x(' &mdash; choose Album(s) or Album category(s) to be shown on this page.', 'backend', 'the7mk2'), _x('All, except', 'backend', 'the7mk2'), _x(' &mdash; choose which Album(s) or Album category(s) will be excluded from displaying on this page.', 'backend', 'the7mk2')))), 'only_on' => array('template' => array('template-albums.php', 'template-albums-jgrid.php')));
/***********************************************************/
// Albums options
/***********************************************************/
$prefix = '_dt_albums_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-albums_options', 'title' => _x('Albums Options', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(Presscore_Meta_Box_Field_Template::get_as_array('masonry layout', array('id' => "{$prefix}layout", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('id' => "{$prefix}item_padding", 'show_on_template' => array('template-albums-jgrid.php', 'template-albums.php'))), Presscore_Meta_Box_Field_Template::get_as_array('row target height', array('id' => "{$prefix}target_height", 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('column target width', array('id' => "{$prefix}target_width", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('columns number', array('id' => "{$prefix}columns_number", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}full_width", 'show_on_template' => array('template-albums-jgrid.php', 'template-albums.php'))), Presscore_Meta_Box_Field_Template::get_as_array('description style', array('id' => "{$prefix}description", 'name' => _x('Show albums descriptions:', 'backend metabox', 'the7mk2'), 'hide_fields' => array('under_image' => array("{$prefix}hover_animation", "{$prefix}lines_animation_effect", "{$prefix}bg_post_content_alignment", "{$prefix}hover_content_visibility", "{$prefix}title_visibility"), 'on_hoover_centered' => array("{$prefix}bg_under_masonry_posts", "{$prefix}post_content_alignment", "{$prefix}lines_animation_effect", "{$prefix}hover_content_visibility", "{$prefix}title_visibility"), 'on_dark_gradient' => array("{$prefix}bg_under_masonry_posts", "{$prefix}bg_post_content_alignment", "{$prefix}hover_animation", "{$prefix}hover_bg_color", "{$prefix}lines_animation_effect", "{$prefix}title_visibility"), 'from_bottom' => array("{$prefix}bg_under_masonry_posts", "{$prefix}bg_post_content_alignment", "{$prefix}hover_animation", "{$prefix}hover_bg_color", "{$prefix}lines_animation_effect", "{$prefix}hover_content_visibility", "{$prefix}title_visibility"), 'bg_with_lines' => array("{$prefix}bg_under_masonry_posts", "{$prefix}post_content_alignment", "{$prefix}bg_post_content_alignment", "{$prefix}hover_animation", "{$prefix}hover_content_visibility")), 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover animation', array('id' => "{$prefix}hover_animation", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover background color', array('id' => "{$prefix}hover_bg_color", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('background under masonry post', array('name' => _x('Background under album:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_under_masonry_posts", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover content visibility', array('id' => "{$prefix}hover_content_visibility", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('content alignment', array('id' => "{$prefix}post_content_alignment", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('vertical left content alignment', array('id' => "{$prefix}bg_post_content_alignment", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover lines animation', array('id' => "{$prefix}lines_animation_effect", 'show_on_template' => 'template-albums.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover content visibility', array('id' => "{$prefix}title_visibility", 'name' => _x('Title visibility:', 'backend metabox', 'the7mk2'), 'show_on_template' => 'template-albums.php')), array('id' => "{$prefix}posts_same_width", 'name' => _x('Make all albums the same width:', 'backend metabox', 'the7mk2'), 'type' => 'checkbox', 'std' => 0, 'divider' => 'top', 'show_on_template' => 'template-albums.php'), Presscore_Meta_Box_Field_Template::get_as_array('hide last row', array('id' => "{$prefix}hide_last_row", 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('jgrid description style', array('id' => "{$prefix}jgrid_description", 'name' => _x('Show albums descriptions:', 'backend metabox', 'the7mk2'), 'hide_fields' => array('on_hoover_centered' => array("{$prefix}jgrid_lines_animation_effect", "{$prefix}jgrid_post_content_alignment", "{$prefix}jgrid_hover_content_visibility", "{$prefix}jgrid_title_visibility"), 'on_dark_gradient' => array("{$prefix}jgrid_hover_animation", "{$prefix}jgrid_hover_bg_color", "{$prefix}jgrid_bg_post_content_alignment", "{$prefix}jgrid_lines_animation_effect", "{$prefix}jgrid_title_visibility"), 'from_bottom' => array("{$prefix}jgrid_hover_animation", "{$prefix}jgrid_hover_bg_color", "{$prefix}jgrid_bg_post_content_alignment", "{$prefix}jgrid_lines_animation_effect", "{$prefix}jgrid_hover_content_visibility", "{$prefix}jgrid_title_visibility"), 'bg_with_lines' => array("{$prefix}jgrid_hover_animation", "{$prefix}jgrid_bg_post_content_alignment", "{$prefix}jgrid_post_content_alignment", "{$prefix}jgrid_hover_content_visibility")), 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover animation', array('id' => "{$prefix}jgrid_hover_animation", 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover background color', array('id' => "{$prefix}jgrid_hover_bg_color", 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover content visibility', array('id' => "{$prefix}jgrid_hover_content_visibility", 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('vertical left content alignment', array('id' => "{$prefix}jgrid_bg_post_content_alignment", 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('content alignment', array('id' => "{$prefix}jgrid_post_content_alignment", 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover lines animation', array('id' => "{$prefix}jgrid_lines_animation_effect", 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover content visibility', array('id' => "{$prefix}jgrid_title_visibility", 'name' => _x('Title visibility:', 'backend metabox', 'the7mk2'), 'show_on_template' => 'template-albums-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('image sizing', array('id' => "{$prefix}image_layout", 'hide_fields' => array('original' => array("{$prefix}thumb_proportions")))), Presscore_Meta_Box_Field_Template::get_as_array('image proportions', array('id' => "{$prefix}thumb_proportions")), array('name' => _x('Number of albums to display on one page:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}ppp", 'type' => 'text', 'std' => '', 'divider' => 'top'), Presscore_Meta_Box_Field_Template::get_as_array('loading mode', array('id' => "{$prefix}load_style", 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('loading effect', array('id' => "{$prefix}load_effect")), array('before' => presscore_meta_boxes_advanced_settings_tpl('dt_portfolio-advanced'), 'name' => _x('Show albums titles:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_titles", 'type' => 'radio', 'std' => '1', 'options' => Presscore_Meta_Box_Field_Template::get('yes no values')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_exerpts", 'name' => _x('Show albums excerpts:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('image miniatures', array('id' => "{$prefix}show_round_miniatures", 'divider' => 'top_and_bottom')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_categories_in_post_meta", 'name' => _x('Show album categories:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_date_in_post_meta", 'name' => _x('Show album date:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_author_in_post_meta", 'name' => _x('Show album author:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_comments_in_post_meta", 'name' => _x('Show album comments:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_numbers_in_post_meta", 'name' => _x('Show number of images &amp; videos:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_filter", 'name' => _x('Show albums filter:', 'backend metabox', 'the7mk2'), 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('show name/date ordering', array('id' => "{$prefix}show_orderby")), Presscore_Meta_Box_Field_Template::get_as_array('show asc/desc ordering', array('id' => "{$prefix}show_order")), Presscore_Meta_Box_Field_Template::get_as_array('show all pages paginator', array('id' => "{$prefix}show_all_pages", 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('order', array('id' => "{$prefix}order", 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('orderby', array('id' => "{$prefix}orderby", 'after' => '</div>'))), 'only_on' => array('template' => array('template-albums.php', 'template-albums-jgrid.php')));
/***********************************************************/
// Display Photos
/***********************************************************/
$prefix = '_dt_albums_media_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-display_albums_media', 'title' => _x('Display Photos & Videos', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}display", 'type' => 'fancy_category', 'mode' => 'both', 'post_type' => 'dt_gallery', 'taxonomy' => 'dt_gallery_category', 'post_type_info' => array('categories', 'posts'), 'main_tab_class' => 'dt_all_albums', 'desc' => sprintf('<h2>%s</h2><p><strong>%s</strong> %s</p><p><strong>%s</strong></p><ul><li><strong>%s</strong>%s</li><li><strong>%s</strong>%s</li><li><strong>%s</strong>%s</li></ul>', _x('ALL Photos & Videos from all your Albums are being displayed on this page!', 'backend', 'the7mk2'), _x('By default all your Photos & Videos will be displayed on this page. ', 'backend', 'the7mk2'), _x('But you can specify which Album(s) or Album category(s) will (or will not) be shown.', 'backend', 'the7mk2'), _x('In tabs above you can select from the following options:', 'backend', 'the7mk2'), _x('All', 'backend', 'the7mk2'), _x(' &mdash; all Photos & Videos from all Albums will be shown on this page.', 'backend', 'the7mk2'), _x('Only', 'backend', 'the7mk2'), _x(' &mdash; choose Album(s) or Album category(s) to be shown on this page.', 'backend', 'the7mk2'), _x('All, except', 'backend', 'the7mk2'), _x(' &mdash; choose which Album(s) or Album category(s) will be excluded from displaying on this page.', 'backend', 'the7mk2')))), 'only_on' => array('template' => array('template-media.php', 'template-media-jgrid.php')));
/***********************************************************/
// Media template options
/***********************************************************/
$prefix = '_dt_media_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-media_options', 'title' => _x('Gallery Options', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(Presscore_Meta_Box_Field_Template::get_as_array('masonry layout', array('id' => "{$prefix}layout", 'show_on_template' => 'template-media.php')), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('id' => "{$prefix}item_padding")), Presscore_Meta_Box_Field_Template::get_as_array('row target height', array('id' => "{$prefix}target_height", 'show_on_template' => 'template-media-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('column target width', array('id' => "{$prefix}target_width", 'show_on_template' => 'template-media.php')), Presscore_Meta_Box_Field_Template::get_as_array('columns number', array('id' => "{$prefix}columns_number", 'show_on_template' => 'template-media.php')), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}full_width")), Presscore_Meta_Box_Field_Template::get_as_array('hide last row', array('id' => "{$prefix}hide_last_row", 'show_on_template' => 'template-media-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('image sizing', array('id' => "{$prefix}image_layout", 'hide_fields' => array('original' => array("{$prefix}thumb_proportions")))), Presscore_Meta_Box_Field_Template::get_as_array('image proportions', array('id' => "{$prefix}thumb_proportions")), array('name' => _x('Number of items to display on one page:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}ppp", 'type' => 'text', 'std' => '', 'divider' => 'top'), Presscore_Meta_Box_Field_Template::get_as_array('loading mode', array('id' => "{$prefix}load_style", 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('loading effect', array('id' => "{$prefix}load_effect")), array('name' => _x('Show items titles:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_titles", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options, 'before' => presscore_meta_boxes_advanced_settings_tpl('dt_portfolio-advanced')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_exerpts", 'name' => _x('Show items captions:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('show all pages paginator', array('id' => "{$prefix}show_all_pages", 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('order', array('id' => "{$prefix}order", 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('orderby', array('id' => "{$prefix}orderby", 'after' => '</div>'))), 'only_on' => array('template' => array('template-media.php', 'template-media-jgrid.php')));
/***********************************************************/
// Albums post media
/***********************************************************/
$prefix = '_dt_album_media_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-album_post_media', 'title' => _x('Add/Edit Media', 'backend metabox', 'the7mk2'), 'pages' => array('dt_gallery'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}items", 'type' => 'image_advanced_mk2')));
// image proportions
Presscore_Meta_Box_Field_Template::add('image proportions', array('name' => _x('Images proportions:', 'backend metabox', 'the7mk2'), 'type' => 'simple_proportions', 'std' => array('width' => 1, 'height' => 1)));
// loading mode
Presscore_Meta_Box_Field_Template::add('loading mode', array('name' => _x('Loading mode:', 'backend metabox', 'the7mk2'), 'type' => 'radio', 'std' => 'ajax_pagination', 'options' => array('ajax_pagination' => _x('AJAX Pagination', 'backend metabox', 'the7mk2'), 'ajax_more' => _x('"Load more" button', 'backend metabox', 'the7mk2'), 'lazy_loading' => _x('Lazy loading', 'backend metabox', 'the7mk2'), 'default' => _x('Standard (no AJAX)', 'backend metabox', 'the7mk2'))));
// loading effect
Presscore_Meta_Box_Field_Template::add('loading effect', array('name' => _x('Loading effect:', 'backend metabox', 'the7mk2'), 'type' => 'radio', 'std' => 'fade_in', 'options' => Presscore_Meta_Box_Field_Template::get('loading effect values')));
// radio yes(default) no
Presscore_Meta_Box_Field_Template::add('radio yes no', array('type' => 'radio', 'std' => '1', 'options' => Presscore_Meta_Box_Field_Template::get('yes no values')));
// select pages
Presscore_Meta_Box_Field_Template::add('select pages', array('type' => 'dropdown_pages', 'post_type' => 'page', 'placeholder' => _x('&mdash; Choose page &mdash;', 'backend metabox', 'the7mk2')));
// show name/date ordering (radio)
Presscore_Meta_Box_Field_Template::add('show name/date ordering', array('name' => _x('Show name / date ordering:', 'backend metabox', 'the7mk2'), 'type' => 'radio', 'std' => '1', 'options' => Presscore_Meta_Box_Field_Template::get('yes no values')));
// show asc/desc ordering (radio)
Presscore_Meta_Box_Field_Template::add('show asc/desc ordering', array('name' => _x('Show asc. / desc. ordering:', 'backend metabox', 'the7mk2'), 'type' => 'radio', 'std' => '1', 'options' => Presscore_Meta_Box_Field_Template::get('yes no values')));
// show all pages in paginator (radio)
Presscore_Meta_Box_Field_Template::add('show all pages paginator', array('name' => _x('Show all pages in paginator:', 'backend metabox', 'the7mk2'), 'type' => 'radio', 'std' => '0', 'options' => Presscore_Meta_Box_Field_Template::get('yes no values')));
// order
Presscore_Meta_Box_Field_Template::add('order', array('name' => _x('Order:', 'backend metabox', 'the7mk2'), 'type' => 'radio', 'std' => 'DESC', 'options' => array('ASC' => _x('ascending', 'backend', 'the7mk2'), 'DESC' => _x('descending', 'backend', 'the7mk2'))));
// orderby
Presscore_Meta_Box_Field_Template::add('orderby', array('name' => _x('Order by:', 'backend metabox', 'the7mk2'), 'type' => 'select', 'std' => 'date', 'options' => array('date' => _x('date', 'backend', 'the7mk2'), 'name' => _x('name', 'backend', 'the7mk2'))));
// preview width
Presscore_Meta_Box_Field_Template::add('preview width', array('type' => 'radio', 'std' => 'normal', 'options' => array('normal' => _x('normal', 'backend metabox', 'the7mk2'), 'wide' => _x('wide', 'backend metabox', 'the7mk2')), 'divider' => 'top'));
// media content width
Presscore_Meta_Box_Field_Template::add('media content width', array('name' => _x('Thumbnail width (in %):', 'backend metabox', 'the7mk2'), 'type' => 'text', 'std' => '', 'divider' => 'top'));
Presscore_Meta_Box_Field_Template::add('transparent header color mode', array('std' => 'light', 'type' => 'radio', 'options' => array('light' => _x('Light', 'theme-options', 'the7mk2'), 'dark' => _x('Dark', 'theme-options', 'the7mk2'), 'theme' => _x('From Theme Options', 'theme-options', 'the7mk2'))));
////////////////////
// Photo Scroller //
////////////////////
// max width
Presscore_Meta_Box_Field_Template::add('photoscroller max width', array('name' => _x('Max width (%):', 'backend metabox', 'the7mk2'), 'type' => 'text', 'std' => '100'));
// min width