| @@ -1,38 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | -// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. | |
| 3 | -defined('ABSPATH') || die('Restricted Access'); | |
| 4 | -?> | |
| 5 | -<div class="acym__content cell grid-x acym__users__display__subscriptions--list"> | |
| 6 | - <h5 class="cell acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_LISTS')); ?></h5> | |
| 7 | - <div class="cell acym__content__tab"> | |
| 8 | - <?php | |
| 9 | - $subscriptionIdentifier = $data['tab']->startTab(acym_translation('ACYM_SUBSCRIBED').' ('.count($data['subscriptions']).')', false, !empty($data['subscriptions'])); | |
| 10 | - include acym_getView('users', 'edit_subscription_subscribed', true); | |
| 11 | - $data['tab']->endTab(); | |
| 12 | - | |
| 13 | - $unsubscriptionIdentifier = $data['tab']->startTab(acym_translation('ACYM_UNSUBSCRIBED').' ('.count($data['unsubscribe']).')', false, !empty($data['unsubscribe'])); | |
| 14 | - include acym_getView('users', 'edit_subscription_unsubscribed', true); | |
| 15 | - $data['tab']->endTab(); | |
| 16 | - | |
| 17 | - $data['tab']->addCallbackElement( | |
| 18 | - function () { | |
| 19 | - echo '<div class="acym__users__display__list--action acym__user__action--unsubscribeall"> | |
| 20 | - <i class="acymicon-times-circle"></i><span>'.esc_html(acym_translation('ACYM_UNSUBSCRIBE_ALL')).'</span> | |
| 21 | - </div>'; | |
| 22 | - }, | |
| 23 | - $subscriptionIdentifier | |
| 24 | - ); | |
| 25 | - | |
| 26 | - $data['tab']->addCallbackElement( | |
| 27 | - function () { | |
| 28 | - echo '<div class="acym__users__display__list--action acym__user__action--resubscribeall"> | |
| 29 | - <i class="acymicon-add"></i><span>'.esc_html(acym_translation('ACYM_RESUBSCRIBE_ALL')).'</span> | |
| 30 | - </div>'; | |
| 31 | - }, | |
| 32 | - $unsubscriptionIdentifier | |
| 33 | - ); | |
| 34 | - | |
| 35 | - $data['tab']->display('lists_user'); | |
| 36 | - ?> | |
| 37 | - </div> | |
| 38 | -</div> | |