-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added "What's This" to homepage - Fixed shows with no names by adding "no name provided"
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,7 @@ function gtag(){dataLayer.push(arguments);} | |
|
||
<?php if($displaying_show) { ?> | ||
<title><?=$show_name;?> Tickets</title> | ||
<?php } else { ?><title>Home</title><?php } ?> | ||
<?php } else { ?><title>UChicago Ticketing System</title><?php } ?> | ||
|
||
<!-- Bootstrap --> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> | ||
|
@@ -335,15 +335,20 @@ function gtag(){dataLayer.push(arguments);} | |
|
||
|
||
<?php } else { ?> | ||
<h1>UChicago Ticketing</h1><br/> | ||
<div class="row"> | ||
<h1 class="col-auto">UChicago Ticketing</h1><br/> | ||
<button class="btn btn-outline-secondary col-auto float-end ms-auto" data-bs-toggle="modal" data-bs-target="#aboutModal">What's this?</button> | ||
</div> | ||
|
||
<br/> | ||
|
||
<div class="row row-cols-2 row-cols-md-4 g-4"> | ||
<div id="performanceTemplate" class="col"> | ||
<div class="card"> | ||
<img src="" class="card-img-top" alt=""> | ||
<div class="card-body"> | ||
<!--<h5 class="card-title ">Show title</h5>--> | ||
<span class="card-text showName">Description</span> | ||
<span class="card-text showName">Show Name</span> | ||
<a class="stretched-link"></a> | ||
</div> | ||
</div> | ||
|
@@ -372,7 +377,11 @@ function gtag(){dataLayer.push(arguments);} | |
|
||
|
||
// Set Performance Name | ||
thisPerformance.querySelector('.showName').textContent = show[5]; | ||
if(show[5] != "") { | ||
thisPerformance.querySelector('.showName').textContent = show[5]; | ||
} else { | ||
thisPerformance.querySelector('.showName').textContent = "No Name Provided"; | ||
} | ||
|
||
// Set Performance Thumbnail | ||
thisPerformance.querySelector('.card-img-top').src = "https://tickets.uchicago.edu/"+show[20]; | ||
|