Code Duplication    Length = 5-6 lines in 2 locations

classes/autoptimizeConfig.php 1 location

@@ 303-307 (lines=5) @@
300
<td><label class="cb_label"><input type="checkbox" name="autoptimize_css_defer" id="autoptimize_css_defer" <?php echo get_option('autoptimize_css_defer')?'checked="checked" ':''; ?>/>
301
<?php
302
_e( 'Inline "above the fold CSS" while loading the main autoptimized CSS only after page load. <a href="http://wordpress.org/plugins/autoptimize/faq/" target="_blank">Check the FAQ</a> for more info.', 'autoptimize' );
303
if ( function_exists( 'is_plugin_active' ) && ! is_plugin_active( 'autoptimize-criticalcss/ao_criticss_aas.php' ) ) {
304
    echo ' ';
305
    $critcss_install_url = network_admin_url() . 'plugin-install.php?s=autoptimize+criticalcss&tab=search&type=term';
306
    echo sprintf( __( 'This can be fully automated for different types of pages with the %s.', 'autoptimize' ), '<a href="'.$critcss_install_url.'">Autoptimize CriticalCSS Power-Up</a>' );
307
}
308
?>
309
</label></td>
310
</tr>

classes/autoptimizeExtra.php 1 location

@@ 926-931 (lines=6) @@
923
                        _e( 'Great, you have WP YouTube Lyte installed.', 'autoptimize' );
924
                        $lyte_config_url = 'options-general.php?page=lyte_settings_page';
925
                        echo sprintf( ' <a href="' . $lyte_config_url . '">%s</a>', __( 'Click here to configure it.', 'autoptimize' ) );
926
                    } else {
927
                        // translators: %s will be replaced by a link to "wp youtube lyte" plugin.
928
                        echo sprintf( __( '%s allows you to “lazy load” your videos, by inserting responsive “Lite YouTube Embeds". ', 'autoptimize' ), '<a href="https://wordpress.org/plugins/wp-youtube-lyte" target="_blank">WP YouTube Lyte</a>' );
929
                        $lyte_install_url = network_admin_url() . 'plugin-install.php?s=lyte&tab=search&type=term';
930
                        echo sprintf( ' <a href="' . $lyte_install_url . '">%s</a>', __( 'Click here to install and activate it.', 'autoptimize' ) );
931
                    }
932
                    ?>
933
                </td>
934
            </tr>