Example #1
0
					<?php 
    }
    if (isset($_GET['views']) && in_array('m', explode('-', $_GET['views']))) {
        ?>
						<button id="monthBtn" class="blueBtn">Month</button>
					<?php 
    }
    ?>
					</div>
				
					<div id="calendar"></div>
				
					<?php 
    if (isset($_GET['views']) && in_array('l', explode('-', $_GET['views']))) {
        // populates events into list view for non-calendar viewing
        echo '<div id="listCal">' . renderListView($link) . '</div>';
    }
    ?>
				</div>
			</div>

		<!-- FEED EMBED -->
		<?php 
} else {
    if (isset($_GET['type']) && $_GET['type'] == 2) {
        function getEvents($feedURL, $maxItems = 10, $backfill = 0)
        {
            $eventsXML = simplexml_load_file($feedURL);
            if (!$eventsXML) {
                echo 'Visit events.uoit.ca to see all events.';
            }
Example #2
0
					<a id="uncheckAll" href="javascript:;">Deselect All</a>
							
				</aside>
			
				<div class="content columns large-9">
					
					<div class="viewChangers">
						<button id="listBtn" class="blueBtn">List</button><button id="weekBtn" class="blueBtn">Week</button><button id="monthBtn" class="blueBtn">Month</button>
					</div>
			
					<div id="calendar"></div>
					
					<div id="listCal">
						<?php 
// populates events into list view for non-calendar viewing
echo renderListView($link);
?>
					</div>
					
				</div>
			</div>
			
		</div>
		
		<div id="eventModal" class="eventContent reveal-modal" data-reveal="true">
			
			<!-- EMPTY MODAL FOR EVENT DETAIL DISPLAY -->
			<!-- LOADS CONTENTS FROM VIEW-EVENT.PHP VIA AJAX -->


		</div>