ost_type_is_gallery', ), 'fields' => array( array( 'type' => 'toggle', 'name' => 'gallery_post_images_resize', 'label' => esc_html__('Disable height resize for slider', 'rehub-framework'), 'description' => esc_html__('This option disable resize of photo. By default, photos are resized for 400 px height', 'rehub-framework'), ), array( 'type' => 'group', 'repeating' => true, 'name' => 'gallery_post_images', 'title' => esc_html__('Image', 'rehub-framework'), 'fields' => array( array( 'type' => 'upload', 'name' => 'gallery_post_image', 'label' => esc_html__('Add Image', 'rehub-framework'), ), array( 'type' => 'textbox', 'name' => 'gallery_post_image_caption', 'label' => esc_html__('Caption', 'rehub-framework'), ), array( 'type' => 'textbox', 'name' => 'gallery_post_video', 'description' => esc_html__('Insert youtube link of page with video. If you set this field, image and caption will be ignored for this slide', 'rehub-framework'), 'label' => esc_html__('Video Url', 'rehub-framework'), ), ), ), ), ), // review group array( 'type' => 'group', 'repeating' => false, 'length' => 1, 'name' => 'review_post', 'title' => 'Review Post', 'dependency' => array( 'field' => 'rehub_framework_post_type', 'function' => 'rehub_framework_post_type_is_review', ), 'fields' => array( array( 'type' => 'toggle', 'name' => 'rehub_review_slider', 'label' => esc_html__('Add slider of images to top of review page?', 'rehub-framework'), 'default' => '0', ), array( 'type' => 'toggle', 'name' => 'rehub_review_slider_resize', 'label' => esc_html__('Disable height resize for slider', 'rehub-framework'), 'description' => esc_html__('This option disable resize of photo. By default, photos are resized for 400 px height', 'rehub-framework'), 'dependency' => array( 'field' => 'rehub_review_slider', 'function' => 'vp_dep_boolean', ), ), array( 'type' => 'group', 'repeating' => true, 'sortable' => true, 'name' => 'rehub_review_slider_images', 'title' => esc_html__('Images', 'rehub-framework'), 'fields' => array( array( 'type' => 'upload', 'name' => 'review_post_image', 'label' => esc_html__('Add Image', 'rehub-framework'), ), array( 'type' => 'textbox', 'name' => 'review_post_image_caption', 'label' => esc_html__('Caption', 'rehub-framework'), ), array( 'type' => 'textbox', 'name' => 'review_post_image_url', 'label' => esc_html__('Url for image', 'rehub-framework'), ), array( 'type' => 'textbox', 'name' => 'review_post_video', 'description' => esc_html__('Insert youtube link of page with video. If you set this field, image and caption will be ignored for this slide', 'rehub-framework'), 'label' => esc_html__('Video Url', 'rehub-framework'), ), ), 'dependency' => array( 'field' => 'rehub_review_slider', 'function' => 'vp_dep_boolean', ), ), array( 'type' => 'select', 'name' => 'review_post_schema_type', 'label' => esc_html__('Connect review to offer', 'rehub-framework'), 'items' => array( array( 'value' => 'review_post_review_simple', 'label' => esc_html__('No connections', 'rehub-framework'), ), array( 'value' => 'review_woo_product', 'label' => esc_html__('Woocommerce offer review', 'rehub-framework'), ), array( 'value' => 'review_woo_list', 'label' => esc_html__('Woocommerce offers list review', 'rehub-framework'), ), ), 'default' => array( 'review_post_review_simple', ), ), array( 'type' => 'notebox', 'name' => 'offer_add', 'label' => esc_html__('Important', 'rehub-framework'), 'description' => esc_html__('You can connect review with woocommerce product in select above. If you want to add offer directly to post, use Post offer section below or Content Egg Offer module.', 'rehub-framework'), 'status' => 'info', ), array( 'type' => 'group', 'repeating' => false, 'length' => 1, 'name' => 'review_woo_product', 'title' => esc_html__('Woocommerce offer', 'rehub-framework'), 'dependency' => array( 'field' => 'review_post_schema_type', 'function' => 'review_post_schema_type_is_woo', ), 'fields' => array( array( 'type' => 'textbox', 'name' => 'review_woo_link', 'label' => esc_html__('Set woocommerce product', 'rehub-framework'), 'description' => esc_html__('Type name of woocommerce product', 'rehub-framework'), 'default' => '', ), array( 'type' => 'toggle', 'name' => 'review_woo_slider', 'label' => esc_html__('Enable slider', 'rehub-framework'), 'description' => esc_html__('This option enables slider in top of review page with images from woocommerce gallery', 'rehub-framework'), ), array( 'type' => 'toggle', 'name' => 'review_woo_slider_resize', 'label' => esc_html__('Disable height resize for slider', 'rehub-framework'), 'description' => esc_html__('This option disable resize of photo. By default, photos are resized for 400 px height', 'rehub-framework'), 'dependency' => array( 'field' => 'review_woo_slider', 'function' => 'vp_dep_boolean', ), ), array( 'type' => 'toggle', 'name' => 'review_woo_offer_shortcode', 'label' => esc_html__('Enable shortcode inserting', 'rehub-framework'), 'description' => esc_html__('If enable you can insert offer box in any place of content with shortcode [woo_offer_product]. If disable - it will be before review box.', 'rehub-framework'), ), ), ), array( 'type' => 'group', 'repeating' => false, 'length' => 1, 'name' => 'review_woo_list', 'title' => esc_html__('Woocommerce offers list', 'rehub-framework'), 'dependency' => array( 'field' => 'review_post_schema_type', 'function' => 'review_post_schema_type_is_woo_list', ), 'fields' => array( array( 'type' => 'textbox', 'name' => 'review_woo_list_links', 'label' => esc_html__('Set woocommerce products', 'rehub-framework'), 'description' => esc_html__('Type woocommerce names', 'rehub-framework'), ), array( 'type' => 'toggle', 'name' => 'review_woo_list_shortcode', 'label' => esc_html__('Enable shortcode inserting', 'rehub-framework'), 'description' => esc_html__('If enable you can insert offers list in any place of content with shortcode [woo_offer_list]. If disable - it will be before review box.', 'rehub-framework'), ), ), ), array( 'type' => 'textbox', 'name' => 'review_post_heading', 'label' => esc_html__('Review Heading', 'rehub-framework'), 'description' => esc_html__('Short review heading (e.g. Excellent!)', 'rehub-framework'), ), array( 'type' => 'textarea', 'name' => 'review_post_summary_text', 'label' => esc_html__('Summary Text', 'rehub-framework'), ), array( 'type' => 'textarea', 'name' => 'review_post_pros_text', 'label' => esc_html__('PROS. Place each from separate line (optional)', 'rehub-framework'), ), array( 'type' => 'textarea', 'name' => 'review_post_cons_text', 'label' => esc_html__('CONS. Place each from separate line (optional)', 'rehub-framework'), ), array( 'type' => 'toggle', 'name' => 'review_post_product_shortcode', 'label' => esc_html__('Enable shortcode inserting', 'rehub-framework'), 'description' => esc_html__('If enable you can insert review box in any place of content with shortcode [review]. If disable - it will be after content.', 'rehub-framework'), ), array( 'type' => 'slider', 'name' => 'review_post_score_manual', 'label' => esc_html__('Set overall score', 'rehub-framework'), 'description' => esc_html__('Enter overall score of review or leave blank to auto calculation based on criterias score', 'rehub-framework'), 'min' => 0, 'max' => 10, 'step' => 0.5, ), array( 'type' => 'group', 'repeating' => true, 'sortable' => true, 'name' => 'review_post_criteria', 'title' => esc_html__('Review Criterias', 'rehub-framework'), 'fields' => array( array( 'type' => 'textbox', 'name' => 'review_post_name', 'label' => esc_html__('Name', 'rehub-framework'), ), array( 'type' => 'slider', 'name' => 'review_post_score', 'label' => esc_html__('Score', 'rehub-framework'), 'min' => 0, 'max' => 10, 'step' => 0.5, ), ), ), ), ), // music group array( 'type' => 'group', 'repeating' => false, 'length' => 1, 'name' => 'music_post', 'title' => esc_html__('Music Post', 'rehub-framework'), 'dependency' => array( 'field' => 'rehub_framework_post_type', 'function' => 'rehub_framework_post_type_is_music', ), 'fields' => array( array( 'type' => 'radiobutton', 'name' => 'music_post_source', 'label' => esc_html__('Music Source', 'rehub-framework'), 'items' => array( array( 'value' => 'music_post_soundcloud', 'label' => esc_html__('Music from Soundcloud', 'rehub-framework'), ), array( 'value' => 'music_post_spotify', 'label' => esc_html__('Music from Spotify', 'rehub-framework'), ), ), ), array( 'type' => 'textarea', 'name' => 'music_post_soundcloud_embed', 'description' => esc_html__('Insert full Soundcloud embed code.', 'rehub-framework'), 'label' => esc_html__('Soundcloud embed code', 'rehub-framework'), 'dependency' => array( 'field' => 'music_post_source', 'function' => 'rehub_framework_post_music_is_soundcloud', ), ), array( 'type' => 'textbox', 'name' => 'music_post_spotify_embed', 'description' => esc_html__('To get the Spotify Song URI go to Spotify > Right click on the song you want to embed > Click Copy Spotify URI > Paste code in this field.)', 'rehub-framework'), 'label' => esc_html__('Spotify Song URI', 'rehub-framework'), 'dependency' => array( 'field' => 'music_post_source', 'function' => 'rehub_framework_post_music_is_spotify', ), ), ), ), ), ); /** * EOF */Associative array parameters required