Skip to content

Commit

Permalink
chore: reorganize settings
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani committed Sep 12, 2024
1 parent 9fff5cb commit 469e379
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions backend/templates/admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,31 +65,7 @@ class="button button-primary button-large nmsf-migrate-back-btn"><?php echo _e(

<!--Tabs & Panel Sections-->
<div class="row">
<div class="nmsf-tabs-area nmsf-cols col-md-2">
<div class="nmsf-tabs-content">
<?php
foreach ( $tabs as $tab_id => $tab ) {
$title = isset( $tab['title'] ) ? $tab['title'] : '';
$desc = isset( $tab['desc'] ) ? $tab['desc'] : '';
$icon = isset( $tab['icon'] ) ? $tab['icon'] : '';
$enable = isset( $tab['enable'] ) ? $tab['enable'] : '';
$classes = isset( $tab['classes'] ) ? $tab['classes'] : array();

if ( $enable ) {
?>
<div class="<?php echo implode( ' ', $classes ); ?>"
data-tab-id="<?php echo esc_attr( $tab_id ); ?>">
<span class="nmsf-tabs-dot"></span>
<span><?php echo esc_html( $title ); ?></span>
</div>

<?php
}
}
?>
</div>
</div>
<div class="nmsf-cols col-md-10">
<div class="nmsf-cols col-md-12">
<div class="nmsf-panels-area">

<?php
Expand Down

0 comments on commit 469e379

Please sign in to comment.