<?php
/**
 * Options Config file
 * @uses ReduxFramework 3.5.5
 */

/**
 * Modified Redux core:
 *   * enqueue.php
 *     - Comment out block
 *       if ( isset( $this->parent->args['dev_mode'] ) && $this->parent->args['dev_mode'] == true ) ...
 *   * framework.php
 *     - Disable tracking (comment out)
 *       if ( true != Redux_Helpers::isTheme( __FILE__ ) || true == Redux_Helpers::isTheme( __FILE__ ) ) ...
 *     - Disable News Flash
 *       if ( $this->args['dev_mode'] == true || Redux_Helpers::isLocalHost() == true ) { ...
 */

if ( ! class_exists( 'Redux' ) ) {
  return;
}

// This is your option name where all the Redux data is stored.
$opt_name = "myarcadetheme";

// Load vendor support before we set any options
Redux::setExtensions( 'myarcadetheme',  dirname( __FILE__ ) . '/ReduxExtensions/vendor_support/' );

// Add compiler filter
add_filter( 'redux/options/' . $opt_name . '/compiler', 'myarcadetheme_compiler_action' );

/**
 * Compile custom css settings
 *
 * @version 1.3.0
 * @since   1.0.0
 * @access  public
 * @param   array $options
 * @param   array $css
 * @param   bool $changed_values
 * @return  array
 */
