shouldDisplayAdminNotice() ) {
wp_enqueue_style( $slug );
wp_enqueue_script( $slug );
wp_enqueue_script( 'wp-util' );
}
if ( $this->shouldDisplayAdminNotice() ) {
ob_start();
?>
themeWasCustomized();
if ( !$is_fresh_site ) {
return false;
}
if ( get_option( "{$slug}-theme-notice-dismissed", false ) !== false ) {
return false;
}
if ( apply_filters( 'kubio_is_enabled', false ) ) {
return false;
}
if ( $pagenow === 'update.php' ) {
return false;
}
return true;
}
public function addThemeNotice() {
if ( $this->shouldDisplayAdminNotice() ) :
?>
getName() ); ?>
-
getThemeResource( 'images/theme-base/round-check.svg' ) ); ?>
-
getThemeResource( 'images/theme-base/round-check.svg' ) ); ?>
-
getThemeResource( 'images/theme-base/round-check.svg' ) ); ?>
-
getThemeResource( 'images/theme-base/round-check.svg' ) ); ?>
state, $path, $fallback );
}
public function setState( $path, $value ) {
Utils::pathSet( $this->state, $path, $value );
}
public function deleteState( $path ) {
Utils::pathDelete( $this->state, $path );
}
public function getName() {
$slug = $this->getThemeSlug();
$theme = $this->getTheme( $slug );
return $theme->get( 'Name' );
}
public function getScreenshot() {
$slug = $this->getThemeSlug();
$theme = $this->getTheme( $slug );
return $theme->get_screenshot();
}
public function getFrontPagePreview() {
return Theme::rootDirectoryUri() . '/resources/images/admin/admin-notice.png';
}
public function getListMarkerUrl() {
return Theme::rootDirectoryUri() . '/resources/images/admin/checkmark.svg';
}
public function getThemeResource( $path ) {
return Theme::rootDirectoryUri() . '/resources/' . $path;
}
}