Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/redux-fr.../sample
File: sample-config.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* ReduxFramework Sample Config File
[2] Fix | Delete
* For full documentation, please visit: http://devs.redux.io/
[3] Fix | Delete
*
[4] Fix | Delete
* @package Redux Framework
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
defined( 'ABSPATH' ) || exit;
[8] Fix | Delete
[9] Fix | Delete
if ( ! class_exists( 'Redux' ) ) {
[10] Fix | Delete
return;
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
// This is your option name where all the Redux data is stored.
[14] Fix | Delete
$opt_name = 'redux_demo'; // YOU MUST CHANGE THIS. DO NOT USE 'redux_demo' IN YOUR PROJECT!!!
[15] Fix | Delete
[16] Fix | Delete
// Uncomment to disable demo mode.
[17] Fix | Delete
/* Redux::disable_demo(); */ // phpcs:ignore Squiz.PHP.CommentedOutCode
[18] Fix | Delete
[19] Fix | Delete
$dir = __DIR__ . DIRECTORY_SEPARATOR;
[20] Fix | Delete
[21] Fix | Delete
/*
[22] Fix | Delete
* --> Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
[23] Fix | Delete
*/
[24] Fix | Delete
[25] Fix | Delete
// Background Patterns Reader.
[26] Fix | Delete
$sample_patterns_path = Redux_Core::$dir . '../sample/patterns/';
[27] Fix | Delete
$sample_patterns_url = Redux_Core::$url . '../sample/patterns/';
[28] Fix | Delete
$sample_patterns = array();
[29] Fix | Delete
[30] Fix | Delete
if ( is_dir( $sample_patterns_path ) ) {
[31] Fix | Delete
$sample_patterns_dir = opendir( $sample_patterns_path );
[32] Fix | Delete
[33] Fix | Delete
if ( $sample_patterns_dir ) {
[34] Fix | Delete
[35] Fix | Delete
// phpcs:ignore WordPress.CodeAnalysis.AssignmentInCondition
[36] Fix | Delete
while ( false !== ( $sample_patterns_file = readdir( $sample_patterns_dir ) ) ) {
[37] Fix | Delete
if ( stristr( $sample_patterns_file, '.png' ) !== false || stristr( $sample_patterns_file, '.jpg' ) !== false ) {
[38] Fix | Delete
$name = explode( '.', $sample_patterns_file );
[39] Fix | Delete
$name = str_replace( '.' . end( $name ), '', $sample_patterns_file );
[40] Fix | Delete
$sample_patterns[] = array(
[41] Fix | Delete
'alt' => $name,
[42] Fix | Delete
'img' => $sample_patterns_url . $sample_patterns_file,
[43] Fix | Delete
);
[44] Fix | Delete
}
[45] Fix | Delete
}
[46] Fix | Delete
}
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
// Used to except HTML tags in description arguments where esc_html would remove.
[50] Fix | Delete
$kses_exceptions = array(
[51] Fix | Delete
'a' => array(
[52] Fix | Delete
'href' => array(),
[53] Fix | Delete
),
[54] Fix | Delete
'strong' => array(),
[55] Fix | Delete
'br' => array(),
[56] Fix | Delete
'code' => array(),
[57] Fix | Delete
);
[58] Fix | Delete
[59] Fix | Delete
/*
[60] Fix | Delete
* ---> BEGIN ARGUMENTS
[61] Fix | Delete
*/
[62] Fix | Delete
[63] Fix | Delete
/**
[64] Fix | Delete
* All the possible arguments for Redux.
[65] Fix | Delete
* For full documentation on arguments, please refer to: https://devs.redux.io/core/arguments/
[66] Fix | Delete
*/
[67] Fix | Delete
$theme = wp_get_theme(); // For use with some settings. Not necessary.
[68] Fix | Delete
[69] Fix | Delete
// TYPICAL -> Change these values as you need/desire.
[70] Fix | Delete
$args = array(
[71] Fix | Delete
// This is where your data is stored in the database and also becomes your global variable name.
[72] Fix | Delete
'opt_name' => $opt_name,
[73] Fix | Delete
[74] Fix | Delete
// Name that appears at the top of your panel.
[75] Fix | Delete
'display_name' => $theme->get( 'Name' ),
[76] Fix | Delete
[77] Fix | Delete
// Version that appears at the top of your panel.
[78] Fix | Delete
'display_version' => $theme->get( 'Version' ),
[79] Fix | Delete
[80] Fix | Delete
// Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only).
[81] Fix | Delete
'menu_type' => 'menu',
[82] Fix | Delete
[83] Fix | Delete
// Show the sections below the admin menu item or not.
[84] Fix | Delete
'allow_sub_menu' => true,
[85] Fix | Delete
[86] Fix | Delete
// The text to appear in the admin menu.
[87] Fix | Delete
'menu_title' => esc_html__( 'Sample Options', 'your-textdomain-here' ),
[88] Fix | Delete
[89] Fix | Delete
// The text to appear on the page title.
[90] Fix | Delete
'page_title' => esc_html__( 'Sample Options', 'your-textdomain-here' ),
[91] Fix | Delete
[92] Fix | Delete
// Disable to create your own Google fonts loader.
[93] Fix | Delete
'disable_google_fonts_link' => false,
[94] Fix | Delete
[95] Fix | Delete
// Show the panel pages on the admin bar.
[96] Fix | Delete
'admin_bar' => true,
[97] Fix | Delete
[98] Fix | Delete
// Icon for the admin bar menu.
[99] Fix | Delete
'admin_bar_icon' => 'dashicons-portfolio',
[100] Fix | Delete
[101] Fix | Delete
// Priority for the admin bar menu.
[102] Fix | Delete
'admin_bar_priority' => 50,
[103] Fix | Delete
[104] Fix | Delete
// Sets a different name for your global variable other than the opt_name.
[105] Fix | Delete
'global_variable' => $opt_name,
[106] Fix | Delete
[107] Fix | Delete
// Show the time the page took to load, etc. (forced on while on localhost or when WP_DEBUG is enabled).
[108] Fix | Delete
'dev_mode' => true,
[109] Fix | Delete
[110] Fix | Delete
// Enable basic customizer support.
[111] Fix | Delete
'customizer' => true,
[112] Fix | Delete
[113] Fix | Delete
// Allow the panel to open expanded.
[114] Fix | Delete
'open_expanded' => false,
[115] Fix | Delete
[116] Fix | Delete
// Disable the save warning when a user changes a field.
[117] Fix | Delete
'disable_save_warn' => false,
[118] Fix | Delete
[119] Fix | Delete
// Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning.
[120] Fix | Delete
'page_priority' => 90,
[121] Fix | Delete
[122] Fix | Delete
// For a full list of options, visit: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters.
[123] Fix | Delete
'page_parent' => 'themes.php',
[124] Fix | Delete
[125] Fix | Delete
// Permissions needed to access the options panel.
[126] Fix | Delete
'page_permissions' => 'manage_options',
[127] Fix | Delete
[128] Fix | Delete
// Specify a custom URL to an icon.
[129] Fix | Delete
'menu_icon' => '',
[130] Fix | Delete
[131] Fix | Delete
// Force your panel to always open to a specific tab (by id).
[132] Fix | Delete
'last_tab' => '',
[133] Fix | Delete
[134] Fix | Delete
// Icon displayed in the admin panel next to your menu_title.
[135] Fix | Delete
'page_icon' => 'icon-themes',
[136] Fix | Delete
[137] Fix | Delete
// Page slug used to denote the panel, will be based off page title, then menu title, then opt_name if not provided.
[138] Fix | Delete
'page_slug' => $opt_name,
[139] Fix | Delete
[140] Fix | Delete
// On load save the defaults to DB before user clicks save.
[141] Fix | Delete
'save_defaults' => true,
[142] Fix | Delete
[143] Fix | Delete
// Display the default value next to each field when not set to the default value.
[144] Fix | Delete
'default_show' => false,
[145] Fix | Delete
[146] Fix | Delete
// What to print by the field's title if the value shown is default.
[147] Fix | Delete
'default_mark' => '*',
[148] Fix | Delete
[149] Fix | Delete
// Shows the Import/Export panel when not used as a field.
[150] Fix | Delete
'show_import_export' => true,
[151] Fix | Delete
[152] Fix | Delete
// The time transients will expire when the 'database' arg is set.
[153] Fix | Delete
'transient_time' => 60 * MINUTE_IN_SECONDS,
[154] Fix | Delete
[155] Fix | Delete
// Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output.
[156] Fix | Delete
'output' => true,
[157] Fix | Delete
[158] Fix | Delete
// Allows dynamic CSS to be generated for customizer and google fonts,
[159] Fix | Delete
// but stops the dynamic CSS from going to the page head.
[160] Fix | Delete
'output_tag' => true,
[161] Fix | Delete
[162] Fix | Delete
// Disable the footer credit of Redux. Please leave if you can help it.
[163] Fix | Delete
'footer_credit' => '',
[164] Fix | Delete
[165] Fix | Delete
// If you prefer not to use the CDN for ACE Editor.
[166] Fix | Delete
// You may download the Redux Vendor Support plugin to run locally or embed it in your code.
[167] Fix | Delete
'use_cdn' => true,
[168] Fix | Delete
[169] Fix | Delete
// Set the theme of the option panel. Use 'wp' to use a more modern style, default is classic.
[170] Fix | Delete
'admin_theme' => 'wp',
[171] Fix | Delete
[172] Fix | Delete
// Enable or disable flyout menus when hovering over a menu with submenus.
[173] Fix | Delete
'flyout_submenus' => true,
[174] Fix | Delete
[175] Fix | Delete
// Mode to display fonts (auto|block|swap|fallback|optional)
[176] Fix | Delete
// See: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display.
[177] Fix | Delete
'font_display' => 'swap',
[178] Fix | Delete
[179] Fix | Delete
// HINTS.
[180] Fix | Delete
'hints' => array(
[181] Fix | Delete
'icon' => 'el el-question-sign',
[182] Fix | Delete
'icon_position' => 'right',
[183] Fix | Delete
'icon_color' => 'lightgray',
[184] Fix | Delete
'icon_size' => 'normal',
[185] Fix | Delete
'tip_style' => array(
[186] Fix | Delete
'color' => 'red',
[187] Fix | Delete
'shadow' => true,
[188] Fix | Delete
'rounded' => false,
[189] Fix | Delete
'style' => '',
[190] Fix | Delete
),
[191] Fix | Delete
'tip_position' => array(
[192] Fix | Delete
'my' => 'top left',
[193] Fix | Delete
'at' => 'bottom right',
[194] Fix | Delete
),
[195] Fix | Delete
'tip_effect' => array(
[196] Fix | Delete
'show' => array(
[197] Fix | Delete
'effect' => 'slide',
[198] Fix | Delete
'duration' => '500',
[199] Fix | Delete
'event' => 'mouseover',
[200] Fix | Delete
),
[201] Fix | Delete
'hide' => array(
[202] Fix | Delete
'effect' => 'slide',
[203] Fix | Delete
'duration' => '500',
[204] Fix | Delete
'event' => 'click mouseleave',
[205] Fix | Delete
),
[206] Fix | Delete
),
[207] Fix | Delete
),
[208] Fix | Delete
[209] Fix | Delete
// FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk.
[210] Fix | Delete
// Possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning!
[211] Fix | Delete
'database' => '',
[212] Fix | Delete
'network_admin' => true,
[213] Fix | Delete
'search' => true,
[214] Fix | Delete
);
[215] Fix | Delete
[216] Fix | Delete
[217] Fix | Delete
// ADMIN BAR LINKS -> Setup custom links in the admin bar menu as external items.
[218] Fix | Delete
// PLEASE CHANGE THESE SETTINGS IN YOUR THEME BEFORE RELEASING YOUR PRODUCT!!
[219] Fix | Delete
// If these are left unchanged, they will not display in your panel!
[220] Fix | Delete
$args['admin_bar_links'][] = array(
[221] Fix | Delete
'id' => 'redux-docs',
[222] Fix | Delete
'href' => '//devs.redux.io/',
[223] Fix | Delete
'title' => __( 'Documentation', 'your-textdomain-here' ),
[224] Fix | Delete
);
[225] Fix | Delete
[226] Fix | Delete
$args['admin_bar_links'][] = array(
[227] Fix | Delete
'id' => 'redux-support',
[228] Fix | Delete
'href' => '//github.com/ReduxFramework/redux-framework/issues',
[229] Fix | Delete
'title' => __( 'Support', 'your-textdomain-here' ),
[230] Fix | Delete
);
[231] Fix | Delete
[232] Fix | Delete
// SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons.
[233] Fix | Delete
// PLEASE CHANGE THESE SETTINGS IN YOUR THEME BEFORE RELEASING YOUR PRODUCT!!
[234] Fix | Delete
// If these are left unchanged, they will not display in your panel!
[235] Fix | Delete
$args['share_icons'][] = array(
[236] Fix | Delete
'url' => '//github.com/ReduxFramework/ReduxFramework',
[237] Fix | Delete
'title' => 'Visit us on GitHub',
[238] Fix | Delete
'icon' => 'el el-github',
[239] Fix | Delete
);
[240] Fix | Delete
$args['share_icons'][] = array(
[241] Fix | Delete
'url' => '//www.facebook.com/pages/Redux-Framework/243141545850368',
[242] Fix | Delete
'title' => 'Like us on Facebook',
[243] Fix | Delete
'icon' => 'el el-facebook',
[244] Fix | Delete
);
[245] Fix | Delete
$args['share_icons'][] = array(
[246] Fix | Delete
'url' => '//twitter.com/reduxframework',
[247] Fix | Delete
'title' => 'Follow us on Twitter',
[248] Fix | Delete
'icon' => 'el el-twitter',
[249] Fix | Delete
);
[250] Fix | Delete
$args['share_icons'][] = array(
[251] Fix | Delete
'url' => '//www.linkedin.com/company/redux-framework',
[252] Fix | Delete
'title' => 'Find us on LinkedIn',
[253] Fix | Delete
'icon' => 'el el-linkedin',
[254] Fix | Delete
);
[255] Fix | Delete
[256] Fix | Delete
// Panel Intro text -> before the form.
[257] Fix | Delete
if ( ! isset( $args['global_variable'] ) || false !== $args['global_variable'] ) {
[258] Fix | Delete
if ( ! empty( $args['global_variable'] ) ) {
[259] Fix | Delete
$v = $args['global_variable'];
[260] Fix | Delete
} else {
[261] Fix | Delete
$v = str_replace( '-', '_', $args['opt_name'] );
[262] Fix | Delete
}
[263] Fix | Delete
[264] Fix | Delete
// translators: Panel opt_name.
[265] Fix | Delete
$args['intro_text'] = '<p>' . sprintf( esc_html__( 'Did you know that Redux sets a global variable for you? To access any of your saved options from within your code you can use your global variable: $%1$s', 'your-textdomain-here' ), '<strong>' . $v . '</strong>' ) . '<p>';
[266] Fix | Delete
} else {
[267] Fix | Delete
$args['intro_text'] = '<p>' . esc_html__( 'This text is displayed above the options panel. It isn\'t required, but more info is always better! The intro_text field accepts all HTML.', 'your-textdomain-here' ) . '</p>';
[268] Fix | Delete
}
[269] Fix | Delete
[270] Fix | Delete
// Add content after the form.
[271] Fix | Delete
$args['footer_text'] = '<p>' . esc_html__( 'This text is displayed below the options panel. It isn\'t required, but more info is always better! The footer_text field accepts all HTML.', 'your-textdomain-here' ) . '</p>';
[272] Fix | Delete
[273] Fix | Delete
Redux::set_args( $opt_name, $args );
[274] Fix | Delete
[275] Fix | Delete
/*
[276] Fix | Delete
* ---> END ARGUMENTS
[277] Fix | Delete
*/
[278] Fix | Delete
[279] Fix | Delete
/*
[280] Fix | Delete
* ---> START HELP TABS
[281] Fix | Delete
*/
[282] Fix | Delete
$help_tabs = array(
[283] Fix | Delete
array(
[284] Fix | Delete
'id' => 'redux-help-tab-1',
[285] Fix | Delete
'title' => esc_html__( 'Theme Information 1', 'your-textdomain-here' ),
[286] Fix | Delete
'content' => '<p>' . esc_html__( 'This is the tab content, HTML is allowed.', 'your-textdomain-here' ) . '</p>',
[287] Fix | Delete
),
[288] Fix | Delete
array(
[289] Fix | Delete
'id' => 'redux-help-tab-2',
[290] Fix | Delete
'title' => esc_html__( 'Theme Information 2', 'your-textdomain-here' ),
[291] Fix | Delete
'content' => '<p>' . esc_html__( 'This is the tab content, HTML is allowed.', 'your-textdomain-here' ) . '</p>',
[292] Fix | Delete
),
[293] Fix | Delete
);
[294] Fix | Delete
Redux::set_help_tab( $opt_name, $help_tabs );
[295] Fix | Delete
[296] Fix | Delete
// Set the help sidebar.
[297] Fix | Delete
$content = '<p>' . esc_html__( 'This is the sidebar content, HTML is allowed.', 'your-textdomain-here' ) . '</p>';
[298] Fix | Delete
[299] Fix | Delete
Redux::set_help_sidebar( $opt_name, $content );
[300] Fix | Delete
[301] Fix | Delete
/*
[302] Fix | Delete
* <--- END HELP TABS
[303] Fix | Delete
*/
[304] Fix | Delete
[305] Fix | Delete
/*
[306] Fix | Delete
* ---> START SECTIONS
[307] Fix | Delete
*/
[308] Fix | Delete
[309] Fix | Delete
// -> START Basic Fields
[310] Fix | Delete
Redux::set_section(
[311] Fix | Delete
$opt_name,
[312] Fix | Delete
array(
[313] Fix | Delete
'title' => esc_html__( 'Basic Fields', 'your-textdomain-here' ),
[314] Fix | Delete
'id' => 'basic',
[315] Fix | Delete
'desc' => esc_html__( 'These are really basic fields!', 'your-textdomain-here' ),
[316] Fix | Delete
'customizer_width' => '400px',
[317] Fix | Delete
'icon' => 'el el-home',
[318] Fix | Delete
)
[319] Fix | Delete
);
[320] Fix | Delete
[321] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/basic-fields/checkbox.php';
[322] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/basic-fields/radio.php';
[323] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/basic-fields/sortable.php';
[324] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/basic-fields/text.php';
[325] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/basic-fields/multi-text.php';
[326] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/basic-fields/password.php';
[327] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/basic-fields/textarea.php';
[328] Fix | Delete
[329] Fix | Delete
// -> START Editors.
[330] Fix | Delete
Redux::set_section(
[331] Fix | Delete
$opt_name,
[332] Fix | Delete
array(
[333] Fix | Delete
'title' => esc_html__( 'Editors', 'your-textdomain-here' ),
[334] Fix | Delete
'id' => 'editor',
[335] Fix | Delete
'customizer_width' => '500px',
[336] Fix | Delete
'icon' => 'el el-edit',
[337] Fix | Delete
)
[338] Fix | Delete
);
[339] Fix | Delete
[340] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/editors/wordpress-editor.php';
[341] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/editors/ace-editor.php';
[342] Fix | Delete
[343] Fix | Delete
// -> START Color Selection.
[344] Fix | Delete
Redux::set_section(
[345] Fix | Delete
$opt_name,
[346] Fix | Delete
array(
[347] Fix | Delete
'title' => esc_html__( 'Color Selection', 'your-textdomain-here' ),
[348] Fix | Delete
'id' => 'color',
[349] Fix | Delete
'icon' => 'el el-brush',
[350] Fix | Delete
)
[351] Fix | Delete
);
[352] Fix | Delete
[353] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/color-selection/color.php';
[354] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/color-selection/color-gradient.php';
[355] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/color-selection/color-rgba.php';
[356] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/color-selection/link-color.php';
[357] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/color-selection/palette.php';
[358] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/color-selection/color-palette.php';
[359] Fix | Delete
[360] Fix | Delete
// -> START Design Fields.
[361] Fix | Delete
Redux::set_section(
[362] Fix | Delete
$opt_name,
[363] Fix | Delete
array(
[364] Fix | Delete
'title' => esc_html__( 'Design Fields', 'your-textdomain-here' ),
[365] Fix | Delete
'id' => 'design',
[366] Fix | Delete
'icon' => 'el el-wrench',
[367] Fix | Delete
)
[368] Fix | Delete
);
[369] Fix | Delete
[370] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/design-fields/background.php';
[371] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/design-fields/box-shadow.php';
[372] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/design-fields/border.php';
[373] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/design-fields/dimensions.php';
[374] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/design-fields/spacing.php';
[375] Fix | Delete
[376] Fix | Delete
// -> START Media Uploads.
[377] Fix | Delete
Redux::set_section(
[378] Fix | Delete
$opt_name,
[379] Fix | Delete
array(
[380] Fix | Delete
'title' => esc_html__( 'Media Uploads', 'your-textdomain-here' ),
[381] Fix | Delete
'id' => 'media',
[382] Fix | Delete
'icon' => 'el el-picture',
[383] Fix | Delete
)
[384] Fix | Delete
);
[385] Fix | Delete
[386] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/media-uploads/gallery.php';
[387] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/media-uploads/media.php';
[388] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/media-uploads/multi-media.php';
[389] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/media-uploads/slides.php';
[390] Fix | Delete
[391] Fix | Delete
// -> START Presentation Fields.
[392] Fix | Delete
Redux::set_section(
[393] Fix | Delete
$opt_name,
[394] Fix | Delete
array(
[395] Fix | Delete
'title' => esc_html__( 'Presentation Fields', 'your-textdomain-here' ),
[396] Fix | Delete
'id' => 'presentation',
[397] Fix | Delete
'icon' => 'el el-screen',
[398] Fix | Delete
)
[399] Fix | Delete
);
[400] Fix | Delete
[401] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/presentation-fields/divide.php';
[402] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/presentation-fields/content.php';
[403] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/presentation-fields/info.php';
[404] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/presentation-fields/section.php';
[405] Fix | Delete
[406] Fix | Delete
Redux::set_section(
[407] Fix | Delete
$opt_name,
[408] Fix | Delete
array(
[409] Fix | Delete
'id' => 'presentation-divide-sample',
[410] Fix | Delete
'type' => 'divide',
[411] Fix | Delete
)
[412] Fix | Delete
);
[413] Fix | Delete
[414] Fix | Delete
// -> START Switch & Button Set.
[415] Fix | Delete
Redux::set_section(
[416] Fix | Delete
$opt_name,
[417] Fix | Delete
array(
[418] Fix | Delete
'title' => esc_html__( 'Switch / Button Set', 'your-textdomain-here' ),
[419] Fix | Delete
'id' => 'switch_buttonset',
[420] Fix | Delete
'icon' => 'el el-cogs',
[421] Fix | Delete
)
[422] Fix | Delete
);
[423] Fix | Delete
[424] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/switch-button/button-set.php';
[425] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/switch-button/switch.php';
[426] Fix | Delete
[427] Fix | Delete
// -> START Select Fields.
[428] Fix | Delete
Redux::set_section(
[429] Fix | Delete
$opt_name,
[430] Fix | Delete
array(
[431] Fix | Delete
'title' => esc_html__( 'Select Fields', 'your-textdomain-here' ),
[432] Fix | Delete
'id' => 'select',
[433] Fix | Delete
'icon' => 'el el-list-alt',
[434] Fix | Delete
)
[435] Fix | Delete
);
[436] Fix | Delete
[437] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/select-fields/select.php';
[438] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/select-fields/image-select.php';
[439] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/select-fields/select-image.php';
[440] Fix | Delete
[441] Fix | Delete
// -> START Slider / Spinner.
[442] Fix | Delete
Redux::set_section(
[443] Fix | Delete
$opt_name,
[444] Fix | Delete
array(
[445] Fix | Delete
'title' => esc_html__( 'Slider / Spinner', 'your-textdomain-here' ),
[446] Fix | Delete
'id' => 'slider_spinner',
[447] Fix | Delete
'icon' => 'el el-adjust-alt',
[448] Fix | Delete
)
[449] Fix | Delete
);
[450] Fix | Delete
[451] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/slider-spinner/slider.php';
[452] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/slider-spinner/spinner.php';
[453] Fix | Delete
[454] Fix | Delete
// -> START Typography.
[455] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/typography/typography.php';
[456] Fix | Delete
[457] Fix | Delete
// -> START Additional Types.
[458] Fix | Delete
Redux::set_section(
[459] Fix | Delete
$opt_name,
[460] Fix | Delete
array(
[461] Fix | Delete
'title' => esc_html__( 'Additional Types', 'your-textdomain-here' ),
[462] Fix | Delete
'id' => 'additional',
[463] Fix | Delete
'icon' => 'el el-magic',
[464] Fix | Delete
)
[465] Fix | Delete
);
[466] Fix | Delete
[467] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/additional-types/date.php';
[468] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/additional-types/date-time-picker.php';
[469] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/additional-types/sorter.php';
[470] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/additional-types/raw.php';
[471] Fix | Delete
[472] Fix | Delete
Redux::set_section(
[473] Fix | Delete
$opt_name,
[474] Fix | Delete
array(
[475] Fix | Delete
'title' => esc_html__( 'Advanced Features', 'your-textdomain-here' ),
[476] Fix | Delete
'icon' => 'el el-thumbs-up',
[477] Fix | Delete
)
[478] Fix | Delete
);
[479] Fix | Delete
[480] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/advanced-features/callback.php';
[481] Fix | Delete
[482] Fix | Delete
// -> START Validation.
[483] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/advanced-features/field-validation.php';
[484] Fix | Delete
[485] Fix | Delete
// -> START Sanitizing.
[486] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/advanced-features/field-sanitizing.php';
[487] Fix | Delete
[488] Fix | Delete
// -> START Required.
[489] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/advanced-features/field-required-linking.php';
[490] Fix | Delete
[491] Fix | Delete
require_once Redux_Core::$dir . '../sample/sections/advanced-features/wpml-integration.php';
[492] Fix | Delete
[493] Fix | Delete
// -> START Disabling.
[494] Fix | Delete
Redux::set_section(
[495] Fix | Delete
$opt_name,
[496] Fix | Delete
array(
[497] Fix | Delete
'title' => esc_html__( 'Disabling', 'your-textdomain-here' ),
[498] Fix | Delete
'icon' => 'el el-lock',
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function