Sindbad~EG File Manager
<?php
global $houzez_opt_name;
/* **********************************************************************
* Optimizations
* **********************************************************************/
Redux::setSection( $houzez_opt_name, array(
'title' => esc_html__( 'Optimizations', 'houzez' ),
'id' => 'houzez_optimazation',
'icon' => 'el el-icon-tasks el-icon-small',
'desc' => '',
'fields' => array(
array(
'id' => 'js_all_in_one',
'type' => 'switch',
'title' => esc_html__( 'Combine JS Scripts', 'houzez' ),
'subtitle' => esc_html__( 'Combine all third party js scripts into one file', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'Yes', 'houzez' ),
'off' => esc_html__( 'No', 'houzez' ),
),
array(
'id' => 'css_all_in_one',
'type' => 'switch',
'title' => esc_html__( 'Combine CSS Styles', 'houzez' ),
'subtitle' => esc_html__( 'Combine all css styles into one file', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'Yes', 'houzez' ),
'off' => esc_html__( 'No', 'houzez' ),
),
array(
'id' => 'minify_js',
'type' => 'switch',
'title' => esc_html__( 'Minify JS', 'houzez' ),
'subtitle' => esc_html__( 'Use minify version of js files', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'On', 'houzez' ),
'off' => esc_html__( 'Off', 'houzez' ),
),
array(
'id' => 'minify_css',
'type' => 'switch',
'title' => esc_html__( 'Minify CSS', 'houzez' ),
'subtitle' => esc_html__( 'By default the theme loads a style.css that is not minified. If you wish you can enable this setting to instead load a single style-min.css file with the code minified. If you are using a child theme you will have to change the @import from pointing to style.css to point to style.min.css', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'On', 'houzez' ),
'off' => esc_html__( 'Off', 'houzez' ),
),
array(
'id' => 'remove_scripts_version',
'type' => 'switch',
'title' => __( 'Remove Version Parameter From JS & CSS Files', 'houzez' ),
'subtitle' => __( 'Most scripts and style-sheets called by WordPress include a query string identifying the version. This can cause issues with caching and such, which will result in less than optimal load times. You can toggle this setting on to remove the query string from such strings.', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'On', 'houzez' ),
'off' => esc_html__( 'Off', 'houzez' ),
),
array(
'id' => 'preload_pages',
'type' => 'switch',
'title' => esc_html__( 'Preload Pages', 'houzez' ),
'subtitle' => esc_html__( 'Preload pages right before a user clicks on it for blazing fast browsing between pages.', 'houzez' ),
'desc' => esc_html__( 'NOTE: if you are using login/register for front-end site then better to not enable this option.', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'Yes', 'houzez' ),
'off' => esc_html__( 'No', 'houzez' ),
),
array(
'id' => 'lazyload_images',
'type' => 'switch',
'title' => esc_html__( 'Lazy Load Images', 'houzez' ),
'subtitle' => esc_html__( 'Enable lazy loading for images, it will boost page loading speed', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'Yes', 'houzez' ),
'off' => esc_html__( 'No', 'houzez' ),
),
array(
'id' => 'disable_emoji',
'type' => 'switch',
'title' => esc_html__( 'Disable Emoji Script', 'houzez' ),
'subtitle' => esc_html__( 'Remove WP emoji scripts from front-end.', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'Yes', 'houzez' ),
'off' => esc_html__( 'No', 'houzez' ),
),
/*array(
'id' => 'disable_jquery_migrate',
'type' => 'switch',
'title' => esc_html__( 'Disable Jquery Migrate', 'houzez' ),
'subtitle' => esc_html__( 'Remove jQuery Migrate. Most up-to-date front-end code and plugins don’t require jquery-migrate.min.js. More often than not, keeping this - simply adds unnecessary load to your site.', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'Yes', 'houzez' ),
'off' => esc_html__( 'No', 'houzez' ),
),*/
/*array(
'id' => 'defer_async_enabled',
'type' => 'switch',
'title' => esc_html__( 'Allow `async` and `defer` while enqueuing Javascript.', 'houzez' ),
'subtitle' => esc_html__( 'Adds async/defer attributes to enqueued / registered scripts.', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'Yes', 'houzez' ),
'off' => esc_html__( 'No', 'houzez' ),
),*/
array(
'id' => 'jpeg_100',
'type' => 'switch',
'title' => esc_html__( 'JPEG 100% Quality', 'houzez' ),
'subtitle' => esc_html__( 'By default images cropped with WordPress are resized/cropped at 90% quality. Enable this setting to set all JPEGs to 100% quality.', 'houzez' ),
"default" => 0,
'on' => esc_html__( 'On', 'houzez' ),
'off' => esc_html__( 'Off', 'houzez' ),
)
)
) );
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists