PluginProbe
Team Showcase / trunk
Team Showcase vtrunk
trunk 1.0 1.1 1.11 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.22.0 1.22.1 1.22.10 1.22.12 1.22.13 1.22.14 All 49 releases
team / includes / functions-settings-hook.php

functions-settings-hook.php in Team Showcase trunk, at includes/functions-settings-hook.php

797 lines 32.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) exit; // if direct access
3
4 add_action('team_settings_content_general', 'team_settings_content_general');
5
6 function team_settings_content_general()
7 {
8 $settings_tabs_field = new settings_tabs_field();
9
10 $team_settings = get_option('team_settings');
11
12 $team_member_slug = isset($team_settings['team_member_slug']) ? $team_settings['team_member_slug'] : '';
13 $custom_meta_fields = isset($team_settings['custom_meta_fields']) ? $team_settings['custom_meta_fields'] : '';
14 $custom_social_fields = isset($team_settings['custom_social_fields']) ? $team_settings['custom_social_fields'] : '';
15
16 ?>
17 <div class="section">
18 <div class="section-title"><?php echo esc_html__('General', 'team'); ?></div>
19 <p class="description section-description"><?php echo esc_html__('Choose some general options.', 'team'); ?></p>
20
21 <?php
22
23 $args = array(
24 'id' => 'team_member_slug',
25 'parent' => 'team_settings',
26 'title' => __('Team member slug', 'team'),
27 'details' => __('Write custom team member slug.', 'team'),
28 'type' => 'text',
29 'value' => $team_member_slug,
30 'default' => '',
31 'placeholder' => 'volunteers',
32 );
33
34 $settings_tabs_field->generate_field($args);
35
36
37 $meta_fields = array(
38
39 array(
40 'id' => 'name',
41 'title' => __('Meta Name', 'team'),
42 'details' => __('Write meta field name here.', 'team'),
43 'type' => 'text',
44 'value' => '',
45 'default' => '',
46 'placeholder' => 'Address',
47 ),
48 array(
49 'id' => 'meta_key',
50 'title' => __('Meta key', 'team'),
51 'details' => __('Write meta key here.', 'team'),
52 'type' => 'text',
53 'value' => '',
54 'default' => '',
55 'placeholder' => 'meta_key',
56 ),
57
58
59 );
60
61
62 $args = array(
63 'id' => 'custom_meta_fields',
64 'parent' => 'team_settings',
65 'title' => __('Custom meta fields', 'team'),
66 'details' => __('Custom meta fields on team member profile', 'team'),
67 'collapsible' => true,
68 'type' => 'repeatable',
69 'limit' => 10,
70 'title_field' => 'name',
71 'value' => $custom_meta_fields,
72 'fields' => $meta_fields,
73 );
74
75 $settings_tabs_field->generate_field($args);
76
77
78
79
80 $social_field = array(
81
82 array(
83 'id' => 'name',
84 'title' => __('Meta Name', 'team'),
85 'details' => __('Write meta field name here.', 'team'),
86 'type' => 'text',
87 'value' => '',
88 'default' => '',
89 'placeholder' => '',
90 ),
91 array(
92 'id' => 'meta_key',
93 'title' => __('Meta key', 'team'),
94 'details' => __('Write meta key here.', 'team'),
95 'type' => 'text',
96 'value' => '',
97 'default' => '',
98 'placeholder' => 'meta_key',
99 ),
100
101 array(
102 'id' => 'icon',
103 'title' => __('Add icon', 'team'),
104 'details' => __('Upload icon image here.', 'team'),
105 'type' => 'media_url',
106 'value' => '',
107 'default' => '',
108 'placeholder' => '',
109 ),
110
111 array(
112 'id' => 'font_icon',
113 'title' => __('Add font icon', 'team'),
114 'details' => __('Add font icon html here, you can use <a href="https://fontawesome.com/icons">fontawesome</a> ex: <code> &lt;i class="fab fa-facebook-square">&lt;/i></code>.', 'team'),
115 'type' => 'text',
116 'value' => '',
117 'default' => '',
118 'placeholder' => '<i class=&quot;fab fa-facebook-square&quot;></i>',
119 ),
120
121 array(
122 'id' => 'visibility',
123 'title' => __('Visibility', 'team'),
124 'details' => __('Choose visibility.', 'team'),
125 'type' => 'select',
126 'value' => '',
127 'default' => '',
128 'args' => array('1' => 'Yes', '' => 'No'),
129 ),
130
131 );
132
133
134 $args = array(
135 'id' => 'custom_social_fields',
136 'parent' => 'team_settings',
137 'title' => __('Custom social fields', 'team'),
138 'details' => __('Custom social fields on team member profile', 'team'),
139 'collapsible' => true,
140 'type' => 'repeatable',
141 'limit' => 10,
142 'title_field' => 'name',
143 'value' => $custom_social_fields,
144 'fields' => $social_field,
145 );
146
147 $settings_tabs_field->generate_field($args);
148
149
150
151 ?>
152
153 </div>
154
155 <?php
156
157
158
159
160
161 }
162
163 add_action('team_settings_content_team_member', 'team_settings_content_team_member');
164
165 function team_settings_content_team_member()
166 {
167 $settings_tabs_field = new settings_tabs_field();
168
169 $team_settings = get_option('team_settings');
170
171 $hide_featured_image = isset($team_settings['team_member']['hide_featured_image']) ? $team_settings['team_member']['hide_featured_image'] : '';
172 $hide_post_title = isset($team_settings['team_member']['hide_post_title']) ? $team_settings['team_member']['hide_post_title'] : '';
173 $is_public = isset($team_settings['team_member']['is_public']) ? $team_settings['team_member']['is_public'] : '';
174
175 ?>
176 <div class="section">
177 <div class="section-title"><?php echo esc_html__('Single team member', 'team'); ?></div>
178 <p class="description section-description"><?php echo esc_html__('Choose some options for single team member page.', 'team'); ?></p>
179
180
181 <?php
182
183 $args = array(
184 'id' => 'hide_featured_image',
185 'parent' => 'team_settings[team_member]',
186 'title' => __('Hide featured image', 'team'),
187 'details' => __('Hide feature image from single team member page.', 'team'),
188 'type' => 'select',
189 'value' => $hide_featured_image,
190 'default' => '',
191 'args' => array('no' => 'No', 'yes' => 'Yes'),
192 );
193
194 $settings_tabs_field->generate_field($args);
195
196 $args = array(
197 'id' => 'hide_post_title',
198 'parent' => 'team_settings[team_member]',
199 'title' => __('Hide post title', 'team'),
200 'details' => __('Hide post title from single team member page.', 'team'),
201 'type' => 'select',
202 'value' => $hide_post_title,
203 'default' => '',
204 'args' => array('no' => 'No', 'yes' => 'Yes'),
205 );
206
207 $settings_tabs_field->generate_field($args);
208
209 $args = array(
210 'id' => 'is_public',
211 'parent' => 'team_settings[team_member]',
212 'title' => __('Team member page allow access', 'team'),
213 'details' => __('Allow access to single team member page..', 'team'),
214 'type' => 'select',
215 'value' => $is_public,
216 'default' => '',
217 'args' => array('yes' => 'Yes', 'no' => 'No',),
218 );
219
220 $settings_tabs_field->generate_field($args);
221
222 ?>
223 </div>
224 <?php
225 }
226
227 add_action('team_settings_content_help_support', 'team_settings_content_help_support');
228
229 if (!function_exists('team_settings_content_help_support')) {
230 function team_settings_content_help_support($tab)
231 {
232
233 $settings_tabs_field = new settings_tabs_field();
234
235 ?>
236 <div class="section">
237 <div class="section-title"><?php echo esc_html__('Get support', 'team'); ?></div>
238 <p class="description section-description"><?php echo esc_html__('Use following to get help and support from our expert team.', 'team'); ?></p>
239
240 <?php
241
242
243 $layouts_free_url = team_plugin_url . 'sample-data/team-layouts.xml';
244 $layouts_free_url_json = team_plugin_url . 'sample-data/team-layouts.json';
245
246
247 ob_start();
248 ?>
249
250 <p><b>Team</b> provide some ready layouts to get started, please follow the steps bellow to import default layouts.</p>
251
252 <p><?php echo esc_html__('Import free layouts', 'team'); ?></p>
253
254
255
256 <a class="button" href="<?php echo esc_url_raw($layouts_free_url); ?>"><?php echo esc_html__('Download XML', 'team'); ?></a>
257
258 <p>Import manually</p>
259
260 <ul>
261 <li>Step - 1: Go to <a href="<?php echo esc_url(admin_url()); ?>import.php">import</a> menu and install & activate <b>WordPress</b> Importer plugin. click to "Install Now" button to install.</li>
262 <li>Step - 2: Download following xml file by clicking button bellow, save the file on your local machine.</li>
263 <li>Step - 3: Go to importer page <a href="<?php echo esc_url(admin_url()); ?>import.php?import=wordpress">Import WordPress</a> and chose the downloaded file and then click to <b>Upload file and import</b>.</li>
264 <li>Step - 4: Go to <a href="<?php echo esc_url(admin_url()); ?>edit.php?post_type=team_layout">Team layouts</a> page to see imported layouts.</li>
265 </ul>
266
267
268
269
270 <?php
271 if (is_plugin_active('team-pro/team-pro.php')) {
272
273 $layouts_pro_url = team_pro_plugin_url . 'sample-data/team-layouts.xml';
274 $layouts_pro_url_json = team_pro_plugin_url . 'sample-data/team-layouts.json';
275
276
277 if ($layouts_pro_url) :
278 ?>
279 <p><?php echo esc_html__('Import premium layouts', 'team'); ?></p>
280
281 <a class="button" href="<?php echo esc_url_raw($layouts_pro_url); ?>"><?php echo esc_html__('Download Pro XML', 'team'); ?></a>
282
283 <?php
284 endif;
285 }
286 ?>
287
288
289 <?php
290
291 $html = ob_get_clean();
292
293 $args = array(
294 'id' => 'import_layouts',
295 //'parent' => '',
296 'title' => __('Import layouts', 'team'),
297 'details' => '',
298 'type' => 'custom_html',
299 'html' => $html,
300
301 );
302
303 $settings_tabs_field->generate_field($args);
304
305
306
307 ob_start();
308 ?>
309 <ul>
310 <li>Step - 1: Go to Tools > <a href="<?php echo esc_url(admin_url()); ?>export.php">Export</a> menu.</li>
311 <li>Step - 2: Choose "Team layouts" post types from list.</li>
312 <li>Step - 3: Then click to "Download Export File' button.</li>
313 <li>Step - 4: Save the file on your local machine.</li>
314 </ul>
315
316 <?php
317
318 $html = ob_get_clean();
319
320 $args = array(
321 'id' => 'export_layouts',
322 //'parent' => '',
323 'title' => __('Export layouts', 'team'),
324 'details' => '',
325 'type' => 'custom_html',
326 'html' => $html,
327
328 );
329
330 $settings_tabs_field->generate_field($args);
331
332
333
334
335
336
337 ob_start();
338 ?>
339
340 <p><?php echo esc_html__('Ask question for free on our forum and get quick reply from our expert team members.', 'team'); ?></p>
341 <a class="button" href="https://www.pickplugins.com/create-support-ticket/"><?php echo esc_html__('Create support ticket', 'team'); ?></a>
342
343 <p><?php echo esc_html__('Read our documentation before asking your question.', 'team'); ?></p>
344 <a class="button" href="https://www.pickplugins.com/documentation/team/"><?php echo esc_html__('Documentation', 'team'); ?></a>
345
346 <p><?php echo esc_html__('Watch video tutorials.', 'team'); ?></p>
347 <a class="button" href="https://www.youtube.com/playlist?list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy"><i class="fab fa-youtube"></i> <?php echo esc_html__('All tutorials', 'team'); ?></a>
348
349 <ul>
350 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=SOe0D-Og3nQ&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=1">How to install plugin & setup</a></li>
351 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=zdaRmH_KGCI&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=2">How to create team showcase</a></li>
352 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=T2LyT-K4TF8&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=3">Display team showcase slider</a> [pro]</li>
353 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=zcWP-rB1xG0&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=4">Create filterable style grid</a> [pro]</li>
354 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=HjrePb90ToA&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=5">Add custom filter</a> [pro]</li>
355 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=8AWlEOLmgA4&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=6">Create glossary grid</a> [pro]</li>
356 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=n1aiPFL7QoM&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=7">Team showcase masonry style</a></li>
357 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=zDGM9KQxQbg&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=8">Team showcase pagination</a></li>
358 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=0YBEhSOXSeI&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=9">Team showcase customize layouts</a></li>
359 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=A5ARR__VimA&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=10">Query team members ids</a> [pro]</li>
360 <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=TtwkAKgYG-M&list=PL0QP7T2SN94atYZswlnBMhDuIYoqlmlxy&index=11">Customize team member page</a></li>
361
362 </ul>
363
364
365
366 <?php
367
368 $html = ob_get_clean();
369
370 $args = array(
371 'id' => 'get_support',
372 //'parent' => '',
373 'title' => __('Ask question', 'team'),
374 'details' => '',
375 'type' => 'custom_html',
376 'html' => $html,
377
378 );
379
380 $settings_tabs_field->generate_field($args);
381
382
383 ob_start();
384 ?>
385
386 <p class="">We wish your 2 minutes to write your feedback about the team plugin. give us <span style="color: #ffae19"><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i></span></p>
387
388 <a target="_blank" href="https://wordpress.org/plugins/team/#reviews" class="button"><i class="fab fa-wordpress"></i> Write a review</a>
389
390
391 <?php
392
393 $html = ob_get_clean();
394
395 $args = array(
396 'id' => 'reviews',
397 //'parent' => '',
398 'title' => __('Submit reviews', 'team'),
399 'details' => '',
400 'type' => 'custom_html',
401 'html' => $html,
402
403 );
404
405 $settings_tabs_field->generate_field($args);
406
407
408
409
410
411 ob_start();
412 ?>
413
414 <p class="">You can install older version by uninstalling current version, your data still on database, don't worry if you see content missing on frontend.</p>
415
416 <a target="_blank" href="https://wordpress.org/plugins/team/advanced/#plugin-download-history-stats" class="button"><i class="fab fa-wordpress"></i> Download older version</a>
417
418
419 <?php
420
421 $html = ob_get_clean();
422
423 $args = array(
424 'id' => 'old_version',
425 //'parent' => '',
426 'title' => __('Older version', 'team'),
427 'details' => '',
428 'type' => 'custom_html',
429 'html' => $html,
430
431 );
432
433 $settings_tabs_field->generate_field($args);
434
435
436
437
438 ?>
439
440
441 </div>
442 <?php
443
444
445 }
446 }
447
448
449
450
451
452
453 add_action('team_settings_content_buy_pro', 'team_settings_content_buy_pro');
454
455 if (!function_exists('team_settings_content_buy_pro')) {
456 function team_settings_content_buy_pro($tab)
457 {
458
459 $settings_tabs_field = new settings_tabs_field();
460
461
462 ?>
463 <div class="section">
464 <div class="section-title"><?php echo esc_html__('Get Premium', 'team'); ?></div>
465 <p class="description section-description"><?php echo esc_html__('Thanks for using our plugin, if you looking for some advance feature please buy premium version.', 'team'); ?></p>
466
467 <?php
468
469
470 ob_start();
471 ?>
472
473 <p><?php echo esc_html__('If you love our plugin and want more feature please consider to buy pro version.', 'team'); ?></p>
474 <a class="button" href="https://pickplugins.com/team/?ref=dashobard"><?php echo esc_html__('Buy premium', 'team'); ?></a>
475 <a class="button" href="https://www.pickplugins.com/demo/team/?ref=dashobard"><?php echo esc_html__('See all demo', 'team'); ?></a>
476
477 <h2><?php echo esc_html__('See the differences', 'team'); ?></h2>
478
479 <table class="pro-features">
480 <thead>
481 <tr>
482 <th class="col-features"><?php echo esc_html__('Features', 'team'); ?></th>
483 <th class="col-free"><?php echo esc_html__('Free', 'team'); ?></th>
484 <th class="col-pro"><?php echo esc_html__('Premium', 'team'); ?></th>
485 </tr>
486 </thead>
487
488 <tr>
489 <td class="col-features"><?php echo esc_html__('View type - Slider', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/slider/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
490 <td><i class="fas fa-times"></i></td>
491 <td><i class="fas fa-check"></i></td>
492 </tr>
493
494 <tr>
495 <td class="col-features"><?php echo esc_html__('View type - Filterable', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/filterable/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
496 <td><i class="fas fa-times"></i></td>
497 <td><i class="fas fa-check"></i></td>
498 </tr>
499 <tr>
500 <td class="col-features"><?php echo esc_html__('View type - Glossary', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/glossary-custom-index/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
501 <td><i class="fas fa-times"></i></td>
502 <td><i class="fas fa-check"></i></td>
503 </tr>
504
505 <tr>
506 <td class="col-features"><?php echo esc_html__('Access to layout library(30+ ready layout)', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
507 <td><i class="fas fa-times"></i></td>
508 <td><i class="fas fa-check"></i></td>
509 </tr>
510
511 <tr>
512 <td class="col-features"><?php echo esc_html__('Query by team members id', 'team'); ?></td>
513 <td><i class="fas fa-times"></i></td>
514 <td><i class="fas fa-check"></i></td>
515 </tr>
516
517 <tr>
518 <td class="col-features"><?php echo esc_html__('Pagination type - jQuery', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
519 <td><i class="fas fa-times"></i></td>
520 <td><i class="fas fa-check"></i></td>
521 </tr>
522
523 <tr>
524 <td class="col-features"><?php echo esc_html__('Pagination type - Ajax', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/ajax-pagination/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
525 <td><i class="fas fa-times"></i></td>
526 <td><i class="fas fa-check"></i></td>
527 </tr>
528 <tr>
529 <td class="col-features"><?php echo esc_html__('Pagination type - Load more', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/load-more/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
530 <td><i class="fas fa-times"></i></td>
531 <td><i class="fas fa-check"></i></td>
532 </tr>
533
534 <tr>
535 <td class="col-features"><?php echo esc_html__('Layout element - Skill', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/skill-bars/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
536 <td><i class="fas fa-times"></i></td>
537 <td><i class="fas fa-check"></i></td>
538 </tr>
539
540 <tr>
541 <td class="col-features"><?php echo esc_html__('Team members link to - Popup box', 'team'); ?></td>
542 <td><i class="fas fa-times"></i></td>
543 <td><i class="fas fa-check"></i></td>
544 </tr>
545
546 <tr>
547 <td class="col-features"><?php echo esc_html__('Team members link to - Popup slider', 'team'); ?></td>
548 <td><i class="fas fa-times"></i></td>
549 <td><i class="fas fa-check"></i></td>
550 </tr>
551
552 <tr>
553 <td class="col-features"><?php echo esc_html__('Team members custom class', 'team'); ?></td>
554 <td><i class="fas fa-times"></i></td>
555 <td><i class="fas fa-check"></i></td>
556 </tr>
557
558 <tr>
559 <td class="col-features"><?php echo esc_html__('View type - Grid', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/view-type-grid/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
560 <td><i class="fas fa-check"></i></td>
561 <td><i class="fas fa-check"></i></td>
562 </tr>
563 <tr>
564 <td class="col-features"><?php echo esc_html__('Masonry style grid', 'team'); ?> <a href="https://www.pickplugins.com/demo/team/masonry/?ref=dashobard"><?php echo esc_html__('Demo', 'team'); ?></a></td>
565 <td><i class="fas fa-check"></i></td>
566 <td><i class="fas fa-check"></i></td>
567 </tr>
568
569 <tr>
570 <td class="col-features"><?php echo esc_html__('Item custom width', 'team'); ?> </td>
571 <td><i class="fas fa-check"></i></td>
572 <td><i class="fas fa-check"></i></td>
573 </tr>
574
575 <tr>
576 <td class="col-features"><?php echo esc_html__('Item margin', 'team'); ?></td>
577 <td><i class="fas fa-check"></i></td>
578 <td><i class="fas fa-check"></i></td>
579 </tr>
580
581 <tr>
582 <td class="col-features"><?php echo esc_html__('Item text align', 'team'); ?></td>
583 <td><i class="fas fa-check"></i></td>
584 <td><i class="fas fa-check"></i></td>
585 </tr>
586
587 <tr>
588 <td class="col-features"><?php echo esc_html__('Container style', 'team'); ?></td>
589 <td><i class="fas fa-check"></i></td>
590 <td><i class="fas fa-check"></i></td>
591 </tr>
592
593 <tr>
594 <td class="col-features"><?php echo esc_html__('Layout builder', 'team'); ?></td>
595 <td><i class="fas fa-check"></i></td>
596 <td><i class="fas fa-check"></i></td>
597 </tr>
598
599 <tr>
600 <td class="col-features"><?php echo esc_html__('Layout element - Wrapper start', 'team'); ?></td>
601 <td><i class="fas fa-check"></i></td>
602 <td><i class="fas fa-check"></i></td>
603 </tr>
604
605 <tr>
606 <td class="col-features"><?php echo esc_html__('Layout element - Wrapper end', 'team'); ?></td>
607 <td><i class="fas fa-check"></i></td>
608 <td><i class="fas fa-check"></i></td>
609 </tr>
610
611 <tr>
612 <td class="col-features"><?php echo esc_html__('Layout element - Thumbnail', 'team'); ?></td>
613 <td><i class="fas fa-check"></i></td>
614 <td><i class="fas fa-check"></i></td>
615 </tr>
616 <tr>
617 <td class="col-features"><?php echo esc_html__('Layout element - Title', 'team'); ?></td>
618 <td><i class="fas fa-check"></i></td>
619 <td><i class="fas fa-check"></i></td>
620 </tr>
621 <tr>
622 <td class="col-features"><?php echo esc_html__('Layout element - Position', 'team'); ?></td>
623 <td><i class="fas fa-check"></i></td>
624 <td><i class="fas fa-check"></i></td>
625 </tr>
626
627 <tr>
628 <td class="col-features"><?php echo esc_html__('Layout element - Content', 'team'); ?></td>
629 <td><i class="fas fa-check"></i></td>
630 <td><i class="fas fa-check"></i></td>
631 </tr>
632
633 <tr>
634 <td class="col-features"><?php echo esc_html__('Layout element - Social', 'team'); ?></td>
635 <td><i class="fas fa-check"></i></td>
636 <td><i class="fas fa-check"></i></td>
637 </tr>
638 <tr>
639 <td class="col-features"><?php echo esc_html__('Layout element - Meta fields', 'team'); ?></td>
640 <td><i class="fas fa-check"></i></td>
641 <td><i class="fas fa-check"></i></td>
642 </tr>
643
644 <tr>
645 <td class="col-features"><?php echo esc_html__('Pagination type - Normal', 'team'); ?></td>
646 <td><i class="fas fa-check"></i></td>
647 <td><i class="fas fa-check"></i></td>
648 </tr>
649
650 <tr>
651 <td class="col-features"><?php echo esc_html__('Hide Pagination', 'team'); ?></td>
652 <td><i class="fas fa-check"></i></td>
653 <td><i class="fas fa-check"></i></td>
654 </tr>
655
656 <tr>
657 <td class="col-features"><?php echo esc_html__('Custom CSS', 'team'); ?></td>
658 <td><i class="fas fa-check"></i></td>
659 <td><i class="fas fa-check"></i></td>
660 </tr>
661
662 <tr>
663 <td class="col-features"><?php echo esc_html__('Custom JS', 'team'); ?></td>
664 <td><i class="fas fa-check"></i></td>
665 <td><i class="fas fa-check"></i></td>
666 </tr>
667
668
669
670 <tr>
671 <td class="col-features"><?php echo esc_html__('Hide featured image(Team member page)', 'team'); ?></td>
672 <td><i class="fas fa-check"></i></td>
673 <td><i class="fas fa-check"></i></td>
674 </tr>
675 <tr>
676 <td class="col-features"><?php echo esc_html__('Hide post title(Team member page)', 'team'); ?></td>
677 <td><i class="fas fa-check"></i></td>
678 <td><i class="fas fa-check"></i></td>
679 </tr>
680
681 <tr>
682 <td class="col-features"><?php echo esc_html__('Custom team member slug', 'team'); ?></td>
683 <td><i class="fas fa-check"></i></td>
684 <td><i class="fas fa-check"></i></td>
685 </tr>
686 <tr>
687 <td class="col-features"><?php echo esc_html__('Custom meta fields', 'team'); ?></td>
688 <td><i class="fas fa-check"></i></td>
689 <td><i class="fas fa-check"></i></td>
690 </tr>
691
692 <tr>
693 <td class="col-features"><?php echo esc_html__('Custom social fields', 'team'); ?></td>
694 <td><i class="fas fa-check"></i></td>
695 <td><i class="fas fa-check"></i></td>
696 </tr>
697
698 <tr>
699 <th class="col-features"><?php echo esc_html__('Features', 'team'); ?></th>
700 <th class="col-free"><?php echo esc_html__('Free', 'team'); ?></th>
701 <th class="col-pro"><?php echo esc_html__('Premium', 'team'); ?></th>
702 </tr>
703 <tr>
704 <td class="col-features"><?php echo esc_html__('Buy now', 'team'); ?></td>
705 <td> </td>
706 <td><a class="button" href="https://pickplugins.com/team/?ref=dashobard"><?php echo esc_html__('Buy premium', 'team'); ?></a></td>
707 </tr>
708
709 </table>
710
711
712
713 <?php
714
715 $html = ob_get_clean();
716
717 $args = array(
718 'id' => 'get_pro',
719 // 'parent' => 'related_post_settings',
720 'title' => __('Get pro version', 'team'),
721 'details' => '',
722 'type' => 'custom_html',
723 'html' => $html,
724
725 );
726
727 $settings_tabs_field->generate_field($args);
728
729
730 ?>
731
732
733 </div>
734
735 <style type="text/css">
736 .pro-features {
737 margin: 30px 0;
738 border-collapse: collapse;
739 border: 1px solid #ddd;
740 }
741
742 .pro-features th {
743 width: 120px;
744 background: #ddd;
745 padding: 10px;
746 }
747
748 .pro-features tr {}
749
750 .pro-features td {
751 border-bottom: 1px solid #ddd;
752 padding: 10px 10px;
753 text-align: center;
754 }
755
756 .pro-features .col-features {
757 width: 230px;
758 text-align: left;
759 }
760
761 .pro-features .col-free {}
762
763 .pro-features .col-pro {}
764
765 .pro-features i.fas.fa-check {
766 color: #139e3e;
767 font-size: 16px;
768 }
769
770 .pro-features i.fas.fa-times {
771 color: #f00;
772 font-size: 17px;
773 }
774 </style>
775 <?php
776
777
778 }
779 }
780
781
782
783
784
785
786
787
788
789 add_action('team_settings_save', 'team_settings_save');
790
791 function team_settings_save()
792 {
793
794 $team_settings = isset($_POST['team_settings']) ? team_recursive_sanitize_arr(wp_unslash($_POST['team_settings'])) : array();
795 update_option('team_settings', $team_settings);
796 }
797