# notifier/2.7.0/views/admin-settings.php

WANotifier for Forms and Actions, version 2.7.0. 62 lines.

- Page: https://pluginprobe.com/plugins/notifier/2.7.0/code/views/admin-settings.php
- Raw: https://pluginprobe.com/plugins/notifier/2.7.0/raw/views/admin-settings.php
- Modified: 2025-01-29T15:42:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/notifier/2.7.0/code/views/admin-settings.php#L10-L20`.

```php
<?php
/**
 * Admin View: Settings
 *
 * @package Notifier
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
?>
<div class="wrap notifier">
    <div class="notifier-wrapper">
    	<?php
    		$current_tab = isset($_GET['tab']) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'general';
    		$settings_tabs = Notifier_Settings::get_settings_tabs();
		 	echo '<h2 class="nav-tab-wrapper">';
			foreach ( $settings_tabs as $tab_key => $name ) {
				$class = ( $tab_key == $current_tab ) ? ' nav-tab-active' : '';
				echo '<a class="nav-tab' . esc_attr( $class ) . '" href="?page=notifier-settings&tab=' . esc_attr( $tab_key ) . '">' . esc_html($name) . '</a>';
			}
		    echo '</h2>';
    	?>

    	<?php do_action('notifier_before_settings_fields_form', $current_tab); ?>

        <form method="POST" id="notifier_settings_form" class="notifier-settings-form notifier-settings-form-<?php echo esc_attr( $current_tab ); ?>" action="" enctype="multipart/form-data">

        	<?php do_action('notifier_before_settings_fields', $current_tab); ?>

            <?php Notifier_Settings::show_settings_fields($current_tab); ?>

            <p class="submit">
                <button name="save" class="button-primary notifier-save-button" type="submit" value="">Save changes</button>
                <?php wp_nonce_field( NOTIFIER_NAME . '-settings' ); ?>
            </p>

            <?php do_action('notifier_after_settings_fields', $current_tab); ?>

        </form>
        <?php if($current_tab === 'click_to_chat'): ?>
			<?php $btn_style = get_option('notifier_ctc_button_style');?>
        	<div class="notifier-btn-preview-wrap">
        		<?php
	        		if($btn_style){
	        			if($btn_style == 'btn-custom-image'){
	        				echo '<style>.notifier-fields-table .notifier-chat-btn-image-url{display:table-row;}</style>';
	        			}

	        			if($btn_style !== 'default'){
	        				include_once NOTIFIER_PATH.'templates/buttons/'.$btn_style.'.php';
	        			}
	        		}
        		?>
        	</div>
        <?php endif; ?>

        <?php do_action('notifier_after_settings_fields_form', $current_tab); ?>

    </div>
</div>

```
