| @@ 28-36 (lines=9) @@ | ||
| 25 | $widget_ops  | 
                                |
| 26 | );  | 
                                |
| 27 | ||
| 28 | if ( self::is_jetpack() &&  | 
                                |
| 29 | (  | 
                                |
| 30 | is_active_widget( false, false, $this->id_base ) ||  | 
                                |
| 31 | is_active_widget( false, false, 'monster' ) ||  | 
                                |
| 32 | is_customize_preview()  | 
                                |
| 33 | )  | 
                                |
| 34 | 		) { | 
                                |
| 35 | add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );  | 
                                |
| 36 | }  | 
                                |
| 37 | }  | 
                                |
| 38 | ||
| 39 | /**  | 
                                |
| @@ 57-59 (lines=3) @@ | ||
| 54 | add_action( 'admin_enqueue_scripts', array( __class__, 'enqueue_admin' ) );  | 
                                |
| 55 | add_action( 'wp_footer', array( $this, 'localize_script' ) );  | 
                                |
| 56 | ||
| 57 | 		if ( is_active_widget( false, false, $this->id_base, true ) || is_active_widget( false, false, 'monster', true ) || is_customize_preview() ) { | 
                                |
| 58 | add_action( 'wp_head', array( __class__, 'styles_template' ) );  | 
                                |
| 59 | }  | 
                                |
| 60 | }  | 
                                |
| 61 | ||
| 62 | 	public static function enqueue_admin( $hook_suffix ) { | 
                                |