<?php
	// Create a section.
	CSF::createSection(
		$prefix,
		[
			'title'  => __( 'Topic Replies', 'forumax' ),
			'icon'   => 'dashicons dashicons-format-chat',
			'fields' => [
			[
				'id'       => 'is_ajax_reply',
				'type'     => 'switcher',
				'default'  => false,
				'title'    => __( 'AJAX Reply', 'forumax' ),
				'subtitle' => __( 'Enable instant reply submission without page reload. Replies appear in real-time via AJAX.', 'forumax' ),
				'class'    => 'st-promax-notice'
			],
				[
					'id'       => 'is_bbpc_insert_media',
					'type'     => 'switcher',
					'default'  => false,
					'title'    => __( 'Insert Media', 'forumax' ),
					'subtitle' => __( 'Enable/Disable the custom image insert button with upload & URL modal for editors.', 'forumax' ),
					'class'   	 => 'st-pro-notice'
				],				
				[
					'id'       => 'is_auto_approval_replies',
					'type'     => 'switcher',
					'default'  => false,
					'title'    => __( 'Auto Approval', 'forumax' ),
					'subtitle' => __( 'Enable/ Disable Auto Approval feature.', 'forumax' ),
					'class'    => 'st-pro-notice'
				],
				[
					'id'         => 'is_attachment_replies',
					'type'       => 'button_set',
					'title'    	 => __( 'Replies with Attachments', 'forumax' ),
					'subtitle' 	 => __( 'Approve or Unapprove if attachment is added with the reply', 'forumax' ),
					'class'    	 => 'st-pro-notice',
					'options'    => array(
						'1'   	 => 'Approve',
						'0' 	 => 'Unapprove',
					),
					'default'    => '1',
					'dependency' => [ 'is_auto_approval_replies', '==', 'true', ],
				],
				[
					'id'       => 'is_private_replies',
					'type'     => 'switcher',
					'default'  => 1,
					'title'    => __( 'Private Replies', 'forumax' ),
					'subtitle' => __( 'Enable/ Disable Private Replies feature.', 'forumax' ),
				],
				[
					'id'       	 => 'anonymous_reply',
					'type'     	 => 'switcher',
					'title'    	 => __( 'Anonymous Reply', 'forumax' ),
					'subtitle' 	 => __( 'Allow anonymous to reply a topic.', 'forumax' ),			
					'class'   	 => 'st-pro-notice'
				],
				[
					'id'       	 => 'anonymous_reply_label',
					'type'     	 => 'text',
					'title'    	 => __( 'Anonymous Label', 'forumax' ),
					'default' 	 => __( 'Post Anonymously', 'forumax' ),
					'dependency' => [ 'anonymous_reply', '==', 'true', ],	
					'class'   	 => 'st-pro-notice'
				],						
				[
					'id'       => 'replies_react_voting',
					'type'     => 'switcher',
					'title'    => __( 'React Reactions', 'forumax' ),
					'subtitle' => __( 'To enable or disable the react reactions.', 'forumax' ),
					'class'    => 'st-promax-notice',
					'default'  => false
				],				
				[
					'id'       => 'replies_react_label',
					'type'     => 'text',
					'title'    => __( 'React Button Text', 'forumax' ),
					'default'  => __( 'React', 'forumax' ),
					'class'    => 'st-promax-notice',
					'dependency' => [ 'replies_react_voting', '==', 'true', ]
				],				
				[
					'id' 		 => 'reply_timeline_enabled',
					'type' 		 => 'switcher',
					'title' 	 => __( 'Reply Timeline Navigation', 'forumax' ),
					'subtitle' 	 => __( 'Enable/Disable Discourse-style vertical timeline navigation for replies.', 'forumax' ),
					'class' 	 => 'st-promax-notice',
					'default' 	 => false
				],
				[
					'id'       => 'frmx_nested_replies',
					'type'     => 'switcher',
					'title'    => __( 'Nested Replies', 'forumax' ),
					'subtitle' => __( 'Enable threaded / nested replies so users can reply directly to a specific reply.', 'forumax' ),
					'class'    => 'st-promax-notice',
					'default'  => false,
				],
				[
					'id'         => 'frmx_nested_replies_depth',
					'type'       => 'select',
					'title'      => __( 'Nesting Depth', 'forumax' ),
					'subtitle'   => __( 'Maximum depth of nested replies.', 'forumax' ),
					'class'      => 'st-promax-notice',
					'default'    => '3',
					'options'    => array(
						'2' => __( '2 levels', 'forumax' ),
						'3' => __( '3 levels', 'forumax' ),
						'4' => __( '4 levels', 'forumax' ),
						'5' => __( '5 levels', 'forumax' ),
					),
					'dependency' => array( 'frmx_nested_replies', '==', 'true' ),
				],
			]
		]
	);