tickets
12 years ago
app-shop.php
12 years ago
datepicker.php
12 years ago
event-map.php
12 years ago
event-sidebar-options.php
12 years ago
events-audit-trail.php
12 years ago
events-meta-box.php
12 years ago
no-comments.php
12 years ago
organizer-meta-box.php
12 years ago
recurrence-dialog.php
12 years ago
tribe-options-display.php
12 years ago
tribe-options-general.php
12 years ago
tribe-options-help.php
12 years ago
tribe-options-network.php
12 years ago
venue-meta-box.php
12 years ago
widget-admin-list.php
12 years ago
app-shop.php
64 lines
| 1 | <div id="tribe-app-shop" class="wrap"> |
| 2 | |
| 3 | <div class="header"> |
| 4 | <h2><?php _e( 'Tribe Event Add-Ons', 'tribe-events-calendar' ); ?></h2> |
| 5 | </div> |
| 6 | |
| 7 | |
| 8 | <div class="content-wrapper"> |
| 9 | <?php |
| 10 | |
| 11 | if ( ! empty( $banner ) ) { |
| 12 | $banner_markup = ""; |
| 13 | if ( property_exists( $banner, 'top_banner_url' ) && ! empty( $banner->top_banner_url ) ) { |
| 14 | $banner_markup = sprintf( "<img src='%s'/>", esc_url( $banner->top_banner_url ) ); |
| 15 | } |
| 16 | if ( property_exists( $banner, 'top_banner_link' ) && ! empty( $banner->top_banner_link ) ) { |
| 17 | $banner_markup = sprintf( "<a href='%s' target='_blank'>%s</a>", esc_url( $banner->top_banner_link ), $banner_markup ); |
| 18 | } |
| 19 | echo $banner_markup; |
| 20 | } |
| 21 | |
| 22 | $category = null; |
| 23 | $i = 1; |
| 24 | foreach ( (array) $products as $product ) { |
| 25 | |
| 26 | ?> |
| 27 | |
| 28 | <?php if ( $product->category != $category ) { ?> |
| 29 | |
| 30 | <?php if ( $category !== null ) { ?></div><?php } ?> |
| 31 | |
| 32 | <div class="addon-grid"> |
| 33 | |
| 34 | <?php |
| 35 | $category = $product->category; |
| 36 | } ?> |
| 37 | <div class="tribe-addon<?php if ( $i == 1) { echo ' first'; } ?>"> |
| 38 | <div class="thumb"> |
| 39 | <a href="<?php echo $product->permalink; ?>"><img src="<?php echo $product->featured_image_url; ?>" /></a> |
| 40 | </div> |
| 41 | <div class="caption"> |
| 42 | <h4><a href="<?php echo $product->permalink; ?>"><?php echo $product->title;?></a></h4> |
| 43 | |
| 44 | <div class="description"> |
| 45 | <p><?php echo $product->description;?></p> |
| 46 | </div> |
| 47 | <div class="meta"> |
| 48 | <?php |
| 49 | if ( $product->version ) { |
| 50 | echo sprintf( "<strong>%s</strong>: %s<br/>", __( 'Version', 'tribe-events-calendar' ), $product->version ); |
| 51 | } |
| 52 | if ( $product->last_update ) { |
| 53 | echo sprintf( "<strong>%s</strong>: %s<br/>", __( 'Last Update', 'tribe-events-calendar' ), $product->last_update ); |
| 54 | } |
| 55 | ?> |
| 56 | </div> |
| 57 | <a class="button button-primary" href="<?php echo $product->permalink; ?>">Get This Add-on</a> |
| 58 | </div> |
| 59 | </div> |
| 60 | |
| 61 | <?php $i++; } ?> |
| 62 | </div> |
| 63 | </div> |
| 64 |