wp-content/plugins/contact-form-7-multi-step-module/cf7msm.php
/**
 * Add scripts to be able to go back to a previous step.
 */
Add scripts to be able to go back to a previous step.
Add scripts to be able to go back to a previous step .
function cf7msm_scripts()
{
    $step = cf7msm_get( 'step' );
    wp_enqueue_script(
        'cf7msm',
        plugins_url( '/resources/cf7msm.min.js', CF7MSM_PLUGIN ),
        array( 'jquery' ),
        CF7MSM_VERSION,
        true
    );
    wp_enqueue_style(
        'cf7msm_styles',
        plugins_url( '/resources/cf7msm.css', CF7MSM_PLUGIN ),
        array(),
        CF7MSM_VERSION
    );
    $cf7msm_posted_data = cf7msm_get( 'cf7msm_posted_data' );
    if ( empty($cf7msm_posted_data) ) {
        $cf7msm_posted_data = array();
    }
    $cf7msm_posted_data['cf7msm_prev_urls'] = cf7msm_get( 'cf7msm_prev_urls' );
    wp_localize_script( 'cf7msm', 'cf7msm_posted_data', $cf7msm_posted_data );
}
function cf7msm_scripts ( ) { $ step = cf7msm_get ( 'step' ) ; wp_enqueue_script ( 'cf7msm' , plugins_url ( '/resources/cf7msm.min.js' , CF7MSM_PLUGIN ) , array ( 'jquery' ) , CF7MSM_VERSION , true ) ; wp_enqueue_style ( 'cf7msm_styles' , plugins_url ( '/resources/cf7msm.css' , CF7MSM_PLUGIN ) , array ( ) , CF7MSM_VERSION ) ; $ cf7msm_posted_data = cf7msm_get ( 'cf7msm_posted_data' ) ; if ( empty ( $ cf7msm_posted_data ) ) { $ cf7msm_posted_data = array ( ) ; } $ cf7msm_posted_data [ 'cf7msm_prev_urls' ] = cf7msm_get ( 'cf7msm_prev_urls' ) ; wp_localize_script ( 'cf7msm' , 'cf7msm_posted_data' , $ cf7msm_posted_data ) ; }
Add scripts to be able to go back to a previous step.
Add scripts to be able to go back to a previous step .
// plugins_url('/js_src/cf7msm.js', CF7MSM_PLUGIN),