Code Duplication    Length = 12-12 lines in 2 locations

classes/autoptimizeConfig.php 2 locations

@@ 238-249 (lines=12) @@
235
<td><label class="cb_label"><input type="checkbox" name="autoptimize_js_forcehead" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_js_forcehead' ) ? 'checked="checked" ' : ''; ?>/>
236
<?php _e( 'Load JavaScript early, this can potentially fix some JS-errors, but makes the JS render blocking.', 'autoptimize' ); ?></label></td>
237
</tr>
238
<?php if ( autoptimizeOptionWrapper::get_option( 'autoptimize_js_justhead' ) ) { ?>
239
<tr valign="top" class="js_sub js_aggregate">
240
<th scope="row">
241
<?php
242
    _e( 'Look for scripts only in &lt;head&gt;?', 'autoptimize' );
243
    echo ' <i>' . __( '(deprecated)', 'autoptimize' ) . '</i>';
244
?>
245
</th>
246
<td><label class="cb_label"><input type="checkbox" name="autoptimize_js_justhead" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_js_justhead' ) ? 'checked="checked" ' : ''; ?>/>
247
<?php _e( 'Mostly useful in combination with previous option when using jQuery-based templates, but might help keeping cache size under control.', 'autoptimize' ); ?></label></td>
248
</tr>
249
<?php } ?>
250
<tr valign="top" class="js_sub">
251
<th scope="row"><?php _e( 'Exclude scripts from Autoptimize:', 'autoptimize' ); ?></th>
252
<td><label><input type="text" style="width:100%;" name="autoptimize_js_exclude" value="<?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_js_exclude', 'wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js' ); ?>"/><br />
@@ 288-299 (lines=12) @@
285
<td><label class="cb_label"><input type="checkbox" name="autoptimize_css_datauris" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_css_datauris' ) ? 'checked="checked" ' : ''; ?>/>
286
<?php _e( 'Enable this to include small background-images in the CSS itself instead of as separate downloads.', 'autoptimize' ); ?></label></td>
287
</tr>
288
<?php if ( autoptimizeOptionWrapper::get_option( 'autoptimize_css_justhead' ) ) { ?>
289
<tr valign="top" class="css_sub css_aggregate">
290
<th scope="row">
291
<?php
292
_e( 'Look for styles only in &lt;head&gt;?', 'autoptimize' );
293
echo ' <i>' . __( '(deprecated)', 'autoptimize' ) . '</i>';
294
?>
295
</th>
296
<td><label class="cb_label"><input type="checkbox" name="autoptimize_css_justhead" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_css_justhead' ) ? 'checked="checked" ' : ''; ?>/>
297
<?php _e( 'Don\'t autoptimize CSS outside the head-section. If the cache gets big, you might want to enable this.', 'autoptimize' ); ?></label></td>
298
</tr>
299
<?php } ?>
300
<tr valign="top" class="css_sub">
301
<th scope="row"><?php _e( 'Inline and Defer CSS?', 'autoptimize' ); ?></th>
302
<td><label class="cb_label"><input type="checkbox" name="autoptimize_css_defer" id="autoptimize_css_defer" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_css_defer' ) ? 'checked="checked" ' : ''; ?>/>