Skip to content

Commit

Permalink
Removed back button and changed header on Addon page
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-pranav committed Feb 6, 2024
1 parent 72178d1 commit 19997eb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions php/admin/addons-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@ function qmn_addons_page() {
<h2>
<?php
if ( isset( $_GET['tab'] ) && '' !== sanitize_text_field( wp_unslash( $_GET['tab'] ) ) ) {
?>
<a class="button button-default" href="?page=qmn_addons" style="margin-right: 10px"><span style="margin-top: 4px;"
class="dashicons dashicons-arrow-left-alt"></span>
<?php esc_html_e( 'Back to list', 'quiz-master-next' ); ?></a>
<?php
$key = array_search($_GET['tab'], array_column($tab_array, 'slug'));
$addon_title = false !== $key ? $tab_array[ $key ]['title'] : null;
echo esc_html_e( 'Manage ' . $addon_title . ' Addon', 'quiz-master-next' );
}
?>
<?php esc_html_e( 'Extend QSM With Addons', 'quiz-master-next' ); ?>
</h2>
<h2 class="nav-tab-wrapper" style="display: none;">
<?php
Expand Down Expand Up @@ -94,7 +91,7 @@ function qsm_generate_featured_addons() {
<div class="installed_addon">
<span class="installed_addon_name"><?php echo wp_kses_post( $tab['title'] ); ?></span>
<span class="installed_addon_link">
<a class="button button-default" href="?page=qmn_addons&tab=<?php echo esc_attr( $tab['slug'] ); ?>"><span
<a target="_blank" class="button button-default" href="?page=qmn_addons&tab=<?php echo esc_attr( $tab['slug'] ); ?>"><span
class="dashicons dashicons-admin-generic"></span>
<?php esc_html_e( 'Settings', 'quiz-master-next' ); ?></a>
</span>
Expand Down

0 comments on commit 19997eb

Please sign in to comment.