/***********************************************************/
// 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')));
/////////////////////////////////
// Single album media settings //
/////////////////////////////////
$prefix = '_dt_album_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-album_options', 'title' => _x('Album Options', 'backend metabox', 'the7mk2'), 'pages' => array('dt_gallery'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(Presscore_Meta_Box_Field_Template::get_as_array('select pages', array('name' => _x('Back button:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}back_button", 'divider' => 'bottom')), array('name' => _x('Open album:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}open_album", 'type' => 'radio', 'std' => 'lightbox', 'options' => array('lightbox' => _x('Lightbox', 'backend metabox', 'the7mk2'), 'post' => _x('Album page', 'backend metabox', 'the7mk2')), 'bottom_divider' => true), array('name' => _x('Show media as:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}type", 'type' => 'radio', 'std' => 'slideshow', 'options' => array('slideshow' => array(_x('Slideshow', 'backend metabox', 'the7mk2'), array('layout-slider.gif', 75, 50)), 'gallery' => array(_x('Gallery', 'backend metabox', 'the7mk2'), array('layout-metro.gif', 75, 50)), 'list' => array(_x('List', 'backend metabox', 'the7mk2'), array('layout-list.gif', 75, 50)), 'photo_scroller' => array(_x('PhotoScroller', 'backend metabox', 'the7mk2'), array('photoscroller.gif', 75, 50)), 'masonry_grid' => array(_x('Masonry & Grid', 'backend metabox', 'the7mk2'), array('gallery-masonry-and-grid.gif', 75, 50)), 'jgrid' => array(_x('Justified Grid', 'backend metabox', 'the7mk2'), array('gallery-j-grid.gif', 75, 50))), 'hide_fields' => array('gallery' => array("{$prefix}slider_proportions", "{$prefix}photo_scroller_container", "{$prefix}masonry_grid_container", "{$prefix}jgrid_container"), 'list' => array("{$prefix}slider_proportions", "{$prefix}gallery_container", "{$prefix}photo_scroller_container", "{$prefix}masonry_grid_container", "{$prefix}jgrid_container"), 'slideshow' => array("{$prefix}gallery_container", "{$prefix}photo_scroller_container", "{$prefix}masonry_grid_container", "{$prefix}jgrid_container"), 'photo_scroller' => array("{$prefix}slider_proportions", "{$prefix}gallery_container", "{$prefix}masonry_grid_container", "{$prefix}jgrid_container"), 'masonry_grid' => array("{$prefix}slider_proportions", "{$prefix}gallery_container", "{$prefix}photo_scroller_container", "{$prefix}jgrid_container"), 'jgrid' => array("{$prefix}slider_proportions", "{$prefix}gallery_container", "{$prefix}photo_scroller_container", "{$prefix}masonry_grid_container"))), array('name' => _x('Slider proportions:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}slider_proportions", 'type' => 'simple_proportions', 'std' => array('width' => '', 'height' => ''), 'top_divider' => true), array('before' => '<div class="rwmb-input-' . $prefix . 'gallery_container rwmb-flickering-field">', 'name' => _x('Columns:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}gallery_columns", 'type' => 'select', 'std' => '4', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'), 'multiple' => false, 'top_divider' => true), array('name' => _x('Make first image large:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}gallery_make_first_big", 'type' => 'checkbox', 'std' => 1, 'after' => '</div>'), array('before' => '<div class="rwmb-input-' . $prefix . 'photo_scroller_container rwmb-flickering-field">', 'name' => _x('Layout:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_layout", 'type' => 'radio', 'std' => 'fullscreen', 'options' => array('fullscreen' => _x('Fullscreen slideshow', 'backend metabox', 'the7mk2'), 'with_content' => _x('Fullscreen slideshow + text area', 'backend metabox', 'the7mk2')), 'divider' => 'top'), array('name' => _x('Background under slideshow:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_bg_color", 'type' => 'color', 'std' => '#000000', 'divider' => 'top'), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}photo_scroller_overlay", 'name' => _x('Show pixel overlay:', 'backend metabox', 'the7mk2'), 'divider' => 'top')), array('name' => _x('Top padding:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_top_padding", 'type' => 'text', 'std' => '0', 'divider' => 'top'), array('name' => _x('Bottom padding:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_bottom_padding", 'type' => 'text', 'std' => '0', 'divider' => 'top'), array('name' => _x('Side paddings:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_side_paddings", 'type' => 'text', 'std' => '0', 'divider' => 'top'), Presscore_Meta_Box_Field_Template::get_as_array('opacity slider', array('name' => _x('Inactive image opacity (%):', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_inactive_opacity", 'std' => 15, 'divider' => 'top')), array('name' => _x('Thumbnails:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_thumbnails_visibility", 'type' => 'radio', 'std' => 'show', 'options' => array('show' => _x('Show by default', 'backend metabox', 'the7mk2'), 'hide' => _x('Hide by default', 'backend metabox', 'the7mk2'), 'disabled' => _x('Disable', 'backend metabox', 'the7mk2')), 'divider' => 'top'), array('name' => _x('Thumbnails width:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_thumbnails_width", 'type' => 'text', 'std' => '', 'divider' => 'top'), array('name' => _x('Thumbnails height:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_thumbnails_height", 'type' => 'text', 'std' => 85, 'divider' => 'top'), array('name' => _x('Autoplay:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_autoplay", 'type' => 'radio', 'std' => 'play', 'options' => array('play' => _x('Play', 'backend metabox', 'the7mk2'), 'paused' => _x('Paused', 'backend metabox', 'the7mk2')), 'divider' => 'top'), array('name' => _x('Autoplay speed:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_autoplay_speed", 'type' => 'text', 'std' => '4000', 'divider' => 'top'), array('type' => 'heading', 'name' => _x('Landscape images', 'backend metabox', 'the7mk2'), 'id' => 'fake_id', 'divider' => 'top'), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller max width', array('id' => "{$prefix}photo_scroller_ls_max_width")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller min width', array('id' => "{$prefix}photo_scroller_ls_min_width")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller filling mode desktop', array('id' => "{$prefix}photo_scroller_ls_fill_dt")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller filling mode mobile', array('id' => "{$prefix}photo_scroller_ls_fill_mob")), array('type' => 'heading', 'name' => _x('Portrait images', 'backend metabox', 'the7mk2'), 'id' => 'fake_id', 'divider' => 'top'), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller max width', array('id' => "{$prefix}photo_scroller_pt_max_width")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller min width', array('id' => "{$prefix}photo_scroller_pt_min_width")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller filling mode desktop', array('id' => "{$prefix}photo_scroller_pt_fill_dt")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller filling mode mobile', array('id' => "{$prefix}photo_scroller_pt_fill_mob", 'after' => '</div>')), Presscore_Meta_Box_Field_Template::get_as_array('masonry layout', array('before' => '<div class="rwmb-input-' . $prefix . 'masonry_grid_container rwmb-flickering-field">', 'id' => "{$prefix}mg_layout", 'divider' => 'top', 'options' => array('masonry' => array(_x('Masonry', 'backend metabox', 'the7mk2'), array('gallery-masonry.gif', 60, 48)), 'grid' => array(_x('Grid', 'backend metabox', 'the7mk2'), array('gallery-grid.gif', 60, 48))))), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('id' => "{$prefix}mg_item_padding", 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('column target width', array('id' => "{$prefix}mg_target_width")), Presscore_Meta_Box_Field_Template::get_as_array('columns number', array('id' => "{$prefix}mg_columns_number")), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}mg_full_width")), Presscore_Meta_Box_Field_Template::get_as_array('image sizing', array('id' => "{$prefix}mg_image_layout", 'hide_fields' => array('original' => array("{$prefix}mg_thumb_proportions")))), Presscore_Meta_Box_Field_Template::get_as_array('image proportions', array('id' => "{$prefix}mg_thumb_proportions")), Presscore_Meta_Box_Field_Template::get_as_array('loading effect', array('id' => "{$prefix}mg_load_effect", 'after' => '</div>')), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('before' => '<div class="rwmb-input-' . $prefix . 'jgrid_container rwmb-flickering-field">', 'id' => "{$prefix}jg_item_padding", 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('row target height', array('id' => "{$prefix}jg_target_height")), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}jg_full_width")), Presscore_Meta_Box_Field_Template::get_as_array('hide last row', array('id' => "{$prefix}jg_hide_last_row")), Presscore_Meta_Box_Field_Template::get_as_array('image sizing', array('id' => "{$prefix}jg_image_layout", 'hide_fields' => array('original' => array("{$prefix}jg_thumb_proportions")))), Presscore_Meta_Box_Field_Template::get_as_array('image proportions', array('id' => "{$prefix}jg_thumb_proportions")), Presscore_Meta_Box_Field_Template::get_as_array('loading effect', array('id' => "{$prefix}jg_load_effect", 'after' => '</div>')), array('name' => _x('Exclude featured image from the album:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}exclude_featured_image", 'type' => 'checkbox', 'std' => 0, 'divider' => 'top'), array('name' => _x('Album preview width:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}preview", 'type' => 'radio', 'std' => 'normal', 'options' => array('normal' => _x('normal', 'backend metabox', 'the7mk2'), 'wide' => _x('wide', 'backend metabox', 'the7mk2')), 'divider' => 'top')));
/**
 * Team template and post metaboxes.
 * @since presscore 0.1
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
/***********************************************************/
// Display Team
/***********************************************************/
$prefix = '_dt_team_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-display_team', 'title' => _x('Display Team Members by Category(s)', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}display", 'type' => 'fancy_category', 'mode' => 'taxonomy', 'post_type' => 'dt_team', 'taxonomy' => 'dt_team_category', 'post_type_info' => array('categories'), 'main_tab_class' => 'dt_all_blog', '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 Team  Members are being displayed on this page!', 'backend', 'the7mk2'), _x('By default all your Team Members will be displayed on this page. ', 'backend', 'the7mk2'), _x('But you can specify which Team  Members categories 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 Team  Members (from all categories) will be shown on this page.', 'backend', 'the7mk2'), _x('Only', 'backend', 'the7mk2'), _x(' &mdash; choose Team category(s) to be shown on this page.', 'backend', 'the7mk2'), _x('All, except', 'backend', 'the7mk2'), _x(' &mdash; choose which category(s) will be excluded from displaying on this page.', 'backend', 'the7mk2')))), 'only_on' => array('template' => array('template-team.php')));
/***********************************************************/
// Team options
/***********************************************************/
$prefix = '_dt_team_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-team_options', 'title' => _x('Team 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}masonry_layout")), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('id' => "{$prefix}item_padding", 'name' => _x('Gap between team members (px):', 'backend metabox', 'the7mk2'), 'desc' => _x('Team member paddings (e.g. 5 pixel padding will give you 10 pixel gaps between team members)', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('column target width', array('id' => "{$prefix}target_width")), Presscore_Meta_Box_Field_Template::get_as_array('columns number', array('id' => "{$prefix}columns_number")), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}full_width")), Presscore_Meta_Box_Field_Template::get_as_array('background under post', array('id' => "{$prefix}bg_under_posts", 'name' => _x('Background under team members:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('team image sizing', array('id' => "{$prefix}image_layout", 'hide_fields' => array('original' => array("{$prefix}thumb_proportions"), 'round' => array("{$prefix}thumb_proportions")))), Presscore_Meta_Box_Field_Template::get_as_array('image proportions', array('id' => "{$prefix}thumb_proportions")), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_exerpts", 'name' => _x('Show team members excerpts:', 'backend metabox', 'the7mk2'), 'divider' => 'top')), array('name' => _x('Number of team members on one page:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}ppp", 'type' => 'text', 'std' => '', 'divider' => 'top'), array('before' => presscore_meta_boxes_advanced_settings_tpl('dt_portfolio-advanced'), 'name' => _x('Order:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}order", 'type' => 'radio', 'std' => 'DESC', 'options' => $order_options), array('name' => _x('Orderby:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}orderby", 'type' => 'select', 'options' => array_intersect_key($orderby_options, array('date' => null, 'name' => null)), 'std' => 'date', 'after' => '</div>')), 'only_on' => array('template' => array('template-team.php')));
/***********************************************************/
// Teammate options
/***********************************************************/
// get team links array
$teammate_links = presscore_get_team_links_array();
$prefix = '_dt_teammate_options_';
// teammate metabox fields
$teammate_fields = array(Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}go_to_single", 'name' => _x('Link to teammate details page:', 'backend metabox', 'the7mk2'), 'divider' => 'bottom')), array('name' => _x('Position:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}position", 'type' => 'textarea', 'std' => ''));
// links fields
foreach ($teammate_links as $id => $data) {
    $teammate_fields[] = array('name' => $data['desc'], 'id' => "{$prefix}{$id}", 'type' => 'text', 'std' => '', 'top_divider' => true);
}
$DT_META_BOXES[] = array('id' => 'dt_page_box-testimonial_options', 'title' => _x('Options', 'backend metabox', 'the7mk2'), 'pages' => array('dt_team'), 'context' => 'side', 'priority' => 'low', 'fields' => $teammate_fields);
<?php

/**
 * Testimonials template and post meta boxes
 *
 * @package vogue
 * @since 1.0.0
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
/***********************************************************/
// Display Testimonials
/***********************************************************/
$prefix = '_dt_testimonials_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-display_testimonials', 'title' => _x('Display Testimonials Category(s)', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}display", 'type' => 'fancy_category', 'mode' => 'taxonomy', 'post_type' => 'dt_testimonials', 'taxonomy' => 'dt_testimonials_category', 'post_type_info' => array('categories'), 'main_tab_class' => 'dt_all_blog', '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 Testimonials are being displayed on this page!', 'backend', 'the7mk2'), _x('By default all your Testimonials will be displayed on this page. ', 'backend', 'the7mk2'), _x('But you can specify which Testimonials categories 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 Testimonials (from all categories) will be shown on this page.', 'backend', 'the7mk2'), _x('Only', 'backend', 'the7mk2'), _x(' &mdash; choose Testimonials category(s) to be shown on this page.', 'backend', 'the7mk2'), _x('All, except', 'backend', 'the7mk2'), _x(' &mdash; choose which category(s) will be excluded from displaying on this page.', 'backend', 'the7mk2')))), 'only_on' => array('template' => array('template-testimonials.php')));
/***********************************************************/
// Testimonials options
/***********************************************************/
$prefix = '_dt_testimonials_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-testimonials_options', 'title' => _x('Testimonials 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}masonry_layout")), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('name' => _x('Gap between testimonials (px):', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}item_padding")), Presscore_Meta_Box_Field_Template::get_as_array('column target width', array('id' => "{$prefix}target_width")), Presscore_Meta_Box_Field_Template::get_as_array('columns number', array('id' => "{$prefix}columns_number")), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}full_width")), array('name' => _x('Number of testimonials 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"))), 'only_on' => array('template' => array('template-testimonials.php')));
/***********************************************************/
// Testimonial options
/***********************************************************/
$prefix = '_dt_testimonial_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-testimonial_options', 'title' => _x('Options', 'backend metabox', 'the7mk2'), 'pages' => array('dt_testimonials'), 'context' => 'side', 'priority' => 'core', 'fields' => array(Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}go_to_single", 'name' => _x('Link to testimonial details page:', 'backend metabox', 'the7mk2'), 'std' => '0', 'divider' => 'bottom')), array('name' => _x('Position:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}position", 'type' => 'textarea', 'std' => ''), array('name' => _x('Link:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}link", 'type' => 'text', 'std' => '', 'divider' => 'top')));
$pages_with_basic_meta_boxes = apply_filters('presscore_pages_with_basic_meta_boxes', array('page', 'post'));
/***********************************************************/
// Sidebar options
/***********************************************************/
$prefix = '_dt_sidebar_';
$DT_META_BOXES['dt_page_box-sidebar'] = array('id' => 'dt_page_box-sidebar', 'title' => _x('Sidebar Options', 'backend metabox', 'the7mk2'), 'pages' => $pages_with_basic_meta_boxes, 'context' => 'side', 'priority' => 'low', 'fields' => array(array('name' => _x('Sidebar position:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}position", 'type' => 'radio', 'std' => 'right', 'options' => array('left' => array(_x('Left', 'backend metabox', 'the7mk2'), array('sidebar-left.gif', 75, 50)), 'right' => array(_x('Right', 'backend metabox', 'the7mk2'), array('sidebar-right.gif', 75, 50)), 'disabled' => array(_x('Disabled', 'backend metabox', 'the7mk2'), array('sidebar-disabled.gif', 75, 50))), 'hide_fields' => array('disabled' => array("{$prefix}widgetarea_id", "{$prefix}hide_on_mobile"))), array('name' => _x('Sidebar widget area:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}widgetarea_id", 'type' => 'select', 'options' => $widgetareas_list, 'std' => 'sidebar_1', 'top_divider' => true), array('name' => _x('Hide on mobile layout:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}hide_on_mobile", 'type' => 'checkbox', 'std' => 0)));
/***********************************************************/
// Footer options
/***********************************************************/
$prefix = '_dt_footer_';
$DT_META_BOXES['dt_page_box-footer'] = array('id' => 'dt_page_box-footer', 'title' => _x('Footer Options', 'backend metabox', 'the7mk2'), 'pages' => $pages_with_basic_meta_boxes, 'context' => 'side', 'priority' => 'low', 'fields' => array(array('name' => _x('Show widgetized footer:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show", 'type' => 'checkbox', 'std' => 1, 'hide_fields' => array("{$prefix}widgetarea_id", "{$prefix}hide_on_mobile")), array('name' => _x('Footer widget area:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}widgetarea_id", 'type' => 'select', 'options' => $widgetareas_list, 'std' => 'sidebar_2', 'top_divider' => true), array('name' => _x('Hide on mobile layout:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}hide_on_mobile", 'type' => 'checkbox', 'std' => 0)));
/***********************************************************/
// Header options
/***********************************************************/
$prefix = '_dt_header_';
$DT_META_BOXES['dt_page_box-header_options'] = array('id' => 'dt_page_box-header_options', 'title' => _x('Page Header Options', 'backend metabox', 'the7mk2'), 'pages' => $pages_with_basic_meta_boxes, 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}title", 'type' => 'radio', 'std' => 'enabled', 'options' => array('enabled' => array(_x('Show page title', 'backend metabox', 'the7mk2'), array('regular-title.gif', 100, 60)), 'disabled' => array(_x('Hide page title', 'backend metabox', 'the7mk2'), array('no-title.gif', 100, 60)), 'fancy' => array(_x('Fancy title', 'backend metabox', 'the7mk2'), array('fancy-title.gif', 100, 60)), 'slideshow' => array(_x('Slideshow', 'backend metabox', 'the7mk2'), array('slider.gif', 100, 60))), 'hide_fields' => array('enabled' => array("{$prefix}background_settings"), 'disabled' => array("{$prefix}background_settings")), 'class' => 'wide'), array('before' => '<div class="rwmb-flickering-field ' . "rwmb-input-{$prefix}background_settings" . '">', 'name' => '', 'id' => "{$prefix}background", 'type' => 'radio', 'std' => 'normal', 'top_divider' => true, 'options' => array('normal' => array(_x('Default', 'backend metabox', 'the7mk2'), array('regular.gif', 75, 50)), 'overlap' => array(_x("Overlapping", 'backend metabox', 'the7mk2'), array('overl.gif', 75, 50)), 'transparent' => array(_x("Transparent", 'backend metabox', 'the7mk2'), array('transp.gif', 75, 50))), 'hide_fields' => array('normal' => array("{$prefix}transparent_settings"), 'overlap' => array("{$prefix}transparent_settings"))), array('before' => "<div class=\"rwmb-flickering-field rwmb-input-{$prefix}header-below-slideshow\">", "type" => "radio", "id" => "{$prefix}background_below_slideshow", "name" => _x("Header below slideshow:", "theme-options", 'the7mk2'), "std" => "disabled", "options" => array('enabled' => _x("Enabled", "theme-options", 'the7mk2'), 'disabled' => _x("Disabled", "theme-options", 'the7mk2')), 'top_divider' => true, 'after' => '</div>'), array('before' => '<div class="rwmb-flickering-field ' . "rwmb-input-{$prefix}transparent_settings" . '">', 'name' => _x('Transparent background color:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}transparent_bg_color", 'type' => 'color', 'std' => '#000000', 'top_divider' => true), array('name' => _x('Transparent background opacity:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}transparent_bg_opacity", 'type' => 'slider', 'std' => 50, 'js_options' => array('min' => 0, 'max' => 100, 'step' => 1)), array("type" => "radio", "id" => "{$prefix}transparent_bg_color_scheme", "name" => _x("Color scheme:", "theme-options", 'the7mk2'), "std" => "light", "options" => array('from_options' => _x("From Theme Options", "theme-options", 'the7mk2'), 'light' => _x("Light", "theme-options", 'the7mk2')), 'after' => '</div></div>')));
/***********************************************************/
// Slideshow Options
/***********************************************************/
$prefix = '_dt_slideshow_';
$DT_META_BOXES['dt_page_box-slideshow_options'] = array('id' => 'dt_page_box-slideshow_options', 'title' => _x('Slideshow Options', 'backend metabox', 'the7mk2'), 'pages' => $pages_with_basic_meta_boxes, 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}mode", 'type' => 'radio', 'std' => 'porthole', 'options' => array('porthole' => array(_x('Porthole slider', 'backend metabox', 'the7mk2'), array('portholeslider.gif', 75, 50)), 'photo_scroller' => array(_x('Photo scroller', 'backend metabox', 'the7mk2'), array('photoscroller.gif', 75, 50)), '3d' => array(_x('3D slideshow', 'backend metabox', 'the7mk2'), array('3dslider.gif', 75, 50)), 'revolution' => array(_x('Slider Revolution', 'backend metabox', 'the7mk2'), array('sliderrevolution.gif', 75, 50)), 'layer' => array(_x('LayerSlider', 'backend metabox', 'the7mk2'), array('layerslider.gif', 75, 50))), 'hide_fields' => array('porthole' => array("{$prefix}photo_scroller_container", "{$prefix}revolution_slider", "{$prefix}layer_container", "{$prefix}3d_layout_container"), 'photo_scroller' => array("{$prefix}3d_layout_container", "{$prefix}porthole_container", "{$prefix}revolution_slider", "{$prefix}layer_container"), '3d' => array("{$prefix}porthole_container", "{$prefix}revolution_slider", "{$prefix}layer_container", "{$prefix}photo_scroller_container"), 'revolution' => array("{$prefix}porthole_container", "{$prefix}3d_layout_container", "{$prefix}sliders", "{$prefix}layer_container", "{$prefix}photo_scroller_container"), 'layer' => array("{$prefix}porthole_container", "{$prefix}3d_layout_container", "{$prefix}sliders", "{$prefix}revolution_slider", "{$prefix}photo_scroller_container"))), array('name' => _x('Slideshow(s):', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}sliders", 'type' => 'checkbox_list', 'desc' => $slideshow_posts ? _x('if non selected, all slideshows will be displayed.', 'backend metabox', 'the7mk2') . ' ' . presscore_get_post_type_edit_link('dt_slideshow', _x('Edit slideshows', 'backend metabox', 'the7mk2')) : _x('none', 'backend metabox', 'the7mk2'), 'options' => $slideshow_posts, 'top_divider' => true), array('before' => '<div class="rwmb-input-' . $prefix . '3d_layout_container rwmb-flickering-field">', 'name' => _x('Layout:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}3d_layout", 'type' => 'radio', 'std' => 'fullscreen-content', 'options' => array('fullscreen-content' => _x('full-screen', 'backend metabox', 'the7mk2'), 'fullscreen+content' => _x('full-screen with content', 'backend metabox', 'the7mk2'), 'prop-fullwidth' => _x('proportional, full-width', 'backend metabox', 'the7mk2'), 'prop-content-width' => _x('proportional, content-width', 'backend metabox', 'the7mk2')), 'hide_fields' => array('fullscreen-content' => array("{$prefix}3d_slider_proportions"), 'fullscreen+content' => array("{$prefix}3d_slider_proportions")), 'top_divider' => true), array('name' => _x('Slider proportions:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}3d_slider_proportions", 'type' => 'simple_proportions', 'std' => array('width' => 500, 'height' => 500), 'top_divider' => true, 'after' => '</div>'), array('before' => '<div class="rwmb-input-' . $prefix . 'porthole_container rwmb-flickering-field">', 'name' => _x('Slider layout:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}layout", 'type' => 'radio', 'std' => 'fullwidth', 'options' => array('fullwidth' => _x('full-width', 'backend metabox', 'the7mk2'), 'fixed' => _x('content-width', 'backend metabox', 'the7mk2')), 'top_divider' => true), array('name' => _x('Slider proportions:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}slider_proportions", 'type' => 'simple_proportions', 'std' => array('width' => 1200, 'height' => 500)), array('name' => _x('Images sizing: ', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}scaling", 'type' => 'radio', 'std' => 'fill', 'options' => array('fit' => _x('fit (preserve proportions)', 'backend metabox', 'the7mk2'), 'fill' => _x('fill the viewport (crop)', 'backend metabox', 'the7mk2')), 'top_divider' => true), array('name' => _x('On page load slideshow is: ', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}autoplay", 'type' => 'radio', 'std' => 'paused', 'options' => array('play' => _x('playing', 'backend metabox', 'the7mk2'), 'paused' => _x('paused', 'backend metabox', 'the7mk2')), 'top_divider' => true), array('name' => _x('Autoslide interval (in milliseconds):', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}autoslide_interval", 'type' => 'text', 'std' => '5000'), array('name' => _x('Hide captions:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}hide_captions", 'type' => 'checkbox', 'std' => 0, 'after' => '</div>'), array('before' => '<div class="rwmb-input-' . $prefix . 'photo_scroller_container rwmb-flickering-field">', 'name' => _x('Layout:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_layout", 'type' => 'radio', 'std' => 'fullscreen', 'options' => array('fullscreen' => _x('Fullscreen slideshow', 'backend metabox', 'the7mk2'), 'with_content' => _x('Fullscreen slideshow + text area', 'backend metabox', 'the7mk2')), 'divider' => 'top'), array('name' => _x('Background under slideshow:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_bg_color", 'type' => 'color', 'std' => '#000000', 'divider' => 'top'), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}photo_scroller_overlay", 'name' => _x('Show pixel overlay:', 'backend metabox', 'the7mk2'), 'divider' => 'top')), array('name' => _x('Top padding:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_top_padding", 'type' => 'text', 'std' => '0', 'divider' => 'top'), array('name' => _x('Bottom padding:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_bottom_padding", 'type' => 'text', 'std' => '0', 'divider' => 'top'), array('name' => _x('Side paddings:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_side_paddings", 'type' => 'text', 'std' => '0', 'divider' => 'top'), Presscore_Meta_Box_Field_Template::get_as_array('opacity slider', array('name' => _x('Inactive image transparency (%):', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_inactive_opacity", 'std' => 15, 'divider' => 'top')), array('name' => _x('Thumbnails:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_thumbnails_visibility", 'type' => 'radio', 'std' => 'show', 'options' => array('show' => _x('Show by default', 'backend metabox', 'the7mk2'), 'hide' => _x('Hide by default', 'backend metabox', 'the7mk2'), 'disabled' => _x('Disable', 'backend metabox', 'the7mk2')), 'divider' => 'top'), array('name' => _x('Thumbnails width:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_thumbnails_width", 'type' => 'text', 'std' => '', 'divider' => 'top'), array('name' => _x('Thumbnails height:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_thumbnails_height", 'type' => 'text', 'std' => 85, 'divider' => 'top'), array('name' => _x('Autoplay:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_autoplay", 'type' => 'radio', 'std' => 'play', 'options' => array('play' => _x('Play', 'backend metabox', 'the7mk2'), 'paused' => _x('Paused', 'backend metabox', 'the7mk2')), 'divider' => 'top'), array('name' => _x('Autoplay speed:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}photo_scroller_autoplay_speed", 'type' => 'text', 'std' => '4000', 'divider' => 'top'), array('type' => 'heading', 'name' => _x('Landscape images', 'backend metabox', 'the7mk2'), 'id' => 'fake_id'), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller max width', array('id' => "{$prefix}photo_scroller_ls_max_width")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller min width', array('id' => "{$prefix}photo_scroller_ls_min_width")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller filling mode desktop', array('id' => "{$prefix}photo_scroller_ls_fill_dt")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller filling mode mobile', array('id' => "{$prefix}photo_scroller_ls_fill_mob")), array('type' => 'heading', 'name' => _x('Portrait images', 'backend metabox', 'the7mk2'), 'id' => 'fake_id'), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller max width', array('id' => "{$prefix}photo_scroller_pt_max_width")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller min width', array('id' => "{$prefix}photo_scroller_pt_min_width")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller filling mode desktop', array('id' => "{$prefix}photo_scroller_pt_fill_dt")), Presscore_Meta_Box_Field_Template::get_as_array('photoscroller filling mode mobile', array('id' => "{$prefix}photo_scroller_pt_fill_mob", 'after' => '</div>')), array('name' => _x('Choose slider: ', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}revolution_slider", 'type' => 'select', 'std' => 'none', 'options' => $rev_sliders, 'multiple' => false, 'top_divider' => true), array('before' => '<div class="rwmb-input-' . $prefix . 'layer_container rwmb-flickering-field">', 'name' => _x('Choose slider:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}layer_slider", 'type' => 'select', 'std' => 'none', 'options' => $layer_sliders, 'multiple' => false, 'top_divider' => true), array('after' => '</div>', 'name' => _x('Enable slideshow background and paddings:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}layer_show_bg_and_paddings", 'type' => 'checkbox', 'std' => 0)));
/***********************************************************/
// Fancy title options
/***********************************************************/
$prefix = '_dt_fancy_header_';
$DT_META_BOXES['dt_page_box-fancy_header_options'] = array('id' => 'dt_page_box-fancy_header_options', 'title' => _x('Fancy Title Options', 'backend metabox', 'the7mk2'), 'pages' => $pages_with_basic_meta_boxes, 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => _x('Fancy title layout:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}title_aligment", 'type' => 'radio', 'std' => 'center', 'options' => array('left' => array(_x('Left title + right breadcrumbs', 'backend metabox', 'the7mk2'), array('l-r-page.gif', 75, 50)), 'right' => array(_x('Right title + left breadcrumbs', 'backend metabox', 'the7mk2'), array('r-l-page.gif', 75, 50)), 'all_left' => array(_x('Left title + left breadcrumbs', 'backend metabox', 'the7mk2'), array('l-l-page.gif', 75, 50)), 'all_right' => array(_x('Right title + right breadcrumbs', 'backend metabox', 'the7mk2'), array('r-r-page.gif', 75, 50)), 'center' => array(_x('Centred title + centred breadcrumbs', 'backend metabox', 'the7mk2'), array('centre-page.gif', 75, 50)))), array('name' => _x('Breadcrumbs:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}breadcrumbs", 'type' => 'radio', 'std' => 'enabled', 'top_divider' => true, 'hide_fields' => array('disabled' => array("{$prefix}breadcrumbs_settings")), 'options' => array('enabled' => _x('Enabled', 'backend metabox', 'the7mk2'), 'disabled' => _x('Disabled', 'backend metabox', 'the7mk2'))), array('before' => '<div class="rwmb-flickering-field ' . "rwmb-input-{$prefix}breadcrumbs_settings" . '">', 'name' => _x('Breadcrumbs text color:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}breadcrumbs_text_color", 'type' => 'color', 'std' => '#ffffff'), array('name' => _x('Breadcrumbs background color:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}breadcrumbs_bg_color", 'type' => 'radio', 'std' => 'disabled', 'options' => array('disabled' => _x('Disabled', 'backend metabox', 'the7mk2'), 'black' => _x('Black', 'backend metabox', 'the7mk2'), 'white' => _x('White', 'backend metabox', 'the7mk2')), 'after' => '</div>'), array('name' => _x('Title:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}title_mode", 'type' => 'radio', 'std' => 'custom', 'top_divider' => true, 'hide_fields' => array('generic' => array("{$prefix}title")), 'options' => array('generic' => _x('Generic title', 'backend metabox', 'the7mk2'), 'custom' => _x('Custom title', 'backend metabox', 'the7mk2'))), array('name' => _x('Custom title:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}title", 'type' => 'text', 'std' => ''), array('name' => _x('Title font size:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}title_size", 'type' => 'select', 'options' => $font_size, 'std' => 'h1'), array('name' => _x('Title font color:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}title_color_mode", 'type' => 'radio', 'std' => 'color', 'hide_fields' => array('accent' => array("{$prefix}title_color_settings")), 'options' => $accent_custom_color), array('before' => '<div class="rwmb-flickering-field ' . "rwmb-input-{$prefix}title_color_settings" . '">', 'name' => '&nbsp;', 'id' => "{$prefix}title_color", 'type' => 'color', 'std' => '#ffffff', 'after' => '</div>'), array('name' => _x('Subtitle:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}subtitle", 'type' => 'text', 'std' => '', 'top_divider' => true), array('name' => _x('Subtitle font size:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}subtitle_size", 'type' => 'select', 'options' => $font_size, 'std' => 'h3'), array('name' => _x('Subtitle font color:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}subtitle_color_mode", 'type' => 'radio', 'std' => 'color', 'hide_fields' => array('accent' => array("{$prefix}subtitle_color_settings")), 'options' => $accent_custom_color), array('before' => '<div class="rwmb-flickering-field ' . "rwmb-input-{$prefix}subtitle_color_settings" . '">', 'name' => '&nbsp;', 'id' => "{$prefix}subtitle_color", 'type' => 'color', 'std' => '#ffffff', 'after' => '</div>'), array('name' => _x('Background color:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_color", 'type' => 'color', 'std' => '#222222', 'top_divider' => true), array('name' => _x('Background image:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_image", 'type' => 'image_advanced_mk2', 'max_file_uploads' => 1), array('name' => _x('Repeat options:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_repeat", 'type' => 'select', 'options' => $repeat_options, 'std' => 'no-repeat'), array('name' => _x('Position x:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_position_x", 'type' => 'select', 'options' => $position_x_options, 'std' => 'center'), array('name' => _x('Position y:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_position_y", 'type' => 'select', 'options' => $position_y_options, 'std' => 'center'), array('name' => _x('Fullscreen:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_fullscreen", 'type' => 'checkbox', 'std' => 1), array('name' => _x('Fixed background:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_fixed", 'type' => 'checkbox', 'std' => 0), array('name' => _x('Parallax speed:', 'backend metabox', 'the7mk2'), 'desc' => _x('if field is empty, parallax disabled', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}parallax_speed", 'type' => 'text', 'std' => '0'), array('name' => _x('Height (px):', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}height", 'type' => 'text', 'std' => '300')));
/***********************************************************/
// Content area options
/***********************************************************/
$prefix = '_dt_content_';
$DT_META_BOXES['dt_page_box-page_content'] = array('id' => 'dt_page_box-page_content', 'title' => _x('Content Area Options', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => _x('Display content area:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}display", 'type' => 'radio', 'std' => 'no', 'options' => array('no' => _x('no', 'backend metabox', 'the7mk2'), 'on_first_page' => _x('first page', 'backend metabox', 'the7mk2'), 'on_all_pages' => _x('all pages', 'backend metabox', 'the7mk2')), 'hide_fields' => array('no' => "{$prefix}position")), array('name' => _x('Content area position', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}position", 'type' => 'radio', 'std' => 'before_items', 'options' => array('before_items' => array(_x('Before items', 'backend metabox', 'the7mk2'), array('before-posts.gif', 60, 67)), 'after_items' => array(_x('After items', 'backend metabox', 'the7mk2'), array('under-posts.gif', 60, 67))))), 'only_on' => array('template' => array('template-portfolio-list.php', 'template-portfolio-masonry.php', 'template-portfolio-jgrid.php', 'template-blog-list.php', 'template-blog-masonry.php', 'template-albums.php', 'template-albums-jgrid.php', 'template-media.php', 'template-media-jgrid.php', 'template-team.php', 'template-testimonials.php')));
// 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
Presscore_Meta_Box_Field_Template::add('photoscroller min width', array('name' => _x('Min width (%):', 'backend metabox', 'the7mk2'), 'type' => 'text', 'std' => '0'));
// filling mode desktop
Presscore_Meta_Box_Field_Template::add('photoscroller filling mode desktop', array('name' => _x('Filling mode (desktop):', 'backend metabox', 'the7mk2'), 'type' => 'radio', 'std' => 'fit', 'options' => array('fit' => _x('fit (preserve proportions)', 'theme-options', 'the7mk2'), 'fill' => _x('fill the viewport (crop)', 'theme-options', 'the7mk2'))));
// filling mode mobile
Presscore_Meta_Box_Field_Template::add('photoscroller filling mode mobile', array('name' => _x('Filling mode (mobile):', 'backend metabox', 'the7mk2'), 'type' => 'radio', 'std' => 'fit', 'options' => array('fit' => _x('fit (preserve proportions)', 'theme-options', 'the7mk2'), 'fill' => _x('fill the viewport (crop)', 'theme-options', 'the7mk2'))));
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
/***********************************************************/
// Display Portfolio
/***********************************************************/
$prefix = '_dt_portfolio_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-display_portfolio', 'title' => _x('Display Portfolio Category(s)', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}display", 'type' => 'fancy_category', 'mode' => 'taxonomy', 'post_type' => 'dt_portfolio', 'taxonomy' => 'dt_portfolio_category', 'post_type_info' => array('categories'), 'main_tab_class' => 'dt_all_portfolio', '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 Portfolio projects are being displayed on this page!', 'backend', 'the7mk2'), _x('By default all your Portfolio projects will be displayed on this page. ', 'backend', 'the7mk2'), _x('But you can specify which Portfolio project 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 Projects will be shown on this page.', 'backend', 'the7mk2'), _x('Only', 'backend', 'the7mk2'), _x(' &mdash; choose Project category(s) to be shown on this page.', 'backend', 'the7mk2'), _x('All, except', 'backend', 'the7mk2'), _x(' &mdash; choose which Project category(s) will be excluded from displaying on this page.', 'backend', 'the7mk2')))), 'only_on' => array('template' => array('template-portfolio-list.php', 'template-portfolio-masonry.php', 'template-portfolio-jgrid.php')));
/***********************************************************/
// Portfolio options
/***********************************************************/
$prefix = '_dt_portfolio_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-portfolio_options', 'title' => _x('Portfolio Options', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(Presscore_Meta_Box_Field_Template::get_as_array('list layout', array('id' => "{$prefix}list_layout", 'show_on_template' => 'template-portfolio-list.php')), Presscore_Meta_Box_Field_Template::get_as_array('background under post', array('name' => _x('Background under projects:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_under_list_posts", 'divider' => 'top', 'show_on_template' => 'template-portfolio-list.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover background color', array('name' => _x('Image rollover color:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}list_hover_bg_color", 'show_on_template' => 'template-portfolio-list.php')), Presscore_Meta_Box_Field_Template::get_as_array('masonry layout', array('id' => "{$prefix}masonry_layout", 'divider' => 'bottom', 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('id' => "{$prefix}item_padding", 'divider' => false, 'show_on_template' => array('template-portfolio-masonry.php', 'template-portfolio-jgrid.php'))), Presscore_Meta_Box_Field_Template::get_as_array('row target height', array('id' => "{$prefix}target_height", 'show_on_template' => 'template-portfolio-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('column target width', array('id' => "{$prefix}target_width", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('columns number', array('id' => "{$prefix}columns_number", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}full_width", 'show_on_template' => array('template-portfolio-jgrid.php', 'template-portfolio-masonry.php'))), Presscore_Meta_Box_Field_Template::get_as_array('description style', array('name' => _x('Show projects descriptions:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}description", 'hide_fields' => array('under_image' => array("{$prefix}hover_animation", "{$prefix}hover_content_visibility"), 'on_hoover_centered' => array("{$prefix}bg_under_masonry_posts", "{$prefix}post_content_alignment", "{$prefix}hover_content_visibility"), 'on_dark_gradient' => array("{$prefix}bg_under_masonry_posts", "{$prefix}post_content_alignment", "{$prefix}hover_animation", "{$prefix}hover_bg_color"), 'from_bottom' => array("{$prefix}bg_under_masonry_posts", "{$prefix}post_content_alignment", "{$prefix}hover_animation", "{$prefix}hover_bg_color")), 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover animation', array('id' => "{$prefix}hover_animation", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover background color', array('id' => "{$prefix}hover_bg_color", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('background under masonry post', array('name' => _x('Background under projects:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_under_masonry_posts", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('content alignment', array('id' => "{$prefix}post_content_alignment", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover content visibility', array('id' => "{$prefix}hover_content_visibility", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('jgrid description style', array('name' => _x('Show projects descriptions:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}jgrid_description", 'hide_fields' => array('on_hoover_centered' => array("{$prefix}jgrid_hover_content_visibility"), 'on_dark_gradient' => array("{$prefix}jgrid_hover_animation", "{$prefix}jgrid_hover_bg_color"), 'from_bottom' => array("{$prefix}jgrid_hover_animation", "{$prefix}jgrid_hover_bg_color")), 'show_on_template' => 'template-portfolio-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover animation', array('id' => "{$prefix}jgrid_hover_animation", 'show_on_template' => 'template-portfolio-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover background color', array('id' => "{$prefix}jgrid_hover_bg_color", 'show_on_template' => 'template-portfolio-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover content visibility', array('id' => "{$prefix}jgrid_hover_content_visibility", 'show_on_template' => 'template-portfolio-jgrid.php')), array('name' => _x('Make all projects the same width:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}posts_same_width", 'type' => 'checkbox', 'std' => 0, 'divider' => 'top', 'show_on_template' => 'template-portfolio-masonry.php'), Presscore_Meta_Box_Field_Template::get_as_array('hide last row', array('id' => "{$prefix}hide_last_row", 'show_on_template' => 'template-portfolio-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")), Presscore_Meta_Box_Field_Template::get_as_array('media content width', array('id' => "{$prefix}thumb_width", 'show_on_template' => 'template-portfolio-list.php')), array('name' => _x('Number of projects to display on one page:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}ppp", 'type' => 'text', 'std' => '', 'divider' => 'top_and_bottom'), Presscore_Meta_Box_Field_Template::get_as_array('loading mode', array('id' => "{$prefix}load_style")), Presscore_Meta_Box_Field_Template::get_as_array('loading effect', array('id' => "{$prefix}load_effect", 'show_on_template' => array('template-portfolio-jgrid.php', 'template-portfolio-masonry.php'))), array('before' => presscore_meta_boxes_advanced_settings_tpl('dt_portfolio-advanced'), 'name' => _x('Show projects titles:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_titles", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show projects excerpts:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_exerpts", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show project categories:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_categories_in_post_meta", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options, 'top_divider' => true), array('name' => _x('Show project date:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_date_in_post_meta", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show project author:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_author_in_post_meta", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show project comments:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_comments_in_post_meta", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show details icons:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_details", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options, 'top_divider' => true), array('name' => _x('Show links icons:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_links", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show zoom icons:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_zoom", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('before' => '<div class="rwmb-hidden-field hide-if-js" data-show-on="template-portfolio-list.php">', 'top_divider' => true, 'name' => _x('Show details buttons:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_details_buttons", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options, 'after' => '</div>'), array('name' => _x('Show categories filter:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_filter", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options, 'top_divider' => true), array('name' => _x('Show name / date ordering:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_orderby", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show asc. / desc. ordering:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_order", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show all pages in paginator:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_all_pages", 'type' => 'radio', 'std' => '0', 'options' => $yes_no_options, 'top_divider' => true), array('name' => _x('Order:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}order", 'type' => 'radio', 'std' => 'DESC', 'options' => $order_options, 'top_divider' => true), array('name' => _x('Orderby:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}orderby", 'type' => 'select', 'options' => array_intersect_key($orderby_options, array('date' => null, 'name' => null)), 'std' => 'date', 'after' => '</div>')), 'only_on' => array('template' => array('template-portfolio-list.php', 'template-portfolio-masonry.php', 'template-portfolio-jgrid.php')));
/***********************************************************/
// Portfolio post media
/***********************************************************/
$prefix = '_dt_project_media_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-portfolio_post_media', 'title' => _x('Add/Edit Project Media', 'backend metabox', 'the7mk2'), 'pages' => array('dt_portfolio'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}items", 'type' => 'image_advanced_mk2')));
/***********************************************************/
// Portfolio post media options
/***********************************************************/
$prefix = '_dt_project_media_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-portfolio_post_media_options', 'title' => _x('Media Options', 'backend metabox', 'the7mk2'), 'pages' => array('dt_portfolio'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => _x('Layout settings:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}layout", 'type' => 'radio', 'std' => 'left', 'options' => array('left' => array(_x('Media on the left of content', 'backend metabox', 'the7mk2'), array('right-content.gif', 75, 50)), 'right' => array(_x('Media on the right of content', 'backend metabox', 'the7mk2'), array('left-content.gif', 75, 50)), 'before' => array(_x('Media before content area', 'backend metabox', 'the7mk2'), array('bottom-content.gif', 75, 50)), 'after' => array(_x('Media after content area', 'backend metabox', 'the7mk2'), array('top-content.gif', 75, 50)), 'disabled' => array(_x('Media disabled (blank page)', 'backend metabox', 'the7mk2'), array('no-media-content.gif', 75, 50))), 'hide_fields' => array('before' => array("{$prefix}enable_floationg_content"), 'after' => array("{$prefix}enable_floationg_content"), 'disabled' => array("{$prefix}enable_floationg_content"))), array('name' => _x('Enable floating content:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}enable_floationg_content", 'type' => 'checkbox', 'std' => 1, 'top_divider' => true), array('name' => _x('Show media as:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}type", 'type' => 'radio', 'std' => 'slideshow', 'options' => array('slideshow' => array(_x('Slideshow', 'backend metabox', 'the7mk2'), array('layout-slider.gif', 75, 50)), 'gallery' => array(_x('Gallery', 'backend metabox', 'the7mk2'), array('layout-metro.gif', 75, 50)), 'list' => array(_x('List', 'backend metabox', 'the7mk2'), array('layout-list.gif', 75, 50))), 'hide_fields' => array('gallery' => array("{$prefix}slider_proportions"), 'list' => array("{$prefix}slider_proportions", "{$prefix}gallery_container"), 'slideshow' => array("{$prefix}gallery_container")), 'top_divider' => true), array('name' => _x('Slider proportions:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}slider_proportions", 'type' => 'simple_proportions', 'std' => array('width' => '', 'height' => ''), 'top_divider' => true), array('before' => '<div class="rwmb-input-' . $prefix . 'gallery_container rwmb-flickering-field">', 'name' => _x('Columns', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}gallery_columns", 'type' => 'select', 'std' => '4', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'), 'multiple' => false, 'top_divider' => true), array('name' => _x('Make first image large:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}gallery_make_first_big", 'type' => 'checkbox', 'std' => 1, 'after' => '</div>')));
/***********************************************************/
// Portfolio post options
/***********************************************************/
$prefix = '_dt_project_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-portfolio_post', 'title' => _x('Project Options', 'backend metabox', 'the7mk2'), 'pages' => array('dt_portfolio'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(Presscore_Meta_Box_Field_Template::get_as_array('select pages', array('name' => _x('Back button:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}back_button", 'divider' => 'bottom')), array('name' => _x('Project link:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}show_link", 'type' => 'checkbox', 'std' => 0, 'hide_fields' => array("{$prefix}link", "{$prefix}link_name", "{$prefix}link_target")), array('name' => _x('Link:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}link", 'type' => 'text', 'std' => ''), array('name' => _x('Caption:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}link_name", 'type' => 'text', 'std' => ''), array('name' => _x('Target:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}link_target", 'type' => 'radio', 'std' => '', 'options' => array('' => _x('_self', 'backend metabox', 'the7mk2'), '_blank' => _x('_blank', 'backend metabox', 'the7mk2'))), array('name' => _x('Hide featured image on project page:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}hide_thumbnail", 'type' => 'checkbox', 'std' => 0, 'top_divider' => true), array('name' => _x('Open images in lightbox:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}open_thumbnail_in_lightbox", 'type' => 'checkbox', 'std' => 0, 'top_divider' => true), array('name' => _x('Related projects category:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}related_mode", 'type' => 'radio', 'std' => 'same', 'options' => array('same' => _x('from the same category', 'backend metabox', 'the7mk2'), 'custom' => _x('choose category(s)', 'backend metabox', 'the7mk2')), 'hide_fields' => array('same' => array("{$prefix}related_categories")), 'top_divider' => true), array('id' => "{$prefix}related_categories", 'type' => 'taxonomy_list', 'options' => array('taxonomy' => 'dt_portfolio_category', 'type' => 'checkbox_list', 'args' => array())), array('name' => _x('Project preview width:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}preview", 'type' => 'radio', 'std' => 'normal', 'options' => array('normal' => _x('normal', 'backend metabox', 'the7mk2'), 'wide' => _x('wide', 'backend metabox', 'the7mk2')), 'before' => '<p><small>' . sprintf(_x('Related projects can be enabled / disabled from %sTheme Options / Blog, Portfolio, Gallery%s', 'backend metabox', 'the7mk2'), '<a href="' . esc_url(add_query_arg('page', 'of-blog-and-portfolio-menu', get_admin_url() . 'admin.php')) . '" target="_blank">', '</a>') . '</small></p><div class="dt_hr"></div><p><strong>' . _x('Project Preview Options', 'backend metabox', 'the7mk2') . '</strong></p>'), array('name' => _x('Preview style:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}preview_style", 'type' => 'radio', 'std' => 'featured_image', 'options' => array('featured_image' => _x('featured image', 'backend metabox', 'the7mk2'), 'slideshow' => _x('slideshow', 'backend metabox', 'the7mk2')), 'hide_fields' => array('featured_image' => array("{$prefix}slider_proportions"))), array('name' => _x('Slider proportions:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}slider_proportions", 'type' => 'simple_proportions', 'std' => array('width' => '', 'height' => ''))));
<?php

/**
 * Blog and Post metaboxes.
 * @since presscore 0.1
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
/***********************************************************/
// Blog category
/***********************************************************/
$prefix = '_dt_blog_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-display_blog', 'title' => _x('Display Blog Categories', 'backend metabox', LANGUAGE_ZONE), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}display", 'type' => 'fancy_category', 'mode' => 'taxonomy', 'post_type' => 'post', 'taxonomy' => 'category', 'post_type_info' => array('categories'), 'main_tab_class' => 'dt_all_blog', '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 Blog posts are being displayed on this page!', 'backend', LANGUAGE_ZONE), _x('By default all your Blog posts will be displayed on this page. ', 'backend', LANGUAGE_ZONE), _x('But you can specify which Blog categories will (or will not) be shown.', 'backend', LANGUAGE_ZONE), _x('In tabs above you can select from the following options:', 'backend', LANGUAGE_ZONE), _x('All', 'backend', LANGUAGE_ZONE), _x(' &mdash; all Blog posts (from all categories) will be shown on this page.', 'backend', LANGUAGE_ZONE), _x('Only', 'backend', LANGUAGE_ZONE), _x(' &mdash; choose Blog category(s) to be shown on this page.', 'backend', LANGUAGE_ZONE), _x('All, except', 'backend', LANGUAGE_ZONE), _x(' &mdash; choose which category(s) will be excluded from displaying on this page.', 'backend', LANGUAGE_ZONE)))), 'only_on' => array('template' => array('template-blog-list.php', 'template-blog-masonry.php')));
/***********************************************************/
// Blog options
/***********************************************************/
$prefix = '_dt_blog_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-blog_options', 'title' => _x('Blog Options', 'backend metabox', LANGUAGE_ZONE), '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-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('id' => "{$prefix}item_padding", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('column target width', array('id' => "{$prefix}target_width", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('columns number', array('id' => "{$prefix}columns_number", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}full_width", 'show_on_template' => 'template-blog-masonry.php')), array('name' => _x('Make all posts the same width:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}posts_same_width", 'type' => 'checkbox', 'std' => 0, 'divider' => 'top', 'show_on_template' => 'template-blog-masonry.php'), Presscore_Meta_Box_Field_Template::get_as_array('background under masonry post', array('name' => _x('Background under posts:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}bg_under_masonry_posts", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('content alignment', array('id' => "{$prefix}post_content_alignment", 'show_on_template' => 'template-blog-masonry.php', 'divider' => 'top_and_bottom')), Presscore_Meta_Box_Field_Template::get_as_array('list layout', array('id' => "{$prefix}list_layout", 'show_on_template' => 'template-blog-list.php')), Presscore_Meta_Box_Field_Template::get_as_array('background under post', array('name' => _x('Background under posts:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}bg_under_list_posts", 'show_on_template' => 'template-blog-list.php', 'divider' => 'top_and_bottom')), array('name' => _x('Enable fancy date:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}enable_fancy_date", 'type' => 'checkbox', 'std' => 1), 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")), Presscore_Meta_Box_Field_Template::get_as_array('media content width', array('id' => "{$prefix}thumb_width", 'show_on_template' => 'template-blog-list.php')), array('name' => _x('Number of posts to display on one page:', 'backend metabox', LANGUAGE_ZONE), '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', 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('loading effect', array('id' => "{$prefix}load_effect", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('show all pages paginator', array('before' => presscore_meta_boxes_advanced_settings_tpl('dt_blog-advanced'), 'id' => "{$prefix}show_all_pages")), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_exerpts", 'name' => _x('Show excerpts:', 'backend metabox', LANGUAGE_ZONE), 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_details", 'name' => _x('Show read more buttons:', 'backend metabox', LANGUAGE_ZONE), 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_categories_in_post_meta", 'name' => _x('Show post categories:', 'backend metabox', LANGUAGE_ZONE), 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_date_in_post_meta", 'name' => _x('Show post date:', 'backend metabox', LANGUAGE_ZONE))), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_author_in_post_meta", 'name' => _x('Show post author:', 'backend metabox', LANGUAGE_ZONE))), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_comments_in_post_meta", 'name' => _x('Show post comments:', 'backend metabox', LANGUAGE_ZONE))), 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-blog-list.php', 'template-blog-masonry.php')));
/***********************************************************/
// Post options
/***********************************************************/
$prefix = '_dt_post_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-post_options', 'title' => _x('Post Options', 'backend metabox', LANGUAGE_ZONE), 'pages' => array('post'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Hide featured image on post page:', LANGUAGE_ZONE), 'id' => "{$prefix}hide_thumbnail", 'type' => 'checkbox', 'std' => 0), array('name' => _x('Related posts category:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}related_mode", 'type' => 'radio', 'std' => 'same', 'options' => array('same' => _x('from the same category', 'backend metabox', LANGUAGE_ZONE), 'custom' => _x('choose category(s)', 'backend metabox', LANGUAGE_ZONE)), 'hide_fields' => array('same' => array("{$prefix}related_categories")), 'top_divider' => true), array('id' => "{$prefix}related_categories", 'type' => 'taxonomy_list', 'options' => array('taxonomy' => 'category', 'type' => 'checkbox_list', 'args' => array()), 'multiple' => true), array('name' => _x('Post preview width:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}preview", 'type' => 'radio', 'std' => 'normal', 'options' => array('normal' => _x('normal', 'backend metabox', LANGUAGE_ZONE), 'wide' => _x('wide', 'backend metabox', LANGUAGE_ZONE)), 'before' => '<p><small>' . sprintf(_x('Related posts can be enabled / disabled from %sTheme Options / Blog, Portfolio, Gallery%s', 'backend metabox', LANGUAGE_ZONE), '<a href="' . add_query_arg('page', 'of-blog-and-portfolio-menu', get_admin_url() . 'admin.php') . '" target="_blank">', '</a>') . '</small></p><div class="dt_hr"></div><p><strong>' . _x('Post Preview Options', 'backend metabox', LANGUAGE_ZONE) . '</strong></p>'), array('name' => _x('For gallery post format:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}preview_style_gallery", 'type' => 'radio', 'std' => 'standard_gallery', 'options' => array('standard_gallery' => _x('standard image gallery', 'backend metabox', LANGUAGE_ZONE), 'hovered_gallery' => _x('featured image with gallery hover', 'backend metabox', LANGUAGE_ZONE), 'slideshow' => _x('slideshow', 'backend metabox', LANGUAGE_ZONE)), 'before' => '<div class="dt_hr"></div><p><strong>' . _x('Post Preview Style', 'backend metabox', LANGUAGE_ZONE) . '</strong></p>', 'hide_fields' => array('standard_gallery' => array("{$prefix}slider_proportions"), 'hovered_gallery' => array("{$prefix}slider_proportions"))), array('name' => _x('Slider proportions:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}slider_proportions", 'type' => 'simple_proportions', 'std' => array('width' => '', 'height' => '')), array('name' => _x('For video post format:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}preview_style_video", 'type' => 'radio', 'std' => 'image_play', 'options' => array('image' => _x('image', 'backend metabox', LANGUAGE_ZONE), 'image_play' => _x('image with "Play" icon', 'backend metabox', LANGUAGE_ZONE)))));
 * @since 1.0.0
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
/***********************************************************/
// Display Portfolio
/***********************************************************/
$prefix = '_dt_portfolio_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-display_portfolio', 'title' => _x('Display Portfolio Category(s)', 'backend metabox', LANGUAGE_ZONE), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}display", 'type' => 'fancy_category', 'mode' => 'taxonomy', 'post_type' => 'dt_portfolio', 'taxonomy' => 'dt_portfolio_category', 'post_type_info' => array('categories'), 'main_tab_class' => 'dt_all_portfolio', '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 Portfolio projects are being displayed on this page!', 'backend', LANGUAGE_ZONE), _x('By default all your Portfolio projects will be displayed on this page. ', 'backend', LANGUAGE_ZONE), _x('But you can specify which Portfolio project category(s) will (or will not) be shown.', 'backend', LANGUAGE_ZONE), _x('In tabs above you can select from the following options:', 'backend', LANGUAGE_ZONE), _x('All', 'backend', LANGUAGE_ZONE), _x(' &mdash; all Projects will be shown on this page.', 'backend', LANGUAGE_ZONE), _x('Only', 'backend', LANGUAGE_ZONE), _x(' &mdash; choose Project category(s) to be shown on this page.', 'backend', LANGUAGE_ZONE), _x('All, except', 'backend', LANGUAGE_ZONE), _x(' &mdash; choose which Project category(s) will be excluded from displaying on this page.', 'backend', LANGUAGE_ZONE)))), 'only_on' => array('template' => array('template-portfolio-list.php', 'template-portfolio-masonry.php', 'template-portfolio-jgrid.php')));
/***********************************************************/
// Portfolio options
/***********************************************************/
$prefix = '_dt_portfolio_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-portfolio_options', 'title' => _x('Portfolio Options', 'backend metabox', LANGUAGE_ZONE), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(Presscore_Meta_Box_Field_Template::get_as_array('list layout', array('id' => "{$prefix}list_layout", 'show_on_template' => 'template-portfolio-list.php')), Presscore_Meta_Box_Field_Template::get_as_array('background under post', array('name' => _x('Background under projects:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}bg_under_list_posts", 'divider' => 'top', 'show_on_template' => 'template-portfolio-list.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover background color', array('name' => _x('Image rollover color:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}list_hover_bg_color", 'show_on_template' => 'template-portfolio-list.php')), Presscore_Meta_Box_Field_Template::get_as_array('masonry layout', array('id' => "{$prefix}masonry_layout", 'divider' => 'bottom', 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('id' => "{$prefix}item_padding", 'divider' => false, 'show_on_template' => array('template-portfolio-masonry.php', 'template-portfolio-jgrid.php'))), Presscore_Meta_Box_Field_Template::get_as_array('row target height', array('id' => "{$prefix}target_height", 'show_on_template' => 'template-portfolio-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('column target width', array('id' => "{$prefix}target_width", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('columns number', array('id' => "{$prefix}columns_number", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}full_width", 'show_on_template' => array('template-portfolio-jgrid.php', 'template-portfolio-masonry.php'))), Presscore_Meta_Box_Field_Template::get_as_array('description style', array('name' => _x('Show projects descriptions:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}description", 'hide_fields' => array('under_image' => array("{$prefix}hover_animation", "{$prefix}hover_content_visibility"), 'on_hoover_centered' => array("{$prefix}bg_under_masonry_posts", "{$prefix}post_content_alignment", "{$prefix}hover_content_visibility"), 'on_dark_gradient' => array("{$prefix}bg_under_masonry_posts", "{$prefix}post_content_alignment", "{$prefix}hover_animation", "{$prefix}hover_bg_color"), 'from_bottom' => array("{$prefix}bg_under_masonry_posts", "{$prefix}post_content_alignment", "{$prefix}hover_animation", "{$prefix}hover_bg_color")), 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover animation', array('id' => "{$prefix}hover_animation", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover background color', array('id' => "{$prefix}hover_bg_color", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('background under masonry post', array('name' => _x('Background under projects:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}bg_under_masonry_posts", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('content alignment', array('id' => "{$prefix}post_content_alignment", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover content visibility', array('id' => "{$prefix}hover_content_visibility", 'show_on_template' => 'template-portfolio-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('jgrid description style', array('name' => _x('Show projects descriptions:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}jgrid_description", 'hide_fields' => array('on_hoover_centered' => array("{$prefix}jgrid_hover_content_visibility"), 'on_dark_gradient' => array("{$prefix}jgrid_hover_animation", "{$prefix}jgrid_hover_bg_color"), 'from_bottom' => array("{$prefix}jgrid_hover_animation", "{$prefix}jgrid_hover_bg_color")), 'show_on_template' => 'template-portfolio-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover animation', array('id' => "{$prefix}jgrid_hover_animation", 'show_on_template' => 'template-portfolio-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover background color', array('id' => "{$prefix}jgrid_hover_bg_color", 'show_on_template' => 'template-portfolio-jgrid.php')), Presscore_Meta_Box_Field_Template::get_as_array('hover content visibility', array('id' => "{$prefix}jgrid_hover_content_visibility", 'show_on_template' => 'template-portfolio-jgrid.php')), array('name' => _x('Make all projects the same width:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}posts_same_width", 'type' => 'checkbox', 'std' => 0, 'divider' => 'top', 'show_on_template' => 'template-portfolio-masonry.php'), Presscore_Meta_Box_Field_Template::get_as_array('hide last row', array('id' => "{$prefix}hide_last_row", 'show_on_template' => 'template-portfolio-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")), Presscore_Meta_Box_Field_Template::get_as_array('media content width', array('id' => "{$prefix}thumb_width", 'show_on_template' => 'template-portfolio-list.php')), array('name' => _x('Number of projects to display on one page:', 'backend metabox', LANGUAGE_ZONE), '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', 'show_on_template' => array('template-portfolio-jgrid.php', 'template-portfolio-masonry.php'))), Presscore_Meta_Box_Field_Template::get_as_array('loading effect', array('id' => "{$prefix}load_effect", 'show_on_template' => array('template-portfolio-jgrid.php', 'template-portfolio-masonry.php'))), array('before' => presscore_meta_boxes_advanced_settings_tpl('dt_portfolio-advanced'), 'name' => _x('Show projects titles:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_titles", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show projects excerpts:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_exerpts", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show project categories:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_categories_in_post_meta", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options, 'top_divider' => true), array('name' => _x('Show project date:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_date_in_post_meta", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show project author:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_author_in_post_meta", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show project comments:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_comments_in_post_meta", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show details icons:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_details", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options, 'top_divider' => true), array('name' => _x('Show links icons:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_links", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show zoom icons:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_zoom", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('before' => '<div class="rwmb-hidden-field hide-if-js" data-show-on="template-portfolio-list.php">', 'top_divider' => true, 'name' => _x('Show details buttons:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_details_buttons", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options, 'after' => '</div>'), array('name' => _x('Show categories filter:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_filter", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options, 'top_divider' => true), array('name' => _x('Show name / date ordering:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_orderby", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show asc. / desc. ordering:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_order", 'type' => 'radio', 'std' => '1', 'options' => $yes_no_options), array('name' => _x('Show all pages in paginator:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_all_pages", 'type' => 'radio', 'std' => '0', 'options' => $yes_no_options, 'top_divider' => true), array('name' => _x('Order:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}order", 'type' => 'radio', 'std' => 'DESC', 'options' => $order_options, 'top_divider' => true), array('name' => _x('Orderby:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}orderby", 'type' => 'select', 'options' => array_intersect_key($orderby_options, array('date' => null, 'name' => null)), 'std' => 'date', 'after' => '</div>')), 'only_on' => array('template' => array('template-portfolio-list.php', 'template-portfolio-masonry.php', 'template-portfolio-jgrid.php')));
/***********************************************************/
// Portfolio post media
/***********************************************************/
$prefix = '_dt_project_media_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-portfolio_post_media', 'title' => _x('Add/Edit Project Media', 'backend metabox', LANGUAGE_ZONE), 'pages' => array('dt_portfolio'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}items", 'type' => 'image_advanced_mk2')));
/***********************************************************/
// Portfolio post media options
/***********************************************************/
$prefix = '_dt_project_media_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-portfolio_post_media_options', 'title' => _x('Media Options', 'backend metabox', LANGUAGE_ZONE), 'pages' => array('dt_portfolio'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => _x('Layout settings:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}layout", 'type' => 'radio', 'std' => 'left', 'options' => array('left' => array(_x('Media on the left of content', 'backend metabox', LANGUAGE_ZONE), array('right-content.gif', 75, 50)), 'right' => array(_x('Media on the right of content', 'backend metabox', LANGUAGE_ZONE), array('left-content.gif', 75, 50)), 'before' => array(_x('Media before content area', 'backend metabox', LANGUAGE_ZONE), array('bottom-content.gif', 75, 50)), 'after' => array(_x('Media after content area', 'backend metabox', LANGUAGE_ZONE), array('top-content.gif', 75, 50)), 'disabled' => array(_x('Media disabled (blank page)', 'backend metabox', LANGUAGE_ZONE), array('no-media-content.gif', 75, 50))), 'hide_fields' => array('before' => array("{$prefix}enable_floationg_content"), 'after' => array("{$prefix}enable_floationg_content"), 'disabled' => array("{$prefix}enable_floationg_content"))), array('name' => _x('Enable floating content:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}enable_floationg_content", 'type' => 'checkbox', 'std' => 1, 'top_divider' => true), array('name' => _x('Show media as:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}type", 'type' => 'radio', 'std' => 'slideshow', 'options' => array('slideshow' => array(_x('Slideshow', 'backend metabox', LANGUAGE_ZONE), array('layout-slider.gif', 75, 50)), 'gallery' => array(_x('Gallery', 'backend metabox', LANGUAGE_ZONE), array('layout-metro.gif', 75, 50)), 'list' => array(_x('List', 'backend metabox', LANGUAGE_ZONE), array('layout-list.gif', 75, 50))), 'hide_fields' => array('gallery' => array("{$prefix}slider_proportions"), 'list' => array("{$prefix}slider_proportions", "{$prefix}gallery_container"), 'slideshow' => array("{$prefix}gallery_container")), 'top_divider' => true), array('name' => _x('Slider proportions:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}slider_proportions", 'type' => 'simple_proportions', 'std' => array('width' => '', 'height' => ''), 'top_divider' => true), array('before' => '<div class="rwmb-input-' . $prefix . 'gallery_container rwmb-flickering-field">', 'name' => _x('Columns', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}gallery_columns", 'type' => 'select', 'std' => '4', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'), 'multiple' => false, 'top_divider' => true), array('name' => _x('Make first image large:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}gallery_make_first_big", 'type' => 'checkbox', 'std' => 1, 'after' => '</div>')));
/***********************************************************/
// Portfolio post options
/***********************************************************/
$prefix = '_dt_project_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-portfolio_post', 'title' => _x('Project Options', 'backend metabox', LANGUAGE_ZONE), 'pages' => array('dt_portfolio'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => _x('Project link:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}show_link", 'type' => 'checkbox', 'std' => 0, 'hide_fields' => array("{$prefix}link", "{$prefix}link_name", "{$prefix}link_target")), array('name' => _x('Link:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}link", 'type' => 'text', 'std' => ''), array('name' => _x('Caption:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}link_name", 'type' => 'text', 'std' => ''), array('name' => _x('Target:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}link_target", 'type' => 'radio', 'std' => '', 'options' => array('' => _x('_self', 'backend metabox', LANGUAGE_ZONE), '_blank' => _x('_blank', 'backend metabox', LANGUAGE_ZONE))), array('name' => _x('Hide featured image on project page:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}hide_thumbnail", 'type' => 'checkbox', 'std' => 0, 'top_divider' => true), array('name' => _x('Open images in lightbox:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}open_thumbnail_in_lightbox", 'type' => 'checkbox', 'std' => 0, 'top_divider' => true), array('name' => _x('Related projects category:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}related_mode", 'type' => 'radio', 'std' => 'same', 'options' => array('same' => _x('from the same category', 'backend metabox', LANGUAGE_ZONE), 'custom' => _x('choose category(s)', 'backend metabox', LANGUAGE_ZONE)), 'hide_fields' => array('same' => array("{$prefix}related_categories")), 'top_divider' => true), array('id' => "{$prefix}related_categories", 'type' => 'taxonomy_list', 'options' => array('taxonomy' => 'dt_portfolio_category', 'type' => 'checkbox_list', 'args' => array())), array('name' => _x('Project preview width:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}preview", 'type' => 'radio', 'std' => 'normal', 'options' => array('normal' => _x('normal', 'backend metabox', LANGUAGE_ZONE), 'wide' => _x('wide', 'backend metabox', LANGUAGE_ZONE)), 'before' => '<p><small>' . sprintf(_x('Related projects can be enabled / disabled from %sTheme Options / Blog, Portfolio, Gallery%s', 'backend metabox', LANGUAGE_ZONE), '<a href="' . add_query_arg('page', 'of-blog-and-portfolio-menu', get_admin_url() . 'admin.php') . '" target="_blank">', '</a>') . '</small></p><div class="dt_hr"></div><p><strong>' . _x('Project Preview Options', 'backend metabox', LANGUAGE_ZONE) . '</strong></p>'), array('name' => _x('Preview style:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}preview_style", 'type' => 'radio', 'std' => 'featured_image', 'options' => array('featured_image' => _x('featured image', 'backend metabox', LANGUAGE_ZONE), 'slideshow' => _x('slideshow', 'backend metabox', LANGUAGE_ZONE)), 'hide_fields' => array('featured_image' => array("{$prefix}slider_proportions"))), array('name' => _x('Slider proportions:', 'backend metabox', LANGUAGE_ZONE), 'id' => "{$prefix}slider_proportions", 'type' => 'simple_proportions', 'std' => array('width' => '', 'height' => ''))));
<?php

/**
 * Blog and Post metaboxes.
 * @since presscore 0.1
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
/***********************************************************/
// Blog category
/***********************************************************/
$prefix = '_dt_blog_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-display_blog', 'title' => _x('Display Blog Categories', 'backend metabox', 'the7mk2'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => "{$prefix}display", 'type' => 'fancy_category', 'mode' => 'taxonomy', 'post_type' => 'post', 'taxonomy' => 'category', 'post_type_info' => array('categories'), 'main_tab_class' => 'dt_all_blog', '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 Blog posts are being displayed on this page!', 'backend', 'the7mk2'), _x('By default all your Blog posts will be displayed on this page. ', 'backend', 'the7mk2'), _x('But you can specify which Blog categories 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 Blog posts (from all categories) will be shown on this page.', 'backend', 'the7mk2'), _x('Only', 'backend', 'the7mk2'), _x(' &mdash; choose Blog category(s) to be shown on this page.', 'backend', 'the7mk2'), _x('All, except', 'backend', 'the7mk2'), _x(' &mdash; choose which category(s) will be excluded from displaying on this page.', 'backend', 'the7mk2')))), 'only_on' => array('template' => array('template-blog-list.php', 'template-blog-masonry.php')));
/***********************************************************/
// Blog options
/***********************************************************/
$prefix = '_dt_blog_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-blog_options', 'title' => _x('Blog 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-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('gap between images', array('id' => "{$prefix}item_padding", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('column target width', array('id' => "{$prefix}target_width", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('columns number', array('id' => "{$prefix}columns_number", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('100 percent width', array('id' => "{$prefix}full_width", 'show_on_template' => 'template-blog-masonry.php')), array('name' => _x('Make all posts the same width:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}posts_same_width", 'type' => 'checkbox', 'std' => 0, 'divider' => 'top', 'show_on_template' => 'template-blog-masonry.php'), Presscore_Meta_Box_Field_Template::get_as_array('background under masonry post', array('name' => _x('Background under posts:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_under_masonry_posts", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('content alignment', array('id' => "{$prefix}post_content_alignment", 'show_on_template' => 'template-blog-masonry.php', 'divider' => 'top_and_bottom')), Presscore_Meta_Box_Field_Template::get_as_array('list layout', array('id' => "{$prefix}list_layout", 'show_on_template' => 'template-blog-list.php')), Presscore_Meta_Box_Field_Template::get_as_array('background under post', array('name' => _x('Background under posts:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}bg_under_list_posts", 'show_on_template' => 'template-blog-list.php', 'divider' => 'top_and_bottom')), array('name' => _x('Enable fancy date:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}enable_fancy_date", 'type' => 'checkbox', 'std' => 1), 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")), Presscore_Meta_Box_Field_Template::get_as_array('media content width', array('id' => "{$prefix}thumb_width", 'show_on_template' => 'template-blog-list.php')), array('name' => _x('Number of posts to display on one page:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}ppp", 'type' => 'text', 'std' => '', 'divider' => 'top_and_bottom'), Presscore_Meta_Box_Field_Template::get_as_array('loading mode', array('id' => "{$prefix}load_style")), Presscore_Meta_Box_Field_Template::get_as_array('loading effect', array('id' => "{$prefix}load_effect", 'show_on_template' => 'template-blog-masonry.php')), Presscore_Meta_Box_Field_Template::get_as_array('show all pages paginator', array('before' => presscore_meta_boxes_advanced_settings_tpl('dt_blog-advanced'), 'id' => "{$prefix}show_all_pages")), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_exerpts", 'name' => _x('Show excerpts:', 'backend metabox', 'the7mk2'), 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_details", 'name' => _x('Show read more buttons:', 'backend metabox', 'the7mk2'), 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_filter", 'name' => _x('Show categories filter:', 'backend metabox', 'the7mk2'), 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_orderby", 'name' => _x('Show name / date ordering:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_order", 'name' => _x('Show asc. / desc. ordering:', 'backend metabox', 'the7mk2'))), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_categories_in_post_meta", 'name' => _x('Show post categories:', 'backend metabox', 'the7mk2'), 'divider' => 'top')), Presscore_Meta_Box_Field_Template::get_as_array('radio yes no', array('id' => "{$prefix}show_date_in_post_meta", 'name' => _x('Show post 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 post 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 post comments:', 'backend metabox', 'the7mk2'))), 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-blog-list.php', 'template-blog-masonry.php')));
/***********************************************************/
// Post options
/***********************************************************/
$prefix = '_dt_post_options_';
$DT_META_BOXES[] = array('id' => 'dt_page_box-post_options', 'title' => _x('Post Options', 'backend metabox', 'the7mk2'), 'pages' => array('post'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(Presscore_Meta_Box_Field_Template::get_as_array('select pages', array('name' => _x('Back button:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}back_button", 'divider' => 'bottom')), array('name' => __('Hide featured image on post page:', 'the7mk2'), 'id' => "{$prefix}hide_thumbnail", 'type' => 'checkbox', 'std' => 0), array('name' => _x('Related posts category:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}related_mode", 'type' => 'radio', 'std' => 'same', 'options' => array('same' => _x('from the same category', 'backend metabox', 'the7mk2'), 'custom' => _x('choose category(s)', 'backend metabox', 'the7mk2')), 'hide_fields' => array('same' => array("{$prefix}related_categories")), 'top_divider' => true), array('id' => "{$prefix}related_categories", 'type' => 'taxonomy_list', 'options' => array('taxonomy' => 'category', 'type' => 'checkbox_list', 'args' => array()), 'multiple' => true), array('name' => _x('Post preview width:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}preview", 'type' => 'radio', 'std' => 'normal', 'options' => array('normal' => _x('normal', 'backend metabox', 'the7mk2'), 'wide' => _x('wide', 'backend metabox', 'the7mk2')), 'before' => '<p><small>' . sprintf(_x('Related posts can be enabled / disabled from %sTheme Options / Blog, Portfolio, Gallery%s', 'backend metabox', 'the7mk2'), '<a href="' . esc_url(add_query_arg('page', 'of-blog-and-portfolio-menu', get_admin_url() . 'admin.php')) . '" target="_blank">', '</a>') . '</small></p><div class="dt_hr"></div><p><strong>' . _x('Post Preview Options', 'backend metabox', 'the7mk2') . '</strong></p>'), array('name' => _x('For gallery post format:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}preview_style_gallery", 'type' => 'radio', 'std' => 'standard_gallery', 'options' => array('standard_gallery' => _x('standard image gallery', 'backend metabox', 'the7mk2'), 'hovered_gallery' => _x('featured image with gallery hover', 'backend metabox', 'the7mk2'), 'slideshow' => _x('slideshow', 'backend metabox', 'the7mk2')), 'before' => '<div class="dt_hr"></div><p><strong>' . _x('Post Preview Style', 'backend metabox', 'the7mk2') . '</strong></p>', 'hide_fields' => array('standard_gallery' => array("{$prefix}slider_proportions"), 'hovered_gallery' => array("{$prefix}slider_proportions"))), array('name' => _x('Slider proportions:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}slider_proportions", 'type' => 'simple_proportions', 'std' => array('width' => '', 'height' => '')), array('name' => _x('For video post format:', 'backend metabox', 'the7mk2'), 'id' => "{$prefix}preview_style_video", 'type' => 'radio', 'std' => 'image_play', 'options' => array('image' => _x('image', 'backend metabox', 'the7mk2'), 'image_play' => _x('image with "Play" icon', 'backend metabox', 'the7mk2')))));