'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']; ?>
-
date;
$date = slushman_adp_date_morph($rawdate);
echo $date; ?>timeSet;
$showtime = slushman_adp_time_morph($rawshowtime);
echo ", {$showtime} ";
} // End of if ( $showtime == 'on')
?>
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