Initial Commit
This commit is contained in:
57
views/events/ascii-badge.php
Normal file
57
views/events/ascii-badge.php
Normal file
@ -0,0 +1,57 @@
|
||||
No log file found.
|
||||
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNKXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXOKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKk0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNOx0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXkdONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxdONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0ddkXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXkddxXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxddxKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNXKK00OOO000KNMMMN0dddd0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNKOdlc;,'........'lXMMXkddddOWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxl;'...............lXMWKxddddONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKx:'.................'xNMN0xddddkXMM0dONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWOc'...................;OWMXOdddddkXMMK:..:xXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNO:.............;codkO00KNMWKkdddddxKWMXl.....,xXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0c...........;okKNMMMMMMMMMN0xdddddxKWMNo........;kNMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMNk'.........'lONMMMMMMMMMMMWNOddddddd0WMMXd,.........lXMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMNo.........'oKMMMMMMMMMMMMWKOkdddddddONMMMMMXd,........:0MMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMXl.........cKMMMMMMMMMMMMMW0xddddddddkNMMMMMMMMKl........;0MMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMNo........'xNMMMMMMMMMMMMMNOdddddddddkXMMMMMMMMMMWk'.......:KMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMk'.......'kWMMMMMMMMMMMMWXkdddddddddxXWMMMMMMMMMMMWO,.......oNMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMX:........xWMMMMMMMMMMMMWKxdddddddddxKWMMMMMMMMMMMMMWx.......'kWMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMk'.......cXMMMMMMMMMMMMMWKOkkkxxdddd0WMMMMMMMMMMMMMMMNl.......cXMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMd........kMMMMMMMMMMMMMMMNKOOOOOOOk0WMMMMMMMMMMMMMMMMMk'......,OMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMo.......,0MMMMMMMMMMMMMMMMN0OOOOOOO0NMMMMMMMMMMMMMMMMM0;.......kMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMo.......;0MMMMMMMMMMMMMMMMMN0OOOOOOOKWMMMMMMMMMMMMMMMMK;.......xMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMd.......,OMMMMMMMMMMMMMMMMMN0kOOOOOOOKWMMMMMMMMMMMMMMM0,......'kMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMx........xWMMMMMMMMMMMMMMMW0ddddxxkkkOXWMMMMMMMMMMMMMMx.......;0MMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMM0;.......:KMMMMMMMMMMMMMMWKddddddddddxKWMMMMMMMMMMMMMXc.......oNMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMWo........oNMMMMMMMMMMMMWKxdddddddddxXWMMMMMMMMMMMMMWd.......:KMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMK:........dNMMMMMMMMMMMXxdddddddddOXMMMMMMMMMMMMMMWx.......'kMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMM0,........lXMMMMMMMMMXkddddddddx0WMMMMMMMMMMMMMMXo........dWMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMO,........;OWMMMMMMNOddddddddkXWMMMMMMMMMMMMMWO:........dNMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMK:.........cONMMMWOdddddddOKNMMMMMMMMMMMMMWOc........'xWMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMXo'........,0MMW0ddddddx0WMMMMMMMMMMMMWKx:.........:0WMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0c.......dWMWKxdddddkXWMMMMMMMMWNKko:'.........;xNMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNOc....lNMMXxdddddONMWKkkxxdol:,'...........;xXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0o;cKMMXkddddx0NMWk,..................'ckNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNMMNkddddxKWMNd.................,lxKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNOddddkXMMKc.............,:lx0NWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0dddx0NMMWOolllcllllodxO0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxddxKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxddkXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXxdx0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNkdxKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNOdkXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWOxONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0kKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKkXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
113
views/events/widget-initiator.php
Normal file
113
views/events/widget-initiator.php
Normal file
@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/**
|
||||
* Widget initiator view.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<div class="wu-bg-gray-100 wu--mt-3 wu--mb-6 wu--mx-3">
|
||||
|
||||
<ul class="wu-widget-list">
|
||||
|
||||
<li class="wu-p-4 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
|
||||
|
||||
<h3 class="wu-mt-0 wu-mb-2 wu-text-2xs wu-uppercase"><?php _e('Initiator', 'wp-ultimo'); ?></h3>
|
||||
|
||||
<?php if ($object->get_initiator() == 'manual') : ?>
|
||||
|
||||
<a href='<?php echo wu_network_admin_url('wp-ultimo-edit-customer', array('id' => $object->get_author_id())); ?>' class='wu-table-card wu-text-gray-700 wu-p-2 wu-flex wu-flex-grow wu-rounded wu-items-center wu-border wu-border-solid wu-border-gray-300 wu-no-underline'>
|
||||
|
||||
<div class="wu-flex wu-relative wu-h-7 wu-w-7 wu-rounded-full wu-ring-2 wu-ring-white wu-bg-gray-300 wu-items-center wu-justify-center wu-mr-3">
|
||||
|
||||
<?php
|
||||
|
||||
$avatar = get_avatar($object->get_author_id(), 32, 'identicon', '', array(
|
||||
'force_display' => true,
|
||||
'class' => 'wu-rounded-full',
|
||||
));
|
||||
|
||||
echo $avatar;
|
||||
|
||||
?>
|
||||
|
||||
<span role="tooltip" aria-label="<?php echo $object->get_initiator().' - '.$object->get_severity_label(); ?>" class="wu-absolute wu-rounded-full wu--mb-2 wu--mr-2 wu-flex wu-items-center wu-justify-center wu-font-mono wu-bottom-0 wu-right-0 wu-font-bold wu-h-3 wu-w-3 wu-uppercase wu-text-2xs wu-p-1 wu-border-solid wu-border-2 wu-border-white <?php echo $object->get_severity_class(); ?>">
|
||||
|
||||
<?php echo substr($object->get_severity_label(), 0, 1); ?>
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class='wu-pl-2'>
|
||||
|
||||
<strong class='wu-block'> <?php echo $object->get_author_display_name(); ?> <small class='wu-font-normal'>(#<?php echo $object->get_author_id(); ?>)</small></strong>
|
||||
|
||||
<small><?php echo $object->get_author_email_address(); ?></small>
|
||||
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<div class='wu-table-card wu-text-gray-700 wu-p-2 wu-flex wu-flex-grow wu-rounded wu-items-center wu-border wu-border-solid wu-border-gray-300'>
|
||||
|
||||
<div class="wu-flex wu-relative wu-h-7 wu-w-7 wu-rounded-full wu-ring-2 wu-ring-white wu-bg-gray-300 wu-items-center wu-justify-center wu-mr-3">
|
||||
|
||||
<span class="dashicons-wu-tools wu-text-gray-700 wu-text-xl"></span>
|
||||
|
||||
<span role="tooltip" aria-label="<?php echo $object->get_initiator().' - '.$object->get_severity_label(); ?>" class="wu-absolute wu-rounded-full wu--mb-2 wu--mr-2 wu-flex wu-items-center wu-justify-center wu-font-mono wu-bottom-0 wu-right-0 wu-font-bold wu-h-3 wu-w-3 wu-uppercase wu-text-2xs wu-p-1 wu-border-solid wu-border-2 wu-border-white <?php echo $object->get_severity_class(); ?>">
|
||||
|
||||
<?php echo substr($object->get_severity_label(), 0, 1); ?>
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class=''>
|
||||
|
||||
<strong class='wu-block'><?php echo ucfirst($object->get_initiator()); ?></strong>
|
||||
|
||||
<small><?php _e('Automatically started', 'wp-ultimo'); ?></small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</li>
|
||||
|
||||
<?php if ($object->get_object()) : ?>
|
||||
|
||||
<li class="wu-p-4 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid">
|
||||
|
||||
<h3 class="wu-mt-1 wu-mb-2 wu-text-2xs wu-uppercase"><?php printf(__('Target %s', 'wp-ultimo'), wu_slug_to_name($object->get_object_type())); ?></h3>
|
||||
|
||||
<?php
|
||||
|
||||
$base_list_table = new \WP_Ultimo\List_Tables\Base_List_Table;
|
||||
|
||||
$type = $object->get_object_type();
|
||||
|
||||
switch ($type) {
|
||||
|
||||
case 'membership':
|
||||
echo $base_list_table->column_membership($object);
|
||||
break;
|
||||
|
||||
case 'payment':
|
||||
echo $base_list_table->column_payment($object);
|
||||
break;
|
||||
|
||||
} // end switch;
|
||||
|
||||
?>
|
||||
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
24
views/events/widget-message.php
Normal file
24
views/events/widget-message.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Widget message view.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<ul class="wu-widget-list wu-striped wu-m-0 wu--my-2 wu--mx-3">
|
||||
|
||||
<li class="wu-p-4 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
|
||||
|
||||
<h3 class="wu-my-1 wu-text-2xs wu-uppercase"><?php echo __('Message', 'wp-ultimo'); ?></h3>
|
||||
|
||||
<span class="wu-my-1 wu-inline-block">
|
||||
<?php echo $object->get_message(); ?>
|
||||
</span>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="wu-bg-gray-100 wu-px-4 wu-py-2 wu--m-3 wu-mt-3 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid wu-text-right">
|
||||
|
||||
</div>
|
38
views/events/widget-payload.php
Normal file
38
views/events/widget-payload.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Widget payload view.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<ul id="wu_payload" class="wu-widget-list wu-striped wu-m-0 wu--my-2 wu--mx-3">
|
||||
|
||||
<li class="wu-p-4 wu-m-0" v-show="!loading" v-cloak>
|
||||
|
||||
<pre id="wu_payload_content" v-html="payload" class="wu-overflow-auto wu-p-4 wu-m-0 wu-mt-2 wu-rounded wu-content-center wu-bg-gray-800 wu-text-white wu-font-mono wu-border wu-border-solid wu-border-gray-300 wu-max-h-screen wu-overflow-y-auto"></pre>
|
||||
|
||||
</li>
|
||||
|
||||
<div v-show="loading" class="wu-block wu-p-4 wu-py-8 wu-mb-0 wu-bg-white wu-text-center wu-my-4 wu-rounded">
|
||||
|
||||
<span class="wu-blinking-animation wu-text-gray-600 wu-my-1 wu-mb-0 wu-text-2xs wu-uppercase wu-font-semibold" >
|
||||
|
||||
<?php echo $loading_text; ?>
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="wu-bg-gray-100 wu-px-4 wu-py-4 wu--m-3 wu-mt-3 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid">
|
||||
|
||||
<textarea cols="100" rows="40" aria-hidden="true" class="screen-reader-text" id="hidden_textarea"><?php echo $payload; ?></textarea>
|
||||
|
||||
<span>
|
||||
<button type="button" data-clipboard-action="copy" data-clipboard-target="#hidden_textarea" class="btn-clipboard button">
|
||||
<?php _e('Copy to the Clipboard', 'wp-ultimo'); ?>
|
||||
</button>
|
||||
</span>
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user