Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 63.89 KB | None | 0 0
  1. $meta_boxes[] = array(
  2.         /*====== Settings ======*/
  3.         'id' => 'game-settings',
  4.         'title' => esc_html__( 'Game Settings', 'rivendell' ),
  5.         'post_types' => 'game',
  6.         'context' => 'normal',
  7.         'priority' => 'high',
  8.         'tabs' => array(
  9.             'design' => array(
  10.                 'label' => esc_html__( 'Layouts & Design', 'rivendell' ),
  11.                 'icon' => 'dashicons-admin-customizer',
  12.             ),
  13.             'media' => array(
  14.                 'label' => esc_html__( 'Media', 'rivendell' ),
  15.                 'icon' => 'dashicons-admin-collapse',
  16.             ),
  17.             'content' => array(
  18.                 'label' => esc_html__( 'Content', 'rivendell' ),
  19.                 'icon' => 'dashicons-admin-page',
  20.             ),
  21.             'network' => array(
  22.                 'label' => esc_html__( 'Network', 'rivendell' ),
  23.                 'icon' => 'dashicons-networking',
  24.             ),
  25.             'sales' => array(
  26.                 'label' => esc_html__( 'Game Sales', 'rivendell' ),
  27.                 'icon' => 'dashicons-cart',
  28.             ),
  29.             'review' => array(
  30.                 'label' => esc_html__( 'Review', 'rivendell' ),
  31.                 'icon' => 'dashicons-clipboard',
  32.             ),
  33.         ),
  34.         'tab_style' => 'left',
  35.         'tab_wrapper' => true,
  36.  
  37.         /*====== Fields ======*/
  38.         'fields' => array(
  39.  
  40.             /*====== Design ======*/
  41.             array(
  42.                 'name' => esc_html__( 'Hide Header', 'rivendell' ),
  43.                 'desc' => esc_html__( 'You can hide the header.', 'rivendell' ),
  44.                 'id' => 'hide-header',
  45.                 'type' => 'checkbox',
  46.                 'std' => 0,
  47.                 'tab' => 'design',
  48.             ),
  49.             array(
  50.                 'name' => esc_html__( 'Header Style', 'rivendell' ),
  51.                 'desc' => esc_html__( 'You can choose a header style.', 'rivendell' ),
  52.                 'id' => 'header-style',
  53.                 'type' => 'image_select',
  54.                 'options'  => array(
  55.                     'style-1' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-1.svg',
  56.                     'style-2' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-2.svg',
  57.                     'style-3' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-3.svg',
  58.                     'style-4' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-4.svg',
  59.                     'style-5' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-5.svg',
  60.                 ),
  61.                 'tab' => 'design',
  62.             ),
  63.             array(
  64.                 'name' => esc_html__( 'Header Position', 'rivendell' ),
  65.                 'desc' => esc_html__( 'You can choose a header position.', 'rivendell' ),
  66.                 'id' => 'header-position',
  67.                 'type' => 'image_select',
  68.                 'options'  => array(
  69.                     'position-1' => get_template_directory_uri() . '/include/customize/assets/img/header-position/position-1.svg',
  70.                     'position-2' => get_template_directory_uri() . '/include/customize/assets/img/header-position/position-2.svg',
  71.                 ),
  72.                 'tab' => 'design',
  73.             ),
  74.             array(
  75.                 'name' => esc_html__( 'Hide Page Banner', 'rivendell' ),
  76.                 'desc' => esc_html__( 'You can hide page banner (Title, breadcrumb etc.).', 'rivendell' ),
  77.                 'id' => 'hide-page-banner',
  78.                 'type' => 'checkbox',
  79.                 'std' => 0,
  80.                 'tab' => 'design',
  81.             ),
  82.             array(
  83.                 'name' => esc_html__( 'Page Banner Background', 'rivendell' ),
  84.                 'desc' => esc_html__( 'You can upload a background image for page banner. Recommended: 1920x450', 'rivendell' ),
  85.                 'id' => 'hide-page-banner-image',
  86.                 'type' => 'image_advanced',
  87.                 'force_delete' => false,
  88.                 'max_status' => 'false',
  89.                 'image_size' => 'thumbnail',
  90.                 'max_file_uploads' => 1,
  91.                 'tab' => 'design',
  92.             ),
  93.             array(
  94.                 'name' => esc_html__( 'Hide Footer', 'rivendell' ),
  95.                 'desc' => esc_html__( 'You can hide the footer.', 'rivendell' ),
  96.                 'id' => 'hide-footer',
  97.                 'type' => 'checkbox',
  98.                 'std' => 0,
  99.                 'tab' => 'design',
  100.             ),
  101.             array(
  102.                 'name' => esc_html__( 'Footer Style', 'rivendell' ),
  103.                 'desc' => esc_html__( 'You can choose a footer style.', 'rivendell' ),
  104.                 'id' => 'footer-style',
  105.                 'type' => 'image_select',
  106.                 'options'  => array(
  107.                     'style-1' => get_template_directory_uri() . '/include/customize/assets/img/footer-style/style-1.svg',
  108.                     'style-2' => get_template_directory_uri() . '/include/customize/assets/img/footer-style/style-2.svg',
  109.                 ),
  110.                 'tab' => 'design',
  111.             ),
  112.             array(
  113.                 'name' => esc_html__( 'Hide Footer Gap', 'rivendell' ),
  114.                 'desc' => esc_html__( 'You can hide the gap between the content and the footer.', 'rivendell' ),
  115.                 'id' => 'hide-footer-gap',
  116.                 'type' => 'checkbox',
  117.                 'std' => 0,
  118.                 'tab' => 'design',
  119.             ),
  120.             array(
  121.                 'name' => esc_html__( 'Sidebar Position', 'rivendell' ),
  122.                 'desc' => esc_html__( 'You can choose a sidebar position.', 'rivendell' ),
  123.                 'id' => 'sidebar-position',
  124.                 'type' => 'image_select',
  125.                 'options'  => array(
  126.                     'right-sidebar' => get_template_directory_uri() . '/include/customize/assets/img/sidebar/right-sidebar.svg',
  127.                     'left-sidebar' => get_template_directory_uri() . '/include/customize/assets/img/sidebar/left-sidebar.svg',
  128.                     'no-sidebar' => get_template_directory_uri() . '/include/customize/assets/img/sidebar/no-sidebar.svg',
  129.                 ),
  130.                 'tab' => 'design',
  131.             ),
  132.             array(
  133.                 'name' => esc_html__( 'Sidebar', 'rivendell' ),
  134.                 'desc' => esc_html__( 'You can choose a sidebar for this page.', 'rivendell' ),
  135.                 'id' => 'sidebar',
  136.                 'type' => 'sidebar',
  137.                 'tab' => 'design',
  138.             ),
  139.  
  140.             /*====== Media ======*/
  141.             array(
  142.                 'name' => esc_html__( 'Hide Image & Video Gallery', 'rivendell' ),
  143.                 'desc' => esc_html__( 'You can hide the image and video gallery.', 'rivendell' ),
  144.                 'id' => 'hide-media-gallery',
  145.                 'type' => 'checkbox',
  146.                 'std' => 0,
  147.                 'tab' => 'media',
  148.             ),
  149.             array(
  150.                 'name' => esc_html__( 'Image Gallery Type', 'rivendell' ),
  151.                 'desc' => esc_html__( 'You can choose a style for image gallery.', 'rivendell' ),
  152.                 'id' => 'image-gallery-type',
  153.                 'type' => 'radio',
  154.                 'tab' => 'media',
  155.                 'std' => 'carousel',
  156.                 'options' => array(
  157.                     'carousel' => esc_html__( 'Carousel', 'rivendell' ),
  158.                     'slider' => esc_html__( 'Slider', 'rivendell' ),
  159.                     'grid' => esc_html__( 'Grid', 'rivendell' ),
  160.                 ),
  161.             ),
  162.             array(
  163.                 'name' => esc_html__( 'Image Gallery for Gallery', 'rivendell' ),
  164.                 'desc' => esc_html__( 'You can create a gallery for gallery post format.', 'rivendell' ),
  165.                 'id' => 'image-gallery',
  166.                 'type' => 'image_advanced',
  167.                 'force_delete' => false,
  168.                 'max_status' => 'false',
  169.                 'tab' => 'media',
  170.                 'image_size' => 'thumbnail',
  171.             ),
  172.             array(
  173.                 'name' => esc_html__( 'Video Gallery', 'rivendell' ),
  174.                 'desc' => esc_html__( 'You can create a video gallery.', 'rivendell' ),
  175.                 'id' => 'video-gallery',
  176.                 'tab' => 'media',
  177.                 'type' => 'group',
  178.                 'sort_clone' => true,
  179.                 'clone' => true,
  180.                 'collapsible' => true,
  181.                 'clone_default' => true,
  182.                 'default_state' => 'collapsed',
  183.                 'save_state' => true,
  184.                 'group_title' => array( 'field' => 'title' ),
  185.                 'fields' => array(
  186.                     array(
  187.                         'name' => esc_html__( 'Title', 'rivendell' ),
  188.                         'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
  189.                         'id' => 'title',
  190.                         'type' => 'text',
  191.                     ),
  192.                     array(
  193.                         'name' => esc_html__( 'Text', 'rivendell' ),
  194.                         'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
  195.                         'id' => 'text',
  196.                         'type' => 'textarea',
  197.                     ),
  198.                     array(
  199.                         'name' => esc_html__( 'Video URL', 'rivendell' ),
  200.                         'desc' => esc_html__( 'You can enter a video URL. Details: https://codex.wordpress.org/Embeds', 'rivendell' ),
  201.                         'id' => 'embed',
  202.                         'type' => 'oembed',
  203.                     ),
  204.                     array(
  205.                         'name' => esc_html__( 'Thumbnail Image', 'rivendell' ),
  206.                         'desc' => esc_html__( 'You can upload a thumbnail image.', 'rivendell' ),
  207.                         'id' => 'thumbnail-image',
  208.                         'type' => 'image_advanced',
  209.                         'force_delete' => false,
  210.                         'max_status' => 'false',
  211.                         'image_size' => 'thumbnail',
  212.                         'max_file_uploads' => 1,
  213.                     ),
  214.                 ),
  215.             ),
  216.             array(
  217.                 'name' => esc_html__( 'Game Poster', 'rivendell' ),
  218.                 'desc' => esc_html__( 'You can upload a poster image.', 'rivendell' ),
  219.                 'id' => 'game-poster',
  220.                 'type' => 'image_advanced',
  221.                 'force_delete' => false,
  222.                 'max_status' => 'false',
  223.                 'image_size' => 'thumbnail',
  224.                 'max_file_uploads' => 1,
  225.                 'tab' => 'media',
  226.             ),
  227.             array(
  228.                 'name' => esc_html__( 'Slider Image', 'rivendell' ),
  229.                 'desc' => esc_html__( 'You can upload a slider image for page builder elements. Recommended: 1950x950', 'rivendell' ),
  230.                 'id' => 'game-slider-image',
  231.                 'type' => 'image_advanced',
  232.                 'force_delete' => false,
  233.                 'max_status' => 'false',
  234.                 'image_size' => 'thumbnail',
  235.                 'max_file_uploads' => 1,
  236.                 'tab' => 'media',
  237.             ),
  238.             array(
  239.                 'name' => esc_html__( 'Game Poster Description', 'rivendell' ),
  240.                 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
  241.                 'id' => 'poster-description',
  242.                 'type' => 'wysiwyg',
  243.                 'tab' => 'media',
  244.             ),
  245.  
  246.             /*====== Content ======*/
  247.             array(
  248.                 'name' => esc_html__( 'Game Details', 'rivendell' ),
  249.                 'desc' => esc_html__( 'You choose status of the game detail box.', 'rivendell' ),
  250.                 'id' => 'game-details-status',
  251.                 'type' => 'checkbox',
  252.                 'std' => 1,
  253.                 'tab' => 'content',
  254.             ),
  255.             array(
  256.                 'name' => esc_html__( 'Release Date', 'rivendell' ),
  257.                 'desc' => esc_html__( 'You can enter a release date.', 'rivendell' ),
  258.                 'id' => 'release-date',
  259.                 'type' => 'date',
  260.                 'tab' => 'content',
  261.             ),
  262.             array(
  263.                 'name' => esc_html__( 'Publishers', 'rivendell' ),
  264.                 'desc' => esc_html__( 'You can choose publishers.', 'rivendell' ),
  265.                 'id' => 'game-publishers',
  266.                 'taxonomy' => 'company',
  267.                 'type' => 'taxonomy_advanced',
  268.                 'field_type' => 'select_advanced',
  269.                 'multiple' => true,
  270.                 'tab' => 'content',
  271.             ),
  272.             array(
  273.                 'name' => esc_html__( 'Developers', 'rivendell' ),
  274.                 'desc' => esc_html__( 'You can choose developers.', 'rivendell' ),
  275.                 'id' => 'game-developers',
  276.                 'taxonomy' => 'company',
  277.                 'type' => 'taxonomy_advanced',
  278.                 'field_type' => 'select_advanced',
  279.                 'multiple' => true,
  280.                 'tab' => 'content',
  281.             ),
  282.             array(
  283.                 'name' => esc_html__( 'Languages', 'rivendell' ),
  284.                 'desc' => esc_html__( 'You choose the language box status.', 'rivendell' ),
  285.                 'id' => 'game-languages-status',
  286.                 'type' => 'checkbox',
  287.                 'std' => 0,
  288.                 'tab' => 'content',
  289.             ),
  290.             array(
  291.                 'name' => esc_html__( 'Languages List', 'rivendell' ),
  292.                 'desc' => esc_html__( 'You can create a language table.', 'rivendell' ),
  293.                 'id' => 'game-languages',
  294.                 'tab' => 'content',
  295.                 'type' => 'group',
  296.                 'sort_clone' => true,
  297.                 'clone' => true,
  298.                 'collapsible' => true,
  299.                 'clone_default' => true,
  300.                 'default_state' => 'collapsed',
  301.                 'save_state' => true,
  302.                 'group_title' => array( 'field' => 'language-name' ),
  303.                 'fields' => array(
  304.                     array(
  305.                         'name' => esc_html__( 'Language', 'rivendell' ),
  306.                         'desc' => esc_html__( 'You can choose a language.', 'rivendell' ),
  307.                         'id' => 'language-name',
  308.                         'taxonomy' => 'language',
  309.                         'type' => 'taxonomy',
  310.                         'field_type' => 'select_advanced',
  311.                     ),
  312.                     array(
  313.                         'name' => esc_html__( 'Interface', 'rivendell' ),
  314.                         'desc' => esc_html__( 'You can language status for interface.', 'rivendell' ),
  315.                         'id' => 'interface',
  316.                         'type' => 'select_advanced',
  317.                         'std' => 'true',
  318.                         'options' => array(
  319.                             'true' => esc_html__( 'True', 'rivendell' ),
  320.                             'false' => esc_html__( 'False', 'rivendell' ),
  321.                         ),
  322.                     ),
  323.                     array(
  324.                         'name' => esc_html__( 'Audio', 'rivendell' ),
  325.                         'desc' => esc_html__( 'You can language status for audio.', 'rivendell' ),
  326.                         'id' => 'audio',
  327.                         'type' => 'select_advanced',
  328.                         'std' => 'true',
  329.                         'options' => array(
  330.                             'true' => esc_html__( 'True', 'rivendell' ),
  331.                             'false' => esc_html__( 'False', 'rivendell' ),
  332.                         ),
  333.                     ),
  334.                     array(
  335.                         'name' => esc_html__( 'Subtitles', 'rivendell' ),
  336.                         'desc' => esc_html__( 'You can language status for subtitles.', 'rivendell' ),
  337.                         'id' => 'subtitles',
  338.                         'type' => 'select_advanced',
  339.                         'std' => 'true',
  340.                         'options' => array(
  341.                             'true' => esc_html__( 'True', 'rivendell' ),
  342.                             'false' => esc_html__( 'False', 'rivendell' ),
  343.                         ),
  344.                     ),
  345.                 ),
  346.             ),
  347.             array(
  348.                 'name' => esc_html__( 'Image Information', 'rivendell' ),
  349.                 'desc' => esc_html__( 'You choose the image information box status.', 'rivendell' ),
  350.                 'id' => 'game-image-information-status',
  351.                 'type' => 'checkbox',
  352.                 'std' => 0,
  353.                 'tab' => 'content',
  354.             ),
  355.             array(
  356.                 'name' => esc_html__( 'Image Information List', 'rivendell' ),
  357.                 'desc' => esc_html__( 'You can create image a information list.', 'rivendell' ),
  358.                 'id' => 'game-image-information',
  359.                 'tab' => 'content',
  360.                 'type' => 'group',
  361.                 'sort_clone' => true,
  362.                 'clone' => true,
  363.                 'collapsible' => true,
  364.                 'clone_default' => true,
  365.                 'default_state' => 'collapsed',
  366.                 'save_state' => true,
  367.                 'fields' => array(
  368.                     array(
  369.                         'name' => esc_html__( 'Image', 'rivendell' ),
  370.                         'desc' => esc_html__( 'You can upload a image.', 'rivendell' ),
  371.                         'id' => 'image',
  372.                         'type' => 'image_advanced',
  373.                         'force_delete' => false,
  374.                         'max_status' => 'false',
  375.                         'image_size' => 'thumbnail',
  376.                         'max_file_uploads' => 1,
  377.                     ),
  378.                     array(
  379.                         'name' => esc_html__( 'Text', 'rivendell' ),
  380.                         'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
  381.                         'id' => 'text',
  382.                         'type' => 'wysiwyg',
  383.                     ),
  384.                 ),
  385.             ),
  386.             array(
  387.                 'name' => esc_html__( 'Content Boxes', 'rivendell' ),
  388.                 'desc' => esc_html__( 'You choose the extra content boxes status.', 'rivendell' ),
  389.                 'id' => 'game-content-boxes-status',
  390.                 'type' => 'checkbox',
  391.                 'std' => 0,
  392.                 'tab' => 'content',
  393.             ),
  394.             array(
  395.                 'name' => esc_html__( 'Content Box List', 'rivendell' ),
  396.                 'desc' => esc_html__( 'You can create unlimited image content boxes.', 'rivendell' ),
  397.                 'id' => 'game-content-boxes',
  398.                 'tab' => 'content',
  399.                 'type' => 'group',
  400.                 'sort_clone' => true,
  401.                 'clone' => true,
  402.                 'collapsible' => true,
  403.                 'clone_default' => true,
  404.                 'default_state' => 'collapsed',
  405.                 'save_state' => true,
  406.                 'group_title' => array( 'field' => 'title' ),
  407.                 'fields' => array(
  408.                     array(
  409.                         'name' => esc_html__( 'Title', 'rivendell' ),
  410.                         'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
  411.                         'id' => 'title',
  412.                         'type' => 'text',
  413.                     ),
  414.                     array(
  415.                         'name' => esc_html__( 'Text', 'rivendell' ),
  416.                         'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
  417.                         'id' => 'text',
  418.                         'type' => 'wysiwyg',
  419.                     ),
  420.                 ),
  421.             ),
  422.             array(
  423.                 'name' => esc_html__( 'Extra Sidebar Boxes', 'rivendell' ),
  424.                 'desc' => esc_html__( 'You choose the extra sidebar boxes status.', 'rivendell' ),
  425.                 'id' => 'game-sidebar-boxes-status',
  426.                 'type' => 'checkbox',
  427.                 'std' => 0,
  428.                 'tab' => 'content',
  429.             ),
  430.             array(
  431.                 'name' => esc_html__( 'Extra Sidebar Boxes List', 'rivendell' ),
  432.                 'desc' => esc_html__( 'You can create image unlimited sidebar boxes.', 'rivendell' ),
  433.                 'id' => 'game-sidebar-boxes',
  434.                 'tab' => 'content',
  435.                 'type' => 'group',
  436.                 'sort_clone' => true,
  437.                 'clone' => true,
  438.                 'collapsible' => true,
  439.                 'clone_default' => true,
  440.                 'default_state' => 'collapsed',
  441.                 'save_state' => true,
  442.                 'group_title' => array( 'field' => 'title' ),
  443.                 'fields' => array(
  444.                     array(
  445.                         'name' => esc_html__( 'Title', 'rivendell' ),
  446.                         'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
  447.                         'id' => 'title',
  448.                         'type' => 'text',
  449.                     ),
  450.                     array(
  451.                         'name' => esc_html__( 'Text', 'rivendell' ),
  452.                         'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
  453.                         'id' => 'text',
  454.                         'type' => 'wysiwyg',
  455.                     ),
  456.                 ),
  457.             ),
  458.             array(
  459.                 'name' => esc_html__( 'Game Reviews', 'rivendell' ),
  460.                 'desc' => esc_html__( 'You choose the game reviews status.', 'rivendell' ),
  461.                 'id' => 'game-review-list-status',
  462.                 'type' => 'checkbox',
  463.                 'std' => 0,
  464.                 'tab' => 'content',
  465.             ),
  466.             array(
  467.                 'name' => esc_html__( 'Game Reviews List', 'rivendell' ),
  468.                 'desc' => esc_html__( 'You can create game review list.', 'rivendell' ),
  469.                 'id' => 'game-review-list',
  470.                 'tab' => 'content',
  471.                 'type' => 'group',
  472.                 'sort_clone' => true,
  473.                 'clone' => true,
  474.                 'collapsible' => true,
  475.                 'clone_default' => true,
  476.                 'default_state' => 'collapsed',
  477.                 'save_state' => true,
  478.                 'group_title' => array( 'field' => 'title' ),
  479.                 'fields' => array(
  480.                     array(
  481.                         'name' => esc_html__( 'Background Image', 'rivendell' ),
  482.                         'desc' => esc_html__( 'You can upload a background image.', 'rivendell' ),
  483.                         'id' => 'bg-image',
  484.                         'type' => 'image_advanced',
  485.                         'force_delete' => false,
  486.                         'max_status' => 'false',
  487.                         'image_size' => 'thumbnail',
  488.                         'max_file_uploads' => 1,
  489.                     ),
  490.                     array(
  491.                         'name' => esc_html__( 'Title', 'rivendell' ),
  492.                         'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
  493.                         'id' => 'title',
  494.                         'type' => 'text',
  495.                     ),
  496.                     array(
  497.                         'name' => esc_html__( 'Description', 'rivendell' ),
  498.                         'desc' => esc_html__( 'You can enter a description text.', 'rivendell' ),
  499.                         'id' => 'text',
  500.                         'type' => 'text',
  501.                     ),
  502.                     array(
  503.                         'name' => esc_html__( 'Point', 'rivendell' ),
  504.                         'desc' => esc_html__( 'You can enter a point. Example: 60 or 6.5', 'rivendell' ),
  505.                         'id' => 'point',
  506.                         'type' => 'text',
  507.                     ),
  508.                     array(
  509.                         'name' => esc_html__( 'Link', 'rivendell' ),
  510.                         'desc' => esc_html__( 'You can enter a link.', 'rivendell' ),
  511.                         'id' => 'link',
  512.                         'type' => 'text',
  513.                     ),
  514.                     array(
  515.                         'name' => esc_html__( 'Target', 'rivendell' ),
  516.                         'desc' => esc_html__( 'You can choose a target type.', 'rivendell' ),
  517.                         'id' => 'target',
  518.                         'type' => 'select_advanced',
  519.                         'std' => '_self',
  520.                         'options' => array(
  521.                             '_self' => esc_html__( 'Self', 'rivendell' ),
  522.                             '_blank' => esc_html__( 'Blank', 'rivendell' ),
  523.                         ),
  524.                     ),
  525.                 ),
  526.             ),
  527.             array(
  528.                 'name' => esc_html__( 'System Requirements', 'rivendell' ),
  529.                 'desc' => esc_html__( 'You choose the system requirements status.', 'rivendell' ),
  530.                 'id' => 'game-system-requirements-status',
  531.                 'type' => 'checkbox',
  532.                 'std' => 0,
  533.                 'tab' => 'content',
  534.             ),
  535.             array(
  536.                 'name' => esc_html__( 'System Requirements List', 'rivendell' ),
  537.                 'desc' => esc_html__( 'You can create system requirements list.', 'rivendell' ),
  538.                 'id' => 'game-system-requirements',
  539.                 'tab' => 'content',
  540.                 'type' => 'group',
  541.                 'sort_clone' => true,
  542.                 'clone' => true,
  543.                 'collapsible' => true,
  544.                 'clone_default' => true,
  545.                 'default_state' => 'collapsed',
  546.                 'save_state' => true,
  547.                 'group_title' => array( 'field' => 'os-name' ),
  548.                 'fields' => array(
  549.                     array(
  550.                         'name' => esc_html__( 'OS', 'rivendell' ),
  551.                         'desc' => esc_html__( 'You can choose a OS.', 'rivendell' ),
  552.                         'id' => 'os-name',
  553.                         'taxonomy' => 'os',
  554.                         'type' => 'taxonomy',
  555.                         'field_type' => 'select_advanced',
  556.                     ),
  557.                     array(
  558.                         'name' => esc_html__( 'List', 'rivendell' ),
  559.                         'id' => 'items',
  560.                         'type' => 'group',
  561.                         'sort_clone' => true,
  562.                         'clone' => true,
  563.                         'collapsible' => true,
  564.                         'clone_default' => true,
  565.                         'default_state' => 'collapsed',
  566.                         'save_state' => true,
  567.                         'group_title' => array( 'field' => 'title' ),
  568.                         'fields' => array(
  569.                             array(
  570.                                 'name' => esc_html__( 'Title', 'rivendell' ),
  571.                                 'id' => 'title',
  572.                                 'type' => 'text',
  573.                                 'desc' => esc_html__( 'You can enter a title. For example: Minimum', 'rivendell' ),
  574.                             ),
  575.                             array(
  576.                                 'name' => esc_html__( 'List', 'rivendell' ),
  577.                                 'id' => 'items',
  578.                                 'type' => 'group',
  579.                                 'sort_clone' => true,
  580.                                 'clone' => true,
  581.                                 'collapsible' => true,
  582.                                 'clone_default' => true,
  583.                                 'default_state' => 'collapsed',
  584.                                 'save_state' => true,
  585.                                 'group_title' => array( 'field' => 'title' ),
  586.                                 'fields' => array(
  587.                                     array(
  588.                                         'name' => esc_html__( 'Title', 'rivendell' ),
  589.                                         'id' => 'title',
  590.                                         'type' => 'text',
  591.                                         'desc' => esc_html__( 'You can enter a title. For example: Memory', 'rivendell' ),
  592.                                     ),
  593.                                     array(
  594.                                         'name' => esc_html__( 'Text', 'rivendell' ),
  595.                                         'id' => 'text',
  596.                                         'type' => 'wysiwyg',
  597.                                         'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
  598.                                     ),
  599.                                     array(
  600.                                         'name' => esc_html__( 'Style', 'rivendell' ),
  601.                                         'desc' => esc_html__( 'You can choose a style.', 'rivendell' ),
  602.                                         'id' => 'style',
  603.                                         'type' => 'select_advanced',
  604.                                         'std' => 'inline',
  605.                                         'options' => array(
  606.                                             'inline' => esc_html__( 'Inline', 'rivendell' ),
  607.                                             'block' => esc_html__( 'Block', 'rivendell' ),
  608.                                         ),
  609.                                     ),
  610.                                 ),
  611.                             ),
  612.                         ),
  613.                     ),
  614.                 ),
  615.             ),
  616.             array(
  617.                 'name' => esc_html__( 'Copyright Text', 'rivendell' ),
  618.                 'desc' => esc_html__( 'You can enter a copyright text.', 'rivendell' ),
  619.                 'id' => 'copyright-text',
  620.                 'type' => 'wysiwyg',
  621.                 'tab' => 'content',
  622.             ),
  623.  
  624.             /*====== Network ======*/
  625.             array(
  626.                 'name' => esc_html__( 'Facebook', 'rivendell' ),
  627.                 'desc' => esc_html__( 'You can enter a Facebook URL.', 'rivendell' ),
  628.                 'id' => 'game-facebook-url',
  629.                 'type' => 'text',
  630.                 'tab' => 'network',
  631.             ),
  632.             array(
  633.                 'name' => esc_html__( 'Twitter', 'rivendell' ),
  634.                 'desc' => esc_html__( 'You can enter a Twitter URL.', 'rivendell' ),
  635.                 'id' => 'game-twitter-url',
  636.                 'type' => 'text',
  637.                 'tab' => 'network',
  638.             ),
  639.             array(
  640.                 'name' => esc_html__( 'Google+', 'rivendell' ),
  641.                 'desc' => esc_html__( 'You can enter a Google+ URL.', 'rivendell' ),
  642.                 'id' => 'game-google-plus-url',
  643.                 'type' => 'text',
  644.                 'tab' => 'network',
  645.             ),
  646.             array(
  647.                 'name' => esc_html__( 'Pinterest', 'rivendell' ),
  648.                 'desc' => esc_html__( 'You can enter a Pinterest URL.', 'rivendell' ),
  649.                 'id' => 'game-pinterest-url',
  650.                 'type' => 'text',
  651.                 'tab' => 'network',
  652.             ),
  653.             array(
  654.                 'name' => esc_html__( 'LinkedIn', 'rivendell' ),
  655.                 'desc' => esc_html__( 'You can enter a LinkedIn URL.', 'rivendell' ),
  656.                 'id' => 'game-linkedin-url',
  657.                 'type' => 'text',
  658.                 'tab' => 'network',
  659.             ),
  660.             array(
  661.                 'name' => esc_html__( 'YouTube', 'rivendell' ),
  662.                 'desc' => esc_html__( 'You can enter a YouTube URL.', 'rivendell' ),
  663.                 'id' => 'game-youtube-url',
  664.                 'type' => 'text',
  665.                 'tab' => 'network',
  666.             ),
  667.             array(
  668.                 'name' => esc_html__( 'Vimeo', 'rivendell' ),
  669.                 'desc' => esc_html__( 'You can enter a Vimeo URL.', 'rivendell' ),
  670.                 'id' => 'game-vimeo-url',
  671.                 'type' => 'text',
  672.                 'tab' => 'network',
  673.             ),
  674.             array(
  675.                 'name' => esc_html__( 'Tumblr', 'rivendell' ),
  676.                 'desc' => esc_html__( 'You can enter a Tumblr URL.', 'rivendell' ),
  677.                 'id' => 'game-tumblr-url',
  678.                 'type' => 'text',
  679.                 'tab' => 'network',
  680.             ),
  681.             array(
  682.                 'name' => esc_html__( 'Instagram', 'rivendell' ),
  683.                 'desc' => esc_html__( 'You can enter a Instagram URL.', 'rivendell' ),
  684.                 'id' => 'game-instagram-url',
  685.                 'type' => 'text',
  686.                 'tab' => 'network',
  687.             ),
  688.             array(
  689.                 'name' => esc_html__( 'Flickr', 'rivendell' ),
  690.                 'desc' => esc_html__( 'You can enter a Flickr URL.', 'rivendell' ),
  691.                 'id' => 'game-flickr-url',
  692.                 'type' => 'text',
  693.                 'tab' => 'network',
  694.             ),
  695.             array(
  696.                 'name' => esc_html__( 'Dribbble', 'rivendell' ),
  697.                 'desc' => esc_html__( 'You can enter a Dribbble URL.', 'rivendell' ),
  698.                 'id' => 'game-dribbble-url',
  699.                 'type' => 'text',
  700.                 'tab' => 'network',
  701.             ),
  702.             array(
  703.                 'name' => esc_html__( 'Reddit', 'rivendell' ),
  704.                 'desc' => esc_html__( 'You can enter a Reddit URL.', 'rivendell' ),
  705.                 'id' => 'game-reddit-url',
  706.                 'type' => 'text',
  707.                 'tab' => 'network',
  708.             ),
  709.             array(
  710.                 'name' => esc_html__( 'SoundCloud', 'rivendell' ),
  711.                 'desc' => esc_html__( 'You can enter a SoundCloud URL.', 'rivendell' ),
  712.                 'id' => 'game-soundcloud-url',
  713.                 'type' => 'text',
  714.                 'tab' => 'network',
  715.             ),
  716.             array(
  717.                 'name' => esc_html__( 'Spotify', 'rivendell' ),
  718.                 'desc' => esc_html__( 'You can enter a Spotify URL.', 'rivendell' ),
  719.                 'id' => 'game-spotify-url',
  720.                 'type' => 'text',
  721.                 'tab' => 'network',
  722.             ),
  723.             array(
  724.                 'name' => esc_html__( 'Yahoo', 'rivendell' ),
  725.                 'desc' => esc_html__( 'You can enter a Yahoo URL.', 'rivendell' ),
  726.                 'id' => 'game-yahoo-url',
  727.                 'type' => 'text',
  728.                 'tab' => 'network',
  729.             ),
  730.             array(
  731.                 'name' => esc_html__( 'Behance', 'rivendell' ),
  732.                 'desc' => esc_html__( 'You can enter a Behance URL.', 'rivendell' ),
  733.                 'id' => 'game-behance-url',
  734.                 'type' => 'text',
  735.                 'tab' => 'network',
  736.             ),
  737.             array(
  738.                 'name' => esc_html__( 'CodePen', 'rivendell' ),
  739.                 'desc' => esc_html__( 'You can enter a CodePen URL.', 'rivendell' ),
  740.                 'id' => 'game-codepen-url',
  741.                 'type' => 'text',
  742.                 'tab' => 'network',
  743.             ),
  744.             array(
  745.                 'name' => esc_html__( 'Delicious', 'rivendell' ),
  746.                 'desc' => esc_html__( 'You can enter a Delicious URL.', 'rivendell' ),
  747.                 'id' => 'game-delicious-url',
  748.                 'type' => 'text',
  749.                 'tab' => 'network',
  750.             ),
  751.             array(
  752.                 'name' => esc_html__( 'StumbleUpon', 'rivendell' ),
  753.                 'desc' => esc_html__( 'You can enter a StumbleUpon URL.', 'rivendell' ),
  754.                 'id' => 'game-stumbleupon-url',
  755.                 'type' => 'text',
  756.                 'tab' => 'network',
  757.             ),
  758.             array(
  759.                 'name' => esc_html__( 'DeviantArt', 'rivendell' ),
  760.                 'desc' => esc_html__( 'You can enter a DeviantArt URL.', 'rivendell' ),
  761.                 'id' => 'game-deviantart-url',
  762.                 'type' => 'text',
  763.                 'tab' => 'network',
  764.             ),
  765.             array(
  766.                 'name' => esc_html__( 'Digg', 'rivendell' ),
  767.                 'desc' => esc_html__( 'You can enter a Digg URL.', 'rivendell' ),
  768.                 'id' => 'game-digg-url',
  769.                 'type' => 'text',
  770.                 'tab' => 'network',
  771.             ),
  772.             array(
  773.                 'name' => esc_html__( 'GitHub', 'rivendell' ),
  774.                 'desc' => esc_html__( 'You can enter a GitHub URL.', 'rivendell' ),
  775.                 'id' => 'game-github-url',
  776.                 'type' => 'text',
  777.                 'tab' => 'network',
  778.             ),
  779.             array(
  780.                 'name' => esc_html__( 'Medium', 'rivendell' ),
  781.                 'desc' => esc_html__( 'You can enter a Medium URL.', 'rivendell' ),
  782.                 'id' => 'game-medium-url',
  783.                 'type' => 'text',
  784.                 'tab' => 'network',
  785.             ),
  786.             array(
  787.                 'name' => esc_html__( 'Steam', 'rivendell' ),
  788.                 'desc' => esc_html__( 'You can enter a Steam URL.', 'rivendell' ),
  789.                 'id' => 'game-steam-url',
  790.                 'type' => 'text',
  791.                 'tab' => 'network',
  792.             ),
  793.             array(
  794.                 'name' => esc_html__( 'VK', 'rivendell' ),
  795.                 'desc' => esc_html__( 'You can enter a VK URL.', 'rivendell' ),
  796.                 'id' => 'game-vk-url',
  797.                 'type' => 'text',
  798.                 'tab' => 'network',
  799.             ),
  800.             array(
  801.                 'name' => esc_html__( '500px', 'rivendell' ),
  802.                 'desc' => esc_html__( 'You can enter a 500px URL.', 'rivendell' ),
  803.                 'id' => 'game-500px-url',
  804.                 'type' => 'text',
  805.                 'tab' => 'network',
  806.             ),
  807.             array(
  808.                 'name' => esc_html__( 'Foursquare', 'rivendell' ),
  809.                 'desc' => esc_html__( 'You can enter a Foursquare URL.', 'rivendell' ),
  810.                 'id' => 'game-foursquare-url',
  811.                 'type' => 'text',
  812.                 'tab' => 'network',
  813.             ),
  814.             array(
  815.                 'name' => esc_html__( 'Slack', 'rivendell' ),
  816.                 'desc' => esc_html__( 'You can enter a Slack URL.', 'rivendell' ),
  817.                 'id' => 'game-slack-url',
  818.                 'type' => 'text',
  819.                 'tab' => 'network',
  820.             ),
  821.             array(
  822.                 'name' => esc_html__( 'WhatsApp', 'rivendell' ),
  823.                 'desc' => esc_html__( 'You can enter a WhatsApp URL.', 'rivendell' ),
  824.                 'id' => 'game-whatsapp-url',
  825.                 'type' => 'text',
  826.                 'tab' => 'network',
  827.             ),
  828.             array(
  829.                 'name' => esc_html__( 'Skype', 'rivendell' ),
  830.                 'desc' => esc_html__( 'You can enter a Skype URL.', 'rivendell' ),
  831.                 'id' => 'game-skype-url',
  832.                 'type' => 'text',
  833.                 'tab' => 'network',
  834.             ),
  835.             array(
  836.                 'name' => esc_html__( 'Twitch', 'rivendell' ),
  837.                 'desc' => esc_html__( 'You can enter a Twitch URL.', 'rivendell' ),
  838.                 'id' => 'game-twitch-url',
  839.                 'type' => 'text',
  840.                 'tab' => 'network',
  841.             ),
  842.             array(
  843.                 'name' => esc_html__( 'PayPal', 'rivendell' ),
  844.                 'desc' => esc_html__( 'You can enter a PayPal URL.', 'rivendell' ),
  845.                 'id' => 'game-paypal-url',
  846.                 'type' => 'text',
  847.                 'tab' => 'network',
  848.             ),
  849.             array(
  850.                 'name' => esc_html__( 'Official Site', 'rivendell' ),
  851.                 'desc' => esc_html__( 'You can enter a official site URL.', 'rivendell' ),
  852.                 'id' => 'game-official-site-url',
  853.                 'type' => 'text',
  854.                 'tab' => 'network',
  855.             ),
  856.             array(
  857.                 'name' => esc_html__( 'Custom Site', 'rivendell' ),
  858.                 'desc' => esc_html__( 'You can enter a custom site URL.', 'rivendell' ),
  859.                 'id' => 'game-custom-site-url',
  860.                 'type' => 'text',
  861.                 'tab' => 'network',
  862.             ),
  863.  
  864.             /*====== Sales ======*/
  865.             array(
  866.                 'name' => esc_html__( 'Prices', 'rivendell' ),
  867.                 'desc' => esc_html__( 'You choose status of the price list.', 'rivendell' ),
  868.                 'id' => 'price-list-status',
  869.                 'type' => 'checkbox',
  870.                 'std' => 0,
  871.                 'tab' => 'sales',
  872.             ),
  873.             array(
  874.                 'name' => esc_html__( 'Main Price', 'rivendell' ),
  875.                 'desc' => esc_html__( 'You can enter main price for game listing elements.', 'rivendell' ),
  876.                 'id' => 'game-main-price',
  877.                 'type' => 'text',
  878.                 'tab' => 'sales',
  879.             ),
  880.             array(
  881.                 'name' => esc_html__( 'Main Price Currency', 'rivendell' ),
  882.                 'desc' => esc_html__( 'You can enter currency of main price for game listing elements. Example: $', 'rivendell' ),
  883.                 'id' => 'game-main-price-currency',
  884.                 'type' => 'text',
  885.                 'tab' => 'sales',
  886.             ),
  887.             array(
  888.                 'name' => esc_html__( 'Price List', 'rivendell' ),
  889.                 'desc' => esc_html__( 'You can create a price list.', 'rivendell' ),
  890.                 'id' => 'game-price-list',
  891.                 'tab' => 'sales',
  892.                 'type' => 'group',
  893.                 'sort_clone' => true,
  894.                 'clone' => true,
  895.                 'collapsible' => true,
  896.                 'clone_default' => true,
  897.                 'default_state' => 'collapsed',
  898.                 'save_state' => true,
  899.                 'group_title' => array( 'field' => 'title' ),
  900.                 'fields' => array(
  901.                     array(
  902.                         'type' => 'heading',
  903.                         'name' => esc_html__( 'General', 'rivendell' ),
  904.                         'desc' => esc_html__( 'You can edit general settings.', 'rivendell' ),
  905.                     ),
  906.                     array(
  907.                         'name' => esc_html__( 'Title', 'rivendell' ),
  908.                         'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
  909.                         'id' => 'title',
  910.                         'type' => 'text',
  911.                     ),
  912.                     array(
  913.                         'name' => esc_html__( 'Type', 'rivendell' ),
  914.                         'desc' => esc_html__( 'You can choose a type.', 'rivendell' ),
  915.                         'id' => 'sales-type',
  916.                         'type' => 'radio',
  917.                         'std' => 'woocommerce',
  918.                         'options' => array(
  919.                             'woocommerce' => esc_html__( 'WooCommerce', 'rivendell' ),
  920.                             'external-link' => esc_html__( 'External Link', 'rivendell' ),
  921.                             'contact-form' => esc_html__( 'Contact Form', 'rivendell' ),
  922.                         ),
  923.                     ),
  924.                     array(
  925.                         'name' => esc_html__( 'WooCommerce Product', 'rivendell' ),
  926.                         'desc' => esc_html__( 'You can choose a WooCommerce product.', 'rivendell' ),
  927.                         'id' => 'woocommerce-product',
  928.                         'post_type' => 'product',
  929.                         'type' => 'post',
  930.                         'field_type' => 'select_advanced',
  931.                         'visible' => array( 'sales-type', '=', array( 'woocommerce' ) ),
  932.                     ),
  933.                     array(
  934.                         'name' => esc_html__( 'Platform', 'rivendell' ),
  935.                         'desc' => esc_html__( 'You can choose a platform.', 'rivendell' ),
  936.                         'id' => 'platform',
  937.                         'taxonomy' => 'platform',
  938.                         'type' => 'taxonomy',
  939.                         'field_type' => 'select_advanced',
  940.                         'multiple' => true,
  941.                     ),
  942.                     array(
  943.                         'name' => esc_html__( 'Price', 'rivendell' ),
  944.                         'desc' => esc_html__( 'You can enter a price.', 'rivendell' ),
  945.                         'id' => 'price',
  946.                         'type' => 'text',
  947.                         'hidden' => array( 'sales-type', '=', array( 'woocommerce' ) ),
  948.                     ),
  949.                     array(
  950.                         'name' => esc_html__( 'Text', 'rivendell' ),
  951.                         'desc' => esc_html__( 'You can enter a description text.', 'rivendell' ),
  952.                         'id' => 'text',
  953.                         'type' => 'wysiwyg',
  954.                     ),
  955.                     array(
  956.                         'type' => 'heading',
  957.                         'name' => esc_html__( 'Purchase Button', 'rivendell' ),
  958.                         'desc' => esc_html__( 'You can edit purchase button.', 'rivendell' ),
  959.                     ),
  960.                     array(
  961.                         'name' => esc_html__( 'Purchase Button Target', 'rivendell' ),
  962.                         'desc' => esc_html__( 'You can choose a target type.', 'rivendell' ),
  963.                         'id' => 'button-target',
  964.                         'type' => 'select_advanced',
  965.                         'std' => 'self',
  966.                         'options' => array(
  967.                             '_self' => esc_html__( 'Self', 'rivendell' ),
  968.                             '_blank' => esc_html__( 'Blank', 'rivendell' ),
  969.                         ),
  970.                         'visible' => array( 'sales-type', '=', array( 'external-link' ) ),
  971.                     ),
  972.                     array(
  973.                         'name' => esc_html__( 'Purchase Button Link', 'rivendell' ),
  974.                         'desc' => esc_html__( 'You can enter a button link.', 'rivendell' ),
  975.                         'id' => 'button-link',
  976.                         'type' => 'text',
  977.                         'visible' => array( 'sales-type', '=', array( 'external-link' ) ),
  978.                     ),
  979.                     array(
  980.                         'name' => esc_html__( 'Purchase Button Text', 'rivendell' ),
  981.                         'desc' => esc_html__( 'You can enter a button text. Default: Buy Now', 'rivendell' ),
  982.                         'id' => 'button-text',
  983.                         'type' => 'text',
  984.                         'visible' => array( 'sales-type', 'in', array( 'woocommerce', 'external-link', 'contact-form' ) ),
  985.                     ),
  986.                     array(
  987.                         'type' => 'heading',
  988.                         'name' => esc_html__( 'Details Button', 'rivendell' ),
  989.                         'desc' => esc_html__( 'You can edit details button.', 'rivendell' ),
  990.                     ),
  991.                     array(
  992.                         'name' => esc_html__( 'Details Button Type', 'rivendell' ),
  993.                         'desc' => esc_html__( 'You can choose a type for details button', 'rivendell' ),
  994.                         'id' => 'details-button-type',
  995.                         'type' => 'select_advanced',
  996.                         'std' => 'self',
  997.                         'options' => array(
  998.                             'popup' => esc_html__( 'Popup', 'rivendell' ),
  999.                             'blank-link' => esc_html__( 'Blank Link', 'rivendell' ),
  1000.                             'self-link' => esc_html__( 'Self Link', 'rivendell' ),
  1001.                         ),
  1002.                     ),
  1003.                     array(
  1004.                         'name' => esc_html__( 'Details Button Link', 'rivendell' ),
  1005.                         'desc' => esc_html__( 'You can enter a link for details button.', 'rivendell' ),
  1006.                         'id' => 'details-button-link',
  1007.                         'type' => 'text',
  1008.                         'visible' => array( 'details-button-type', 'in', array( 'blank-link', 'self-link' ) ),
  1009.                     ),
  1010.                     array(
  1011.                         'name' => esc_html__( 'Details Button Text', 'rivendell' ),
  1012.                         'desc' => esc_html__( 'You can enter a text for details button. Default: Details', 'rivendell' ),
  1013.                         'id' => 'details-button-text',
  1014.                         'type' => 'text',
  1015.                     ),
  1016.                     array(
  1017.                         'name' => esc_html__( 'Content for Popup Details', 'rivendell' ),
  1018.                         'desc' => esc_html__( 'You can enter a description text for popup details.', 'rivendell' ),
  1019.                         'id' => 'details-popup-content',
  1020.                         'type' => 'wysiwyg',
  1021.                     ),
  1022.                     array(
  1023.                         'type' => 'heading',
  1024.                         'name' => esc_html__( 'Contact Form', 'rivendell' ),
  1025.                         'desc' => esc_html__( 'You can edit contact form settings.', 'rivendell' ),
  1026.                         'visible' => array( 'sales-type', '=', array( 'contact-form' ) ),
  1027.                     ),
  1028.                     array(
  1029.                         'name' => esc_html__( 'Contact Form', 'rivendell' ),
  1030.                         'desc' => esc_html__( "You can enter a contact form shortcode. If you can't choose a contact form, you can use default contact form. You can change default contact form from Customize panel.", 'rivendell' ),
  1031.                         'id' => 'contact-form',
  1032.                         'type' => 'text',
  1033.                         'visible' => array( 'sales-type', '=', array( 'contact-form' ) ),
  1034.                     ),
  1035.                     array(
  1036.                         'name' => esc_html__( 'Working Style', 'rivendell' ),
  1037.                         'desc' => esc_html__( 'You can choose a working style for contact form.', 'rivendell' ),
  1038.                         'id' => 'working-style',
  1039.                         'type' => 'select_advanced',
  1040.                         'std' => 'style-1',
  1041.                         'options' => array(
  1042.                             'style-1' => esc_html__( 'Open After Click the Purchase Button', 'rivendell' ),
  1043.                             'style-2' => esc_html__( 'Open as Automatic', 'rivendell' ),
  1044.                         ),
  1045.                         'visible' => array( 'sales-type', '=', array( 'contact-form' ) ),
  1046.                     ),
  1047.                     array(
  1048.                         'type' => 'heading',
  1049.                         'name' => esc_html__( 'Media', 'rivendell' ),
  1050.                         'desc' => esc_html__( 'You can edit media settings.', 'rivendell' ),
  1051.                     ),
  1052.                     array(
  1053.                         'name' => esc_html__( 'Images', 'rivendell' ),
  1054.                         'desc' => esc_html__( 'You can create a gallery.', 'rivendell' ),
  1055.                         'id' => 'image-gallery',
  1056.                         'type' => 'image_advanced',
  1057.                         'force_delete' => false,
  1058.                         'max_status' => 'false',
  1059.                         'image_size' => 'thumbnail',
  1060.                     ),
  1061.                     array(
  1062.                         'name' => esc_html__( 'Background Image', 'rivendell' ),
  1063.                         'desc' => esc_html__( 'You can upload a background image.', 'rivendell' ),
  1064.                         'id' => 'bg-image',
  1065.                         'type' => 'image_advanced',
  1066.                         'force_delete' => false,
  1067.                         'max_status' => 'false',
  1068.                         'image_size' => 'thumbnail',
  1069.                         'max_file_uploads' => 1,
  1070.                     ),
  1071.                 ),
  1072.             ),
  1073.  
  1074.             /*====== Review ======*/
  1075.             array(
  1076.                 'name' => esc_html__( 'Review', 'rivendell' ),
  1077.                 'desc' => esc_html__( 'You choose the review status from this post.', 'rivendell' ),
  1078.                 'id' => 'review-status',
  1079.                 'type' => 'checkbox',
  1080.                 'std' => 0,
  1081.                 'tab' => 'review',
  1082.             ),
  1083.             array(
  1084.                 'name' => esc_html__( 'Review', 'rivendell' ),
  1085.                 'desc' => esc_html__( 'You can create a review list.', 'rivendell' ),
  1086.                 'id' => 'review',
  1087.                 'tab' => 'review',
  1088.                 'type' => 'group',
  1089.                 'sort_clone' => true,
  1090.                 'clone' => true,
  1091.                 'collapsible' => true,
  1092.                 'clone_default' => true,
  1093.                 'default_state' => 'collapsed',
  1094.                 'save_state' => true,
  1095.                 'group_title' => array( 'field' => 'review-title' ),
  1096.                 'fields' => array(
  1097.                     array(
  1098.                         'name' => esc_html__( 'Title', 'rivendell' ),
  1099.                         'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
  1100.                         'id' => 'review-title',
  1101.                         'type' => 'text',
  1102.                     ),
  1103.                     array(
  1104.                         'name' => esc_html__( 'Text', 'rivendell' ),
  1105.                         'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
  1106.                         'id' => 'review-text',
  1107.                         'type' => 'textarea',
  1108.                     ),
  1109.                     array(
  1110.                         'name' => esc_html__( 'Total Score', 'rivendell' ),
  1111.                         'desc' => esc_html__( 'You can enter a total score. For example: 7.2', 'rivendell' ),
  1112.                         'id' => 'review-score',
  1113.                         'type' => 'text',
  1114.                     ),
  1115.                     array(
  1116.                         'name' => esc_html__( 'List', 'rivendell' ),
  1117.                         'id' => 'items',
  1118.                         'type' => 'group',
  1119.                         'sort_clone' => true,
  1120.                         'clone' => true,
  1121.                         'collapsible' => true,
  1122.                         'clone_default' => true,
  1123.                         'default_state' => 'collapsed',
  1124.                         'save_state' => true,
  1125.                         'group_title' => array( 'field' => 'title' ),
  1126.                         'fields' => array(
  1127.                             array(
  1128.                                 'name' => esc_html__( 'Title', 'rivendell' ),
  1129.                                 'id' => 'title',
  1130.                                 'type' => 'text',
  1131.                                 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
  1132.                             ),
  1133.                             array(
  1134.                                 'name' => esc_html__( 'Style Type', 'rivendell' ),
  1135.                                 'id' => 'style-type',
  1136.                                 'type' => 'radio',
  1137.                                 'std' => 'progress-bar',
  1138.                                 'options' => array(
  1139.                                     'progress-bar' => esc_html__( 'Progress Bar', 'rivendell' ),
  1140.                                     'star' => esc_html__( 'Star', 'rivendell' ),
  1141.                                 ),
  1142.                                 'desc' => esc_html__( 'You can choose a style.', 'rivendell' ),
  1143.                             ),
  1144.                             array(
  1145.                                 'name' => esc_html__( 'Score Type', 'rivendell' ),
  1146.                                 'placeholder' => esc_html__( 'Score Type', 'rivendell' ),
  1147.                                 'id' => 'score-type',
  1148.                                 'type' => 'select',
  1149.                                 'options' => array(
  1150.                                     'score-100' => esc_html__( 'Scoring Over 100', 'rivendell' ),
  1151.                                     'score-10' => esc_html__( 'Scoring Over 10', 'rivendell' ),
  1152.                                     'score-5' => esc_html__( 'Scoring Over 5', 'rivendell' ),
  1153.                                 ),
  1154.                                 'desc' => esc_html__( 'You can choose a score type. If you use star type, you should choose scoring over 5 or 10.', 'rivendell' ),
  1155.                             ),
  1156.                             array(
  1157.                                 'name' => esc_html__( 'Score', 'rivendell' ),
  1158.                                 'id' => 'score',
  1159.                                 'type' => 'text',
  1160.                                 'desc' => esc_html__( 'You can enter a score. For example: 90, 50 or 5', 'rivendell' ),
  1161.                             ),
  1162.                         ),
  1163.                     ),
  1164.                 ),
  1165.             ),
  1166.             array(
  1167.                 'name' => esc_html__( 'Analysis', 'rivendell' ),
  1168.                 'desc' => esc_html__( 'You choose the analysis status from this post.', 'rivendell' ),
  1169.                 'id' => 'analysis-status',
  1170.                 'type' => 'checkbox',
  1171.                 'std' => 0,
  1172.                 'tab' => 'review',
  1173.             ),
  1174.             array(
  1175.                 'name' => esc_html__( 'Analysis', 'rivendell' ),
  1176.                 'desc' => esc_html__( 'You can create a analysis. This is a comparison table, for example The Good vs. The Bad.', 'rivendell' ),
  1177.                 'id' => 'analysis',
  1178.                 'tab' => 'review',
  1179.                 'type' => 'group',
  1180.                 'sort_clone' => true,
  1181.                 'clone' => true,
  1182.                 'collapsible' => true,
  1183.                 'clone_default' => true,
  1184.                 'default_state' => 'collapsed',
  1185.                 'save_state' => true,
  1186.                 'group_title' => array( 'field' => 'title' ),
  1187.                 'fields' => array(
  1188.                     array(
  1189.                         'name' => esc_html__( 'Title', 'rivendell' ),
  1190.                         'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
  1191.                         'id' => 'title',
  1192.                         'type' => 'text',
  1193.                     ),
  1194.                     array(
  1195.                         'name' => esc_html__( 'Text', 'rivendell' ),
  1196.                         'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
  1197.                         'id' => 'text',
  1198.                         'type' => 'textarea',
  1199.                     ),
  1200.                     array(
  1201.                         'name' => esc_html__( 'Column', 'rivendell' ),
  1202.                         'desc' => esc_html__( 'You can choose a column.', 'rivendell' ),
  1203.                         'id' => 'column',
  1204.                         'type' => 'select',
  1205.                                 'placeholder' => esc_html__( 'Score Type', 'rivendell' ),
  1206.                         'options' => array(
  1207.                             'column-1' => esc_html__( '1', 'rivendell' ),
  1208.                             'column-2' => esc_html__( '2', 'rivendell' ),
  1209.                             'column-3' => esc_html__( '3', 'rivendell' ),
  1210.                         ),
  1211.                     ),
  1212.                     array(
  1213.                         'name' => esc_html__( 'List', 'rivendell' ),
  1214.                         'id' => 'analysis-items',
  1215.                         'type' => 'group',
  1216.                         'sort_clone' => true,
  1217.                         'clone' => true,
  1218.                         'collapsible' => true,
  1219.                         'clone_default' => true,
  1220.                         'default_state' => 'collapsed',
  1221.                         'save_state' => true,
  1222.                         'group_title' => array( 'field' => 'title' ),
  1223.                         'fields' => array(
  1224.                             array(
  1225.                                 'name' => esc_html__( 'Title', 'rivendell' ),
  1226.                                 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
  1227.                                 'id' => 'title',
  1228.                                 'type' => 'text',
  1229.                             ),
  1230.                             array(
  1231.                                 'name' => esc_html__( 'List', 'rivendell' ),
  1232.                                 'id' => 'items',
  1233.                                 'type' => 'group',
  1234.                                 'sort_clone' => true,
  1235.                                 'clone' => true,
  1236.                                 'collapsible' => true,
  1237.                                 'clone_default' => true,
  1238.                                 'default_state' => 'collapsed',
  1239.                                 'save_state' => true,
  1240.                                 'group_title' => array( 'field' => 'text' ),
  1241.                                 'fields' => array(
  1242.                                     array(
  1243.                                         'name' => esc_html__( 'Text', 'rivendell' ),
  1244.                                         'id' => 'text',
  1245.                                         'type' => 'text',
  1246.                                         'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
  1247.                                     ),
  1248.                                     array(
  1249.                                         'name' => esc_html__( 'Icon Color', 'rivendell' ),
  1250.                                         'id' => 'icon-color',
  1251.                                         'type' => 'color',
  1252.                                         'desc' => esc_html__( 'You can choose a custom color.', 'rivendell' ),
  1253.                                     ),
  1254.                                     array(
  1255.                                         'name' => esc_html__( 'Icon', 'rivendell' ),
  1256.                                         'id' => 'icon',
  1257.                                         'type' => 'text',
  1258.                                         'desc' => esc_html__( 'You can enter a icon name. List of icons is exist in documentation file. Example: edge, automobile, bel-o.', 'rivendell' ),
  1259.                                     ),
  1260.                                 ),
  1261.                             ),
  1262.                         ),
  1263.                     ),
  1264.                 ),
  1265.             ),
  1266.         )
  1267.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement