Falcon_Manager::user_profile_fields PHP Метод

user_profile_fields() публичный статический Метод

public static user_profile_fields ( $user_id )
    public static function user_profile_fields($user_id)
    {
        echo '<h3>' . esc_html__('Notification Settings', 'falcon') . '</h3>';
        if (Falcon::is_network_mode()) {
            // On multisite, we want to output a table of all
            // notification settings
            $sites = Falcon::get_option('falcon_enabled_sites', array());
            echo '<p class="description">' . esc_html__('Set your email notification settings for the following sites.', 'falcon') . '</p>';
            do_action('falcon.manager.network_profile_fields', $user_id, $sites);
            ?>
			<style>
				.falcon-grid .last_of_col {
					border-right: 2px solid rgba(0, 0, 0, 0.2);
				}
				.falcon-grid .last_of_col:last-child {
					border-right: none;
				}

				.falcon-grid thead th,
				.falcon-grid thead td,
				.falcon-grid tbody td {
					text-align: center;
				}
				.falcon-grid thead th {
					font-weight: bold;
				}
				.falcon-grid thead th,
				.falcon-grid thead td {
					border-bottom: 1px solid rgba(0, 0, 0, 0.1);
				}

				.falcon-grid th .details {
					font-weight: normal;
					font-size: 13px;
					color: #aaa;
				}
				.falcon-grid tbody th,
				.falcon-grid tbody td {
					border-bottom: 1px solid rgba(0, 0, 0, 0.05);
				}
			</style>
			<?php 
        } else {
            ?>

			<p class="description"><?php 
            esc_html_e('Set your email notification settings for the current site.', 'falcon');
            ?>
</p>

			<table class="form-table">
				<?php 
            do_action('falcon.manager.profile_fields', $user_id);
            ?>
			</table>
			<?php 
        }
    }