Skip to content

Commit 2dfbfba

Browse files
committed
Hi intro section for AIO users
1 parent db231d3 commit 2dfbfba

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

Diff for: src/Dashboard/content.php

+28-26
Original file line numberDiff line numberDiff line change
@@ -66,33 +66,35 @@ class="mb-dashboard__header__search-results"
6666

6767
<div class="mb-dashboard__main">
6868

69-
<section class="mb-dashboard__intro" data-utm="intro">
70-
<div class="mb-dashboard__intro__subtitle">
71-
<?php
72-
// Translators: %s - current user display name.
73-
echo esc_html( sprintf( __( 'Hello %s,', 'meta-box' ), wp_get_current_user()->display_name ) );
74-
?>
75-
</div>
76-
<div class="mb-dashboard__intro__title">
77-
<?php
78-
// Translators: %s - Meta Box (plugin name).
79-
echo esc_html( sprintf( __( 'Welcome to %s,', 'meta-box' ), 'Meta Box' ) );
80-
?>
81-
</div>
82-
<div class="mb-dashboard__intro__text">
83-
<?php
84-
// Translators: %s - Meta Box (plugin name).
85-
echo esc_html( sprintf( __( '%s is a powerful, lightweight WordPress plugin for creating custom post types, fields, relationships, and more. With a user-friendly interface and flexible options, it simplifies dynamic content creation without complex coding. Free and reliable, it\'s perfect for beginners and experts alike.', 'meta-box' ), 'Meta Box' ) );
86-
?>
87-
</div>
69+
<?php if ( ! $this->is_aio ) : ?>
70+
<section class="mb-dashboard__intro" data-utm="intro">
71+
<div class="mb-dashboard__intro__subtitle">
72+
<?php
73+
// Translators: %s - current user display name.
74+
echo esc_html( sprintf( __( 'Hello %s,', 'meta-box' ), wp_get_current_user()->display_name ) );
75+
?>
76+
</div>
77+
<div class="mb-dashboard__intro__title">
78+
<?php
79+
// Translators: %s - Meta Box (plugin name).
80+
echo esc_html( sprintf( __( 'Welcome to %s,', 'meta-box' ), 'Meta Box' ) );
81+
?>
82+
</div>
83+
<div class="mb-dashboard__intro__text">
84+
<?php
85+
// Translators: %s - Meta Box (plugin name).
86+
echo esc_html( sprintf( __( '%s is a powerful, lightweight WordPress plugin for creating custom post types, fields, relationships, and more. With a user-friendly interface and flexible options, it simplifies dynamic content creation without complex coding. Free and reliable, it\'s perfect for beginners and experts alike.', 'meta-box' ), 'Meta Box' ) );
87+
?>
88+
</div>
8889

89-
<?php if ( ! $this->has_actions ) : ?>
90-
<a class="mb-dashboard__external mb-dashboard__button" href="https://docs.metabox.io/introduction/" target="_blank">
91-
<?php esc_html_e( 'Get started', 'meta-box' ); ?>
92-
<svg><use xlink:href="#external-link"></use></svg>
93-
</a>
94-
<?php endif; ?>
95-
</section>
90+
<?php if ( ! $this->has_actions ) : ?>
91+
<a class="mb-dashboard__external mb-dashboard__button" href="https://docs.metabox.io/introduction/" target="_blank">
92+
<?php esc_html_e( 'Get started', 'meta-box' ); ?>
93+
<svg><use xlink:href="#external-link"></use></svg>
94+
</a>
95+
<?php endif; ?>
96+
</section>
97+
<?php endif; ?>
9698

9799
<?php if ( $this->has_actions ) : ?>
98100
<section class="mb-dashboard__actions">

0 commit comments

Comments
 (0)