Skip to content

Instantly share code, notes, and snippets.

@amphibian
Created May 17, 2011 13:12
Show Gist options
  • Save amphibian/976437 to your computer and use it in GitHub Desktop.
Save amphibian/976437 to your computer and use it in GitHub Desktop.
Support aid: add the ticket link as its own column in GigPress
In shows-list.php find this ...
<?php if($gpo['display_country'] == 1) : ?>
<td class="gigpress-country"><?php echo $showdata['country']; ?></td>
<?php endif; ?>
And add this right after:
<td class="gigpress-ticket-col">
<?php echo $showdata['ticket_link']; ?>
</td>
You'll want to remove this near the end of the file as well:
<?php if($showdata['ticket_link']) : ?>
<span class="gigpress-info-item"><?php echo $showdata['ticket_link']; ?></span>
<?php endif; ?>
--
In shows-list-start.php
<?php
// $cols = 3;
$cols = 4;
?>
Before the closing </tr> add:
<th scope="col" class="gigpress-ticket-col">Tickets</th>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment