PHP 7.4.33
Preview: global-settings.php Size: 14.70 KB
/var/www/globalinfrastructuresite.wpress.dk/httpdocs/wp-content/plugins/bb-plugin/includes/global-settings.php
<?php

FLBuilder::register_settings_form('global', array(
	'title' => __( 'Global Settings', 'fl-builder' ),
	'tabs'  => array(
		'general' => array(
			'title'       => __( 'General', 'fl-builder' ),
			'description' => __( '<strong>Note</strong>: These settings apply to all posts and pages.', 'fl-builder' ),
			'sections'    => array(
				'page_heading' => array(
					'title'  => __( 'Default Page Heading', 'fl-builder' ),
					'fields' => array(
						'show_default_heading'     => array(
							'type'    => 'select',
							'label'   => _x( 'Show', 'General settings form field label. Intended meaning: "Show page heading?"', 'fl-builder' ),
							'default' => '0',
							'options' => array(
								'0' => __( 'No', 'fl-builder' ),
								'1' => __( 'Yes', 'fl-builder' ),
							),
							'toggle'  => array(
								'0' => array(
									'fields' => array( 'default_heading_selector' ),
								),
							),
							'help'    => __( 'Choosing no will hide the default theme heading for the "Page" post type. You will also be required to enter some basic CSS for this to work if you choose no.', 'fl-builder' ),
						),
						'default_heading_selector' => array(
							'type'    => 'text',
							'label'   => __( 'CSS Selector', 'fl-builder' ),
							'default' => '.fl-post-header',
							'help'    => __( 'Enter a CSS selector for the default page heading to hide it.', 'fl-builder' ),
						),
					),
				),
				'row_spacing'  => array(
					'title'  => __( 'Row Spacing', 'fl-builder' ),
					'fields' => array(
						'row_margins'           => array(
							'type'       => 'dimension',
							'label'      => __( 'Margins', 'fl-builder' ),
							'slider'     => true,
							'default'    => '0',
							'units'      => array(
								'px',
								'%',
							),
							'responsive' => array(
								'default'      => array(
									'default'    => '0',
									'large'      => '',
									'medium'     => '',
									'responsive' => '',
								),
								'default_unit' => array(
									'default'    => 'px',
									'large'      => 'px',
									'medium'     => 'px',
									'responsive' => 'px',
								),
								'placeholder'  => array(
									'default'    => array(
										'top'    => '0',
										'right'  => '0',
										'bottom' => '0',
										'left'   => '0',
									),
									'large'      => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'medium'     => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'responsive' => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
								),
							),
						),
						'row_padding'           => array(
							'type'       => 'dimension',
							'label'      => __( 'Padding', 'fl-builder' ),
							'slider'     => true,
							'default'    => '20',
							'units'      => array(
								'px',
								'em',
								'%',
								'vw',
								'vh',
							),
							'responsive' => array(
								'default_unit' => array(
									'default'    => 'px',
									'large'      => 'px',
									'medium'     => 'px',
									'responsive' => 'px',
								),
								'default'      => array(
									'default'    => '20',
									'large'      => '',
									'medium'     => '',
									'responsive' => '',
								),
								'placeholder'  => array(
									'default'    => array(
										'top'    => '0',
										'right'  => '0',
										'bottom' => '0',
										'left'   => '0',
									),
									'large'      => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'medium'     => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'responsive' => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
								),
							),
						),
						'top_level_box_spacing' => array(
							'type'    => 'select',
							'label'   => __( 'Apply to Box', 'fl-builder' ),
							'help'    => __( 'When enabled, global row spacing will also be applied to Box modules in the top-level layout.', 'fl-builder' ),
							'default' => '1',
							'options' => array(
								'1' => __( 'Yes', 'fl-builder' ),
								'0' => __( 'No', 'fl-builder' ),
							),
						),
					),
				),
				'rows'         => array(
					'title'  => __( 'Row Defaults', 'fl-builder' ),
					'fields' => array(
						'row_width'                 => array(
							'type'       => 'unit',
							'label'      => __( 'Max Width', 'fl-builder' ),
							'maxlength'  => '4',
							'size'       => '5',
							'sanitize'   => 'absint',
							'help'       => __( 'All rows will default to this width. You can override this and make a row full width in the settings for each row.', 'fl-builder' ),
							'units'      => array(
								'px',
								'vw',
								'%',
							),
							'responsive' => array(
								'default' => array(
									'default'    => '1100',
									'large'      => '',
									'medium'     => '',
									'responsive' => '',
								),
							),
						),
						'row_width_default'         => array(
							'type'    => 'select',
							'label'   => __( 'Default Row Width', 'fl-builder' ),
							'default' => 'fixed',
							'options' => array(
								'fixed' => __( 'Fixed', 'fl-builder' ),
								'full'  => __( 'Full Width', 'fl-builder' ),
							),
							'toggle'  => array(
								'full' => array(
									'fields' => array( 'row_content_width_default' ),
								),
							),
						),
						'row_content_width_default' => array(
							'type'    => 'select',
							'label'   => __( 'Default Row Content Width', 'fl-builder' ),
							'default' => 'fixed',
							'options' => array(
								'fixed' => __( 'Fixed', 'fl-builder' ),
								'full'  => __( 'Full Width', 'fl-builder' ),
							),
						),
					),
				),
				'columns'      => array(
					'title'  => __( 'Column Spacing', 'fl-builder' ),
					'fields' => array(
						'column_margins' => array(
							'type'       => 'dimension',
							'label'      => __( 'Margins', 'fl-builder' ),
							'slider'     => true,
							'default'    => '',
							'units'      => array(
								'px',
								'%',
							),
							'responsive' => array(
								'default'      => array(
									'default'    => '',
									'large'      => '',
									'medium'     => '',
									'responsive' => '',
								),
								'default_unit' => array(
									'default'    => 'px',
									'medium'     => 'px',
									'responsive' => 'px',
								),
								'placeholder'  => array(
									'default'    => array(
										'top'    => '0',
										'right'  => '0',
										'bottom' => '0',
										'left'   => '0',
									),
									'large'      => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'medium'     => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'responsive' => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
								),
							),
						),
						'column_padding' => array(
							'type'       => 'dimension',
							'label'      => __( 'Padding', 'fl-builder' ),
							'slider'     => true,
							'default'    => '',
							'units'      => array(
								'px',
								'em',
								'%',
							),
							'responsive' => array(
								'default_unit' => array(
									'default'    => 'px',
									'medium'     => 'px',
									'large'      => 'px',
									'responsive' => 'px',
								),
								'default'      => array(
									'default'    => '',
									'large'      => '',
									'medium'     => '',
									'responsive' => '',
								),
								'placeholder'  => array(
									'default'    => array(
										'top'    => '0',
										'right'  => '0',
										'bottom' => '0',
										'left'   => '0',
									),
									'large'      => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'medium'     => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'responsive' => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
								),
							),
						),
					),
				),
				'modules'      => array(
					'title'  => __( 'Module Spacing', 'fl-builder' ),
					'fields' => array(
						'module_margins' => array(
							'type'       => 'dimension',
							'label'      => __( 'Margins', 'fl-builder' ),
							'slider'     => true,
							'default'    => '20',
							'units'      => array(
								'px',
								'%',
							),
							'responsive' => array(
								'default_unit' => array(
									'default'    => 'px',
									'large'      => 'px',
									'medium'     => 'px',
									'responsive' => 'px',
								),
								'default'      => array(
									'default'    => '20',
									'large'      => '',
									'medium'     => '',
									'responsive' => '',
								),
								'placeholder'  => array(
									'default'    => array(
										'top'    => '0',
										'right'  => '0',
										'bottom' => '0',
										'left'   => '0',
									),

									'large'      => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'medium'     => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
									'responsive' => array(
										'top'    => '',
										'right'  => '',
										'bottom' => '',
										'left'   => '',
									),
								),
							),
						),
					),
				),
				'responsive'   => array(
					'title'  => __( 'Responsive Layout', 'fl-builder' ),
					'fields' => array(
						'responsive_enabled'       => array(
							'type'    => 'select',
							'label'   => _x( 'Enabled', 'General settings form field label. Intended meaning: "Responsive layout enabled?"', 'fl-builder' ),
							'default' => '1',
							'options' => array(
								'0' => __( 'No', 'fl-builder' ),
								'1' => __( 'Yes', 'fl-builder' ),
							),
							'toggle'  => array(
								'1' => array(
									'fields' => array( 'auto_spacing', 'responsive_breakpoint', 'medium_breakpoint', 'large_breakpoint', 'responsive_col_max_width' ),
									'fields' => array( 'auto_spacing', 'responsive_breakpoint', 'medium_breakpoint', 'large_breakpoint', 'responsive_col_max_width', 'responsive_preview' ),
								),
							),
						),
						'auto_spacing'             => array(
							'type'    => 'select',
							'label'   => _x( 'Enable Auto Spacing', 'General settings form field label. Intended meaning: "Enable auto spacing for responsive layouts?"', 'fl-builder' ),
							'default' => '1',
							'options' => array(
								'0' => __( 'No', 'fl-builder' ),
								'1' => __( 'Yes', 'fl-builder' ),
							),
							'help'    => __( 'When auto spacing is enabled, the builder will automatically adjust the margins and padding in your layout once the small device breakpoint is reached. Most users will want to leave this enabled.', 'fl-builder' ),
						),
						'large_breakpoint'         => array(
							'type'        => 'text',
							'label'       => __( 'Large Device Breakpoint', 'fl-builder' ),
							'default'     => '1200',
							'maxlength'   => '4',
							'size'        => '5',
							'description' => 'px',
							'sanitize'    => 'absint',
							'help'        => __( 'The browser width at which the layout will adjust for large devices.', 'fl-builder' ),
						),
						'medium_breakpoint'        => array(
							'type'        => 'text',
							'label'       => __( 'Medium Device Breakpoint', 'fl-builder' ),
							'default'     => '992',
							'maxlength'   => '4',
							'size'        => '5',
							'description' => 'px',
							'sanitize'    => 'absint',
							'help'        => __( 'The browser width at which the layout will adjust for medium devices such as tablets.', 'fl-builder' ),
						),
						'responsive_breakpoint'    => array(
							'type'        => 'text',
							'label'       => __( 'Small Device Breakpoint', 'fl-builder' ),
							'default'     => '768',
							'maxlength'   => '4',
							'size'        => '5',
							'description' => 'px',
							'sanitize'    => 'absint',
							'help'        => __( 'The browser width at which the layout will adjust for small devices such as phones.', 'fl-builder' ),
						),
						'responsive_preview'       => array(
							'type'    => 'select',
							'label'   => __( 'Use responsive settings in previews?', 'fl-builder' ),
							'default' => '0',
							'options' => array(
								'0' => __( 'No', 'fl-builder' ),
								'1' => __( 'Yes', 'fl-builder' ),
							),
							'help'    => __( 'Preview and responsive editing will use these values when enabled.', 'fl-builder' ),
						),
						'responsive_col_max_width' => array(
							'type'    => 'select',
							'label'   => __( 'Enable Column Max Width', 'fl-builder' ),
							'default' => '1',
							'options' => array(
								'0' => __( 'No', 'fl-builder' ),
								'1' => __( 'Yes', 'fl-builder' ),
							),
							'help'    => __( 'When enabled, columns assigned 50% width or less are limited to max width 400px when screen width reaches or goes below the small device breakpoint.', 'fl-builder' ),
						),
						'responsive_base_fontsize' => array(
							'type'        => 'text',
							'label'       => __( 'Base Font Size', 'fl-builder' ),
							'default'     => '16',
							'maxlength'   => '4',
							'size'        => '5',
							'description' => 'px',
							'sanitize'    => 'absint',
							'help'        => __( 'When typography unit is set to vh/vw this unit will be used to calculate the font size.', 'fl-builder' ),
						),
					),
				),
			),
		),
		'css'     => array(
			'title'    => __( 'CSS', 'fl-builder' ),
			'sections' => array(
				'css' => array(
					'title'  => '',
					'fields' => array(
						'css' => array(
							'type'    => 'code',
							'label'   => '',
							'editor'  => 'css',
							'rows'    => '18',
							'preview' => array(
								'type' => 'none',
							),
						),
					),
				),
			),
		),
		'js'      => array(
			'title'    => __( 'JavaScript', 'fl-builder' ),
			'sections' => array(
				'js' => array(
					'title'  => '',
					'fields' => array(
						'js' => array(
							'type'    => 'code',
							'label'   => '',
							'editor'  => 'javascript',
							'rows'    => '18',
							'preview' => array(
								'type' => 'none',
							),
						),
					),
				),
			),
		),
	),
));

