PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.8.23.4
Pods – Custom Content Types and Fields v2.8.23.4
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / tribe-common / src / admin-views / app-shop.php
pods / tribe-common / src / admin-views Last commit date
notices 2 weeks ago tabbed-view 2 weeks ago widgets 2 weeks ago app-shop.php 2 weeks ago event-log.php 2 weeks ago tribe-options-display.php 2 weeks ago tribe-options-general.php 2 weeks ago tribe-options-help.php 2 weeks ago tribe-options-licenses.php 2 weeks ago tribe-options-network.php 2 weeks ago
app-shop.php
207 lines
1 <?php
2 // $main, $products, $bundles, $extensions must be defined before loading this file
3
4 $all_products = [
5 'for-sale' => [],
6 'installed' => [],
7 ];
8 foreach ( $products as $product ) {
9 if ( $product->is_installed ) {
10 $all_products['installed'][] = $product;
11 } else {
12 $all_products['for-sale'][] = $product;
13 }
14 }
15 ?>
16
17 <div id="tribe-app-shop">
18
19 <div class="tribe-header">
20 <div class="content-wrapper">
21 <div class="logo-word-mark">
22 <img
23 src="<?php echo esc_url( tribe_resource_url( 'images/logo/tec-brand.svg', false, null, $main ) ); ?>"
24 alt="<?php esc_attr_e( 'The Events Calendar brand logo', 'tribe-common' ); ?>"
25 />
26 </div>
27
28 <ul>
29 <li class="selected" data-tab="tribe-all-solutions"><?php esc_html_e( 'All Solutions', 'tribe-common' ); ?></li>
30 <li data-tab="tribe-bundles"><?php esc_html_e( 'Save with Bundles', 'tribe-common' ); ?></li>
31 <li data-tab="tribe-extensions"><?php esc_html_e( 'Extensions', 'tribe-common' ); ?></li>
32 </ul>
33 </div>
34 </div>
35
36 <div id="tribe-all-solutions" class="tribe-content">
37 <img
38 class="tribe-events-admin-graphic"
39 src="<?php echo esc_url( tribe_resource_url( 'images/header/all-solutions.jpg', false, null, $main ) ); ?>"
40 alt="<?php esc_attr_e( 'Shapes and lines for visual interest', 'tribe-common' ); ?>"
41 />
42 <div class="content-wrapper">
43 <div class="addon-grid">
44 <?php foreach ( $all_products as $status => $some_products ) : ?>
45 <?php if ( 'for-sale' == $status ) :?>
46 <h2><?php esc_html_e( 'One calendar. Countless ways to make it your own.', 'tribe-common' ); ?></h2>
47 <p><?php esc_html_e( 'Calendars, ticketing, and powerful WordPress tools to manage your events from start to finish.', 'tribe-common' ); ?></p>
48 <?php else: ?>
49 <h2 class="already-installed"><?php esc_html_e( 'Already Installed', 'tribe-common' ); ?></h2>
50 <?php endif; ?>
51
52 <?php foreach ( $some_products as $product ) : ?>
53 <div class="tribe-addon">
54 <div class="headline">
55 <img src="<?php echo esc_url( tribe_resource_url( $product->logo, false, null, $main ) ); ?>" alt="<?php esc_attr_e( 'TEC Logo', 'tribe-common' ); ?>" />
56 <h3 <?php echo ( 'installed' == $status || $product->free ) ? 'class="has-pill"' : ''; ?>><a href="<?php echo esc_url( $product->link ); ?>" target="_blank"><?php echo esc_html( $product->title ); ?></a></h3>
57
58 <?php if ( 'installed' == $status ) : ?>
59 <span class="pill active"><?php esc_html_e( 'Active', 'tribe-common' ); ?></span>
60 <?php elseif ( $product->free ) : ?>
61 <span class="pill free"><?php esc_html_e( 'FREE', 'tribe-common' ); ?></span>
62 <?php endif; ?>
63
64 </div>
65 <div class="promo-image">
66 <a href="<?php echo esc_url( $product->link ); ?>" target="_blank"><img src="<?php echo esc_url( tribe_resource_url( $product->image, false, null, $main ) ); ?>" /></a>
67 </div>
68
69 <div class="description">
70 <p><?php echo esc_html( $product->description ); ?></p>
71 </div>
72
73 <ul class="features">
74 <?php foreach( $product->features as $feature ) : ?>
75 <li>
76 <span class="check">
77 <svg fill="none" height="12" viewBox="0 0 16 12" width="16" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="m13.7357.374803-8.40784 8.402337-3.06361-3.06158c-.52424-.506-1.357557-.49877-1.872924.01626s-.522608 1.34779-.016275 1.87169l4.008209 4.00559c.52173.5212 1.36747.5212 1.8892 0l9.35244-9.34634c.5064-.5239.4991-1.356665-.0162-1.871692-.5154-.515027-1.3487-.522264-1.873-.016265z" fill="#3d54ff" fill-rule="evenodd"/></svg>
78 </span><span class="feature-text">
79 <?php echo esc_html( $feature ); ?>
80 </span>
81 </li>
82 <?php endforeach; ?>
83 </ul>
84
85 <?php if ( 'installed' == $status ) : ?>
86 <a class="button" href="https://evnt.is/1aiz"><?php esc_html_e( 'Manage', 'tribe-common' ); ?></a>
87 <?php else : ?>
88 <a class="button" href="<?php echo esc_url( $product->link ); ?>"><?php esc_html_e( 'Learn More', 'tribe-common' ); ?></a>
89 <?php endif; ?>
90
91 </div>
92 <?php endforeach; ?>
93 <?php endforeach; ?>
94 </div>
95 </div>
96 </div>
97
98 <div id="tribe-bundles" class="tribe-content">
99 <img
100 class="tribe-events-admin-graphic"
101 src="<?php echo esc_url( tribe_resource_url( 'images/header/bundles.jpg', false, null, $main ) ); ?>"
102 alt="<?php esc_attr_e( 'Shapes and lines for visual interest', 'tribe-common' ); ?>"
103 />
104 <div class="content-wrapper">
105 <div class="addon-grid">
106 <h2><?php esc_html_e( 'The plugins you need at one discounted price', 'tribe-common' ); ?></h2>
107 <p><?php esc_html_e( 'We\'ve packaged our most popular plugins into bundles jam-packed with value.', 'tribe-common' ); ?></p>
108 <?php foreach ( $bundles as $bundle ) : ?>
109 <div class="tribe-bundle">
110 <div class="details">
111 <div class="headline">
112 <img src="<?php echo esc_url( tribe_resource_url( $bundle->logo, false, null, $main ) ); ?>" alt="<?php esc_attr_e( 'TEC Logo', 'tribe-common' ); ?>" />
113 <h3><a href="<?php echo esc_url( $bundle->link ); ?>" target="_blank"><?php echo esc_html( $bundle->title ); ?></a></h3>
114 </div>
115
116 <p><?php echo esc_html( $bundle->description ); ?></p>
117
118 <div class="cta wide">
119 <a class="button" href="<?php echo esc_url( $bundle->link ); ?>"><?php esc_html_e( 'Save With A Bundle', 'tribe-common' ); ?></a>
120 <span class="discount"><?php echo esc_html( $bundle->discount ); ?></span>
121 </div>
122 </div>
123
124 <div class="includes">
125 <h4><?php esc_html_e( 'Includes', 'tribe-common' ); ?></h4>
126 <ul>
127 <?php foreach ( $bundle->includes as $i => $product_key ) : ?>
128 <?php
129 // get $product object
130 $product = $products[ $product_key ];
131 ?>
132
133 <li>
134 <img src="<?php echo esc_url( tribe_resource_url( $product->logo, false, null, $main ) ); ?>" alt="<?php esc_attr_e( 'TEC Logo', 'tribe-common' ); ?>" />
135 <span><?php echo esc_html( $product->title ); ?></span>
136 </li>
137
138 <?php if ( $i == 4 ) : // if there are 5 products included, then we need 2 lists ?>
139 </ul><ul class="second">
140 <?php endif; ?>
141 <?php endforeach; ?>
142 </ul>
143 </div>
144
145 <div class="cta narrow">
146 <a class="button" href="<?php echo esc_url( $bundle->link ); ?>"><?php esc_html_e( 'Save With A Bundle', 'tribe-common' ); ?></a>
147 <span class="discount"><?php echo esc_html( $bundle->discount ); ?></span>
148 </div>
149
150 </div>
151 <?php endforeach; ?>
152 </div>
153 </div>
154 </div>
155
156 <div id="tribe-extensions" class="tribe-content">
157 <img
158 class="tribe-events-admin-graphic"
159 src="<?php echo esc_url( tribe_resource_url( 'images/header/extensions.jpg', false, null, $main ) ); ?>"
160 alt="<?php esc_attr_e( 'Shapes and lines for visual interest', 'tribe-common' ); ?>"
161 />
162 <div class="content-wrapper">
163 <div class="addon-grid">
164 <h2><?php esc_html_e( 'Free extensions to power up your plugins', 'tribe-common' ); ?></h2>
165 <p><?php esc_html_e( 'Extensions are quick solutions our team came up with to solve specific issues you may need. (Note - extensions are not covered by our support team.)', 'tribe-common' ); ?></p>
166 <?php foreach ( $extensions as $extension ) : ?>
167 <div class="tribe-addon">
168 <div class="headline">
169 <h3 class="has-pill"><a href="<?php echo esc_url( $extension->link ); ?>" target="_blank"><?php echo esc_html( $extension->title ); ?></a></h3>
170 <span class="pill free"><?php esc_html_e( 'FREE', 'tribe-common' ); ?></span>
171 </div>
172
173 <div class="promo-image">
174 <a href="<?php echo esc_url( $extension->link ); ?>" target="_blank"><img src="<?php echo esc_url( tribe_resource_url( $extension->image, false, null, $main ) ); ?>" /></a>
175 </div>
176
177 <p><?php echo esc_html( $extension->description ); ?></p>
178
179 <a class="button" href="<?php echo esc_url( $extension->link ); ?>"><?php esc_html_e( 'Download', 'tribe-common' ); ?></a>
180 </div>
181 <?php endforeach; ?>
182
183 <a class="button secondary" href="https://evnt.is/1ajd"><?php esc_html_e( 'Browse Extensions', 'tribe-common' ); ?></a>
184
185 </div>
186
187 </div>
188 </div>
189
190 </div>
191
192 <?php // this is inline jQuery / javascript for extra simplicity */ ?>
193 <script type="text/javascript">
194 jQuery( document ).ready( function($) {
195 var current_tab = "#tribe-all-solutions";
196 $( 'body' ).on( "click", ".tribe-header li", function() {
197 var tab = "#" + $( this ).data( "tab" );
198 $( current_tab ).hide();
199 $( '.tribe-header li' ).removeClass( "selected" );
200 $( this ).addClass( "selected" );
201
202 $( tab ).show();
203 current_tab = tab;
204 } );
205 } );
206 </script>
207