<?php

/*
*      Robo Gallery     
*      Version: 1.0
*      By Robosoft
*
*      Contact: http://robosoft.co
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$shortcode_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'shortcode_metabox', 'title' => '<span class="dashicons dashicons-visibility"></span> ' . __('Gallery Shortcode', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'context' => 'side', 'priority' => 'low', 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0)));
if (isset($_GET['post'])) {
    $shortcode_group->add_field(array('id' => ROBO_GALLERY_PREFIX . 'short_desc', 'type' => 'title', 'before_row' => '<div class="rbs_shortcode">[robo-gallery id="' . $_GET['post'] . '"]</div>', 'after_row' => '<div class="desc">' . __('use this shortcode to insert this gallery into page, post or widget', 'rbs_gallery') . "</div>"));
}
/*
*      Robo Gallery     
*      Version: 1.0
*      By Robosoft
*
*      Contact: http://robosoft.co
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$button_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'button_metabox', 'title' => '<span class="dashicons dashicons-format-gallery"></span> ' . __('Menu Options', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'show_names' => false, 'context' => 'normal', 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0)));
$button_group->add_field(array('name' => __('Menu', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'menu', 'type' => 'switch', 'level' => !ROBO_GALLERY_PRO, 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'bootstrap_style' => 1, 'showhide' => 1, 'depends' => '.rbs_menu_options', 'before_row' => '
<div class="rbs_block"><br/>', 'after_row' => '
	<div class="rbs_menu_options">'));
$button_group->add_field(array('name' => __('Root Label', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'menuRoot', 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'type' => 'switch', 'bootstrap_style' => 1, 'depends' => '.rbs_menu_root_text', 'showhide' => 1, 'after_row' => '
		<div class="rbs_menu_root_text">'));
$button_group->add_field(array('name' => __('Root Label Text', 'rbs_gallery'), 'default' => 'All', 'id' => ROBO_GALLERY_PREFIX . 'menuRootLabel', 'type' => 'rbstext', 'after_row' => '
		</div>'));
$button_group->add_field(array('name' => __('Self Label', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'menuSelf', 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'type' => 'switch', 'showhide' => 1, 'bootstrap_style' => 1));
$button_group->add_field(array('name' => __('Self Images', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'menuSelfImages', 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'type' => 'switch', 'showhide' => 1, 'bootstrap_style' => 1));
$button_group->add_field(array('name' => __('Style', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'buttonFill', 'type' => 'rbsselect', 'show_option_none' => false, 'level' => !ROBO_GALLERY_PRO, 'default' => 'border', 'options' => array('normal' => __('Normal', 'cmb'), 'flat' => __('flat', 'cmb'), '3d' => __('3d', 'cmb'), 'border' => __('Border', 'cmb'))));
$button_group->add_field(array('name' => __('Color', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'buttonColor', 'type' => 'rbsselect', 'show_option_none' => false, 'level' => !ROBO_GALLERY_PRO, 'default' => 'red', 'options' => array('gray' => __('gray', 'cmb'), 'blue' => __('blue', 'cmb'), 'green' => __('green', 'cmb'), 'orange' => __('orange', 'cmb'), 'red' => __('red', 'cmb'), 'purple' => __('purple', 'cmb'))));
$button_group->add_field(array('name' => __('Rounds', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'buttonType', 'type' => 'rbsselect', 'show_option_none' => false, 'default' => 'normal', 'options' => array('normal' => __('Normal', 'cmb'), 'rounded' => __('Rounded', 'cmb'), 'pill' => __('Pill', 'cmb'), 'circle' => __('Circle ', 'cmb'))));
$button_group->add_field(array('name' => __('Size', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'buttonSize', 'type' => 'rbsselect', 'show_option_none' => false, 'default' => 'normal', 'options' => array('jumbo' => __('Jumbo', 'cmb'), 'large' => __('Large', 'cmb'), 'normal' => __('Normal', 'cmb'), 'small' => __('Small', 'cmb'), 'tiny' => __('Tiny ', 'cmb'))));
$button_group->add_field(array('name' => __('Left Padding', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'paddingLeft', 'type' => 'slider', 'bootstrap_style' => 1, 'default' => rbs_gallery_set_checkbox_default_for_new_post(5), 'min' => 0, 'addons' => 'px', 'max' => 100));
$button_group->add_field(array('name' => __('Bottom Padding', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'paddingBottom', 'type' => 'slider', 'bootstrap_style' => 1, 'default' => rbs_gallery_set_checkbox_default_for_new_post(10), 'min' => 0, 'max' => 100, 'addons' => 'px', 'after_row' => '
    </div>
</div>'));
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$loading_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'loading_metabox', 'title' => '<span class="dashicons dashicons-performance"></span> ' . __('Loading Options', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'context' => 'normal', 'show_names' => false, 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1)));
$loading_group->add_field(array('name' => __('Lazy Load', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'lazyLoad', 'type' => 'switch', 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'bootstrap_style' => 1, 'before_row' => ' <br />
<div class="rbs_block rbs_loading_tabs">
	<div role="tabpanel">
		<ul class="nav nav-tabs" role="tablist">
			<li role="presentation" class="active"><a href="#loading_options" aria-controls="loading_options" role="tab" data-toggle="tab">' . __('Loading Options', 'rbs_gallery') . '</a></li>
			<li role="presentation"><a href="#loading_text" aria-controls="loading_text" role="tab" data-toggle="tab">' . __('Loading Text', 'rbs_gallery') . '</a></li>
		</ul>
		<div class="tab-content">
			<div role="tabpanel" class="tab-pane active" id="loading_options"><br/>
				'));
$loading_group->add_field(array('name' => __('Images Amount', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'boxesToLoadStart', 'type' => 'slider', 'bootstrap_style' => 1, 'default' => 12, 'min' => 1, 'max' => 50));
$loading_group->add_field(array('name' => __('Load More Amount', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'boxesToLoad', 'type' => 'slider', 'bootstrap_style' => 1, 'default' => 8, 'min' => 1, 'max' => 50));
$loading_group->add_field(array('name' => __('Wait Thumbs Load', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'waitUntilThumbLoads', 'type' => 'switch', 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'bootstrap_style' => 1));
$loading_group->add_field(array('name' => __('Wait No Matter What', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'waitForAllThumbsNoMatterWhat', 'type' => 'switch', 'default' => rbs_gallery_set_checkbox_default_for_new_post(0), 'bootstrap_style' => 1));
$loading_group->add_field(array('name' => __('Bg Color', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'loadingBgColor', 'type' => 'rbstext', 'small' => 1, 'default' => '#ffffff', 'data-default' => '#ffffff', 'class' => 'form-control rbs_color rbs_hover_bg_color', 'after_row' => '
    		</div> '));
$loading_group->add_field(array('name' => __('Loading Label', 'rbs_gallery'), 'default' => 'Loading...', 'id' => ROBO_GALLERY_PREFIX . 'LoadingWord', 'type' => 'rbstext', 'before_row' => '
			<div role="tabpanel" class="tab-pane" id="loading_text"><br/>
			'));
$loading_group->add_field(array('name' => __('Load More Label', 'rbs_gallery'), 'default' => 'Load More', 'id' => ROBO_GALLERY_PREFIX . 'loadMoreWord', 'type' => 'rbstext'));
$loading_group->add_field(array('name' => __('No More Entries Label', 'rbs_gallery'), 'default' => 'No More Entries', 'id' => ROBO_GALLERY_PREFIX . 'noMoreEntriesWord', 'type' => 'rbstext', 'after_row' => '
			</div>
		</div>
	</div>
</div>'));
					<div class="rbs_hover_shadows_tabs">'));
$view_group->add_field(array('name' => __('Shadow Options', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'hover-shadow-options', 'type' => 'shadow', 'default' => array('color' => 'rgba(34, 25, 25, 0.4)', 'hshadow' => '1', 'vshadow' => '3', 'bshadow' => '3'), 'after_row' => '
        			</div>
				</div>
			</div>
		</div>
	</div>
	<div class="rbs_border"></div>'));
/* ======================= Border Start ================================= */
$view_group->add_field(array('name' => __('Border', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'border', 'type' => 'switch', 'default' => rbs_gallery_set_checkbox_default_for_new_post(0), 'depends' => '.rbs_border_tabs', 'bootstrap_style' => 1, 'before_row' => '<br/>'));
$view_group->add_field(array('name' => __('Border Options', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'border-options', 'type' => 'border', 'before_row' => '
	<div class="rbs_border_tabs">
		<div role="tabpanel">
			<ul class="nav nav-tabs" role="tablist">
				<li role="presentation" class="active"><a href="#border_options" aria-controls="border_options" role="tab" data-toggle="tab">' . __('Border Options', 'rbs_gallery') . '</a></li>
				<li role="presentation"><a href="#hover-border_options" aria-controls="hover-border_options" role="tab" data-toggle="tab">' . __('Hover Border Options', 'rbs_gallery') . '</a></li>
			</ul>
			<div class="tab-content">
				<div role="tabpanel" class="tab-pane active" id="border_options"><br/>
				', 'after_row' => '
				</div>'));
$view_group->add_field(array('name' => __('Hover Border', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'hover-border', 'type' => 'switch', 'depends' => '.rbs_hover_border_tabs', 'default' => rbs_gallery_set_checkbox_default_for_new_post(0), 'bootstrap_style' => 1, 'level' => !ROBO_GALLERY_PRO, 'hide_border' => true, 'before_row' => '
				<div role="tabpanel" class="tab-pane " id="hover-border_options"><br/>', 'after_row' => '
					<div class="rbs_hover_border_tabs">'));
$view_group->add_field(array('name' => __('Border Options', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'hover-border-options', 'type' => 'border', 'after_row' => '
        			</div>
				</div>
			</div>
		</div>
	</div>
</div>'));
$hover_group->add_field(array('name' => __('Bg Color', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'background', 'type' => 'rbstext', 'class' => 'form-control rbs_color rbs_hover_bg_color', 'data-default' => 'rgba(7, 7, 7, 0.5)', 'default' => 'rgba(7, 7, 7, 0.5)', 'data-alpha' => 'true', 'data-css-style' => 'backgroundColor', 'data-demo-class' => '.rbs_hover_demo', 'small' => 1, 'level' => !ROBO_GALLERY_PRO));
$hover_group->add_field(array('name' => __('Effect', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'overlayEffect', 'type' => 'rbsselect', 'show_option_none' => false, 'default' => 'direction-aware-fade', 'options' => array('push-up' => __('push-up', 'cmb'), 'push-down' => __('push-down', 'cmb'), 'push-up-100%' => __('push-up-100%', 'cmb'), 'push-down-100%' => __('push-down-100%', 'cmb'), 'reveal-top' => __('reveal-top', 'cmb'), 'reveal-bottom' => __('reveal-bottom', 'cmb'), 'reveal-top-100%' => __('reveal-top-100%', 'cmb'), 'reveal-bottom-100%' => __('reveal-bottom-100%', 'cmb'), 'direction-aware' => __('direction-aware', 'cmb'), 'direction-aware-fade' => __('direction-aware-fade', 'cmb'), 'direction-right' => __('direction-right', 'cmb'), 'direction-left' => __('direction-left', 'cmb'), 'direction-top' => __('direction-top', 'cmb'), 'direction-bottom' => __('direction-bottom', 'cmb'), 'fade' => __('fade', 'cmb')), 'after_row' => '
		<div class="rbs_gallery_hover_options_blok">'));
$hover_group->add_field(array('name' => __('Show Title', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'showTitle', 'type' => 'font', 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'bootstrap_style' => 1, 'default' => array('enabled' => rbs_gallery_set_checkbox_default_for_new_post(1), 'color' => 'rgb(255, 255, 255)', 'colorHover' => 'rgb(255, 255, 255)', 'fontBold' => 'bold', 'fontSize' => '12'), 'before_row' => '
		    <div role="tabpanel">
				<ul class="nav nav-tabs" role="tablist">
					<li role="presentation" class="active"><a href="#hover_text" aria-controls="hover_text" role="tab" data-toggle="tab">' . __('Title', 'rbs_gallery') . '</a></li>
					<li role="presentation"><a href="#hover_linkicon" aria-controls="hover_linkicon" role="tab" data-toggle="tab">' . __('Link Button', 'rbs_gallery') . '</a></li>
					<li role="presentation"><a href="#hover_zoomicon" aria-controls="hover_zoomicon" role="tab" data-toggle="tab">' . __('Zoom Button', 'rbs_gallery') . '</a></li>
					<li role="presentation"><a href="#hover_desc" aria-controls="hover_desc" role="tab" data-toggle="tab">' . __('Description', 'rbs_gallery') . '</a></li>
				</ul>
				<div class="tab-content">
		        	<div role="tabpanel" class="tab-pane active" id="hover_text"><br/>', 'after_row' => '
					</div>'));
$hover_group->add_field(array('name' => __('Link Icon', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'linkIcon', 'type' => 'font', 'bootstrap_style' => 1, 'default' => array('enabled' => rbs_gallery_set_checkbox_default_for_new_post(0), 'iconSelect' => 'fa-link', 'color' => '#ffffff', 'colorHover' => '#ffffff', 'fontSize' => '20'), 'icon' => 1, 'before_row' => '
	        		<div role="tabpanel" class="tab-pane" id="hover_linkicon"><br/>', 'after_row' => '
					</div>'));
$hover_group->add_field(array('name' => __('Zoom Icon', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'zoomIcon', 'type' => 'font', 'bootstrap_style' => 1, 'default' => array('enabled' => rbs_gallery_set_checkbox_default_for_new_post(1), 'iconSelect' => 'fa-search-plus', 'color' => '#ffffff', 'colorHover' => '#ffffff', 'colorBg' => 'rgb(13, 130, 241)', 'colorBgHover' => 'rgb(6, 70, 130)', 'borderSize' => '2', 'fontSize' => '16'), 'icon' => 1, 'before_row' => '
	        		<div role="tabpanel" class="tab-pane" id="hover_zoomicon"><br/>', 'after_row' => '
					</div>'));
$hover_group->add_field(array('name' => __('Show Description', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'showDesc', 'type' => 'font', 'bootstrap_style' => 1, 'level' => !ROBO_GALLERY_PRO, 'default' => array('enabled' => rbs_gallery_set_checkbox_default_for_new_post(0), 'color' => '#000000', 'colorHover' => '#000000', 'fontSize' => '24'), 'before_row' => '
		        	<div role="tabpanel" class="tab-pane" id="hover_desc"><br/>', 'after_row' => '
					</div>
				</div>
			</div>
		</div>'));
$hover_group->add_field(array('name' => __('Description Template', 'rbs_gallery'), 'desc' => '@TITLE@ <br/> @CAPTION@ <br/> @DESC@ <br/> @LINK@ ', 'default' => '<div class="rbs-hover-title">@TITLE@</div>' . "\n" . '<div class="rbs-hover-caption">@CAPTION@</div>' . "\n" . '<div class="rbs-hover-text">@DESC@</div>' . "\n" . '<div class="rbs-hover-more"><a href="@LINK@">Read more</a></div>' . "\n", 'id' => ROBO_GALLERY_PREFIX . 'desc_template', 'type' => 'rbstextarea', 'before_row' => '
		<div class="rbs_gallery_hover_template_blok"> ', 'after_row' => '
		</div>
	</div>
</div>'));
<?php

/*
*      Robo Gallery     
*      Version: 1.0
*      By Robosoft
*
*      Contact: http://robosoft.co
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$lightbox_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'lightbox_metabox', 'title' => '<span class="dashicons  dashicons-money"></span> ' . __('Lightbox Options', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'show_names' => false, 'context' => 'normal', 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1)));
$lightbox_group->add_field(array('name' => __('Text', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'lightboxTitle', 'type' => 'switch', 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'bootstrap_style' => 1, 'showhide' => 1, 'depends' => '.rbs_lightbox_source', 'before_row' => '
<div class="rbs_block"><br/>'));
$lightbox_group->add_field(array('name' => __('Text Source', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'lightboxSource', 'type' => 'rbsselect', 'show_option_none' => false, 'default' => 'title', 'options' => array('title' => __('Title', 'rbs_gallery'), 'desc' => __('Description', 'rbs_gallery'), 'caption' => __('Caption', 'rbs_gallery')), 'before_row' => '<div class="rbs_lightbox_source">', 'after_row' => '</div> '));
$lightbox_group->add_field(array('name' => __('Text Color', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'lightboxColor', 'type' => 'rbstext', 'class' => 'form-control rbs_color', 'data-default' => '#F3F3F3', 'data-alpha' => 'true', 'small' => 1, 'default' => '#F3F3F3'));
$lightbox_group->add_field(array('name' => __('Bg Color', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'lightboxBackground', 'type' => 'rbstext', 'class' => 'form-control rbs_color', 'data-default' => 'rgba(11, 11, 11, 0.8)', 'data-alpha' => 'true', 'level' => !ROBO_GALLERY_PRO, 'small' => 1, 'default' => 'rgba(11, 11, 11, 0.8)'));
$lightbox_group->add_field(array('name' => __('Deep Linking', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'deepLinking', 'type' => 'switch', 'desc' => __('This option enable linking for every particular image ', 'rbs_gallery'), 'default' => rbs_gallery_set_checkbox_default_for_new_post(0), 'bootstrap_style' => 1));
$lightbox_group->add_field(array('name' => __(' Images Counter', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'lightboxCounter', 'type' => 'switch', 'showhide' => 1, 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'bootstrap_style' => 1));
$lightbox_group->add_field(array('name' => __('Close Icon', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'lightboxClose', 'type' => 'switch', 'showhide' => 1, 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'bootstrap_style' => 1));
$lightbox_group->add_field(array('name' => __('Arrow Icon', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'lightboxArrow', 'type' => 'switch', 'showhide' => 1, 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'bootstrap_style' => 1));
$lightbox_group->add_field(array('name' => __('Social Buttons', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'lightboxSocial', 'type' => 'switch', 'showhide' => 1, 'default' => rbs_gallery_set_checkbox_default_for_new_post(0), 'bootstrap_style' => 1, 'level' => !ROBO_GALLERY_PRO, 'after_row' => '
</div> '));
<?php

/*
*      Robo Gallery     
*      Version: 1.0
*      By Robosoft
*
*      Contact: http://robosoft.co
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$copy_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'copy_metabox', 'title' => '<span class="dashicons dashicons-admin-settings"></span> ' . __(' Clone Gallery', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'show_names' => false, 'context' => 'normal', 'priority' => 'high', 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1)));
$copy_group->add_field(array('name' => __('Source Gallery', 'rbs_gallery'), 'desc' => __('When you select here to inherit settings from another gallery you\'ll not be able to edit some of the options. Gallery will copy all settings from selected source.', 'rbs_gallery'), 'desc2' => __('Very useful option for the webmasters who planning to create a lot of galleries. You don\'t have to configure it every time. Just setup styles of the gallery in one place and use the same options for another galleries on your website in another galleries.  Very fast, comfortable, advanced tool to speed up your workflow!', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'options', 'type' => 'rbsgallery', 'bootstrap_style' => 1, 'default' => -1, 'before_row' => '
<div class="rbs_block"><br/>', 'after_row' => '
</div> '));
<?php

/*
*      Robo Gallery     
*      Version: 1.0
*      By Robosoft
*
*      Contact: http://robosoft.co
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$polaroid_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'polaroid_metabox', 'title' => '<span class="dashicons  dashicons-money"></span> ' . __('Polaroid Style Options', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'show_names' => false, 'context' => 'normal', 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1)));
$polaroid_group->add_field(array('name' => __('Polaroid Style', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'polaroidOn', 'type' => 'switch', 'deffault' => rbs_gallery_set_checkbox_default_for_new_post(0), 'depends' => '.rbs_polaroid_block', 'bootstrap_style' => 1, 'before_row' => '
<div class="rbs_block"><br/>', 'after_row' => '
	<div class="rbs_polaroid_block">'));
$polaroid_group->add_field(array('name' => __('Source', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'polaroidSource', 'type' => 'rbsselect', 'show_option_none' => false, 'default' => 'desc', 'options' => array('title' => __('Title', 'rbs_gallery'), 'desc' => __('Desc', 'rbs_gallery'), 'caption' => __('Caption', 'rbs_gallery'))));
$polaroid_group->add_field(array('name' => __('Bg Color', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'polaroidBackground', 'type' => 'rbstext', 'class' => 'form-control rbs_color', 'data-default' => '#ffffff', 'data-alpha' => 'true', 'small' => 1, 'default' => '#ffffff'));
$polaroid_group->add_field(array('name' => __('Align', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'polaroidAlign', 'type' => 'rbsselect', 'show_option_none' => false, 'default' => 'center', 'options' => array('left' => __('left', 'rbs_gallery'), 'right' => __('right', 'rbs_gallery'), 'center' => __('center', 'rbs_gallery')), 'after_row' => '
    </div>
</div>'));
*      Contact: http://robosoft.co
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$size_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'size_metabox', 'title' => '<span class="dashicons dashicons-welcome-add-page"></span>' . __('Gallery Size Options', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'cmb_styles' => false, 'show_names' => false, 'context' => 'normal', 'priority' => 'high', 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0)));
//$size_group->add_field( array('type' => 'toolbox'));
$size_group->add_field(array('name' => __('Width ', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'width-size', 'type' => 'multisize', 'default' => array('width' => 100, 'widthType' => ''), 'bootstrap_style' => 1, 'before_row' => ' <br />
<div class="rbs_block">'));
$size_group->add_field(array('name' => __('Align', 'rbs_gallery'), 'default' => '', 'options' => array('' => 'Disable', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right'), 'id' => ROBO_GALLERY_PREFIX . 'align', 'type' => 'rbsradiobutton'));
$size_group->add_field(array('name' => __('Padding', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'paddingCustom', 'type' => 'padding', 'default' => array('left' => 0, 'top' => 0, 'right' => 0, 'bottom' => 0), 'bootstrap_style' => 1));
$size_group->add_field(array('name' => __('Thumbs Options', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'thumb-size-options', 'type' => 'size', 'level' => !ROBO_GALLERY_PRO, 'before_row' => '
	<div class="rbs_thumb_tabs">
		<div role="tabpanel">
			<ul class="nav nav-tabs" role="tablist">
				<li role="presentation" class="active"><a href="#thumb_size_options" aria-controls="thumb_size_options" role="tab" data-toggle="tab">' . __('Thumbs Options', 'rbs_gallery') . '</a></li>
				<li role="presentation"><a href="#thumb_colums_options" aria-controls="thumb_colums_options" role="tab" data-toggle="tab">' . __('Size Options', 'rbs_gallery') . '</a></li>
			</ul>
			<div class="tab-content">
				<div role="tabpanel" class="tab-pane active" id="thumb_size_options"><br/>'));
$size_group->add_field(array('name' => __('Custom Ratio', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'sizeType', 'type' => 'switch', 'depends' => '.rbs_size_width, .rbs_size_height', 'default' => rbs_gallery_set_checkbox_default_for_new_post(0), 'bootstrap_style' => 1, 'after_row' => '
				</div>'));
$size_group->add_field(array('name' => __('Colums ', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'colums', 'type' => 'colums', 'default' => rbs_gallery_set_checkbox_default_for_new_post(1), 'bootstrap_style' => 1, 'level' => !ROBO_GALLERY_PRO, 'before_row' => '
				<div role="tabpanel" class="tab-pane" id="thumb_colums_options"><br/>', 'after_row' => '
				</div>
			</div>
		</div>
	</div>
</div>'));
<?php

/*
*      Robo Gallery     
*      Version: 1.0
*      By Robosoft
*
*      Contact: http://robosoft.co
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$text_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'text_metabox', 'title' => '<span class="dashicons dashicons-media-text"></span> ' . __('Text Addons', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'show_names' => false, 'context' => 'side', 'priority' => 'low', 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1)));
$text_group->add_field(array('name' => __('Pre Text', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'pretext', 'type' => 'rbstextarea', 'default' => '', 'hide_label' => 1, 'bootstrap_style' => 1, 'before_row' => '
    <div class="rbs_block"><label>' . __('Pre Text', 'rbs_gallery') . '</label>'));
$text_group->add_field(array('name' => __('After Text', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'aftertext', 'type' => 'rbstextarea', 'default' => '', 'hide_label' => 1, 'bootstrap_style' => 1, 'before_row' => '
    <label>' . __('After Text', 'rbs_gallery') . '</label>', 'after_row' => '
</div>'));
<?php

/*
*      Robo Gallery     
*      Version: 1.0
*      By Robosoft
*
*      Contact: http://robosoft.co
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$images_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'images_metabox', 'title' => '<span class="dashicons dashicons-format-gallery"></span> ' . __('Images Manager', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'context' => 'side', 'priority' => 'high', 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0), 'show_names' => false));
$images_group->add_field(array('name' => __('Manage Images', 'rbs_gallery'), 'desc' => __('Click on Manage Images button to open Images Manager where you can upload, edit or delete images from gallery. Also here you can edit settings of every particular image, define alt, links, description text', 'rbs_gallery'), 'button' => __('Manage Images', 'rbs_gallery'), 'id' => ROBO_GALLERY_PREFIX . 'galleryImages', 'type' => 'pw_gallery', 'sanitization_cb' => 'pw_gallery_field_sanitise'));
/*    $hover_group->add_field(    
	array(
	    'name' => 'Add Image to Gallery',
	    'desc' => 'ctrl to select many',
	    'id' => ROBO_GALLERY_PREFIX . 'file_list',
	    'type' => 'file_list',
	    'preview_size' => array( 50, 50 )
	    // Default: array( 50, 50 )
	)
);*/
<?php

/*
*      Robo Gallery     
*      Version: 1.0
*      By Robosoft
*
*      Contact: http://robosoft.co
*      Created: 2015
*      Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
*
*      Copyright (c) 2014-2015, Robosoft. All rights reserved.
*      Available only in http://robosoft.co/
*/
$info_group = new_cmb2_box(array('id' => ROBO_GALLERY_PREFIX . 'info_metabox', 'title' => '<span class="dashicons dashicons-cart"></span> ' . __('Get Pro version', 'rbs_gallery'), 'object_types' => array(ROBO_GALLERY_TYPE_POST), 'context' => 'side', 'priority' => 'low', 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0)));
$info_group->add_field(array('id' => ROBO_GALLERY_PREFIX . 'info', 'type' => 'title', 'before_row' => '<div class="rbs_infoblock">' . '<div class="rbs_infoSmall rbs_getproversion_blank">' . __('with PRO version you get more advanced functionality and even more flexibility in settings', 'rbs_gallery') . '</div>' . '</div>' . '<div class="rbs_infoblockBottom"><button class="rbs_getproversion_blank">' . __('Get Pro version', 'rbs_gallery') . '</button></div>'));