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 '';
foreach ($options as $optionValue => $label) {
echo '- ';
webpexpress_radioButton($optionName, $optionValue, $label, $selected, isset($helpTexts[$optionValue]) ? $helpTexts[$optionValue] : null);
echo '
';
}
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 '';
}
?>