web/app/themes/online-shop/acmethemes/at-theme-info/class-at-theme-info.php
/**
         * Load css and scripts for the about page
         */
Load css and scripts for the about page
Load css and scripts for the about page
public function style_and_scripts( $hook_suffix ) {
            wp_enqueue_style( 'at-theme-info-css', get_template_directory_uri() . '/acmethemes/at-theme-info/css/at-theme-info.css' );
            if ( 'appearance_page_' . $this->theme_slug . '-info' == $hook_suffix ) {
                wp_enqueue_script( 'at-theme-info-js', get_template_directory_uri() . '/acmethemes/at-theme-info/js/at-theme-info.js', array( 'jquery' ) );
                wp_enqueue_style( 'plugin-install' );
                wp_enqueue_script( 'plugin-install' );
                wp_enqueue_script( 'updates' );
                $count = $this->count_recommended_actions();
                wp_localize_script( 'at-theme-info-js', 'at_theme_info_object', array(
                    'nr_actions_recommended'      => $count,
                    'ajaxurl'                  => admin_url( 'admin-ajax.php' ),
                    'template_directory'       => get_template_directory_uri()
                ) );
            }
        }
public function style_and_scripts ( $ hook_suffix ) { wp_enqueue_style ( 'at-theme-info-css' , get_template_directory_uri ( ) . '/acmethemes/at-theme-info/css/at-theme-info.css' ) ; if ( 'appearance_page_' . $ this -> theme_slug . '-info' == $ hook_suffix ) { wp_enqueue_script ( 'at-theme-info-js' , get_template_directory_uri ( ) . '/acmethemes/at-theme-info/js/at-theme-info.js' , array ( 'jquery' ) ) ; wp_enqueue_style ( 'plugin-install' ) ; wp_enqueue_script ( 'plugin-install' ) ; wp_enqueue_script ( 'updates' ) ; $ count = $ this -> count_recommended_actions ( ) ; wp_localize_script ( 'at-theme-info-js' , 'at_theme_info_object' , array ( 'nr_actions_recommended' => $ count , 'ajaxurl' => admin_url ( 'admin-ajax.php' ) , 'template_directory' => get_template_directory_uri ( ) ) ) ; } }
Load css and scripts for the about page
Load css and scripts for the about page
// this is needed on all admin pages, not just the about page, for the badge action count in the wordpress main sidebar