Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/untrobotics/website into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
tjcrozier committed Nov 16, 2024
2 parents ea50e69 + 1285ed9 commit 6e056d5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion about/our-web-team.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
head('Our Team', true);
$members = array();
$members[] = [
'name'=>'Peyton Thibodeaux',
'name'=>'Peyton Thibodeaux 2',
'title'=>'Webmaster | Team Member',
'description'=>"Peyton is a junior, studying computer science with a minor in mathematics. He's the webmaster for UNT Robotics and in charge of the website that you see in front of you. He enjoys learning and using new technologies and have a passion for creating things.",
'picture_uri'=>'/images/web-team-pics/peyton-thibodeaux.jpg',
Expand Down
23 changes: 14 additions & 9 deletions merch/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
$back_file = $selected_variant->get_file_by_type(PrintfulVariantFilesTypes::BACK);

head("Buy {$product->get_name()}", true);
$category_name = strtolower(preg_replace('@^.*\(([^()]+)\)$@i', '$1', $product->get_name()));
if($category_name !== 'gear' && $category_name[-1]!=='s'){
$category_name .= 's';
}

} else {
head("Invalid Product", true);
}
Expand Down Expand Up @@ -98,8 +103,8 @@ function get_variant_variant($variant_name) {
width: 100%;
}
.merch-section h6 {
border-bottom: 1px solid #a7a7a7;
margin-bottom: 5px;
border-bottom: 1px solid #a7a7a7;
margin-bottom: 5px;
}
.product-price {
color: red;
Expand All @@ -125,9 +130,9 @@ function get_variant_variant($variant_name) {
}
.variant-btn-container {
display: block;
height: 50px;
width: 100px;
position: relative;
height: 50px;
width: 100px;
position: relative;
}
.variant-btn {
border: 1px solid #d8d8d8;
Expand Down Expand Up @@ -159,9 +164,9 @@ function get_variant_variant($variant_name) {
<ul class="list-breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/merch">Merch</a></li>
<?php if ($product_can_be_handled) { ?>
<li><a href="/merch/<?php echo strtolower($catalog_product->get_type_name()).'s'; ?>"><?php echo $catalog_product->get_type_name(); ?>s</a></li>
<?php } ?>
<?php if ($product_can_be_handled) { ?>
<li><a href="/merch/<?php echo $category_name; ?>"><?php echo $category_name; ?></a></li>
<?php } ?>
<li>Product</li>
</ul>
</div>
Expand Down Expand Up @@ -320,7 +325,7 @@ class="btn variant-btn"
//echo $button['btn'];
$button = $payment_button->get_button();
if ($button->error === false) {
echo "button success";
echo "button success";
echo $payment_button->get_button()->button;
} else {
// TODO: Alert
Expand Down
5 changes: 1 addition & 4 deletions sql/migrations/urw-64.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ MODIFY name char(128) NOT NULL;
ALTER TABLE ftpusers
MODIFY passwd char(128) NOT NULL;





CREATE TABLE ftpinvites (id int primary key auto_increment, email varchar(255), registration_token varchar(16));

0 comments on commit 6e056d5

Please sign in to comment.