Skip to content

Commit

Permalink
PR feedback improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Apr 6, 2023
1 parent 91e9fc6 commit 228f79a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion includes/Classifai/Admin/Notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function maybe_render_notices() {
<div data-notice="plugin-activation" class="notice notice-success is-dismissible">
<div id="classifai-activation-notice">
<div class="classifai-logo">
<img src="<?php echo esc_url( CLASSIFAI_PLUGIN_URL . 'assets/img/classifai.png' ); ?>" alt="ClassifAI" />
<img src="<?php echo esc_url( CLASSIFAI_PLUGIN_URL . 'assets/img/classifai.png' ); ?>" alt="<?php esc_attr_e( 'ClassifAI', 'classifai' ); ?>" />
</div>
<h3 class="classifai-activation-message">
<?php esc_html_e( 'Congratulations, the ClassifAI plugin is now activated.', 'classifai' ); ?>
Expand Down
8 changes: 4 additions & 4 deletions includes/Classifai/Admin/templates/classifai-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="classifai-header-layout">
<div id="classifai-branding">
<div id="classifai-logo">
<img src="<?php echo esc_url( CLASSIFAI_PLUGIN_URL . 'assets/img/classifai.png' ); ?>" alt="ClassifAI" />
<img src="<?php echo esc_url( CLASSIFAI_PLUGIN_URL . 'assets/img/classifai.png' ); ?>" alt="<?php esc_attr_e( 'ClassifAI', 'classifai' ); ?>" />
</div>
</div>
<div id="classifai-header-controls">
Expand Down Expand Up @@ -46,8 +46,8 @@
</a>
<template id="help-menu-template">
<div class="classifai-help-menu">
<a class="classifai-help-menu__menu-item" target="_blank" href="https://github.com/10up/classifai#frequently-asked-questions"><?php esc_html_e( 'FAQs', 'classifai' ); ?></a>
<a class="classifai-help-menu__menu-item" target="_blank" href="https://github.com/10up/classifai/issues/new/choose"><?php esc_html_e( 'Report issue/enhancement', 'classifai' ); ?></a>
<a class="classifai-help-menu__menu-item" target="_blank" rel="noopener noreferrer" href="https://github.com/10up/classifai#frequently-asked-questions"><?php esc_html_e( 'FAQs', 'classifai' ); ?></a>
<a class="classifai-help-menu__menu-item" target="_blank" rel="noopener noreferrer" href="https://github.com/10up/classifai/issues/new/choose"><?php esc_html_e( 'Report issue/enhancement', 'classifai' ); ?></a>
</div>
</template>
</div>
Expand All @@ -70,7 +70,7 @@
<?php
foreach ( $classifai_header_menu as $key => $value ) {
?>
<a href="<?php echo esc_url( admin_url( 'admin.php?page=' . $key ) ); ?>" class="nav-tab <?php echo ( $classifai_page === $key ) ? 'nav-tab-active' : ''; ?>">
<a href="<?php echo esc_url( admin_url( 'admin.php?page=' . $key ) ); ?>" class="nav-tab <?php echo esc_attr( ( $classifai_page === $key ) ? 'nav-tab-active' : '' ); ?>">
<?php echo esc_html( $value ); ?>
</a>
<?php
Expand Down
4 changes: 2 additions & 2 deletions includes/Classifai/Admin/templates/onboarding-step-four.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ function( $feature ) use ( $enabled_features, $configured_providers ) {
require_once 'onboarding-header.php';
?>

<h1 class="classifai-setup-title">
<h2 class="classifai-setup-title">
<?php esc_html_e( 'ClassifAI configured successfully!', 'classifai' ); ?>
</h1>
</h2>
<?php
foreach ( $features as $key => $feature ) {
if ( empty( $feature['title'] ) || empty( $feature['features'] ) ) {
Expand Down
4 changes: 2 additions & 2 deletions includes/Classifai/Admin/templates/onboarding-step-one.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
require_once 'onboarding-header.php';
?>

<h1 class="classifai-setup-title">
<h2 class="classifai-setup-title">
<?php esc_html_e( 'Set up ClassifAI to meet your needs', 'classifai' ); ?>
</h1>
</h2>
<?php
foreach ( $features as $key => $feature ) {
if ( empty( $feature['title'] ) || empty( $feature['features'] ) ) {
Expand Down
6 changes: 4 additions & 2 deletions src/scss/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,11 @@ input.classifai-button {
margin-top: 20px;
}

h1.classifai-setup-title {
h2.classifai-setup-title {
font-size: 22px;
padding: 0px;
font-weight: 400;
margin: 0px;
}

.classifai-step1-content,
Expand Down Expand Up @@ -513,7 +515,7 @@ input.classifai-button {
margin-top: 20px;
}

h1.classifai-setup-title {
h2.classifai-setup-title {
text-align: center;
}
}
Expand Down

0 comments on commit 228f79a

Please sign in to comment.