Directory Contents

Dirs: 3 × Files: 99
Name Size Perms Modified Actions
shapes DIR
- drwxr-xr-x 2026-04-29 05:02:47
Edit Download
updater DIR
- drwxr-xr-x 2026-04-29 05:02:47
Edit Download
vendor DIR
- drwxr-xr-x 2026-04-29 05:02:47
Edit Download
2.12 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.95 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.93 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
4.66 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.77 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
858 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
108 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
4.54 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.96 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
8.87 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.47 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.95 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
8.46 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
446 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.93 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
11.15 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
243 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
22.11 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
350 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
11.04 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
410 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
14.44 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
14.70 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.19 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
673 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
908 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.83 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.32 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
430 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
7.63 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
365 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
18.39 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.30 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
36.28 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
5.27 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
734 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.15 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
501 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
902 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
3.04 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
151 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
460 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
597 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
5.12 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
5.43 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.82 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
179 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
679 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.17 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
195 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
3.16 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
431 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
823 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
3.17 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.56 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.93 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
144 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
956 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
380 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.30 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.57 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.35 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
9.61 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
978 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
521 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
3.18 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
775 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
218 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
56 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
5.27 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.58 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.53 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
95 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
665 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.11 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
365 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
973 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
603 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
8.23 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.46 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.58 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
4.71 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.57 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.46 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
325 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
42.26 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
33.02 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
2.43 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.29 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
687 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
13.05 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
6.26 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.34 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
331 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
1.73 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
3.33 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
7.44 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
4.59 KB lrw-r--r-- 2026-04-29 05:02:47
Edit Download
216 B lrw-r--r-- 2026-04-29 05:02:47
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).