Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $meta_boxes[] = array(
- /*====== Settings ======*/
- 'id' => 'game-settings',
- 'title' => esc_html__( 'Game Settings', 'rivendell' ),
- 'post_types' => 'game',
- 'context' => 'normal',
- 'priority' => 'high',
- 'tabs' => array(
- 'design' => array(
- 'label' => esc_html__( 'Layouts & Design', 'rivendell' ),
- 'icon' => 'dashicons-admin-customizer',
- ),
- 'media' => array(
- 'label' => esc_html__( 'Media', 'rivendell' ),
- 'icon' => 'dashicons-admin-collapse',
- ),
- 'content' => array(
- 'label' => esc_html__( 'Content', 'rivendell' ),
- 'icon' => 'dashicons-admin-page',
- ),
- 'network' => array(
- 'label' => esc_html__( 'Network', 'rivendell' ),
- 'icon' => 'dashicons-networking',
- ),
- 'sales' => array(
- 'label' => esc_html__( 'Game Sales', 'rivendell' ),
- 'icon' => 'dashicons-cart',
- ),
- 'review' => array(
- 'label' => esc_html__( 'Review', 'rivendell' ),
- 'icon' => 'dashicons-clipboard',
- ),
- ),
- 'tab_style' => 'left',
- 'tab_wrapper' => true,
- /*====== Fields ======*/
- 'fields' => array(
- /*====== Design ======*/
- array(
- 'name' => esc_html__( 'Hide Header', 'rivendell' ),
- 'desc' => esc_html__( 'You can hide the header.', 'rivendell' ),
- 'id' => 'hide-header',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'design',
- ),
- array(
- 'name' => esc_html__( 'Header Style', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a header style.', 'rivendell' ),
- 'id' => 'header-style',
- 'type' => 'image_select',
- 'options' => array(
- 'style-1' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-1.svg',
- 'style-2' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-2.svg',
- 'style-3' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-3.svg',
- 'style-4' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-4.svg',
- 'style-5' => get_template_directory_uri() . '/include/customize/assets/img/header-style/style-5.svg',
- ),
- 'tab' => 'design',
- ),
- array(
- 'name' => esc_html__( 'Header Position', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a header position.', 'rivendell' ),
- 'id' => 'header-position',
- 'type' => 'image_select',
- 'options' => array(
- 'position-1' => get_template_directory_uri() . '/include/customize/assets/img/header-position/position-1.svg',
- 'position-2' => get_template_directory_uri() . '/include/customize/assets/img/header-position/position-2.svg',
- ),
- 'tab' => 'design',
- ),
- array(
- 'name' => esc_html__( 'Hide Page Banner', 'rivendell' ),
- 'desc' => esc_html__( 'You can hide page banner (Title, breadcrumb etc.).', 'rivendell' ),
- 'id' => 'hide-page-banner',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'design',
- ),
- array(
- 'name' => esc_html__( 'Page Banner Background', 'rivendell' ),
- 'desc' => esc_html__( 'You can upload a background image for page banner. Recommended: 1920x450', 'rivendell' ),
- 'id' => 'hide-page-banner-image',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_status' => 'false',
- 'image_size' => 'thumbnail',
- 'max_file_uploads' => 1,
- 'tab' => 'design',
- ),
- array(
- 'name' => esc_html__( 'Hide Footer', 'rivendell' ),
- 'desc' => esc_html__( 'You can hide the footer.', 'rivendell' ),
- 'id' => 'hide-footer',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'design',
- ),
- array(
- 'name' => esc_html__( 'Footer Style', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a footer style.', 'rivendell' ),
- 'id' => 'footer-style',
- 'type' => 'image_select',
- 'options' => array(
- 'style-1' => get_template_directory_uri() . '/include/customize/assets/img/footer-style/style-1.svg',
- 'style-2' => get_template_directory_uri() . '/include/customize/assets/img/footer-style/style-2.svg',
- ),
- 'tab' => 'design',
- ),
- array(
- 'name' => esc_html__( 'Hide Footer Gap', 'rivendell' ),
- 'desc' => esc_html__( 'You can hide the gap between the content and the footer.', 'rivendell' ),
- 'id' => 'hide-footer-gap',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'design',
- ),
- array(
- 'name' => esc_html__( 'Sidebar Position', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a sidebar position.', 'rivendell' ),
- 'id' => 'sidebar-position',
- 'type' => 'image_select',
- 'options' => array(
- 'right-sidebar' => get_template_directory_uri() . '/include/customize/assets/img/sidebar/right-sidebar.svg',
- 'left-sidebar' => get_template_directory_uri() . '/include/customize/assets/img/sidebar/left-sidebar.svg',
- 'no-sidebar' => get_template_directory_uri() . '/include/customize/assets/img/sidebar/no-sidebar.svg',
- ),
- 'tab' => 'design',
- ),
- array(
- 'name' => esc_html__( 'Sidebar', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a sidebar for this page.', 'rivendell' ),
- 'id' => 'sidebar',
- 'type' => 'sidebar',
- 'tab' => 'design',
- ),
- /*====== Media ======*/
- array(
- 'name' => esc_html__( 'Hide Image & Video Gallery', 'rivendell' ),
- 'desc' => esc_html__( 'You can hide the image and video gallery.', 'rivendell' ),
- 'id' => 'hide-media-gallery',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'media',
- ),
- array(
- 'name' => esc_html__( 'Image Gallery Type', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a style for image gallery.', 'rivendell' ),
- 'id' => 'image-gallery-type',
- 'type' => 'radio',
- 'tab' => 'media',
- 'std' => 'carousel',
- 'options' => array(
- 'carousel' => esc_html__( 'Carousel', 'rivendell' ),
- 'slider' => esc_html__( 'Slider', 'rivendell' ),
- 'grid' => esc_html__( 'Grid', 'rivendell' ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Image Gallery for Gallery', 'rivendell' ),
- 'desc' => esc_html__( 'You can create a gallery for gallery post format.', 'rivendell' ),
- 'id' => 'image-gallery',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_status' => 'false',
- 'tab' => 'media',
- 'image_size' => 'thumbnail',
- ),
- array(
- 'name' => esc_html__( 'Video Gallery', 'rivendell' ),
- 'desc' => esc_html__( 'You can create a video gallery.', 'rivendell' ),
- 'id' => 'video-gallery',
- 'tab' => 'media',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
- 'id' => 'text',
- 'type' => 'textarea',
- ),
- array(
- 'name' => esc_html__( 'Video URL', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a video URL. Details: https://codex.wordpress.org/Embeds', 'rivendell' ),
- 'id' => 'embed',
- 'type' => 'oembed',
- ),
- array(
- 'name' => esc_html__( 'Thumbnail Image', 'rivendell' ),
- 'desc' => esc_html__( 'You can upload a thumbnail image.', 'rivendell' ),
- 'id' => 'thumbnail-image',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_status' => 'false',
- 'image_size' => 'thumbnail',
- 'max_file_uploads' => 1,
- ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Game Poster', 'rivendell' ),
- 'desc' => esc_html__( 'You can upload a poster image.', 'rivendell' ),
- 'id' => 'game-poster',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_status' => 'false',
- 'image_size' => 'thumbnail',
- 'max_file_uploads' => 1,
- 'tab' => 'media',
- ),
- array(
- 'name' => esc_html__( 'Slider Image', 'rivendell' ),
- 'desc' => esc_html__( 'You can upload a slider image for page builder elements. Recommended: 1950x950', 'rivendell' ),
- 'id' => 'game-slider-image',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_status' => 'false',
- 'image_size' => 'thumbnail',
- 'max_file_uploads' => 1,
- 'tab' => 'media',
- ),
- array(
- 'name' => esc_html__( 'Game Poster Description', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
- 'id' => 'poster-description',
- 'type' => 'wysiwyg',
- 'tab' => 'media',
- ),
- /*====== Content ======*/
- array(
- 'name' => esc_html__( 'Game Details', 'rivendell' ),
- 'desc' => esc_html__( 'You choose status of the game detail box.', 'rivendell' ),
- 'id' => 'game-details-status',
- 'type' => 'checkbox',
- 'std' => 1,
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'Release Date', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a release date.', 'rivendell' ),
- 'id' => 'release-date',
- 'type' => 'date',
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'Publishers', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose publishers.', 'rivendell' ),
- 'id' => 'game-publishers',
- 'taxonomy' => 'company',
- 'type' => 'taxonomy_advanced',
- 'field_type' => 'select_advanced',
- 'multiple' => true,
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'Developers', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose developers.', 'rivendell' ),
- 'id' => 'game-developers',
- 'taxonomy' => 'company',
- 'type' => 'taxonomy_advanced',
- 'field_type' => 'select_advanced',
- 'multiple' => true,
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'Languages', 'rivendell' ),
- 'desc' => esc_html__( 'You choose the language box status.', 'rivendell' ),
- 'id' => 'game-languages-status',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'Languages List', 'rivendell' ),
- 'desc' => esc_html__( 'You can create a language table.', 'rivendell' ),
- 'id' => 'game-languages',
- 'tab' => 'content',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'language-name' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Language', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a language.', 'rivendell' ),
- 'id' => 'language-name',
- 'taxonomy' => 'language',
- 'type' => 'taxonomy',
- 'field_type' => 'select_advanced',
- ),
- array(
- 'name' => esc_html__( 'Interface', 'rivendell' ),
- 'desc' => esc_html__( 'You can language status for interface.', 'rivendell' ),
- 'id' => 'interface',
- 'type' => 'select_advanced',
- 'std' => 'true',
- 'options' => array(
- 'true' => esc_html__( 'True', 'rivendell' ),
- 'false' => esc_html__( 'False', 'rivendell' ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Audio', 'rivendell' ),
- 'desc' => esc_html__( 'You can language status for audio.', 'rivendell' ),
- 'id' => 'audio',
- 'type' => 'select_advanced',
- 'std' => 'true',
- 'options' => array(
- 'true' => esc_html__( 'True', 'rivendell' ),
- 'false' => esc_html__( 'False', 'rivendell' ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Subtitles', 'rivendell' ),
- 'desc' => esc_html__( 'You can language status for subtitles.', 'rivendell' ),
- 'id' => 'subtitles',
- 'type' => 'select_advanced',
- 'std' => 'true',
- 'options' => array(
- 'true' => esc_html__( 'True', 'rivendell' ),
- 'false' => esc_html__( 'False', 'rivendell' ),
- ),
- ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Image Information', 'rivendell' ),
- 'desc' => esc_html__( 'You choose the image information box status.', 'rivendell' ),
- 'id' => 'game-image-information-status',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'Image Information List', 'rivendell' ),
- 'desc' => esc_html__( 'You can create image a information list.', 'rivendell' ),
- 'id' => 'game-image-information',
- 'tab' => 'content',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Image', 'rivendell' ),
- 'desc' => esc_html__( 'You can upload a image.', 'rivendell' ),
- 'id' => 'image',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_status' => 'false',
- 'image_size' => 'thumbnail',
- 'max_file_uploads' => 1,
- ),
- array(
- 'name' => esc_html__( 'Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
- 'id' => 'text',
- 'type' => 'wysiwyg',
- ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Content Boxes', 'rivendell' ),
- 'desc' => esc_html__( 'You choose the extra content boxes status.', 'rivendell' ),
- 'id' => 'game-content-boxes-status',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'Content Box List', 'rivendell' ),
- 'desc' => esc_html__( 'You can create unlimited image content boxes.', 'rivendell' ),
- 'id' => 'game-content-boxes',
- 'tab' => 'content',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
- 'id' => 'text',
- 'type' => 'wysiwyg',
- ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Extra Sidebar Boxes', 'rivendell' ),
- 'desc' => esc_html__( 'You choose the extra sidebar boxes status.', 'rivendell' ),
- 'id' => 'game-sidebar-boxes-status',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'Extra Sidebar Boxes List', 'rivendell' ),
- 'desc' => esc_html__( 'You can create image unlimited sidebar boxes.', 'rivendell' ),
- 'id' => 'game-sidebar-boxes',
- 'tab' => 'content',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
- 'id' => 'text',
- 'type' => 'wysiwyg',
- ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Game Reviews', 'rivendell' ),
- 'desc' => esc_html__( 'You choose the game reviews status.', 'rivendell' ),
- 'id' => 'game-review-list-status',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'Game Reviews List', 'rivendell' ),
- 'desc' => esc_html__( 'You can create game review list.', 'rivendell' ),
- 'id' => 'game-review-list',
- 'tab' => 'content',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Background Image', 'rivendell' ),
- 'desc' => esc_html__( 'You can upload a background image.', 'rivendell' ),
- 'id' => 'bg-image',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_status' => 'false',
- 'image_size' => 'thumbnail',
- 'max_file_uploads' => 1,
- ),
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Description', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a description text.', 'rivendell' ),
- 'id' => 'text',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Point', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a point. Example: 60 or 6.5', 'rivendell' ),
- 'id' => 'point',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Link', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a link.', 'rivendell' ),
- 'id' => 'link',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Target', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a target type.', 'rivendell' ),
- 'id' => 'target',
- 'type' => 'select_advanced',
- 'std' => '_self',
- 'options' => array(
- '_self' => esc_html__( 'Self', 'rivendell' ),
- '_blank' => esc_html__( 'Blank', 'rivendell' ),
- ),
- ),
- ),
- ),
- array(
- 'name' => esc_html__( 'System Requirements', 'rivendell' ),
- 'desc' => esc_html__( 'You choose the system requirements status.', 'rivendell' ),
- 'id' => 'game-system-requirements-status',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'content',
- ),
- array(
- 'name' => esc_html__( 'System Requirements List', 'rivendell' ),
- 'desc' => esc_html__( 'You can create system requirements list.', 'rivendell' ),
- 'id' => 'game-system-requirements',
- 'tab' => 'content',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'os-name' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'OS', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a OS.', 'rivendell' ),
- 'id' => 'os-name',
- 'taxonomy' => 'os',
- 'type' => 'taxonomy',
- 'field_type' => 'select_advanced',
- ),
- array(
- 'name' => esc_html__( 'List', 'rivendell' ),
- 'id' => 'items',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- 'desc' => esc_html__( 'You can enter a title. For example: Minimum', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'List', 'rivendell' ),
- 'id' => 'items',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- 'desc' => esc_html__( 'You can enter a title. For example: Memory', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Text', 'rivendell' ),
- 'id' => 'text',
- 'type' => 'wysiwyg',
- 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Style', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a style.', 'rivendell' ),
- 'id' => 'style',
- 'type' => 'select_advanced',
- 'std' => 'inline',
- 'options' => array(
- 'inline' => esc_html__( 'Inline', 'rivendell' ),
- 'block' => esc_html__( 'Block', 'rivendell' ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Copyright Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a copyright text.', 'rivendell' ),
- 'id' => 'copyright-text',
- 'type' => 'wysiwyg',
- 'tab' => 'content',
- ),
- /*====== Network ======*/
- array(
- 'name' => esc_html__( 'Facebook', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Facebook URL.', 'rivendell' ),
- 'id' => 'game-facebook-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Twitter', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Twitter URL.', 'rivendell' ),
- 'id' => 'game-twitter-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Google+', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Google+ URL.', 'rivendell' ),
- 'id' => 'game-google-plus-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Pinterest', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Pinterest URL.', 'rivendell' ),
- 'id' => 'game-pinterest-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'LinkedIn', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a LinkedIn URL.', 'rivendell' ),
- 'id' => 'game-linkedin-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'YouTube', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a YouTube URL.', 'rivendell' ),
- 'id' => 'game-youtube-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Vimeo', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Vimeo URL.', 'rivendell' ),
- 'id' => 'game-vimeo-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Tumblr', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Tumblr URL.', 'rivendell' ),
- 'id' => 'game-tumblr-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Instagram', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Instagram URL.', 'rivendell' ),
- 'id' => 'game-instagram-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Flickr', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Flickr URL.', 'rivendell' ),
- 'id' => 'game-flickr-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Dribbble', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Dribbble URL.', 'rivendell' ),
- 'id' => 'game-dribbble-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Reddit', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Reddit URL.', 'rivendell' ),
- 'id' => 'game-reddit-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'SoundCloud', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a SoundCloud URL.', 'rivendell' ),
- 'id' => 'game-soundcloud-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Spotify', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Spotify URL.', 'rivendell' ),
- 'id' => 'game-spotify-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Yahoo', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Yahoo URL.', 'rivendell' ),
- 'id' => 'game-yahoo-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Behance', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Behance URL.', 'rivendell' ),
- 'id' => 'game-behance-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'CodePen', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a CodePen URL.', 'rivendell' ),
- 'id' => 'game-codepen-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Delicious', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Delicious URL.', 'rivendell' ),
- 'id' => 'game-delicious-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'StumbleUpon', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a StumbleUpon URL.', 'rivendell' ),
- 'id' => 'game-stumbleupon-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'DeviantArt', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a DeviantArt URL.', 'rivendell' ),
- 'id' => 'game-deviantart-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Digg', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Digg URL.', 'rivendell' ),
- 'id' => 'game-digg-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'GitHub', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a GitHub URL.', 'rivendell' ),
- 'id' => 'game-github-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Medium', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Medium URL.', 'rivendell' ),
- 'id' => 'game-medium-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Steam', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Steam URL.', 'rivendell' ),
- 'id' => 'game-steam-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'VK', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a VK URL.', 'rivendell' ),
- 'id' => 'game-vk-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( '500px', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a 500px URL.', 'rivendell' ),
- 'id' => 'game-500px-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Foursquare', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Foursquare URL.', 'rivendell' ),
- 'id' => 'game-foursquare-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Slack', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Slack URL.', 'rivendell' ),
- 'id' => 'game-slack-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'WhatsApp', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a WhatsApp URL.', 'rivendell' ),
- 'id' => 'game-whatsapp-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Skype', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Skype URL.', 'rivendell' ),
- 'id' => 'game-skype-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Twitch', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a Twitch URL.', 'rivendell' ),
- 'id' => 'game-twitch-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'PayPal', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a PayPal URL.', 'rivendell' ),
- 'id' => 'game-paypal-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Official Site', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a official site URL.', 'rivendell' ),
- 'id' => 'game-official-site-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- array(
- 'name' => esc_html__( 'Custom Site', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a custom site URL.', 'rivendell' ),
- 'id' => 'game-custom-site-url',
- 'type' => 'text',
- 'tab' => 'network',
- ),
- /*====== Sales ======*/
- array(
- 'name' => esc_html__( 'Prices', 'rivendell' ),
- 'desc' => esc_html__( 'You choose status of the price list.', 'rivendell' ),
- 'id' => 'price-list-status',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'sales',
- ),
- array(
- 'name' => esc_html__( 'Main Price', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter main price for game listing elements.', 'rivendell' ),
- 'id' => 'game-main-price',
- 'type' => 'text',
- 'tab' => 'sales',
- ),
- array(
- 'name' => esc_html__( 'Main Price Currency', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter currency of main price for game listing elements. Example: $', 'rivendell' ),
- 'id' => 'game-main-price-currency',
- 'type' => 'text',
- 'tab' => 'sales',
- ),
- array(
- 'name' => esc_html__( 'Price List', 'rivendell' ),
- 'desc' => esc_html__( 'You can create a price list.', 'rivendell' ),
- 'id' => 'game-price-list',
- 'tab' => 'sales',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'type' => 'heading',
- 'name' => esc_html__( 'General', 'rivendell' ),
- 'desc' => esc_html__( 'You can edit general settings.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Type', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a type.', 'rivendell' ),
- 'id' => 'sales-type',
- 'type' => 'radio',
- 'std' => 'woocommerce',
- 'options' => array(
- 'woocommerce' => esc_html__( 'WooCommerce', 'rivendell' ),
- 'external-link' => esc_html__( 'External Link', 'rivendell' ),
- 'contact-form' => esc_html__( 'Contact Form', 'rivendell' ),
- ),
- ),
- array(
- 'name' => esc_html__( 'WooCommerce Product', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a WooCommerce product.', 'rivendell' ),
- 'id' => 'woocommerce-product',
- 'post_type' => 'product',
- 'type' => 'post',
- 'field_type' => 'select_advanced',
- 'visible' => array( 'sales-type', '=', array( 'woocommerce' ) ),
- ),
- array(
- 'name' => esc_html__( 'Platform', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a platform.', 'rivendell' ),
- 'id' => 'platform',
- 'taxonomy' => 'platform',
- 'type' => 'taxonomy',
- 'field_type' => 'select_advanced',
- 'multiple' => true,
- ),
- array(
- 'name' => esc_html__( 'Price', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a price.', 'rivendell' ),
- 'id' => 'price',
- 'type' => 'text',
- 'hidden' => array( 'sales-type', '=', array( 'woocommerce' ) ),
- ),
- array(
- 'name' => esc_html__( 'Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a description text.', 'rivendell' ),
- 'id' => 'text',
- 'type' => 'wysiwyg',
- ),
- array(
- 'type' => 'heading',
- 'name' => esc_html__( 'Purchase Button', 'rivendell' ),
- 'desc' => esc_html__( 'You can edit purchase button.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Purchase Button Target', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a target type.', 'rivendell' ),
- 'id' => 'button-target',
- 'type' => 'select_advanced',
- 'std' => 'self',
- 'options' => array(
- '_self' => esc_html__( 'Self', 'rivendell' ),
- '_blank' => esc_html__( 'Blank', 'rivendell' ),
- ),
- 'visible' => array( 'sales-type', '=', array( 'external-link' ) ),
- ),
- array(
- 'name' => esc_html__( 'Purchase Button Link', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a button link.', 'rivendell' ),
- 'id' => 'button-link',
- 'type' => 'text',
- 'visible' => array( 'sales-type', '=', array( 'external-link' ) ),
- ),
- array(
- 'name' => esc_html__( 'Purchase Button Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a button text. Default: Buy Now', 'rivendell' ),
- 'id' => 'button-text',
- 'type' => 'text',
- 'visible' => array( 'sales-type', 'in', array( 'woocommerce', 'external-link', 'contact-form' ) ),
- ),
- array(
- 'type' => 'heading',
- 'name' => esc_html__( 'Details Button', 'rivendell' ),
- 'desc' => esc_html__( 'You can edit details button.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Details Button Type', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a type for details button', 'rivendell' ),
- 'id' => 'details-button-type',
- 'type' => 'select_advanced',
- 'std' => 'self',
- 'options' => array(
- 'popup' => esc_html__( 'Popup', 'rivendell' ),
- 'blank-link' => esc_html__( 'Blank Link', 'rivendell' ),
- 'self-link' => esc_html__( 'Self Link', 'rivendell' ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Details Button Link', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a link for details button.', 'rivendell' ),
- 'id' => 'details-button-link',
- 'type' => 'text',
- 'visible' => array( 'details-button-type', 'in', array( 'blank-link', 'self-link' ) ),
- ),
- array(
- 'name' => esc_html__( 'Details Button Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a text for details button. Default: Details', 'rivendell' ),
- 'id' => 'details-button-text',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Content for Popup Details', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a description text for popup details.', 'rivendell' ),
- 'id' => 'details-popup-content',
- 'type' => 'wysiwyg',
- ),
- array(
- 'type' => 'heading',
- 'name' => esc_html__( 'Contact Form', 'rivendell' ),
- 'desc' => esc_html__( 'You can edit contact form settings.', 'rivendell' ),
- 'visible' => array( 'sales-type', '=', array( 'contact-form' ) ),
- ),
- array(
- 'name' => esc_html__( 'Contact Form', 'rivendell' ),
- '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' ),
- 'id' => 'contact-form',
- 'type' => 'text',
- 'visible' => array( 'sales-type', '=', array( 'contact-form' ) ),
- ),
- array(
- 'name' => esc_html__( 'Working Style', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a working style for contact form.', 'rivendell' ),
- 'id' => 'working-style',
- 'type' => 'select_advanced',
- 'std' => 'style-1',
- 'options' => array(
- 'style-1' => esc_html__( 'Open After Click the Purchase Button', 'rivendell' ),
- 'style-2' => esc_html__( 'Open as Automatic', 'rivendell' ),
- ),
- 'visible' => array( 'sales-type', '=', array( 'contact-form' ) ),
- ),
- array(
- 'type' => 'heading',
- 'name' => esc_html__( 'Media', 'rivendell' ),
- 'desc' => esc_html__( 'You can edit media settings.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Images', 'rivendell' ),
- 'desc' => esc_html__( 'You can create a gallery.', 'rivendell' ),
- 'id' => 'image-gallery',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_status' => 'false',
- 'image_size' => 'thumbnail',
- ),
- array(
- 'name' => esc_html__( 'Background Image', 'rivendell' ),
- 'desc' => esc_html__( 'You can upload a background image.', 'rivendell' ),
- 'id' => 'bg-image',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_status' => 'false',
- 'image_size' => 'thumbnail',
- 'max_file_uploads' => 1,
- ),
- ),
- ),
- /*====== Review ======*/
- array(
- 'name' => esc_html__( 'Review', 'rivendell' ),
- 'desc' => esc_html__( 'You choose the review status from this post.', 'rivendell' ),
- 'id' => 'review-status',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'review',
- ),
- array(
- 'name' => esc_html__( 'Review', 'rivendell' ),
- 'desc' => esc_html__( 'You can create a review list.', 'rivendell' ),
- 'id' => 'review',
- 'tab' => 'review',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'review-title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
- 'id' => 'review-title',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
- 'id' => 'review-text',
- 'type' => 'textarea',
- ),
- array(
- 'name' => esc_html__( 'Total Score', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a total score. For example: 7.2', 'rivendell' ),
- 'id' => 'review-score',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'List', 'rivendell' ),
- 'id' => 'items',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Style Type', 'rivendell' ),
- 'id' => 'style-type',
- 'type' => 'radio',
- 'std' => 'progress-bar',
- 'options' => array(
- 'progress-bar' => esc_html__( 'Progress Bar', 'rivendell' ),
- 'star' => esc_html__( 'Star', 'rivendell' ),
- ),
- 'desc' => esc_html__( 'You can choose a style.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Score Type', 'rivendell' ),
- 'placeholder' => esc_html__( 'Score Type', 'rivendell' ),
- 'id' => 'score-type',
- 'type' => 'select',
- 'options' => array(
- 'score-100' => esc_html__( 'Scoring Over 100', 'rivendell' ),
- 'score-10' => esc_html__( 'Scoring Over 10', 'rivendell' ),
- 'score-5' => esc_html__( 'Scoring Over 5', 'rivendell' ),
- ),
- 'desc' => esc_html__( 'You can choose a score type. If you use star type, you should choose scoring over 5 or 10.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Score', 'rivendell' ),
- 'id' => 'score',
- 'type' => 'text',
- 'desc' => esc_html__( 'You can enter a score. For example: 90, 50 or 5', 'rivendell' ),
- ),
- ),
- ),
- ),
- ),
- array(
- 'name' => esc_html__( 'Analysis', 'rivendell' ),
- 'desc' => esc_html__( 'You choose the analysis status from this post.', 'rivendell' ),
- 'id' => 'analysis-status',
- 'type' => 'checkbox',
- 'std' => 0,
- 'tab' => 'review',
- ),
- array(
- 'name' => esc_html__( 'Analysis', 'rivendell' ),
- 'desc' => esc_html__( 'You can create a analysis. This is a comparison table, for example The Good vs. The Bad.', 'rivendell' ),
- 'id' => 'analysis',
- 'tab' => 'review',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'Text', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
- 'id' => 'text',
- 'type' => 'textarea',
- ),
- array(
- 'name' => esc_html__( 'Column', 'rivendell' ),
- 'desc' => esc_html__( 'You can choose a column.', 'rivendell' ),
- 'id' => 'column',
- 'type' => 'select',
- 'placeholder' => esc_html__( 'Score Type', 'rivendell' ),
- 'options' => array(
- 'column-1' => esc_html__( '1', 'rivendell' ),
- 'column-2' => esc_html__( '2', 'rivendell' ),
- 'column-3' => esc_html__( '3', 'rivendell' ),
- ),
- ),
- array(
- 'name' => esc_html__( 'List', 'rivendell' ),
- 'id' => 'analysis-items',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'title' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Title', 'rivendell' ),
- 'desc' => esc_html__( 'You can enter a title.', 'rivendell' ),
- 'id' => 'title',
- 'type' => 'text',
- ),
- array(
- 'name' => esc_html__( 'List', 'rivendell' ),
- 'id' => 'items',
- 'type' => 'group',
- 'sort_clone' => true,
- 'clone' => true,
- 'collapsible' => true,
- 'clone_default' => true,
- 'default_state' => 'collapsed',
- 'save_state' => true,
- 'group_title' => array( 'field' => 'text' ),
- 'fields' => array(
- array(
- 'name' => esc_html__( 'Text', 'rivendell' ),
- 'id' => 'text',
- 'type' => 'text',
- 'desc' => esc_html__( 'You can enter a text.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Icon Color', 'rivendell' ),
- 'id' => 'icon-color',
- 'type' => 'color',
- 'desc' => esc_html__( 'You can choose a custom color.', 'rivendell' ),
- ),
- array(
- 'name' => esc_html__( 'Icon', 'rivendell' ),
- 'id' => 'icon',
- 'type' => 'text',
- 'desc' => esc_html__( 'You can enter a icon name. List of icons is exist in documentation file. Example: edge, automobile, bel-o.', 'rivendell' ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement