__('Reverted to recommended settings.'), 'dbUpdateSuccess' => __('LayerSlider has attempted to update your database. Server restrictions may apply, please verify whether it was successful.', 'LayerSlider'), 'clearGroupsSuccess' => __('Groups have been removed. All projects are now moved to the main grid where they remain available to you.', 'LayerSlider') ]; // Notify OSD if( isset( $_GET['message'] ) ) { wp_localize_script('ls-common', 'LS_statusMessage', [ 'icon' => isset( $_GET['error'] ) ? 'error' : 'success', 'iconColor' => isset( $_GET['error'] ) ? '#ff2323' : '#8BC34A', 'text' => $notifications[ $_GET['message'] ], 'timeout' => 8000 ]); } // Icons wp_localize_script('ls-common', 'LS_InterfaceIcons', [ 'notifications' => [ 'error' => lsGetSVGIcon('exclamation-triangle'), 'success' => lsGetSVGIcon('check'), ] ]); include LS_ROOT_PATH . '/includes/ls_global.php'; ?>
=' ); ?> = 200 && $response['response']['code'] < 300 ); ?> $plugin) { if( stripos( $plugin['Name'], 'cache' ) !== false || stripos( $plugin['Name'], 'Cachify' ) !== false || stripos( $plugin['Name'], 'Optimi' ) !== false || stripos( $plugin['Name'], 'WP Rocket' ) !== false ) { $cachePlugs[] = $plugin['Name']; } } $test = empty( $cachePlugs ); ?> [ 'default' => false, 'name' => __('Use markup caching', 'LayerSlider'), 'message' => __('Although markup caching can increase performance, it can also interfere with localization and translation plugins or whenever LayerSlider needs to serve alternating content based on external factors. We recommend disabling this setting and using a site-wide caching plugin. This helps avoid issues while still achieving the same performance gains.', 'LayerSlider') ], 'clear_3rd_party_caches' => [ 'default' => true, 'name' => __('Clear 3rd party caches', 'LayerSlider'), 'message' => __('Enabling this option can ensure that changes to your projects are always reflected on front-end pages when using popular caching plugins.', 'LayerSlider') ], 'admin_no_conflict_mode' => [ 'default' => false, 'name' => __('No-conflict mode', 'LayerSlider'), 'message' => __('While “No-conflict mode” can help with issues caused by 3rd parties, it can just as easily break your site. This option should remain disabled in most cases unless you experience problems without it.', 'LayerSlider') ], 'gsap_sandboxing' => [ 'default' => true, 'name' => __('Use GreenSock (GSAP) sandboxing', 'LayerSlider'), 'message' => __('GreenSock is a popular animation engine used by many. Enabling sandboxing helps avoid issues when 3rd parties like other plugins and WordPress themes are also using GreenSock.', 'LayerSlider') ], 'use_custom_jquery' => [ 'default' => false, 'name' => __('Use Google CDN version of jQuery', 'LayerSlider'), 'message' => __('This setting should be used in very special cases only as it can break otherwise functioning sites.', 'LayerSlider') ] ]; $issues = []; foreach( $tests as $option => $details ) { if( $details['default'] != get_option( 'ls_'.$option, $details['default'] ) ) { $issues[] = $details; } } $test = empty( $issues ); ?> =' ); ?> 0 && $timeout < 60 ); ?> 0 && $memoryB < 64 * 1000 * 1000 ); ?> 0 && $postMaxB < 16 * 1000 * 1000 ); ?> 0 && $uploadB < 16 * 1000 * 1000 ); ?>
', '' ) ?>
', $issue['name'], ' ', $issue['message'], ''; } } ?>
0 ) ? $memory : __('No limit', 'LayerSlider') ?>
0 ) ? ini_get('post_max_size') : __('No limit', 'LayerSlider') ?>
0 ) ? ini_get('upload_max_filesize') : __('No limit', 'LayerSlider') ?>