Skip to content

Commit

Permalink
Updated nav wrappers #377
Browse files Browse the repository at this point in the history
  • Loading branch information
devin committed Oct 29, 2015
1 parent db813e0 commit 0c75de9
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion assets/css/give-admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/give-admin.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/css/give-admin.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/admin/admin-scripts.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/scss/admin/reports.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

body.give_forms_page_give-reports, body.give_forms_page_give-payment-history {

h2.nav-tab-wrapper {
h1.nav-tab-wrapper {
margin-bottom: 10px;
}
.actions {
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/register-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function admin_page_display() {
?>

<div class="wrap give_settings_page cmb2_options_page <?php echo $this->key; ?>">
<h2 class="nav-tab-wrapper">
<h1 class="nav-tab-wrapper">
<?php
foreach ( $this->give_get_settings_tabs() as $tab_id => $tab_name ) {

Expand All @@ -148,7 +148,7 @@ public function admin_page_display() {
echo '</a>';
}
?>
</h2>
</h1>

<?php cmb2_metabox_form( $this->give_settings( $active_tab ), $this->key ); ?>

Expand Down
4 changes: 2 additions & 2 deletions includes/admin/reporting/reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function give_reports_page() {
$active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'reports';
?>
<div class="wrap">
<h2 class="nav-tab-wrapper">
<h1 class="nav-tab-wrapper">
<a href="<?php echo esc_url( add_query_arg( array(
'tab' => 'reports',
'settings-updated' => false
Expand All @@ -52,7 +52,7 @@ function give_reports_page() {
'settings-updated' => false
), $current_page ) ); ?>" class="nav-tab <?php echo $active_tab == 'logs' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Logs', 'give' ); ?></a>
<?php do_action( 'give_reports_tabs' ); ?>
</h2>
</h1>

<?php
do_action( 'give_reports_page_top' );
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function admin_head() {
public function tabs() {
$selected = isset( $_GET['page'] ) ? $_GET['page'] : 'give-about';
?>
<h2 class="nav-tab-wrapper">
<h1 class="nav-tab-wrapper">
<a class="nav-tab <?php echo $selected == 'give-about' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'give-about' ), 'index.php' ) ) ); ?>">
<?php _e( "About Give", 'give' ); ?>
</a>
Expand All @@ -230,7 +230,7 @@ public function tabs() {
<a class="nav-tab <?php echo $selected == 'give-add-ons' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url( admin_url( null, 'index.php' ) ) . 'edit.php?post_type=give_forms&page=give-addons'; ?>">
<?php _e( 'Add-ons', 'give' ); ?>
</a>
</h2>
</h1>
<?php
}

Expand Down

0 comments on commit 0c75de9

Please sign in to comment.