Plugin Directory

Changeset 1668315


Ignore:
Timestamp:
06/01/2017 04:57:29 AM (9 years ago)
Author:
Moridrin
Message:

Widget Design Improved

Location:
ssv-events/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ssv-events/trunk/models/Event.php

    r1659850 r1668315  
    1010use mp_ssv_general\custom_fields\InputField;
    1111use mp_ssv_general\Form;
    12 use mp_ssv_general\SSV_General;
    1312use WP_Post;
    1413use WP_User;
     
    441440                            document.getElementById('all-registrations').setAttribute('style', 'display: block;');
    442441                            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';
    447446                        }
    448447                        function showDetails() {
     
    527526            <?php else: ?>
    528527                <h3>Registrations</h3>
    529                 <ul class="collection with-header collapsible popout" data-collapsible="expandable">
     528                <ul class="collection with-header <?= is_user_logged_in() ? 'collapsible' : '' ?> popout" data-collapsible="expandable">
    530529                    <?php foreach ($this->registrations as $event_registration) : ?>
    531530                        <?php /* @var Registration $event_registration */ ?>
     
    537536                            </div>
    538537                            <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; ?>
    549550                                <?php if ($event_registration->status == Registration::STATUS_PENDING
    550                                           && is_user_logged_in()
    551551                                          && current_user_can(SSV_Events::CAPABILITY_MANAGE_EVENT_REGISTRATIONS)
    552552                                          && !is_archive()
  • ssv-events/trunk/readme.txt

    r1667302 r1668315  
    3232
    3333== Changelog ==
     34= 3.1.7 =
     35* Opening registration details disabled for non logged in users
     36
    3437= 3.1.6 =
    3538* Widget Design improved
  • ssv-events/trunk/ssv-events.php

    r1667302 r1668315  
    44 * Plugin URI: https://bosso.nl/ssv-events/
    55 * 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.6
     6 * Version: 3.2.7
    77 * Author: moridrin
    88 * Author URI: http://nl.linkedin.com/in/jberkvens/
Note: See TracChangeset for help on using the changeset viewer.