'artistdatapress-widget', 'description' => __('Display your ArtistData show feed in the sidebar', 'artistdatapress-widget') ); /* Widget settings. */
$this->WP_Widget( 'artistdatapress_widget', 'ArtistDataPress', $widget_ops ); /* Create the widget. */
} //End of artistdatapress_widget function
function form( $instance ) {
// Set up some default widget settings.
$defaults = array( 'title' => 'ArtistDataPress', 'quantity' => '', );
$instance = wp_parse_args( (array) $instance, $defaults );
$title = esc_attr( $instance['title'] );
$quantity = $instance['quantity'];
$showtime = $instance['showtime'];
$showname = $instance['showname'];
$showprice = $instance['showprice'];
$showage = $instance['showage'];
$showcountry = $instance['showcountry']; ?>
get_xml();
echo $before_widget;
if ( !empty( $title ) ) {
echo $before_title . $title . $after_title;
} ?>
-
date );
$date = date( $date_format, $showdate ); ?>
timeSet );
$time = date( $time_format, $gigtime ); ?>
at
name; ?>
venueURI ) ) {
echo ' ' . $show->venueName . '';
} else {
echo ' ' . $show->venueName . '';
}
// If there's a venue address, city & state is a Google Map link, otherwise just show the city & state
if ( !empty( $show->venueAddress ) ) { ?>
city;
if ( $show->stateAbbreviation == 'No State' ) {
echo ', ' . $show->country;
} elseif ( $showcountry == 'on' ) {
echo ', ' . $show->stateAbbreviation . ', ' . $show->countryAbbreviation;
} else {
echo ', ' . $show->stateAbbreviation;
} ?>
- map
city;
if ( $show->stateAbbreviation == 'No State' ) {
echo ', ' . $show->country;
} elseif ( $showcountry == 'on' ) {
echo ', ' . $show->stateAbbreviation . ', ' . $show->countryAbbreviation;
} else {
echo ', ' . $show->stateAbbreviation;
} ?>
ticketURI) ) { ?>
Tickets: ticketPrice; ?>
ticketPrice;
} ?>
Age Limit: ageLimit; ?>
-
More shows