Stampa il markup per la sezione Eventi della comunità del widget Dashboard Eventi e notizie.

Fonte

File: wp-admin/includes/dashboard.php

function wp_print_community_events_markup() {
	?>

	<divclass="community-events-errors notice notice-error inline hide-if-js"><pclass="hide-if-js">_e('This widget requires JavaScript.');?>p><pclass="community-events-error-occurred"aria-hidden="true">_e('An error occurred. Please try again.');?>p><pclass="community-events-could-not-locate"aria-hidden="true">p>div><divclass="community-events-loading hide-if-no-js">_e('Loading…');?>div>/*
	 * Hide the main element when the page first loads, because the content
	 * won't be ready until wp.communityEvents.renderEventsTemplate() has run.
	 */?><divid="community-events"class="community-events"aria-hidden="true"><divclass="activity-block"><p><spanid="community-events-location-message">span><buttonclass="button-link community-events-toggle-location"aria-label="esc_attr_e('Edit city');?>"aria-expanded="false"><spanclass="dashicons dashicons-edit">span>button>p><formclass="community-events-form"aria-hidden="true"action="echoesc_url(admin_url('admin-ajax.php'));?>"method="post"><labelfor="community-events-location">_e('City:');?>label>/* translators: Replace with a city related to your locale.
				 * Test that it matches the expected location and has upcoming
				 * events before including it. If no cities related to your
				 * locale have events, then use a city related to your locale
				 * that would be recognizable to most users. Use only the city
				 * name itself, without any region or country. Use the endonym
				 * (native locale name) instead of the English name if possible.
				 */?><inputid="community-events-location"class="regular-text"type="text"name="community-events-location"placeholder="esc_attr_e('Cincinnati');?>"/>submit_button(__('Submit'),'secondary','community-events-submit',false);?><buttonclass="community-events-cancel button-link"type="button"aria-expanded="false">_e('Cancel');?>button><spanclass="spinner">span>form>div><ulclass="community-events-results activity-block last">ul>div>}

Correlato

Utilizzi

Usi Descrizione
wp-admin/includes/template.php: submit_button()

Emette un pulsante di invio, con il testo fornito e le classi appropriate.

wp-includes/l10n.php: _e()

Mostra il testo tradotto.

wp-includes/l10n.php: esc_attr_e()

Mostra il testo tradotto che è stato evaso per un uso sicuro in un attributo.

wp-includes/l10n.php: __()

Recupera la traduzione di $testo.

wp-includes/formatting.php: esc_url()

Controlla e pulisce un URL.

wp-includes/link-template.php: admin_url()

Recupera l'URL dell'area di amministrazione del sito corrente.

Utilizzato da

Usato da Descrizione
wp-admin/includes/dashboard.php: wp_dashboard_events_news()

Rende il widget del cruscotto Eventi e notizie.

Changelog

Versione Descrizione
4.8.0 Introdotto.