Changeset 1668315
- Timestamp:
- 06/01/2017 04:57:29 AM (9 years ago)
- Location:
- ssv-events/trunk
- Files:
-
- 3 edited
-
models/Event.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
ssv-events.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ssv-events/trunk/models/Event.php
r1659850 r1668315 10 10 use mp_ssv_general\custom_fields\InputField; 11 11 use mp_ssv_general\Form; 12 use mp_ssv_general\SSV_General;13 12 use WP_Post; 14 13 use WP_User; … … 441 440 document.getElementById('all-registrations').setAttribute('style', 'display: block;'); 442 441 Materialize.showStaggeredList('#all-registrations'); 443 event.srcElement.onclick = function () {444 showDetails()445 };446 event.srcElement.innerHTML = 'Show Details';442 // event.srcElement.onclick = function () { 443 // showDetails() 444 // }; 445 // event.srcElement.innerHTML = 'Show Details'; 447 446 } 448 447 function showDetails() { … … 527 526 <?php else: ?> 528 527 <h3>Registrations</h3> 529 <ul class="collection with-header collapsiblepopout" data-collapsible="expandable">528 <ul class="collection with-header <?= is_user_logged_in() ? 'collapsible' : '' ?> popout" data-collapsible="expandable"> 530 529 <?php foreach ($this->registrations as $event_registration) : ?> 531 530 <?php /* @var Registration $event_registration */ ?> … … 537 536 </div> 538 537 <div class="collapsible-body row" style="padding: 5px 10px;"> 539 <table class="striped"> 540 <?php foreach ($this->getRegistrationFieldNames() as $name): ?> 541 <?php $value = $event_registration->getMeta($name); ?> 542 <?php $value = empty($value) ? '' : $value; ?> 543 <tr> 544 <th><?= esc_html($name) ?></th> 545 <td><?= esc_html($value) ?></td> 546 </tr> 547 <?php endforeach; ?> 548 </table> 538 <?php if (is_user_logged_in()): ?> 539 <table class="striped"> 540 <?php foreach ($this->getRegistrationFieldNames() as $name): ?> 541 <?php $value = $event_registration->getMeta($name); ?> 542 <?php $value = empty($value) ? '' : $value; ?> 543 <tr> 544 <th><?= esc_html($name) ?></th> 545 <td><?= esc_html($value) ?></td> 546 </tr> 547 <?php endforeach; ?> 548 </table> 549 <?php endif; ?> 549 550 <?php if ($event_registration->status == Registration::STATUS_PENDING 550 && is_user_logged_in()551 551 && current_user_can(SSV_Events::CAPABILITY_MANAGE_EVENT_REGISTRATIONS) 552 552 && !is_archive() -
ssv-events/trunk/readme.txt
r1667302 r1668315 32 32 33 33 == Changelog == 34 = 3.1.7 = 35 * Opening registration details disabled for non logged in users 36 34 37 = 3.1.6 = 35 38 * Widget Design improved -
ssv-events/trunk/ssv-events.php
r1667302 r1668315 4 4 * Plugin URI: https://bosso.nl/ssv-events/ 5 5 * Description: SSV Events is a plugin that allows you to create events for the Students Sports Club and allows all members from that club to join the event. 6 * Version: 3.2. 66 * Version: 3.2.7 7 7 * Author: moridrin 8 8 * Author URI: http://nl.linkedin.com/in/jberkvens/
Note: See TracChangeset
for help on using the changeset viewer.