Skip to content

Commit

Permalink
refactor: update links on new Custom Layout header
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Jan 28, 2025
1 parent f844081 commit 0b06861
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions inc/admin/dashboard/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,14 @@ function openModal( event ) {
*/
public function render_neve_header() {

$is_using_pro = defined( 'NEVE_PRO_VERSION' ) && 'valid' === apply_filters( 'product_neve_license_status', false );
$is_using_pro = defined( 'NEVE_PRO_VERSION' ) && 'valid' === apply_filters( 'product_neve_license_status', false );
$neve_dashboard_url = add_query_arg(
array(
'page' => 'neve-welcome',
),
admin_url( 'admin.php' )
);
$neve_dashboard_changelog_url = $neve_dashboard_url . '#changelog';

?>
<style>
Expand Down Expand Up @@ -1034,7 +1041,9 @@ public function render_neve_header() {
<div class="nv-admin-header">
<div class="nv-admin-header-left">

<img src="<?php echo esc_url_raw( get_template_directory_uri() . '/assets/img/dashboard/logo.svg' ); ?>" alt="<?php esc_attr_e( 'Neve Logo', 'neve' ); ?>" />
<a href="<?php echo esc_url_raw( $neve_dashboard_url ); ?>">
<img src="<?php echo esc_url_raw( get_template_directory_uri() . '/assets/img/dashboard/logo.svg' ); ?>" alt="<?php esc_attr_e( 'Neve Logo', 'neve' ); ?>" />
</a>

<span class="nv-admin-title"><?php esc_html_e( 'Neve', 'neve' ); ?></span>
<span class="nv-admin-badge"><?php echo $is_using_pro ? esc_html__( 'Pro', 'neve' ) : esc_html__( 'Free', 'neve' ); ?></span>
Expand All @@ -1043,12 +1052,12 @@ public function render_neve_header() {
</div>

<div class="nv-admin-header-right">
<a href="https://docs.themeisle.com/collection/1557-neve" target="_blank">
<a href="https://docs.themeisle.com/article/946-neve-doc" target="_blank">
<span class="dashicons dashicons-book-alt" aria-hidden="true"></span>
<?php esc_html_e( 'Documentation', 'neve' ); ?>
</a>
<span style="color: #ccc;">|</span>
<a href="https://github.com/Codeinwp/neve/blob/master/CHANGELOG.md" target="_blank">
<a href="<?php echo esc_url_raw( $neve_dashboard_changelog_url ); ?>" target="_blank">
<span class="dashicons dashicons-media-text" aria-hidden="true"></span>
<?php esc_html_e( 'Changelog', 'neve' ); ?>
</a>
Expand Down

0 comments on commit 0b06861

Please sign in to comment.