Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Add icon to Dashboard button indicating external link (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
thrijith authored and boris-spotim committed Mar 10, 2019
1 parent a280514 commit 38e4ac0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/images/dashboard_button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/stylesheets/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.spotim-page-wrap .nav-tab-wrapper .pull-to-end {
float: right;
margin-right: 0;
padding-right: 30px;
}
.spotim-page-wrap .nav-tab-wrapper .pull-to-end:hover,
.spotim-page-wrap .nav-tab-wrapper .pull-to-end:focus {
Expand Down Expand Up @@ -91,3 +92,10 @@
right: initial;
left: -30px;
}

a.spotim-dashboard-button {
background-image: url('../images/dashboard_button.svg') !important;
background: no-repeat;
background-size: 20px 20px;
background-position: right 5px top 5px;
}
2 changes: 1 addition & 1 deletion templates/admin-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a href="<?php echo esc_url( '?page=' . $this->slug . '&tab=display' ); ?>" class="nav-tab <?php echo ( 'display' === $this->active_tab ) ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Display', 'spotim-comments' ); ?></a>
<a href="<?php echo esc_url( '?page=' . $this->slug . '&tab=import' ); ?>" class="nav-tab <?php echo ( 'import' === $this->active_tab ) ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Comments Sync', 'spotim-comments' ); ?></a>
<a href="<?php echo esc_url( '?page=' . $this->slug . '&tab=advanced' ); ?>" class="nav-tab <?php echo ( 'advanced' === $this->active_tab ) ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Advanced', 'spotim-comments' ); ?></a>
<a href="https://admin.spot.im/" class="nav-tab pull-to-end" target="_blank"><?php esc_html_e( 'Spot.IM Dashboard', 'spotim-comments' ); ?></a>
<a href="https://admin.spot.im/" class="nav-tab pull-to-end spotim-dashboard-button" target="_blank"><?php esc_html_e( 'Spot.IM Dashboard', 'spotim-comments' ); ?></a>
</nav>

<form method="post" action="options.php">
Expand Down

0 comments on commit 38e4ac0

Please sign in to comment.