wp-content/plugins/contact-form-7-multi-step-module/cf7msm.php
/**
 * Print a warning if cf7 not installed or activated.
 */
Print a warning if cf7 not installed or activated.
Print a warning if cf7 not installed or activated .
function contact_form_7_form_codes()
{
    global  $pagenow ;
    if ( $pagenow != 'plugins.php' ) {
        return;
    }
    if ( defined( 'WPCF7_VERSION' ) && version_compare( WPCF7_VERSION, CF7MSM_MIN_CF7_VERSION ) >= 0 ) {
        return;
    }
    add_action( 'admin_notices', 'cfformfieldserror' );
    wp_enqueue_script( 'thickbox' );
    function cfformfieldserror()
    {
        $out = '<div class="error" id="messages"><p>';
        if ( defined( 'WPCF7_VERSION' ) && version_compare( WPCF7_VERSION, CF7MSM_MIN_CF7_VERSION ) < 0 ) {
            $out .= sprintf( __( 'Please update the Contact Form 7 plugin.  Contact Form 7 Multi-Step Form plugin requires Contact Form 7 version %s or above.', 'contact-form-7-multi-step-module' ), CF7MSM_MIN_CF7_VERSION );
        } else {
            if ( file_exists( WP_PLUGIN_DIR . '/contact-form-7/wp-contact-form-7.php' ) ) {
                $out .= __( 'The Contact Form 7 plugin is installed, but <strong>you must activate Contact Form 7</strong> below for the Contact Form 7 Multi-Step Form to work.', 'contact-form-7-multi-step-module' );
            } else {
                $out .= sprintf( __( 'The Contact Form 7 plugin must be installed for the Contact Form 7 Multi-Step Form to work. <a href="%s" class="thickbox" title="Contact Form 7">Install Now.</a>', 'contact-form-7-multi-step-module' ), admin_url( 'plugin-install.php?tab=plugin-information&plugin=contact-form-7&from=plugins&TB_iframe=true&width=600&height=550' ) );
            }
        }
        $out .= '</p></div>';
        echo  cf7msm_kses( $out ) ;
    }
}
function contact_form_7_form_codes ( ) { global $ pagenow ; if ( $ pagenow != 'plugins.php' ) { return ; } if ( defined ( 'WPCF7_VERSION' ) && version_compare ( WPCF7_VERSION , CF7MSM_MIN_CF7_VERSION ) >= 0 ) { return ; } add_action ( 'admin_notices' , 'cfformfieldserror' ) ; wp_enqueue_script ( 'thickbox' ) ; function cfformfieldserror ( ) { $ out = '<div class="error" id="messages"><p>' ; if ( defined ( 'WPCF7_VERSION' ) && version_compare ( WPCF7_VERSION , CF7MSM_MIN_CF7_VERSION ) < 0 ) { $ out .= sprintf ( __ ( 'Please update the Contact Form 7 plugin.  Contact Form 7 Multi-Step Form plugin requires Contact Form 7 version %s or above.' , 'contact-form-7-multi-step-module' ) , CF7MSM_MIN_CF7_VERSION ) ; } else { if ( file_exists ( WP_PLUGIN_DIR . '/contact-form-7/wp-contact-form-7.php' ) ) { $ out .= __ ( 'The Contact Form 7 plugin is installed, but <strong>you must activate Contact Form 7</strong> below for the Contact Form 7 Multi-Step Form to work.' , 'contact-form-7-multi-step-module' ) ; } else { $ out .= sprintf ( __ ( 'The Contact Form 7 plugin must be installed for the Contact Form 7 Multi-Step Form to work. <a href="%s" class="thickbox" title="Contact Form 7">Install Now.</a>' , 'contact-form-7-multi-step-module' ) , admin_url ( 'plugin-install.php?tab=plugin-information&plugin=contact-form-7&from=plugins&TB_iframe=true&width=600&height=550' ) ) ; } } $ out .= '</p></div>' ; echo cf7msm_kses ( $ out ) ; } }
Print a warning if cf7 not installed or activated.
Print a warning if cf7 not installed or activated .