Example #1
0
function widget_dbem_list($args)
{
    extract($args);
    $options = get_option("widget_dbem_list");
    if (!is_array($options)) {
        $options = array('title' => __('Events', 'dbem'));
    }
    echo $before_widget;
    echo $before_title;
    echo $options['title'];
    echo $after_title;
    $events_list = dbem_get_events_list($options['limit'], $options['scope'], $options['order'], $options['format'], false);
    if ($events_list == __('No events', 'dbem')) {
        $events_list = "<li>{$events_list}</li>";
    }
    echo "<ul>\n\t\t\t\t\t{$events_list}\n\t\t \t </ul>";
    echo $after_widget;
}
Example #2
0
<?php 
$format = '#l #F #j, #Y MYS3P4R4T0R123#g:#i#a - #@g:#@i#@a MYS3P4R4T0R123#_LINKEDNAME MYS3P4R4T0R123#_TOWN 4R34LLyB1gS3p4R4t0R';
$whoey = explode('4R34LLyB1gS3p4R4t0R', dbem_get_events_list("echo=0&limit=20&format=" . $format));
$seendate = '';
$echoend = false;
foreach ($whoey as $listing) {
    $single = explode('MYS3P4R4T0R123', $listing);
    if ($single[0] == '') {
        break;
    }
    if ($seendate != $single[0]) {
        echo '<tbody>';
        echo '<tr><th colspan="3" class="text-left"><h4 class="event-date">' . $single[0] . '</h4></th></tr>';
        $seendate = $single[0];
    } else {
        $echoend = true;
    }
    ?>
      <tr>
          <td><?php 
    echo $event['start_time'] . ' - ' . $event['end_time'];
    ?>
</td>
          <td><?php 
    echo $event['name'];
    ?>
</td>
          <td><?php 
    echo $event['location_name'];
    ?>
function dbem_get_events_list_shortcode($atts)
{
    extract(shortcode_atts(array('limit' => 3, 'scope' => 'future', 'order' => 'ASC', 'format' => '', 'category' => ''), $atts));
    $result = dbem_get_events_list("limit={$limit}&scope={$scope}&order={$order}&format={$format}&echo=0&category={$category}");
    return $result;
}
Example #4
0
?>
 			<li class="lastfm"><a href="<?php 
artist_lastfm_link();
?>
">Last.fm</a></li>
 			<li class="music"><a href="<?php 
artist_musicbrainz_link();
?>
">Musicbrainz</a></li>
		</ul>
	</div>
	<div class="mod">
 		<h3>Gigs</h3>
 		<ul class="events">
 			<?php 
dbem_get_events_list("limit=3&order=DESC&category=" . artist_id(false));
?>
  		</ul>
  	</div>
	<?php 
$slug = artist_slug(false);
query_posts("tag={$slug}");
?>
	<?php 
if (have_posts()) {
    ?>
		<div class="mod">
		<h3>Tagged Posts</h3>
		<ul>
		<?php 
    while (have_posts()) {