PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.4.6
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.4.6
1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 1.8.0 All 210 releases
charitable / includes / admin / views / settings / settings.php

settings.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.4.6, at includes/admin/views/settings/settings.php

37 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Display the main settings page wrapper.
4 *
5 * @author Studio 164a
6 * @package Charitable/Admin View/Settings
7 * @since 1.0.0
8 */
9
10 $active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'general';
11 $group = isset( $_GET['group'] ) ? $_GET['group'] : $active_tab;
12
13 ob_start();
14 ?>
15 <div id="charitable-settings" class="wrap">
16 <h2 class="nav-tab-wrapper">
17 <?php foreach ( charitable_get_admin_settings()->get_sections() as $tab => $name ) : ?>
18 <a href="<?php echo esc_url( add_query_arg( array( 'tab' => $tab ), admin_url( 'admin.php?page=charitable-settings' ) ) ) ?>" class="nav-tab <?php echo $active_tab == $tab ? 'nav-tab-active' : '' ?>"><?php echo $name ?></a>
19 <?php endforeach ?>
20 </h2>
21 <?php do_action( 'charitable_before_admin_settings', $group ) ?>
22 <form method="post" action="options.php">
23 <table class="form-table">
24 <?php
25 settings_fields( 'charitable_settings' );
26 charitable_do_settings_fields( 'charitable_settings_' . $group, 'charitable_settings_' . $group );
27 ?>
28 </table>
29 <?php
30 submit_button();
31 ?>
32 </form>
33 <?php do_action( 'charitable_after_admin_settings', $group ) ?>
34 </div>
35 <?php
36 echo ob_get_clean();
37