<h3>Live Music</h3>
			<div class="widget">
				<div class="tabletPaper">
					<h4>Next Up:</h4>
					<?php 
        displayNextLiveMusic();
        ?>
					<p class="note">
						click for our <a href="../events/liveMusic.php">Live Music</a> schedule
					</p>
				</div>
			</div>
		</aside>
	<?php 
    } else {
        if (getLiveMusicCount() == 0) {
            ?>
		<?php 
            if ($siteAttrLiveMusicMonthStartup) {
                ?>
			<aside id="nextLiveMusic">
				<h3>Live Music</h3>
				<div class="widget">
					<div class="tabletPaper">
						<h4>Coming Soon!</h4>
						<dl>
							<dt class="smTitle">Live Music returns in</dt>
							<dt class="color1"><?php 
                echo $siteAttrLiveMusicMonthStartup;
                ?>
</dt>
Exemple #2
0
					<!-- div class="beerSprite navText"></div -->
					<div class="mainRow">
						<div class="beerSprite leftFrame"></div>
						<div class="beerSprite rightFrame"></div>
						<div class="chalkBoard">
							<h2>Live Music</h2>
							On Special Dates!
							<?php 
    if (getLiveMusicCount() > 0) {
        ?>
								<?php 
        displayAllLiveMusic();
        ?>
							<?php 
    } else {
        if (getLiveMusicCount() == 0 && $siteAttrLiveMusicMonthStartup) {
            ?>
								<dl id="liveMusic" class="noSchedule">
									<dd class="date">Coming Soon!</dd>
									<dd class="date">Live Music will return in</dd>
									<dt class="color1"><?php 
            echo $siteAttrLiveMusicMonthStartup;
            ?>
</dt>
									<dd><br /><br />Check back for our full schedule of upcoming Live Entertainment</dd>
								</dl>
							<?php 
        }
    }
    ?>
						</div>
Exemple #3
0
function displayLiveMusic($indicator)
{
    global $sitePhone;
    global $liveMusicItemCount;
    global $liveMusicItemData;
    $monthSubstr = "";
    $eventColor = 0;
    if (getLiveMusicCount() > 0) {
        if ($indicator == "all") {
            echo "<ul id='liveMusic'>";
        }
        for ($i = 0; $i < $liveMusicItemCount; $i++) {
            $isValidDate = false;
            $eventName = "";
            $eventTime = "";
            $eventDate = "";
            if (isset($liveMusicItemData[$i]["name"])) {
                $eventName = $liveMusicItemData[$i]["name"];
            }
            if (isset($liveMusicItemData[$i]["time"])) {
                $eventTime = $liveMusicItemData[$i]["time"];
            }
            if (isset($liveMusicItemData[$i]["date"])) {
                $eventDate = $liveMusicItemData[$i]["date"];
            }
            if ($eventDate != "") {
                $eventMonth = date('m', strtotime(substr($eventDate, 0, 3)));
                $eventDay = trim(substr($eventDate, strpos($eventDate, ' '), strpos($eventDate, ',') - strpos($eventDate, ' ')));
                $eventYear = trim(substr($eventDate, strpos($eventDate, ',') + 1));
                $isValidDate = isValidDate($eventYear, $eventMonth, $eventDay);
            }
            if ($eventDate != "" && $isValidDate && $eventName != "" && $eventTime != "") {
                if (isset($eventDate)) {
                    if ($eventMonth != $monthSubstr) {
                        $eventColor += 1;
                        $monthSubstr = $eventMonth;
                    }
                    $eventDate = $eventDate;
                }
                if ($indicator == "all") {
                    echo "<li class=''>";
                }
                echo "<dl>";
                echo "<dd class='date'>" . $eventDate . "</dd>";
                echo "<dt class='color" . $eventColor . "'>" . $eventName . "</dt>";
                echo "<dd>" . $eventTime . "</dd>";
                echo "</dl>";
                if ($indicator == "all") {
                    echo "</li>";
                }
                if ($indicator == "next") {
                    return;
                }
            }
        }
        if ($indicator == "all") {
            echo "</ul>";
        }
    } else {
        echo "<p>Please call for the latest Live Music schedule.</p>";
        echo "<p>" . $sitePhone . "</p>";
    }
}