' ) ) { return; } } // Check audience if( ! empty( $notice['unactivated'] ) ) { if( LS_Config::isActivatedSite() ) { return; } } // Check target pages if( ! empty( $notice['url_filter'] ) ) { $matches = 0; $fragments = explode( ' ', $notice['url_filter'] ); foreach( $fragments as $fragment ) { if( strpos( $_SERVER['REQUEST_URI'], $fragment ) !== false) { $matches++; break; } } if( ! $matches ) { return; } } // Show the notice if( ! empty( $notice['banner'] ) ) { $bannerStyle = ! empty( $notice['banner']['style'] ) ? $notice['banner']['style'] : ''; $bannerClass = ! empty( $notice['banner']['class'] ) ? $notice['banner']['class'] : ''; ?>