'artistdatapress-widget', 'description' => __('Display your ArtistData feed in the sidebar', 'artistdatapress-widget') );
parent::__construct( 'artistdatapress-widget', 'ArtistDataPress', $widget_ops );
} //End of artistdatapress_widget function
function form( $instance ) {
$defaults = array( 'title' => 'ArtistDataPress', 'quantity' => '', );
$instance = wp_parse_args( (array) $instance, $defaults );
$title = esc_attr( $instance['title'] ); ?>
get_xml();
echo $before_widget;
if ( !empty( $title ) ) {
echo $before_title . $title . $after_title;
} ?>
show as $show ) { ?>
- date );
$date = date( $date_format, $gigdate );
$gigtime = strtotime( $show->timeSet );
$time = date( $time_format, $gigtime );
if ( $instance['showtime'] == 'off' ) {
$showdate = $date . '';
} elseif ( $instance['showtime'] == 'on' && isset( $options['slushman_adp_time_format'] ) ) {
$showdate = '' . $date . ' at ' . $time . '';
} // End of if ( $slushman_adp_display_time == 'on')
echo $showdate;
if ( $instance['showname'] == 'on') { ?>
name; ?>venueURI ) ) {
echo ' ' . $show->venueName . '';
} else {
echo ' ' . $show->venueName . '';
} // End of 'Is there a venue URL?'
if ( $show->stateAbbreviation == 'No State' ) {
$addyend = ', ' . $show->country;
} elseif ( $instance['showcountry'] == 'on' ) {
$addyend = ', ' . $show->stateAbbreviation . ', ' . $show->countryAbbreviation;
} else {
$addyend = ', ' . $show->stateAbbreviation;
} // End of 'create $addyend'
if ( !empty( $show->venueAddress ) ) {
$addy = $show->venueAddress . ', ' . $show->city . ', ' . $show->stateAbbreviation . ', ' . $show->country; ?>
city . $addyend; ?> - map
city . $addyend; ?>ticketURI) ) {
$tickets = 'Tickets: ' . $show->ticketPrice . '';
} else {
$tickets = 'Tickets: ' . $show->ticketPrice;
} ?>
Age Limit: ageLimit; ?>
-
More shows