local E, L, V, P, G = unpack(ElvUI);
local SLE = E:GetModule('SLE')

local function configTable()
	--Main options group
	E.Options.args.sle.args.help = {
		type = 'group',
		name = L['About/Help']..[[ |TInterface\OptionsFrame\UI-OptionsFrame-NewFeatureIcon:0:0:0:-1|t]],
		order = -5,
		childGroups = 'tab',
		args = {
			about = {
				type = 'group',
				name = L['About'],
				order = 1,
				args = {
					content = {
						order = 1,
						type = 'description',
						fontSize = 'medium',
						name = L["SLE_DESC"],
					},
				},
			},
			faq = {
				type = 'group',
				name = 'FAQ'..[[ |TInterface\OptionsFrame\UI-OptionsFrame-NewFeatureIcon:0:0:0:-1|t]],
				order = 5,
				childGroups = "select",
				args = {
					desc = {
						order = 1,
						type = 'description',
						fontSize = 'medium',
						name = L["FAQ_DESC"],
					},
					elvui = {
						type = 'group',
						order = 1,
						name = "ElvUI",
						args = {
							q1 = {
								type = 'group',
								name = '',
								order = 1,
								guiInline = true,
								args = {
									q = {
										order = 1,
										type = 'description',
										fontSize = 'medium',
										name = L["FAQ_Elv_1"],
									},
								},
							},
							q2 = {
								type = 'group',
								name = '',
								order = 2,
								guiInline = true,
								args = {
									q = {
										order = 1,
										type = 'description',
										fontSize = 'medium',
										name = L["FAQ_Elv_2"],
									},
								},
							},
							q3 = {
								type = 'group',
								name = '',
								order = 3,
								guiInline = true,
								args = {
									q = {
										order = 1,
										type = 'description',
										fontSize = 'medium',
										name = L["FAQ_Elv_3"],
									},
								},
							},
							q4 = {
								type = 'group',
								name = '',
								order = 4,
								guiInline = true,
								args = {
									q = {
										order = 1,
										type = 'description',
										fontSize = 'medium',
										name = L["FAQ_Elv_4"],
									},
								},
							},
						},
					},
					sle = {
						type = 'group',
						order = 1,
						name = "Shadow & Light",
						args = {
							q1 = {
								type = 'group',
								name = '',
								order = 1,
								guiInline = true,
								args = {
									q = {
										order = 1,
										type = 'description',
										fontSize = 'medium',
										name = L["FAQ_sle_1"],
									},
								},
							},
							q2 = {
								type = 'group',
								name = '',
								order = 2,
								guiInline = true,
								args = {
									q = {
										order = 1,
										type = 'description',
										fontSize = 'medium',
										name = L["FAQ_sle_2"],
									},
								},
							},
							q3 = {
								type = 'group',
								name = '',
								order = 3,
								guiInline = true,
								args = {
									q = {
										order = 1,
										type = 'description',
										fontSize = 'medium',
										name = L["FAQ_sle_3"],
									},
								},
							},
							q4 = {
								type = 'group',
								name = '',
								order = 4,
								guiInline = true,
								args = {
									q = {
										order = 1,
										type = 'description',
										fontSize = 'medium',
										name = L["FAQ_sle_4"],
									},
								},
							},
							q5 = {
								type = 'group',
								name = '',
								order = 5,
								guiInline = true,
								args = {
									q = {
										order = 1,
										type = 'description',
										fontSize = 'medium',
										name = L["FAQ_sle_5"],
									},
								},
							},
						},
					},
				},
			},
			links = {
				type = 'group',
				name = L['Links'],
				order = 10,
				args = {
					desc = {
						order = 1,
						type = 'description',
						fontSize = 'medium',
						name = L["LINK_DESC"],
					},
					tukuilink = {
						type = 'input',
						width = 'full',
						name = 'TukUI.org',
						get = function(info) return 'http://www.tukui.org/addons/index.php?act=view&id=42' end,
						order = 2,
					},
					wowilink = {
						type = 'input',
						width = 'full',
						name = 'WoWInterface',
						get = function(info) return 'http://www.wowinterface.com/downloads/info20927-ElvUIShadowLight.html' end,
						order = 3,
					},
					curselink= {
						type = 'input',
						width = 'full',
						name = 'Curse.com',
						get = function(info) return 'http://www.curse.com/addons/wow/shadow-and-light-edit' end,
						order = 4,
					},
					gitlablink = {
						type = 'input',
						width = 'full',
						name = L['GitLab Link / Report Errors'],
						get = function(info) return 'http://git.tukui.org/repooc/elvui-shadowandlight' end,
						order = 5,
					},
				},
			},
			--Credits
			credits = {
				order = 400,
				type = 'group',
				name = L["Credits"],
				args = {
					creditheader = {
						order = 1,
						type = "header",
						name = L["Credits"],
					},
					credits = {
						order = 2,
						type = "description",
						name = L["ELVUI_SLE_CREDITS"]..'\n\n\n'..L["Submodules and Coding:"]..'\n\n'..L["ELVUI_SLE_CODERS"]..'\n\n\n'..L["Other Support:"]..'\n\n'..L["ELVUI_SLE_MISC"],
					},
				},
			},
		},
	}
end

table.insert(E.SLEConfigs, configTable)