fix(svg): hide SVG autofix sub-checkbox container when main SVG option is unchecked

This commit is contained in:
nertyog 2026-08-13 19:40:30 +03:00
parent 1656e0e5c8
commit 22f1e535c7
2 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@
<?php echo $entry_support_svg; ?> <?php echo $entry_support_svg; ?>
</label> </label>
<div style="font-size: 12px; color: #666; margin-top: 8px; line-height: 1.4;"><?php echo $help_support_svg; ?></div> <div style="font-size: 12px; color: #666; margin-top: 8px; line-height: 1.4;"><?php echo $help_support_svg; ?></div>
<div id="svg-autofix-box" style="margin-top: 10px; padding-top: 8px; border-top: 1px dashed #ddd;"> <div id="svg-autofix-box" style="<?php if (empty($module_img_opti_support_svg)) { ?>display: none;<?php } ?> margin-top: 10px; padding-top: 8px; border-top: 1px dashed #ddd;">
<label style="font-size: 12px; font-weight: normal; color: #444;"> <label style="font-size: 12px; font-weight: normal; color: #444;">
<input type="checkbox" name="module_img_opti_support_svg_autofix" value="1" <?php if (isset($module_img_opti_support_svg_autofix) && $module_img_opti_support_svg_autofix) { ?>checked="checked"<?php } ?>> <input type="checkbox" name="module_img_opti_support_svg_autofix" value="1" <?php if (isset($module_img_opti_support_svg_autofix) && $module_img_opti_support_svg_autofix) { ?>checked="checked"<?php } ?>>
<b><?php echo $entry_support_svg_autofix; ?></b> <b><?php echo $entry_support_svg_autofix; ?></b>