diff --git a/assets/images/v4-notice-illustration.svg b/assets/images/v4-notice-illustration.svg deleted file mode 100644 index 9dd6c31ab4..0000000000 --- a/assets/images/v4-notice-illustration.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/images/v4-notice-logo.svg b/assets/images/v4-notice-logo.svg deleted file mode 100644 index 7cabf2aea2..0000000000 --- a/assets/images/v4-notice-logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/scss/admin-dashboard/_tutor-admin.scss b/assets/scss/admin-dashboard/_tutor-admin.scss index 97e8b07f2a..e98d122eb3 100644 --- a/assets/scss/admin-dashboard/_tutor-admin.scss +++ b/assets/scss/admin-dashboard/_tutor-admin.scss @@ -1950,149 +1950,3 @@ h2.tutor-page-heading { margin-left: 0px; margin-right: 20px; } - -/* - * v4 beta notice - */ -.tutor-v4-beta-notice { - min-height: 116px; - box-sizing: border-box; - background-color: #003dcf !important; - box-shadow: none !important; - padding: 0px !important; - padding-block: 16px !important; - border: 1px solid #3e64de; - position: relative; - display: flex; - align-items: center; - - background-image: url(../images/v4-notice-illustration.svg); - background-repeat: no-repeat; - background-position: right bottom; - - @include breakpoint-min(1600) { - background-position: right 180px bottom; - } - - @include breakpoint-min(2100) { - background-position: right 30% bottom; - } - - @include breakpoint-max(1240) { - flex-direction: column; - gap: 16px; - padding: 16px !important; - background-position: left bottom; - } - - &-left { - padding-left: 40px; - padding-right: 32px; - - @include breakpoint-min(1480) { - padding-left: 90px; - padding-right: 60px; - } - - @include breakpoint-max(1240) { - padding-inline: 0px; - } - } - - &-right { - width: 100%; - padding-left: 32px; - padding-right: 94px; - display: flex; - align-items: center; - justify-content: space-between; - gap: 24px; - border-left: 1px solid rgba(255, 255, 255, 0.3); - - @include breakpoint-min(1480) { - padding-left: 60px; - } - - @include breakpoint-max(1240) { - flex-direction: column; - padding-inline: 0px; - border: none; - } - - &-content { - max-width: 500px; - - @include breakpoint-max(1240) { - text-align: center; - } - } - - h3 { - font-size: 20px; - line-height: 28px; - font-weight: 500; - color: #ffffff; - margin-top: 0px; - margin-bottom: 6px; - padding: 0px; - } - - p { - font-size: 16px; - line-height: 24px; - font-weight: 400; - color: #ffffff; - margin: 0px; - padding: 0px; - - a { - color: #ffffff; - text-decoration: underline; - text-underline-offset: 3px; - - &:hover, - &:focus, - &:active, - &:visited { - color: #ffffff; - } - } - } - - &-buttons { - a { - border-color: #ffffff; - color: var(--tutor-color-primary); - - &:hover, - &:focus, - &:active, - &:visited { - color: var(--tutor-color-primary); - } - } - } - } - - .notice-dismiss { - right: 42px; - top: 37px; - width: 40px; - height: 40px; - border: 1px solid #ffffff; - border-radius: 4px; - padding: 10px; - color: #ffffff; - - &::before { - content: '\e91e'; - font-family: 'tutor'; - color: #ffffff; - } - - @include breakpoint-max(1240) { - top: 16px; - right: 16px; - } - } -} diff --git a/classes/Admin.php b/classes/Admin.php index f0f28487ef..beff80c1e5 100644 --- a/classes/Admin.php +++ b/classes/Admin.php @@ -37,7 +37,6 @@ class Admin { public function __construct() { add_action( 'admin_notices', array( $this, 'show_unstable_version_admin_notice' ) ); - add_action( 'admin_notices', array( $this, 'show_v4_beta_notice' ) ); add_action( 'admin_menu', array( $this, 'register_menu' ) ); // Force activate menu for necessary. @@ -86,61 +85,6 @@ public function show_unstable_version_admin_notice() { } } - /** - * Show version 4 admin notice. - * - * @since 3.9.9 - * - * @return void - */ - public function show_v4_beta_notice() { - if ( version_compare( TUTOR_VERSION, '4', '<' ) ) { - ?> -
- ', - ' ' - ), - array( - 'a' => array( - 'href' => true, - 'target' => true, - 'rel' => true, - ), - 'i' => array( - 'class' => true, - 'aria-hidden' => true, - ), - ) - ); - ?> -
-