Falcon_Connector_WordPress::output_settings PHP Метод

output_settings() публичный Метод

public output_settings ( $user = null )
    public function output_settings($user = null)
    {
        // Are we on the notification defaults screen?
        $is_defaults_screen = empty($user);
        // Grab defaults and currently set
        $settings = $is_defaults_screen ? $this->get_default_settings() : $this->get_settings_for_user($user->ID);
        ?>
			<tr>
				<th scope="row"><?php 
        esc_html_e('Posts', 'falcon');
        ?>
</th>
				<td>
					<?php 
        $this->print_field('post', $settings, $is_defaults_screen);
        ?>
				</td>
			</tr>
			<tr>
				<th scope="row"><?php 
        esc_html_e('Comments', 'falcon');
        ?>
</th>
				<td>
					<?php 
        $this->print_field('comment', $settings, $is_defaults_screen);
        ?>
				</td>
			</tr>
		<?php 
    }