function myarcadetheme_compiler_action( $options ) {
  $filename = get_stylesheet_directory(). '/create.css';
  global $wp_filesystem;
  if( empty( $wp_filesystem ) ) {
    require_once( ABSPATH .'/wp-admin/includes/file.php' );
    WP_Filesystem();
  }

  if($options['body']==''){$options['body']='#F1F1F1';}
  if($options['bght']==''){$options['bght']='#F8F8F8';}
  if($options['bghct']==''){$options['bghct']='#fff';}
  if($options['bggn1']==''){$options['bggn1']='#3469AF';}
  if($options['bggn2']==''){$options['bggn2']='#2D3E58';}
  if($options['bggn3']==''){$options['bggn3']='#16C4BB';}
  if($options['bodytxtcl']==''){$options['bodytxtcl']='#666';}
  if($options['links']['regular']==''){$options['links']['hover']='#2D3E58';}
  if($options['links']['hover']==''){$options['links']['hover']='#16C4BB';}
  if($options['frmbgr']==''){$options['frmbgr']='#2D3E58';}
  if($options['frmbgh']==''){$options['frmbgh']='#16C4BB';}
  if($options['frmtxtcf']==''){$options['frmtxtcf']='#fff';}
  if($options['frminptxtbg']==''){$options['frminptxtbg']='#fcfcfc';}
  if($options['frminptxtbgtxt']==''){$options['frminptxtbgtxt']='#999';}
  if($options['frminptxtbgfc']==''){$options['frminptxtbgfc']='#fff';}
  if($options['frminptxtbgfctxt']==''){$options['frminptxtbgfctxt']='#666';}

  $css = '';
  $css.='body{background-color:'.$options['body'].'}'."\r";
  $css.='.hdcn-1{background-color:'.$options['bght'].'}'."\r";
  $css.='.hdcn-2,.bdcn{background-color:'.$options['bghct'].'}'."\r";
  $css.='.hdcn-4,.ftcn-1,a.rndgame:hover,.news-cn>strong,[class*="gmcn-sldr"] .gm-text,.news-cn:before{background-color:'.$options['bggn1'].'}'."\r";
  $css.='.news-cn>strong:after{border-top-color:'.$options['bggn1'].';}'."\r";
  $css.='@media screen and (min-width: 992px){.menu>ul>li:hover>a{background-color:'.$options['bggn1'].'}}'."\r";
  $css.='.hdcn-3,.hdcn-5,.ftcn-2,[class*="gmcn-smal"] .gm-imag,[class*="gmcn-smal-2"] figure.gm-imag>a>span,[class*="gmcn-smal-3"] figure.gm-imag>a>span,[class*="gmcn-midl"] .gm-imag,.gm-cate a,[class*="gmcn-"] .gm-cate a:hover,.sdbr-cn .tagcloud a,[class*="gmcn-larg"] figure.gm-imag>a>span,.game-cn{background-color:'.$options['bggn2'].'}'."\r";
  $css.='[class*="gmcn-smal"] .gm-imag>a>span,.tagcloud a:hover,.gm-cate a:hover,[class*="gmcn-"] .gm-cate a,.mt-slct-cn .selecter-item:hover,.wp-pagenavi a:hover,.wp-pagenavi span.current,.progress,.game_opts>li:hover>a:before,.game_opts>li:hover>span>a:before{background-color:'.$options['bggn3'].'}'."\r";
  $css.='.titl,.lstgms{border-bottom-color:'.$options['bggn3'].'}'."\r";
  $css.='@media screen and (max-width: 767px){.cmnt-cn{border-left-color:'.$options['bggn3'].';}}'."\r";
  $css.='@media screen and (min-width: 992px){.menu .menu-item-has-children ul li:hover>a{background-color:'.$options['bggn3'].'}}'."\r";
  $css.='body,[class^="post-"] .txcn p{color:'.$options['bodytxtcl'].'}'."\r";
  $css.='.hdcn-1 h1,.hdcn-1>div>div[class*="fa-"],.selecter-item,.selecter-selected,[class^="post-"] .lst-social>li>a:before,a,.widget_mabp_recent_games [class*="gmcn-"] .gm-titl a,[class*="gmcn-larg"] div.gm-titl a{color:'.$options['links']['regular'].';}'."\r";
  $css.='@media screen and (min-width: 992px){.menu>ul>li li a{color:'.$options['links']['regular'].'}}'."\r";
  $css.='a:hover,.shar-cnt li:hover a,.menu-top>li:hover>span,.menu-top>li:hover>a,.hdcn-1 h1:before,.hdcn-1>div>div[class*="fa-"]:before,[class*="gmcn-"] .gm-titl a:hover,.gm-play:before,.rndgame:before,.news-cn li a,.news-cn .fa-flash:before,.news-cn .bx-controls-direction a:hover,div[class*="gmcn-smal-2"] .gm-imag>a>span,[class*="gmcn-smal-3"] figure.gm-imag>a>span,.mt-slct-cn .selecter-item.selected:before,.mt-slct-cn .selecter-selected:after,.widget_mabp_recent_games [class*="gmcn-"] .gm-titl a:hover,.sdbr-cn .most-popu .bx-controls-direction a,#hall_of_fame .plays:before,#hall_of_fame .highscores:before,#hall_of_fame .bx-controls-direction a,[class*="gmcn-larg"] div.gm-titl a:hover,[class*="gmcn-larg"] figure.gm-imag>a>span:before,[class^="post-"] header h1,[class^="post-"] header h2,.pst-shr:hover>a,.pst-shr:hover>a:before,.titl strong,span.required,.form-allowed-tags code,abbr,[class^="post-"] .lst-social>li:hover>a:before,[class^="post-"] header p>a:hover{color:'.$options['links']['hover'].';}'."\r";
  $css.='.picker.picker-radio.checked .picker-flag,.picker.picker-checkbox.checked .picker-flag,[class*="botn"],a[class*="botn"],button,input[type="reset"],input[type="submit"],a.read-more{background-color:'.$options['frmbgr'].'}'."\r";
  $css.='[class*="botn"]:hover,a[class*="botn"]:hover,button:hover,input[type="reset"]:hover,input[type="submit"]:hover,.lstgms .bx-controls-direction a,a.read-more:hover,.cmnt-cn>div .comment-reply-link:hover{background-color:'.$options['frmbgh'].'}'."\r";
  $css.='[class*="botn"],a[class*="botn"],button,input[type="reset"],input[type="submit"],a.read-more,.menu>ul>li a,.menu>ul+a,.hdgms-cn .bx-prev,.hdgms-cn .bx-next,.ftcn,.ftcn a,.sldr-nw,.news-cn,.news-cn a,[class*="gmcn-"] .gm-titl a,[class*="gmcn-sldr"] .gm-desc,.ftcn [class*="gmcn-smal-2"] .gm-play,[class*="gmcn-smal-3"] figure.gm-imag>a>span strong,.hdcn [class*="gmcn-smal"] .gm-play,[class*="gmcn-midl"] .gm-play,[class*="gmcn-sldr"] .gm-play,.gm-cate a,[class*="gmcn-"] .gm-imag>a>span,.lstgms .bx-controls-direction a,.mt-slct-cn .selecter-item:hover,.mt-slct-cn .selecter-item.selected:hover:before,.tagcloud a,.wp-pagenavi a:hover,.wp-pagenavi span.current,.cmnt-cn>div .comment-reply-link:hover,.game-cn,.game-cn a,[class^="post-"] .game_opts>li>a:before,[class^="post-"] ul.game_opts>li>span>a:before{color: '.$options['frmtxtcf'].';}'."\r";
  $css.='input[type="text"],input[type="password"],input[type="email"],input[type="search"],textarea,.mt-slct .selecter-selected{background-color:'.$options['frminptxtbg'].'}'."\r";
  $css.='input[type="text"],input[type="password"],input[type="email"],input[type="search"],textarea,.mt-slct .selecter-selected{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="text"]::-webkit-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="text"]::-moz-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="text"]:-ms-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="password"]::-webkit-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="password"]::-moz-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="password"]:-ms-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="email"]::-webkit-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="email"]::-moz-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="email"]:-ms-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="search"]::-webkit-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="search"]::-moz-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="search"]:-ms-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='textarea::-webkit-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='textarea::-moz-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='textarea:-ms-input-placeholder{color:'.$options['frminptxtbgtxt'].'}'."\r";
  $css.='input[type="text"]:focus,input[type="password"]:focus,textarea:focus,.mt-slct.focus .selecter-selected{background-color:'.$options['frminptxtbgfc'].'}'."\r";
  $css.='input[type="text"]:focus,input[type="password"]:focus,textarea:focus,.mt-slct.focus .selecter-selected{color:'.$options['frminptxtbgfctxt'].'}'."\r";
  $css.="a.botn-lgfa,a.botn-flgn{background-color: #3469AF;}
  @media screen and (min-width: 992px)
  {
    [class*=\"gmcn-sldr\"] .gm-text{background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1)));background:-webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);background:-webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);background:linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%)}
    .ie8 [class*=\"gmcn-sldr\"] .gm-text{filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 );}
    .ie9 [class*=\"gmcn-sldr\"] .gm-text{background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);}
  }"."\r";
  $css.=$options['css_custom']."\n";

  if( $wp_filesystem ) {
    $wp_filesystem->put_contents( $filename, $css, FS_CHMOD_FILE );
  }
}

// Get theme settings
$theme = wp_get_theme();

$args = array(
  // TYPICAL -> Change these values as you need/desire
  'opt_name'             => $opt_name,
  // This is where your data is stored in the database and also becomes your global variable name.
  'display_name'         => $theme->get( 'Name' ),
  // Name that appears at the top of your panel
  'display_version'      => $theme->get( 'Version' ),
  // Version that appears at the top of your panel
  'menu_type'            => 'submenu',
  //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
  'allow_sub_menu'       => true,
  // Show the sections below the admin menu item or not
  'menu_title'           => __( 'Theme options', 'myarcadetheme' ),
  'page_title'           => __( 'Theme options', 'myarcadetheme' ),
  // You will need to generate a Google API key to use this feature.
  // Please visit: https://developers.google.com/fonts/docs/developer_api#Auth
  'google_api_key'       => '',
  // Set it you want google fonts to update weekly. A google_api_key value is required.
  'google_update_weekly' => false,
  // Must be defined to add google fonts to the typography module
  'async_typography'     => true,
  // Use a asynchronous font on the front end or font string
  //'disable_google_fonts_link' => true,                    // Disable this in case you want to create your own google fonts loader
  'admin_bar'            => true,
  // Show the panel pages on the admin bar
  'admin_bar_icon'       => 'dashicons-portfolio',
  // Choose an icon for the admin bar menu
  'admin_bar_priority'   => 50,
  // Choose an priority for the admin bar menu
  'global_variable'      => '',
  // Set a different name for your global variable other than the opt_name
  'dev_mode'             => false,
  'ajax_save'            => true,
  'allow_tracking'       => false,
  // Show the time the page took to load, etc
  'update_notice'        => true,
  // If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo
  'customizer'           => true,
  // Enable basic customizer support
  //'open_expanded'     => true,                    // Allow you to start the panel in an expanded way initially.
  //'disable_save_warn' => true,                    // Disable the save warning when a user changes a field

  // OPTIONAL -> Give you extra features
  'page_priority'        => null,
  // Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning.
  'page_parent'          => 'themes.php',
  // For a full list of options, visit: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters
  'page_permissions'     => 'manage_options',
  // Permissions needed to access the options panel.
  'menu_icon'            => '',
  // Specify a custom URL to an icon
  'last_tab'             => '',
  // Force your panel to always open to a specific tab (by id)
  'page_icon'            => 'icon-themes',
  // Icon displayed in the admin panel next to your menu_title
  'page_slug'            => 'myarcadetheme_options',
  // Page slug used to denote the panel, will be based off page title then menu title then opt_name if not provided
  'save_defaults'        => true,
  // On load save the defaults to DB before user clicks save or not
  'default_show'         => false,
  // If true, shows the default value next to each field that is not the default value.
  'default_mark'         => '',
  // What to print by the field's title if the value shown is default. Suggested: *
  'show_import_export'   => true,
  // Shows the Import/Export panel when not used as a field.

  // CAREFUL -> These options are for advanced use only
  'transient_time'       => 60 * MINUTE_IN_SECONDS,
  'output'               => true,
  // Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output
  'output_tag'           => true,
  // Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head
  'footer_credit'     => 'MyArcadeTheme by <a href="http://myarcadeplugin.com/">MyArcadePlugin</a>',

  // FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk.
  'database'             => '',
  // possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning!
  'use_cdn'              => false,
  // If you prefer not to use the CDN for Select2, Ace Editor, and others, you may download the Redux Vendor Support plugin yourself and run locally or embed it in your code.

  // HINTS
  'hints'                => array(
      'icon'          => 'el el-question-sign',
      'icon_position' => 'right',
      'icon_color'    => 'lightgray',
      'icon_size'     => 'normal',
      'tip_style'     => array(
          'color'   => 'red',
          'shadow'  => true,
          'rounded' => false,
          'style'   => 'bootstrap',
      ),
      'tip_position'  => array(
          'my' => 'top left',
          'at' => 'bottom right',
      ),
      'tip_effect'    => array(
          'show' => array(
              'effect'   => 'fade',
              'duration' => '100',
              'event'    => 'click mouseover',
          ),
          'hide' => array(
              'effect'   => 'slide',
              'duration' => '500',
              'event'    => 'click mouseleave',
          ),
      ),
  )
);

// SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons.
$args['share_icons'][] = array(
  'url'   => 'https://facebook.com/MyArcadePlugin',
  'title' => __('Like us on Facebook', 'myarcadetheme'),
  'icon'  => 'el-icon-facebook'
);

$args['share_icons'][] = array(
  'url'   => 'https://twitter.com/MyArcadePlugin',
  'title' => __('Follow us on Twitter', 'myarcadetheme'),
  'icon'  => 'el-icon-twitter'
);

$args['share_icons'][] = array(
  'url'   => 'http://www.youtube.com/user/NetReviewDE/videos',
  'title' => __('Visit us on YouTube', 'myarcadetheme'),
  'icon'  => 'el-icon-youtube'
);

// Set Arguments
Redux::setArgs( $opt_name, $args );

// Set Sections

// General Settings
Redux::setSection( $opt_name, array(
  'title'     => __('General Settings', 'myarcadetheme'),
  'desc'      => __('This section customizes the global theme options.', 'myarcadetheme'),
  'icon'      => 'el-icon-cog',
  'fields'    => array(
    array(
      'id'    => 'sidebar_position',
      'type'  => 'image_select',
      'title' => __("Sidebar position", 'myarcadetheme'),
      'hint'  => array(
        'title' => __("Sidebar position", 'myarcadetheme'),
        'content' => __("Select the sidebar position.", 'myarcadetheme'),
      ),
      'options' => array(
        'left' => array(
          'alt' => __("Left", 'myarcadetheme'),
          'img' => ReduxFramework::$_url . 'assets/img/2cl.png'
        ),
        'right' => array(
          'alt' => __("Left", 'myarcadetheme'),
          'img' => ReduxFramework::$_url . 'assets/img/2cr.png'
        ),
      ),
      'default' => 'right',
    ),
    array(
      'id' => 'posts_per_page',
      'type' => 'spinner',
      'title' => __( "Game count: Category page", 'myarcadetheme'),
      'hint' => array(
        'title' => __( "Games per category page", 'myarcadetheme'),
        'content' => __( "Set how many games should be displayed per category page.", 'myarcadetheme'),
      ),
      "default" => get_option('posts_per_page'),
      "min" => "1",
      "step" => "1",
      "max" => "100"
    ),

    array(
      'id' => 'mobile',
      'type' => 'switch',
      'title' => __('Mobile Games', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Mobile games for mobile devices", 'myarcadetheme'),
        'content' => __("If enabled, only games that are tagged with 'mobile' will be displayed if a mobile device has been detected. Otherwise all game types will be displayed for all devices.", 'myarcadetheme' )
      ),
      "default" => 0,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'lazy_load',
      'type' => 'switch',
      'title' => __('Lazy Load', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Lazy Load", 'myarcadetheme'),
        'content' => __("If enabled, this option will delay loading of images. Images outside the viewport are not loaded until user scolls to them.", 'myarcadetheme' )
      ),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'blogcat',
      'type' => 'select',
      'data' => 'categories',
      'args' => array( 'hide_empty' => 0 ),
      'multi' => false,
      'title' => __('Blog category', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Blog Category", 'myarcadetheme'),
        'content' => __("Select a category that should be used as the regular blog.", 'myarcadetheme' )
      ),
    ),
  )
) );

// Header & Footer
Redux::setSection( $opt_name, array(
  'icon'      => 'el-icon-website',
  'title'     => __('Header & Footer', 'myarcadetheme'),
  'fields'    => array(
    array(
      'id' => 'favicon',
      'type' => 'media',
      'title' => __('Favicon', 'myarcadetheme'),
      'hint' => array(
        'title'   => __( "Upload a custom favicon", 'myarcadetheme' ),
        'content' => __( "This option allows you to upload your own favorite icon.", 'myarcadetheme' ),
      ),
      'default'  => array(
        'url'=> get_template_directory_uri().'/images/favico.ico',
      ),
    ),

    array(
      'id' => 'logohd',
      'type' => 'media',
      'preview'=> false,
      'title' => __('Logo', 'myarcadetheme'),
      'hint' => array(
        'title'   => __( "Upload a custom logo", 'myarcadetheme' ),
        'content' => __( "This option allows you to upload your own logo.", 'myarcadetheme' ),
      ),
      'default'  => array(
        'url'=> get_template_directory_uri().'/images/my-arcade-theme.png',
      ),
    ),

    array(
      'id' => 'logoft',
      'type' => 'media',
      'preview'=> false,
      'title' => __('Footer Logo', 'myarcadetheme'),
      'hint' => array(
        'title'   => __( "Upload a custom footer logo", 'myarcadetheme' ),
        'content' => __( "This option allows you to upload your own logo for the footer Widget.", 'myarcadetheme' ),
      ),
      'default'  => array(
        'url'=> get_template_directory_uri().'/images/my-arcade-theme-ft.png',
      ),
    ),

    array(
      'id' => 'randomgame',
      'type' => 'switch',
      'title' => __('Random Game Button', 'myarcadetheme'),
      'hint' => array(
        'title' => __( "Random Game Button", 'myarcadetheme' ),
        'content' => __("Display or hide the random games button on the menu bar.", 'myarcadetheme'),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
    ),

    array(
      'id' => 'topbar',
      'type' => 'switch',
      'title' => __('Top Bar', 'myarcadetheme'),
      'hint' => array(
        'title'   => __('Top Bar', 'myarcadetheme'),
        'content' => __( "Display the top bar above your header.", 'myarcadetheme' ),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
    ),

    array(
      'id' => 'section_topbar_start',
      'type' => 'section',
      'indent' => true,
      'required' => array('topbar','equals','1'),
    ),

    array(
      'id' => 'topbar_heading',
      'type' => 'switch',
      'title' => __('Heading', 'myarcadetheme'),
      'hint' => array(
        'title'   => __('Heading', 'myarcadetheme'),
        'content' => __( "Display a dynamic heading on the left side of the top bar.", 'myarcadetheme' ),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
      'required' => array('topbar','equals','1'),
    ),

    array(
      'id' => 'topbar_login',
      'type' => 'switch',
      'title' => __('Login / Register', 'myarcadetheme'),
      'hint' => array(
        'title'   => __('Login / Register', 'myarcadetheme'),
        'content' => __( "Display login and register buttons on the top bar.", 'myarcadetheme' ),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
      'required' => array('topbar','equals','1'),
    ),

    array(
      'id' => 'topbar_search',
      'type' => 'switch',
      'title' => __('Search', 'myarcadetheme'),
      'hint' => array(
        'title'   => __('Search', 'myarcadetheme'),
        'content' => __( "Display the search button on the top bar.", 'myarcadetheme' ),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
      'required' => array('topbar','equals','1'),
    ),

    array(
      'id' => 'topbar_share',
      'type' => 'switch',
      'title' => __('Share Icons', 'myarcadetheme'),
      'hint' => array(
        'title'   => __('Share Icons', 'myarcadetheme'),
        'content' => __( "Display share icons on the top bar.", 'myarcadetheme' ),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
      'required' => array('topbar','equals','1'),
    ),

    array(
      'id' => 'section_topbar_end',
      'type' => 'section',
      'indent' => false,
      'required' => array('topbar','equals','1'),
    ),

    array(
      'id' => 'slider_header',
      'type' => 'switch',
      'title' => __('Carousel Slider', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Carousel Slider', 'myarcadetheme'),
        'content' => __( 'This slider is displayed on all pages just below the menu bar.', 'myarcadetheme'),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
    ),

    array(
      'id' => 'section_header_slider_start',
      'type' => 'section',
      'indent' => true,
      'required' => array('slider_header','equals','1'),
    ),

    array(
      'id' => 'categories_sliderhd',
      'type' => 'select',
      'data' => 'categories',
      'multi' => true,
      'empty' => true,
      'title' => __( 'Categories' , 'myarcadetheme'),
      'hint' => array(
        'title' => __( 'Categories', 'myarcadetheme'),
        'content' => __( 'Select game categories that should be displayed on this slider.', 'myarcadetheme') . ' ' . __('Leave empty in order to display games from all categories.' , 'myarcadetheme'),
      ),
      'required' => array('slider_header','equals','1'),
      ),

    array(
      'id' => 'sortable_sliderhd',
      'type' => 'spinner',
      'title' => __('Number of slides', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Number of slides', 'myarcadetheme'),
        'content' => __( 'Set how many games should be displayed on the slider. (Default: 20)', 'myarcadetheme'),
      ),
      'default' => "20",
      "min"       => "3",
      "step"      => "1",
      "max"       => "50",
      'required' => array('slider_header','equals','1'),
      ),

    array(
      'id' => 'section_header_slider_end',
      'type' => 'section',
      'indent' => false,
      'required' => array('slider_header','equals','1'),
    ),

    array(
      'id' => 'slider_news',
      'type' => 'switch',
      'title' => __('News Ticker', 'myarcadetheme'),
      'hint' => array(
        'title' => __('News Ticker', 'myarcadetheme'),
        'content' => __( 'The news ticker is displayed on the bottom of the header. It displays last published games from a selected category.', 'myarcadetheme'),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
    ),

    array(
      'id' =>'section_newsticker_start',
      'type' => 'section',
      'indent' => true,
      'required' => array('slider_news','equals','1'),
    ),

    array(
      'id' =>'categories_slidernews',
      'type' => 'select',
      'data' => 'categories',
      'multi' => true,
      'empty' => true,
      'title' => __( 'Categories', 'myarcadetheme'),
      'hint' => array(
        'title' => __( 'Categories', 'myarcadetheme'),
        'content' => __( 'Select game categories that should be displayed on the news ticker.', 'myarcadetheme') . ' ' . __('Leave empty in order to display games from all categories.' , 'myarcadetheme'),
      ),
      'required' => array('slider_news','equals','1'),
    ),

    array(
      'id' => 'sortable_slidernews',
      'type' => 'spinner',
      'title' => __( 'Number of news', 'myarcadetheme' ),
      'hint' => array(
        'title' => __( 'Number of news', 'myarcadetheme' ),
        'content' => __( 'Set how many news should be displayed on the news ticker.', 'myarcadetheme' ),
      ),
      'default' => "10",
      "min"       => "3",
      "step"      => "1",
      "max"       => "50",
      'required' => array('slider_news','equals','1'),
    ),

    array(
      'id' => 'section_newsticker_end',
      'type' => 'section',
      'indent' => false,
      'required' => array('slider_news','equals','1'),
    ),


    array(
      'id' => 'custom_header_code',
      'type' => 'textarea',
      'title' => __('Header Code', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Header Code', 'myarcadetheme'),
        'content' => __("At this field you can add custom JavaScript, CSS or other code that should be added in the header.", 'myarcadetheme'),
      ),
      'default' => ''
      ),

    array(
      'id' => 'custom_footer_code',
      'type' => 'textarea',
      'title' => __('Footer Code', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Footer Code', 'myarcadetheme'),
        'content' => __("At this field you can add custom JavaScript, CSS or other code that should be added in the footer.", 'myarcadetheme'),
      ),
      'default' => ''
    ),
  )
) );

// Front Page
Redux::setSection( $opt_name, array(
  'icon'      => 'el-icon-home',
  'title'     => __('Front Page', 'myarcadetheme'),
  'fields'    => array(

    array(
      'id' => 'slider_home',
      'type' => 'switch',
      'title' => __('Home Slider', 'myarcadetheme'),
      'hint' => array(
        'title'   => __( 'Home Slider', 'myarcadetheme'),
        'content' => __( 'This slider is displayed the front page just below the header. ', 'myarcadetheme'),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
    ),

    array(
      'id' => 'section_home_slider_start',
      'type' => 'section',
      'indent' => true,
      'required' => array('slider_home','equals','1'),
    ),

    array(
      'id' => 'categories_sliderft',
      'type' => 'select',
      'data' => 'categories',
      'multi' => true,
      'empty' => true,
      'title' => __( 'Categories' , 'myarcadetheme'),
      'hint' => array(
        'title' => __( 'Categories', 'myarcadetheme'),
        'content' => __( 'Select game categories that should be displayed on this slider.', 'myarcadetheme') . ' ' . __('Leave empty in order to display games from all categories.' , 'myarcadetheme'),
      ),
      'required' => array('slider_home','equals','1'),
    ),

    array(
      'id' => 'gamecount_sliderft',
      'type' => 'spinner',
      'title' => __('Number of slides', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Number of slides', 'myarcadetheme'),
        'content' => __( 'Set how many games should be displayed on the slider. (Default: 10)', 'myarcadetheme'),
      ),
      'default' => "10",
      "min"       => "1",
      "step"      => "1",
      "max"       => "50",
      'required' => array('slider_home','equals','1'),
    ),

    array(
      'id' => 'section_home_slider_end',
      'type' => 'section',
      'indent' => false,
      'required' => array('slider_home','equals','1'),
    ),

    array(
      'id' => 'promoted_games',
      'type' => 'switch',
      'title' => __('Promoted Games', 'myarcadetheme'),
      'hint' => array(
        'title'   => __( 'Promoted Games', 'myarcadetheme'),
        'content' => __( 'Display a sortable games box. ', 'myarcadetheme'),
      ),
      "default" => 1,
      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
    ),

    array(
      'id' => 'section_promoted_games_start',
      'type' => 'section',
      'indent' => true,
      'required' => array('promoted_games','equals','1'),
    ),

    array(
      'id' => 'promoted_title',
      'type' => 'text',
      'title' => __('Title', 'myarcadetheme'),
      'hint' => array(
        'title' => __( "Title", 'myarcadetheme'),
        'content' => __("Set a title for the 'Promoted Games Box'.", 'myarcadetheme' ) . ' ' . __( "This will be used for the Kizi-Style layout, too.", 'myarcadetheme'),
      ),
      'default' => 'PROMOTED GAMES',
    ),

    array(
      'id' => 'promoted_categories',
      'type' => 'select',
      'data' => 'categories',
      'multi' => true,
      'empty' => true,
      'title' => __( 'Categories' , 'myarcadetheme'),
      'hint' => array(
        'title' => __( 'Categories', 'myarcadetheme'),
        'content' => __( 'Select game categories that should be displayed on the promoted games box.', 'myarcadetheme') . ' ' . __('Leave empty in order to display games from all categories.' , 'myarcadetheme'),
      ),
      'required' => array('promoted_games','equals','1'),
    ),

    array(
      'id' => 'promoted_gamecount',
      'type' => 'spinner',
      'title' => __('Number of games', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Number of games', 'myarcadetheme'),
        'content' => __( 'Set how many games should be displayed on the promoted games box. (Default: 10)', 'myarcadetheme'),
      ),
      'default' => "10",
      "min"       => "1",
      "step"      => "1",
      "max"       => "50",
      'required' => array('promoted_games','equals','1'),
    ),

    array(
      'id' => 'section_promoted_games_end',
      'type' => 'section',
      'indent' => false,
      'required' => array('promoted_games','equals','1'),
    ),

    array(
      'id' => 'hall_of_fame',
      'type' => 'switch',
      'title' => __('Hall Of Fame', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Hall Of Fame', 'myarcadetheme'),
        'content' => __( "Show the best players of your site.", 'myarcadetheme' ),
      ),

      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
      "default" => 1
    ),

    array(
      'id' => 'section_fame_start',
      'type' => 'section',
      'indent' => true,
      'required' => array('hall_of_fame','equals','1'),
    ),

    array(
      'id' => 'hall_of_fame_title',
      'type' => 'text',
      'title' => __('Hall Of Fame Title', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Hall Of Fame Title', 'myarcadetheme'),
        'content' => __( "Set a title for the 'Hall of Fame' box.", 'myarcadetheme' ),
      ),
      'default' => __('Hall Of Fame', 'myarcadetheme'),
      'required' => array('hall_of_fame','equals','1'),
    ),

    array(
      'id' => 'section_fame_end',
      'type' => 'section',
      'indent' => false,
      'required' => array('hall_of_fame','equals','1'),
    ),

    array(
      'id'        => 'box_design',
      'type'      => 'select',
      'title'     => __('Category Design', 'myarcadetheme'),
      'hint'      => array(
        'title' => __('Category Design', 'myarcadetheme'),
        'content' => __( "Select a design for category boxes on the front page.", 'myarcadetheme' ),
      ),
      'options'   => array(
        'friv' => __('Friv-Style', 'myarcadetheme'),
        'friv-sidebar' => __('Friv-Style with Sidebar', 'myarcadetheme'),
        'full' => __('Full Width Boxes', 'myarcadetheme'),
        'half' => __('Half Width Boxes', 'myarcadetheme'),
        'horizontal' => __('Horizontal Boxes', 'myarcadetheme'),
        'vertical' => __('Vertical Boxes', 'myarcadetheme')
      ),
      'default'   => 'full',
    ),

    array(
      'id' => 'section_excludecat_start',
      'type' => 'section',
      'indent' => true,
    ),

    array(
      'id' => 'friv_style_title',
      'type' => 'text',
      'title' => __('Friv-Style Title', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Friv-Style Title', 'myarcadetheme'),
        'content' => __( "Set a title that should be displayed above games in Friv-Style design.", 'myarcadetheme' ),
      ),
      'default' => __('BROWSE OUR GAMES', 'myarcadetheme'),
      'required' => array('box_design','contains','friv'),
    ),

    array(
      'id' => 'posts_per_page_home',
      'type' => 'spinner',
      'title' => __('Game count', 'myarcadetheme'),
      'hint' => array(
        'title' => __( "Game count", 'myarcadetheme'),
        'content' => __("Set how many games should be displayed in each category box or on the Friv-Style layout.", 'myarcadetheme'),
      ),
      "default" => 5,
      "min" => "1",
      "step" => "1",
      "max" => "200"
    ),

    array(
      'id' => 'excludecat',
      'type' => 'select',
      'data' => 'categories',
      'multi' => true,
      'title' => __('Exclude categories', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Exclude categories', 'myarcadetheme'),
        'content' => __("Select categories boxes that should NOT be displayed on the front page. This option affects all category designs except the Friv-Style.", 'myarcadetheme' ),
      ),
    ),

    array(
      'id' => 'section_excludecat_end',
      'type' => 'section',
      'indent' => false,
    ),

    array(
      'id' => 'front_page_text_status',
      'type' => 'switch',
      'title' => __('Front Page Text', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Front Page Text', 'myarcadetheme'),
        'content' => __( 'Here you can add some text for SEO purpose or just to introduce your site.', 'myarcadetheme' ),
      ),

      'on' => __('Show', 'myarcadetheme'),
      'off' => __('Hide', 'myarcadetheme'),
      "default" => 1
    ),

    array(
      'id' => 'section_front_page_text_start',
      'type' => 'section',
      'indent' => true,
      'required' => array( 'front_page_text_status', 'equals', '1' ),
    ),

    array(
      'id' => 'front_page_text_title',
      'type' => 'text',
      'title' => __('Title', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Title', 'myarcadetheme'),
        'content' => __( 'Title that should be displayed above the text.', 'myarcadetheme' ),
      ),
      'default' => __('Front Page Text', 'myarcadetheme' ),
    ),

    array(
      'id' => 'front_page_text_content',
      'type' => 'editor',
      'title' => __( 'Content', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Content', 'myarcadetheme'),
        'content' => __( 'Content of the front page text box.', 'myarcadetheme' ),
      ),
      'default' => 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.',
    ),

   array(
      'id' => 'section_front_page_text_end',
      'type' => 'section',
      'indent' => false,
      'required' => array( 'front_page_text_status', 'equals', '1' ),
    ),

   array(
      'id' => 'section_pregame_end',
      'type' => 'section',
      'indent' => false,
      'required' => array('pregame','equals','1'),
    ),
  )
) );

// Pre-Game Page
Redux::setSection( $opt_name, array(
  'title'     => __('Pre-Game Page', 'myarcadetheme'),
  'desc'      => sprintf( __('%sThis section customizes the pre-game presentation your site.%s', 'myarcadetheme'), '<p class="description">', '</p>'),
  'icon'      => 'el-icon-eye-open',
  'fields'    => array(
    array(
      'id' => 'pregame',
      'type' => 'switch',
      'title' => __('Pre-Game Page', 'myarcadetheme'),
      'desc'=> __('Enable this if you want to display a pre-game / game landing page. User will need to click on a play button.', 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
      ),

    array(
      'id' => 'section_pregame_start',
      'type' => 'section',
      'indent' => true,
      'required' => array('pregame','equals','1'),
    ),

    array(
      'id' => 'game_play_permalink_endpoint',
      'type' => 'text',
      'title' => __('Game Play Permalink Endpoint', 'myarcadetheme'),
      'subtitle' => __("Define the permalink endpoint for the game play page.", 'myarcadetheme'),
      'desc' => sprintf( __('When you change this then you MUST visit the %sPermalinks Settings%s page once!', 'myarcadetheme'), '<a target="_blank" href="'.get_option('home').'/wp-admin/options-permalink.php">', '</a>'),
      'default' => 'play',
      'required' => array('pregame','equals','1'),
      ),

    array(
      'id' => 'stop_indexing',
      'type' => 'switch',
      'title' => __('Stop Indexing Play Page', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Stop Indexing Play Page", 'myarcadetheme'),
        'content' => __("This option will prevent search enginges from indexing the play game page to avoid duplicate content.", 'myarcadetheme' )
      ),
      "default" => 0,
      'required' => array('pregame','equals','1'),
    ),

    array(
      'id' => 'myarcadecontrols',
      'type' => 'switch',
      'title' => __('Game Controls', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display game controls on single game pages (MyArcadeControls Plugin required)", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'display_video',
      'type' => 'switch',
      'title' => __('Game Video', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display a game video on single game pages (only when available)", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'display_screenshots',
      'type' => 'switch',
      'title' => __('Screen Shots', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display game screenshots on single game pages (only when available)", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'game_embed_box',
      'type' => 'switch',
      'title' => __('Game Embed Box', 'myarcadetheme'),
      'desc'=> __("Enable or disable the game embed box ('Embed this game on your site..').", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'game_related_games',
      'type' => 'switch',
      'title' => __('Related Games', 'myarcadetheme'),
      'desc'=> __("Enable or disable the displaying of related games.", 'myarcadetheme'),
      "default" => 0,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'game_comments',
      'type' => 'switch',
      'title' => __('Game Comments', 'myarcadetheme'),
      'desc'=> __("Enable or disable the displaying of comments on the pre-game page.", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),
  )
) );

// Play Game Page
Redux::setSection( $opt_name, array(
  'title'     => __('Play Game Page', 'myarcadetheme'),
  'desc'      => sprintf( __('%sThis section customizes the play game page of your site.%s', 'myarcadetheme'), '<p class="description">', '</p>'),
  'icon'      => 'el-icon-play',
  'fields'    => array(
    array(
      'id' => 'play_myarcadecontrols',
      'type' => 'switch',
      'title' => __('Game Controls', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display game controls on game play page (MyArcadeControls Plugin required)", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'play_display_video',
      'type' => 'switch',
      'title' => __('Game Video', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display a game video on game play page (only when available)", 'myarcadetheme'),
      "default" => 0,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'play_display_screenshots',
      'type' => 'switch',
      'title' => __('Screen Shots', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display game screenshots on game play page (only when available)", 'myarcadetheme'),
      "default" => 0,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'play_game_embed_box',
      'type' => 'switch',
      'title' => __('Game Embed Box', 'myarcadetheme'),
      'desc'=> __("Enable or disable the game embed box ('Embed this game on your site..').", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'play_game_related_games',
      'type' => 'switch',
      'title' => __('Related Games', 'myarcadetheme'),
      'desc'=> __("Enable or disable the displaying of related games.", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'play_game_comments',
      'type' => 'switch',
      'title' => __('Game Comments', 'myarcadetheme'),
      'desc'=> __("Enable or disable the displaying of comments on the game play page.", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'fullscreen',
      'type' => 'switch',
      'title' => __('Fullscreen Button', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display the fullscreen button.", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'lights_button',
      'type' => 'switch',
      'title' => __('Lights On / Off Button', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display the lights button.", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'favorite_button',
      'type' => 'switch',
      'title' => __('Favorite Button', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display the favorite button (WP Favorite Posts plugin reqired).", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'report_button',
      'type' => 'switch',
      'title' => __('Report Button', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to report button (Links/Problem Reporter plugin required).", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'share_button',
      'type' => 'switch',
      'title' => __('Share Button', 'myarcadetheme'),
      'desc'=> __("Enable this if you want to display the share button.", 'myarcadetheme'),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),
  )
) );

// Styling Options
Redux::setSection( $opt_name, array(
  'icon'      => 'el-icon-brush',
  'title'     => __('Styling Options', 'myarcadetheme'),
  'fields'    => array(
    array(
      'id'        => 'colorscheme',
      'type'      => 'select',
      'title'     => __('Theme Stylesheet', 'myarcadetheme'),
      'subtitle'  => __('Select your themes alternative color scheme.', 'myarcadetheme'),
      'options'   => array(1 => __('Default', 'myarcadetheme'), 2 => __('Dark', 'myarcadetheme')),
      'default'   => 1,
      'desc' => __('For everything to work properly with the chosen color, off Custom CSS', 'myarcadetheme')
      ),

    array(
      'id' => 'boxed',
      'type' => 'switch',
      'title' => __('Boxed', 'myarcadetheme'),
      'subtitle'=> __('Enable this option if you want to boxed style.', 'myarcadetheme'),
      "default" => 0,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
      ),

    /*array(
      'id'          => 'typography',
      'type'        => 'typography',
      'title'       => __('Typography', 'myarcadetheme' ),
      'google'      => false,
      'font-backup' => true,
      'font-style'  => false,
      'font-weight' => false,
      'text-align'  => false,
      'color'       => false,
      'output'      => array('h2.site-description'),
      'units'       =>'px',
      'subtitle'    => __('Set font family', 'myarcadetheme'),
      'default'     => array(
        'font-family' => 'Abel',
        'font-size'   => '14px',
        'line-height' => '16',
      ),
    ),*/

    array(
      'id' => 'custom_css_status',
      'type' => 'switch',
      'title' => __('Custom CSS', 'myarcadetheme'),
      'subtitle'=> __('Enable this option if you want to activate custom css.', 'myarcadetheme'),
      "default" => 0,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
      'desc' => __('Use the default style for customization', 'myarcadetheme')
      ),

    array(
      'id'        => 'body',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Body Background', 'myarcadetheme'),
      'subtitle'  => __('Choose a background (default: #F1F1F1).', 'myarcadetheme'),
      'transparent' => false,
      'default'  => '#F1F1F1',
      'required' => array('custom_css_status','equals','1'),
      ),

    array(
      'id'        => 'bght',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Background Header-Top', 'myarcadetheme'),
      'subtitle'  => __('Choose a background (default: #F8F8F8).', 'myarcadetheme'),
      'transparent' => false,
      'default'  => '#F8F8F8',
      'required' => array('custom_css_status','equals','1'),
      ),

    array(
      'id'        => 'bghct',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Header & Content', 'myarcadetheme'),
      'subtitle'  => __('Choose a background (default: #fff).', 'myarcadetheme'),
      'transparent' => false,
      'default'  => '#fff',
      'required' => array('custom_css_status','equals','1'),
      ),

    array(
      'id'        => 'bggn1',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Background General 1', 'myarcadetheme'),
      'subtitle'  => __('(default: #3469AF)', 'myarcadetheme'),
      'default'  => '#3469AF',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'bggn2',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Background General 2', 'myarcadetheme'),
      'subtitle'  => __('(default: #2D3E58)', 'myarcadetheme'),
      'default'  => '#2D3E58',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'bggn3',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Background General 3', 'myarcadetheme'),
      'subtitle'  => __('(default: #16C4BB)', 'myarcadetheme'),
      'default'  => '#16C4BB',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'bodytxtcl',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Body Text Color', 'myarcadetheme'),
      'subtitle'  => __('Choose a color (default: #666)', 'myarcadetheme'),
      'default'  => '#666',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id' => 'links',
      'type' => 'link_color',
      'compiler'  => true,
      'title' => __('Links Color', 'myarcadetheme'),
      'subtitle' => __('Pick a color for links (Default: Regular #2D3E58 / Hover #16C4BB)', 'myarcadetheme'),
      'active' => false,
      'default' => array(
        'regular' => '#2D3E58',
        'hover' => '#16C4BB',
        ),
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'frmbgr',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Forms: Regular Background Fields', 'myarcadetheme'),
      'subtitle'  => __('BACKGROUND (Default: #2D3E58)', 'myarcadetheme'),
      'default'  => '#2D3E58',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'frmbgh',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Forms: Hover Background Fields', 'myarcadetheme'),
      'subtitle'  => __('BACKGROUND (Default: #16C4BB)', 'myarcadetheme'),
      'default'  => '#16C4BB',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'frmtxtcf',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Forms: Text Color Fields', 'myarcadetheme'),
      'subtitle'  => __('Text (Default: #fff)', 'myarcadetheme'),
      'default'  => '#fff',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'frminptxtbg',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Forms: Inputs and Textareas Background', 'myarcadetheme'),
      'subtitle'  => __('BACKGROUND (Default: #fcfcfc)', 'myarcadetheme'),
      'default'  => '#fcfcfc',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'frminptxtbgtxt',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Forms: Inputs and Textareas Text Color', 'myarcadetheme'),
      'subtitle'  => __('(Default: #999)', 'myarcadetheme'),
      'default'  => '#999',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'frminptxtbgfc',
      'type'      => 'color',
      'compiler'  => true,
      'title'     => __('Forms: Inputs and Textareas Focus Background', 'myarcadetheme'),
      'subtitle'  => __('BACKGROUND (Default: #fff)', 'myarcadetheme'),
      'default'  => '#fff',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'frminptxtbgfctxt',
      'type'      => 'color',
      'compiler'    => true,
      'title'     => __('Forms: Inputs and Textareas Focus Text Color', 'myarcadetheme'),
      'subtitle'  => __('(Default: #666)', 'myarcadetheme'),
      'default'  => '#666',
      'transparent' => false,
      'required' => array('custom_css_status','equals','1')
      ),

    array(
      'id'        => 'css_custom',
      'type'      => 'ace_editor',
      'compiler'    => true,
      'title'     => __('Custom CSS', 'myarcadetheme'),
      'subtitle'  => __('Quickly add some CSS to your theme by adding it to this block.', 'myarcadetheme'),
      'mode'      => 'css',
      'theme'     => 'monokai',
      'default'   => "",
      'required' => array('custom_css_status','equals','1')
    ),

  )
) );

// Advertisement Banner
Redux::setSection( $opt_name, array(
  'icon'      => 'el-icon-bullhorn',
  'title'     => __('Advertisement Banner', 'myarcadetheme'),
  'fields'    => array(
    array(
      'id' => 'header_banner',
      'type' => 'textarea',
      'title' => __('Header Banner', 'myarcadetheme'),
      'subtitle' => __('Put your code for 728x90 banner here.', 'myarcadetheme'),
      'default' => '<img src="'.get_template_directory_uri().'/images/cnt/bnr728.gif" alt="bnr" />',
      ),

    array(
      'id' => 'promo_banner',
      'type' => 'textarea',
      'title' => __('Friv-Style Layout Banner', 'myarcadetheme'),
      'subtitle' => __('Put your code for 300x250 banner here.', 'myarcadetheme'),
      'default' => '<img src="'.get_template_directory_uri().'/images/cnt/bnr300.gif" alt="bnr" />',
      ),

    array(
      'id' => 'vertical_box_banner',
      'type' => 'textarea',
      'title' => __('Banner content (Vertical Layout)', 'myarcadetheme'),
      'subtitle' => __('Put your code for 200x200 banner here. Only shows with Veritcal Box Design.', 'myarcadetheme'),
      'default' => '<img src="'.get_template_directory_uri().'/images/cnt/bnr200.gif" alt="bnr" />',
      ),

    array(
      'id' => 'pre_game_banner',
      'type' => 'textarea',
      'title' => __('Pre-Game Banner', 'myarcadetheme'),
      'subtitle' => __('Put your code for 200x200 banner here.', 'myarcadetheme'),
      'default' => '<img src="'.get_template_directory_uri().'/images/cnt/bnr200.gif" alt="bnr" />',
      ),

    array(
      'id' => 'game_content_banner',
      'type' => 'textarea',
      'title' => __('Game Content Banner', 'myarcadetheme'),
      'subtitle' => __('Put your code for 300x250 banner here.', 'myarcadetheme'),
      'default' => '<img src="'.get_template_directory_uri().'/images/cnt/bnr300.gif" alt="bnr" />',
      ),

    array(
      'id' => 'content_banner',
      'type' => 'textarea',
      'title' => __('Front Page Content Banner', 'myarcadetheme'),
      'subtitle' => __('Put your code for 728x90 banner here.', 'myarcadetheme'),
      'default' => '<img src="'.get_template_directory_uri().'/images/cnt/bnr728.gif" alt="bnr" />',
    ),

    array(
      'id' => 'game_preloader_ads',
      'type' => 'switch',
      'title' => __('Game Preloader Ads', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Game Preloader Ads', 'myarcadetheme'),
        'content' => __("Enable this to display an advertisement banner before the game starts.", 'myarcadetheme' )
      ),
      "default" => 1,
      'on' => __('Enabled', 'myarcadetheme'),
      'off' => __('Disabled', 'myarcadetheme'),
    ),

    array(
      'id' => 'section_game_preloader_ads_start',
      'type' => 'section',
      'indent' => true,
      'required' => array( 'game_preloader_ads', 'equals', '1' ),
    ),

    array(
      'id'    => 'game_preloader_ads_type',
      'type'  => 'select',
      'title' => __( "Type", 'myarcadeplugin' ),
      'hint' => array(
        'title' => __( "Preloader Type", 'myarcadeplugin' ),
        'content' => __("Select a preloader type. If you select Adsense for Games you will need to enter your Adsense client ID, too. It's not recommended to use the Default type for Adsense!", 'myarcadetheme' ),
      ),
      'options' => array(
        'default' => __( "Default", 'myarcadetheme' ),
        'adsense' => __( "Adsense for Games", 'myarcadetheme'),
      ),
      'default' => 'default',
    ),

    array(
      'id' => 'adsense_for_games_client',
      'type' => 'text',
      'title' => __('Adsense Client ID', 'myarcadetheme'),
      'default' => 'ca-games-pub-4968145218643279',
      'required' => array('game_preloader_ads_type','equals','adsense'),
    ),

    array(
      'id' => 'start_delay',
      'type' => 'spinner',
      'title' => __('Start Delay', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Start Delay', 'myarcadetheme'),
        'content' => __( 'Select the delay in milliseconds before the progress bar starts to load.', 'myarcadetheme'),
      ),
      'default' => "0",
      "min"       => "0",
      "step"      => "500",
      "max"       => "5000",
      'required' => array('game_preloader_ads_type','equals','default'),
    ),

    array(
      'id' => 'loading_speed',
      'type' => 'spinner',
      'title' => __('Loading Speed', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Loading Speed', 'myarcadetheme'),
        'content' => __( 'Set the loading speed of the progress bar. Low number means faster loading progress.', 'myarcadetheme'),
      ),
      'default' => "10",
      "min"       => "1",
      "step"      => "1",
      "max"       => "20",
      'required' => array('game_preloader_ads_type','equals','default'),
    ),

    array(
      'id' => 'loaded_text',
      'type' => 'text',
      'title' => __('Loaded Text', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Loaded Text', 'myarcadetheme'),
        'content' => __("Set a text that should be displayed below the progress bar when the game has been loaded.", 'myarcadetheme' ),
      ),
      'default' => __("Game loaded, click here to start the game!", 'myarcadetheme'),
      'required' => array('game_preloader_ads_type','equals','default'),
    ),

    array(
      'id' => 'loaded_text_limit',
      'type' => 'spinner',
      'title' => __('Loaded Text Appearance', 'myarcadetheme'),
      'hint' => array(
        'title' => __('Loaded Text Appearance', 'myarcadetheme'),
        'content' => __( 'Set the limit in percent of the loading progress when the "Loaded Text" should appear.', 'myarcadetheme'),
      ),
      'default' => "25",
      "min"       => "0",
      "step"      => "5",
      "max"       => "100",
      'required' => array('game_preloader_ads_type','equals','default'),
    ),

    array(
      'id' => 'preloader_banner',
      'type' => 'textarea',
      'title' => __('Preloader Banner', 'myarcadetheme'),
      'subtitle' => __('Put your code preloader banner code here.', 'myarcadetheme'),
      'default' => '<img src="'.get_template_directory_uri().'/images/cnt/bnr300.png" alt="bnr" />',
      'required' => array('game_preloader_ads_type','equals','default'),
    ),
  )
) );

// Social Networking
Redux::setSection( $opt_name, array(
  'icon'      => 'el-icon-link',
  'title'     => __( "Social Networking", 'myarcadetheme'),
  'desc'      => __( "At this section you can add your URLs for several social networking sites.", 'myarcadeplugin' ),
  'fields'    => array(
    array(
      'id' => 'facebook',
      'type' => 'text',
      'title' => __('Facebook URL', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Facebook Page", 'myarcadetheme'),
        'content' => __("Paste your Facebook fan page URL here.", 'myarcadetheme' )
      ),
      'default' => '',
    ),

    array(
      'id' => 'twitter',
      'type' => 'text',
      'title' => __('Twitter URL', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Twitter Page", 'myarcadetheme'),
        'content' => __("Paste your Twitter URL here.", 'myarcadetheme' )
      ),
      'default' => '',
    ),

    array(
      'id' => 'googleplus',
      'type' => 'text',
      'title' => __('Google Plus URL', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Google Plus Page", 'myarcadetheme'),
        'content' => __("Paste your Google Plus Page URL here.", 'myarcadetheme' )
      ),
      'default' => '',
    ),

    array(
      'id' => 'youtube',
      'type' => 'text',
      'title' => __('Youtube URL', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Youtube Page", 'myarcadetheme'),
        'content' => __("Paste your Youtube URL here.", 'myarcadetheme' )
      ),
      'default' => '',
    ),

    array(
      'id' => 'instagram',
      'type' => 'text',
      'title' => __('Instagram URL', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Instagram Page", 'myarcadetheme'),
        'content' => __("Paste your Instagram URL here.", 'myarcadetheme' )
      ),
      'default' => '',
    ),

    array(
      'id' => 'pinterest',
      'type' => 'text',
      'title' => __('Pinterest URL', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Pinterest Page", 'myarcadetheme'),
        'content' => __("Paste your Pinterest URL here.", 'myarcadetheme' )
      ),
      'default' => '',
    ),

    array(
      'id' => 'vimeo',
      'type' => 'text',
      'title' => __('Vimeo URL', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Vimeo Page", 'myarcadetheme'),
        'content' => __("Paste your Vimeo URL here.", 'myarcadetheme' )
      ),
      'default' => '',
    ),

    array(
      'id' => 'weibo',
      'type' => 'text',
      'title' => __('Weibo URL', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Weibo Page", 'myarcadetheme'),
        'content' => __("Paste your Weibo URL here.", 'myarcadetheme' )
      ),
      'default' => '',
    ),

    array(
      'id' => 'feeds',
      'type' => 'text',
      'title' => __('Feeds URL', 'myarcadetheme'),
      'hint' => array(
        'title' => __("Feeds Page", 'myarcadetheme'),
        'content' => __("Paste your Feeds URL here.", 'myarcadetheme' )
      ),
      'default' => get_bloginfo('rss2_url'),
    ),
  )
) );