Skip to content

Commit

Permalink
Minor Fixes
Browse files Browse the repository at this point in the history
- Added "What's This" to homepage
- Fixed shows with no names by adding "no name provided"
  • Loading branch information
athuler committed Feb 13, 2024
1 parent dc6dda5 commit 51e218c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 51e218c

Please sign in to comment.