frontend/web/blog/wp-content/plugins/advanced-backgrounds/advanced-backgrounds.php
/**
     * Register scripts that will be used in the future when portfolio will be printed.
     */
Register scripts that will be used in the future when portfolio will be printed.
Register scripts that will be used in the future when portfolio will be printed .
public function register_scripts() {
        wp_register_script( 'jarallax', nk_awb()->plugin_url . 'assets/vendor/jarallax/jarallax.min.js', array( 'jquery' ), '1.12.0', true );
        wp_register_script( 'jarallax-video', nk_awb()->plugin_url . 'assets/vendor/jarallax/jarallax-video.min.js', array( 'jarallax' ), '1.12.0', true );
        wp_register_script( 'object-fit-images', nk_awb()->plugin_url . 'assets/vendor/object-fit-images/ofi.min.js', array(), '3.2.4', true );
        wp_register_script( 'nk-awb', nk_awb()->plugin_url . 'assets/awb/awb.min.js', array( 'jquery', 'jarallax', 'jarallax-video', 'object-fit-images' ), '1.6.2', true );
        wp_localize_script(
            'nk-awb',
            'AWBData',
            array(
                'settings' => array(
                    'disable_parallax'    => array_keys( AWB_Settings::get_option( 'disable_parallax', 'awb_general', array() ) ? AWB_Settings::get_option( 'disable_parallax', 'awb_general', array() ) : array() ),
                    'disable_video'       => array_keys( AWB_Settings::get_option( 'disable_video', 'awb_general', array() ) ? AWB_Settings::get_option( 'disable_video', 'awb_general', array() ) : array() ),
                    'full_width_fallback' => ! get_theme_support( 'align-wide' ),
                ),
            )
        );
        wp_register_style( 'nk-awb', nk_awb()->plugin_url . 'assets/awb/awb.min.css', '', '1.6.2' );
    }
public function register_scripts ( ) { wp_register_script ( 'jarallax' , nk_awb ( ) -> plugin_url . 'assets/vendor/jarallax/jarallax.min.js' , array ( 'jquery' ) , '1.12.0' , true ) ; wp_register_script ( 'jarallax-video' , nk_awb ( ) -> plugin_url . 'assets/vendor/jarallax/jarallax-video.min.js' , array ( 'jarallax' ) , '1.12.0' , true ) ; wp_register_script ( 'object-fit-images' , nk_awb ( ) -> plugin_url . 'assets/vendor/object-fit-images/ofi.min.js' , array ( ) , '3.2.4' , true ) ; wp_register_script ( 'nk-awb' , nk_awb ( ) -> plugin_url . 'assets/awb/awb.min.js' , array ( 'jquery' , 'jarallax' , 'jarallax-video' , 'object-fit-images' ) , '1.6.2' , true ) ; wp_localize_script ( 'nk-awb' , 'AWBData' , array ( 'settings' => array ( 'disable_parallax' => array_keys ( AWB_Settings :: get_option ( 'disable_parallax' , 'awb_general' , array ( ) ) ? AWB_Settings :: get_option ( 'disable_parallax' , 'awb_general' , array ( ) ) : array ( ) ) , 'disable_video' => array_keys ( AWB_Settings :: get_option ( 'disable_video' , 'awb_general' , array ( ) ) ? AWB_Settings :: get_option ( 'disable_video' , 'awb_general' , array ( ) ) : array ( ) ) , 'full_width_fallback' => ! get_theme_support ( 'align-wide' ) , ) , ) ) ; wp_register_style ( 'nk-awb' , nk_awb ( ) -> plugin_url . 'assets/awb/awb.min.css' , '' , '1.6.2' ) ; }
Register scripts that will be used in the future when portfolio will be printed.
Register scripts that will be used in the future when portfolio will be printed .