Fragen\GitHub_Updater\Settings::print_section_ghu_settings PHP Метод

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

Print the GitHub Updater text.
    public function print_section_ghu_settings()
    {
        if (defined('GITHUB_UPDATER_EXTENDED_NAMING') && GITHUB_UPDATER_EXTENDED_NAMING) {
            printf(esc_html__('Extended Naming is %sactive%s.', 'github-updater'), '<strong>', '</strong>');
        }
        if (!defined('GITHUB_UPDATER_EXTENDED_NAMING') || defined('GITHUB_UPDATER_EXTENDED_NAMING') && !GITHUB_UPDATER_EXTENDED_NAMING) {
            printf(esc_html__('Extended Naming is %snot active%s.', 'github-updater'), '<strong>', '</strong>');
        }
        printf('<br>' . esc_html__('Extended Naming renames plugin directories %s to prevent possible conflicts with WP.org plugins.', 'github-updater'), '<code>&lt;git&gt;-&lt;owner&gt;-&lt;repo&gt;</code>');
        printf('<br>' . esc_html__('Activate Extended Naming by setting %s', 'github-updater'), '<code>define( \'GITHUB_UPDATER_EXTENDED_NAMING\', true );</code>');
        print '<p>' . esc_html__('Check to enable branch switching from the Plugins or Themes page.', 'github-updater') . '</p>';
    }