WebP Express Settings

'; //Paths::canWriteHTAccessRulesHere($dir); }*/ //echo '
' . print_r($config['converters'], true) . '
'; //echo 'Working converters:' . print_r($workingConverters, true) . '
'; // Generate a custom nonce value. $webpexpressSaveSettingsNonce = wp_create_nonce('webpexpress-save-settings-nonce'); ?> '; ?>
150) { if (strlen($text) > 300) { if (strlen($text) > 500) { if (strlen($text) > 1000) { $className = 'widest'; } else { $className = 'even-wider'; } } else { $className = 'wider'; } } else { $className = 'wide'; } } return '
?
'; } function webpexpress_selectBoxOptions($selected, $options) { foreach ($options as $optionValue => $text) { echo ''; } } function webpexpress_radioButton($optionName, $optionValue, $label, $selectedValue, $helpText = null) { $id = esc_attr(str_replace('-', '_', $optionName . '_' . $optionValue)); echo ''; echo ''; } function webpexpress_radioButtons($optionName, $selected, $options, $helpTexts = [], $style='margin-left: 20px; margin-top: 5px') { echo ''; } function webpexpress_checkbox($optionName, $checked, $label, $helpText = '') { $id = esc_attr(str_replace('-', '_', $optionName)); echo '
'; echo ''; echo ''; if ($helpText != '') { echo helpIcon($helpText); } echo '
'; } include_once 'options/operation-mode.inc'; include_once 'options/general/general.inc'; /* idea: $options = [ 'tweaked' => [ 'general' => [ 'image-types', 'destination-folder', 'destination-extension', 'cache-control' ] ], ... ]; */ if ($config['operation-mode'] != 'tweaked') { // echo '
'; // echo ''; } if ($config['operation-mode'] == 'no-conversion') { // General /* echo ''; include_once 'options/conversion-options/destination-extension.inc'; include_once 'options/general/image-types.inc'; */ include_once 'options/redirection-rules/redirection-rules.inc'; include_once 'options/alter-html/alter-html.inc'; } else { include_once 'options/redirection-rules/redirection-rules.inc'; include_once 'options/conversion-options/conversion-options.inc'; //include_once 'options/conversion-options/destination-extension.inc'; include_once 'options/serve-options/serve-options.inc'; include_once 'options/alter-html/alter-html.inc'; /* if ($config['operation-mode'] == 'cdn-friendly') { include_once 'options/redirection-rules/enable-redirection-to-webp-realizer.inc'; // ps: we call it "auto convert", when in this mode include_once 'options/redirection-rules/enable-redirection-to-converter.inc'; } if ($config['operation-mode'] == 'varied-image-responses') { include_once 'options/redirection-rules/enable-redirection-to-webp-realizer.inc'; } */ include_once 'options/web-service-options/web-service-options.inc'; } if ($config['operation-mode'] != 'tweaked') { // echo '
'; echo '

General

'; echo '
'; // echo '
'; } ?>