Prep Plugin for release on WordPress.org (#23)
* Update translation text domain * Escape everything that should be escaped. * Add nonce checks where needed. * Sanitize all inputs. * Apply Code style changes across the codebase. * Correct many deprecation notices. * Optimize load order of many filters. * Add Proper Build script * Use emojii flags * Fix i18n deprecation notice for translating too early * Put all scripts in footer and load async
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
|
||||
<h1 class="wp-heading-inline">
|
||||
|
||||
<?php echo $page_title; ?>
|
||||
<?php echo esc_html($page_title); ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
@ -34,7 +34,7 @@
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $action_link['label']; ?>
|
||||
<?php echo esc_html($action_link['label']); ?>
|
||||
|
||||
</a>
|
||||
|
||||
@ -52,10 +52,10 @@
|
||||
|
||||
</h1>
|
||||
|
||||
<?php if (isset($_GET['updated'])) : ?>
|
||||
<?php if (isset($_GET['updated'])) : // phpcs:ignore WordPress.Security.NonceVerification ?>
|
||||
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
<p><?php echo $labels['updated_message']; ?></p>
|
||||
<p><?php echo esc_html($labels['updated_message']); ?></p>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -98,7 +98,7 @@
|
||||
|
||||
<h3 class="wu-m-0 wu-widget-title">
|
||||
|
||||
<?php _e('Change Membership', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Change Membership', 'wp-multisite-waas'); ?>
|
||||
|
||||
</h3>
|
||||
|
||||
@ -108,7 +108,7 @@
|
||||
|
||||
<div class="inside">
|
||||
|
||||
<?php echo $content; ?>
|
||||
<?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
<tr class="no-items">
|
||||
<td :colspan="Object.keys(headers).length" class="colspanchange">
|
||||
<div class="wu-p-6 wu-text-gray-600 wu-text-base wu-text-center">
|
||||
<span><?php _e('Add the first field!', 'wp-ultimo'); ?></span>
|
||||
<span><?php esc_html_e('Add the first field!', 'wp-multisite-waas'); ?></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@ -40,7 +40,7 @@
|
||||
|
||||
<tr v-for="(field, idx) in list" :key="field.id" :id="'wp-ultimo-field-' + field.id">
|
||||
|
||||
<td class="order column-order has-row-actions column-primary" data-colname="<?php _e('Order', 'wp-ultimo'); ?>">
|
||||
<td class="order column-order has-row-actions column-primary" data-colname="<?php esc_html_e('Order', 'wp-multisite-waas'); ?>">
|
||||
|
||||
<span
|
||||
class="wu-inline-block wu-bg-gray-100 wu-text-center wu-align-middle wu-p-1 wu-font-mono wu-px-3 wu-border wu-border-gray-300 wu-border-solid wu-rounded">
|
||||
@ -48,16 +48,16 @@
|
||||
</span>
|
||||
|
||||
<button type="button" class="toggle-row">
|
||||
<span class="screen-reader-text"><?php _e('Show more details', 'wp-ultimo'); ?></span>
|
||||
<span class="screen-reader-text"><?php esc_html_e('Show more details', 'wp-multisite-waas'); ?></span>
|
||||
</button>
|
||||
|
||||
</td>
|
||||
|
||||
<td class="name column-name" data-colname="<?php _e('Name', 'wp-ultimo'); ?>">
|
||||
<td class="name column-name" data-colname="<?php esc_html_e('Name', 'wp-multisite-waas'); ?>">
|
||||
|
||||
<span class="wu-inline-block wu-font-medium">
|
||||
|
||||
{{ field.name ? field.name : "<?php echo __('(no label)', 'wp-ultimo'); ?>" }}
|
||||
{{ field.name ? field.name : "<?php echo esc_html__('(no label)', 'wp-multisite-waas'); ?>" }}
|
||||
|
||||
<!-- Visibility -->
|
||||
<span
|
||||
@ -103,38 +103,38 @@
|
||||
<a
|
||||
v-show="delete_field_id !== field.id"
|
||||
v-on:click.prevent="delete_field_id = field.id"
|
||||
title="<?php _e('Delete'); ?>"
|
||||
title="<?php esc_html_e('Delete', 'wp-multisite-waas'); ?>"
|
||||
href="#"
|
||||
><?php _e('Delete'); ?></a>
|
||||
><?php esc_html_e('Delete', 'wp-multisite-waas'); ?></a>
|
||||
|
||||
<a
|
||||
v-show="delete_field_id === field.id"
|
||||
v-on:click.prevent="remove_field(field.id)"
|
||||
title="<?php _e('Delete'); ?>"
|
||||
title="<?php esc_html_e('Delete', 'wp-multisite-waas'); ?>"
|
||||
href="#"
|
||||
class="wu-font-bold"
|
||||
><?php _e('Confirm?', 'wp-ultimo'); ?></a>
|
||||
><?php esc_html_e('Confirm?', 'wp-multisite-waas'); ?></a>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<button type="button" class="toggle-row">
|
||||
<span class="screen-reader-text">
|
||||
<?php _e('Show more details', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Show more details', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
</td>
|
||||
|
||||
<td class="type column-type" data-colname="<?php _e('Type', 'wp-ultimo'); ?>">
|
||||
<td class="type column-type" data-colname="<?php esc_html_e('Type', 'wp-multisite-waas'); ?>">
|
||||
<span class="wu-bg-gray-200 wu-text-gray-700 wu-py-1 wu-px-2 wu-rounded-sm wu-text-xs wu-font-mono">{{ field.type }}</span>
|
||||
</td>
|
||||
|
||||
<td class="type column-slug" data-colname="<?php _e('Slug', 'wp-ultimo'); ?>">
|
||||
<td class="type column-slug" data-colname="<?php esc_html_e('Slug', 'wp-multisite-waas'); ?>">
|
||||
<span class="wu-bg-gray-200 wu-text-gray-700 wu-py-1 wu-px-2 wu-rounded-sm wu-text-xs wu-font-mono">{{ field.id }}</span>
|
||||
</td>
|
||||
|
||||
<td class="move column-move wu-text-right" data-colname="<?php _e('Move', 'wp-ultimo'); ?>">
|
||||
<td class="move column-move wu-text-right" data-colname="<?php esc_html_e('Move', 'wp-multisite-waas'); ?>">
|
||||
|
||||
<span class="wu-placeholder-sortable dashicons-wu-menu"></span>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
<span class="wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
|
||||
<?php printf(__('%1$s steps and %2$s fields', 'wp-ultimo'), '{{ steps.length }}', '{{ field_count }}'); ?>
|
||||
<?php echo esc_html(sprintf(__('%1$s steps and %2$s fields', 'wp-multisite-waas'), '{{ steps.length }}', '{{ field_count }}')); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -28,36 +28,27 @@
|
||||
|
||||
<li class="wu-m-0 wu-ml-4">
|
||||
<a
|
||||
title="<?php _e('Preview', 'wp-ultimo'); ?>"
|
||||
title="<?php esc_attr_e('Preview', 'wp-multisite-waas'); ?>"
|
||||
href="#"
|
||||
type="button"
|
||||
class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-text-gray-600 hover:wu-text-gray-800"
|
||||
@click.prevent="get_preview()"
|
||||
>
|
||||
<span class="dashicons-wu-eye wu-align-middle"></span>
|
||||
<span v-show="!preview"><?php _e('Preview', 'wp-ultimo'); ?></span>
|
||||
<span v-cloak v-show="preview"><?php _e('Editor', 'wp-ultimo'); ?></span>
|
||||
<span v-show="!preview"><?php esc_html_e('Preview', 'wp-multisite-waas'); ?></span>
|
||||
<span v-cloak v-show="preview"><?php esc_html_e('Editor', 'wp-multisite-waas'); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="wu-m-0 wu-ml-4" v-show="!preview">
|
||||
<a
|
||||
title="<?php _e('Add new Checkout Step', 'wp-ultimo'); ?>"
|
||||
href="
|
||||
<?php
|
||||
echo wu_get_form_url(
|
||||
'add_new_form_step',
|
||||
[
|
||||
'checkout_form' => $checkout_form,
|
||||
]
|
||||
);
|
||||
?>
|
||||
"
|
||||
title="<?php esc_attr_e('Add new Checkout Step', 'wp-multisite-waas'); ?>"
|
||||
href="<?php echo esc_url(wu_get_form_url('add_new_form_step', array('checkout_form' => $checkout_form))); ?>"
|
||||
type="button"
|
||||
class="wubox wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-text-gray-600 hover:wu-text-gray-800"
|
||||
>
|
||||
<span class="dashicons-wu-circle-with-plus wu-align-middle"></span>
|
||||
<?php _e('Add new Checkout Step', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Add new Checkout Step', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -100,7 +91,7 @@
|
||||
<div class="postbox-header">
|
||||
<h2 class="hndle ui-sortable-handle">
|
||||
<span class="wu-text-gray-700 ">
|
||||
<span class="wu-text-2xs wu-font-mono wu-uppercase wu-mr-4"><?php printf(__('Step %s', 'wp-ultimo'), '{{ idx + 1 }}'); ?></span> {{ step.name }}
|
||||
<span class="wu-text-2xs wu-font-mono wu-uppercase wu-mr-4"><?php printf(esc_html__('Step %s', 'wp-multisite-waas'), '{{ idx + 1 }}'); ?></span> {{ step.name }}
|
||||
</span>
|
||||
</h2>
|
||||
</div>
|
||||
@ -113,11 +104,11 @@
|
||||
<span class="dashicons-wu-eye wu-mr-1 wu-align-middle"></span>
|
||||
|
||||
<span v-if="step.logged == 'guests_only'">
|
||||
<?php _e('This step is only visible for <strong>guests</strong>', 'wp-ultimo'); ?>
|
||||
<?php echo wp_kses_post(__('This step is only visible for <strong>guests</strong>', 'wp-multisite-waas')); ?>
|
||||
</span>
|
||||
|
||||
<span v-else>
|
||||
<?php _e('This step is only visible for <strong>logged-in users</strong>', 'wp-ultimo'); ?>
|
||||
<?php echo wp_kses_post(__('This step is only visible for <strong>logged-in users</strong>', 'wp-multisite-waas')); ?>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@ -147,28 +138,28 @@
|
||||
<a
|
||||
v-show="delete_step_id !== step.id"
|
||||
v-on:click.prevent="delete_step_id = step.id"
|
||||
title="<?php _e('Delete'); ?>"
|
||||
title="<?php esc_html_e('Delete', 'wp-multisite-waas'); ?>"
|
||||
href="#"
|
||||
class="wu-text-red-500 wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-p-4 md:wu-p-0 wu-inline-block"
|
||||
>
|
||||
<?php _e('Delete Step'); ?>
|
||||
<?php esc_html_e('Delete Step', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<a
|
||||
v-show="delete_step_id === step.id"
|
||||
v-on:click.prevent="remove_step(step.id)"
|
||||
title="<?php _e('Delete'); ?>"
|
||||
title="<?php esc_html_e('Delete', 'wp-multisite-waas'); ?>"
|
||||
href="#"
|
||||
class="wu-text-red-700 wu-uppercase wu-text-2xs wu-font-bold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-p-4 md:wu-p-0 wu-inline-block"
|
||||
>
|
||||
<?php _e('Confirm?', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Confirm?', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="wu-m-0 md:wu-ml-4 wu-text-center">
|
||||
|
||||
<a title="<?php _e('Edit Section', 'wp-ultimo'); ?>"
|
||||
<a title="<?php esc_html_e('Edit Section', 'wp-multisite-waas'); ?>"
|
||||
:href="'
|
||||
<?php
|
||||
echo wu_get_form_url(
|
||||
@ -183,14 +174,14 @@
|
||||
type="button"
|
||||
class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-text-gray-600 hover:wu-text-gray-800 wubox wu-p-4 md:wu-p-0 wu-inline-block"
|
||||
>
|
||||
<?php _e('Edit Section', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Edit Section', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="wu-m-0 md:wu-ml-4 wu-text-center">
|
||||
|
||||
<a title="<?php _e('Add new Field', 'wp-ultimo'); ?>"
|
||||
<a title="<?php esc_html_e('Add new Field', 'wp-multisite-waas'); ?>"
|
||||
:href="'
|
||||
<?php
|
||||
echo wu_get_form_url(
|
||||
@ -205,7 +196,7 @@
|
||||
=' + step.id"
|
||||
type="button" class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-text-gray-600 hover:wu-text-gray-800 wubox wu-p-4 md:wu-p-0 wu-inline-block">
|
||||
<span class="dashicons-wu-circle-with-plus wu-align-text-bottom"></span>
|
||||
<?php _e('Add new Field', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Add new Field', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
@ -227,11 +218,11 @@
|
||||
<div v-show="!loading_preview && !preview_error" class="wu-text-center wu-mt-3">
|
||||
|
||||
<a @click.prevent="get_preview('user')" href="#" class="wu-m-2 wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-text-gray-600 hover:wu-text-gray-800">
|
||||
<?php _e('See as existing user', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('See as existing user', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<a @click.prevent="get_preview('visitor')" href="#" class="wu-m-2 wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-text-gray-600 hover:wu-text-gray-800">
|
||||
<?php _e('See as visitor', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('See as visitor', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
@ -240,7 +231,7 @@
|
||||
<div v-show="loading_preview" class="wu-block wu-p-4 wu-py-8 wu-bg-white wu-text-center wu-my-4 wu-border wu-border-solid wu-rounded wu-border-gray-400">
|
||||
|
||||
<span class="wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
<?php _e('Loading Preview...', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Loading Preview...', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@ -250,7 +241,7 @@
|
||||
<div v-show="preview_error" class="wu-block wu-p-4 wu-py-8 wu-bg-white wu-text-center wu-my-4 wu-border wu-border-solid wu-rounded wu-border-gray-400">
|
||||
|
||||
<span class="wu-text-red-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
<?php _e('Something wrong happened along the way =(', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Something wrong happened along the way =(', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@ -261,7 +252,7 @@
|
||||
<div v-show="!loading_preview && !preview_error" id="wu-iframe-content" class="wu-w-full wu-relative">
|
||||
|
||||
<iframe id="wp-ultimo-checkout-preview" v-bind:src="iframe_preview_url" class="wu-w-full wu-h-full wu-m-0 wu-mt-4 wu-mb-2 wu-p-0 wu-overflow-hidden wu-border-radius wu-border wu-border-solid wu-rounded wu-border-gray-400">
|
||||
<?php _e('Your browser doesn\'t support iframes', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Your browser doesn\'t support iframes', 'wp-multisite-waas'); ?>
|
||||
</iframe>
|
||||
|
||||
</div>
|
||||
@ -282,7 +273,7 @@
|
||||
|
||||
<span class="wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
|
||||
<?php printf(__('%1$s steps and %2$s fields', 'wp-ultimo'), '{{ steps.length }}', '{{ field_count }}'); ?>
|
||||
<?php echo esc_html(sprintf(__('%1$s steps and %2$s fields', 'wp-multisite-waas'), '{{ steps.length }}', '{{ field_count }}')); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -294,36 +285,27 @@
|
||||
|
||||
<li class="wu-m-0 wu-ml-4">
|
||||
<a
|
||||
title="<?php _e('Preview', 'wp-ultimo'); ?>"
|
||||
title="<?php esc_attr_e('Preview', 'wp-multisite-waas'); ?>"
|
||||
href="#"
|
||||
type="button"
|
||||
class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-text-gray-600 hover:wu-text-gray-800"
|
||||
@click.prevent="get_preview('user')"
|
||||
>
|
||||
<span class="dashicons-wu-eye wu-align-middle"></span>
|
||||
<span v-show="!preview"><?php _e('Preview', 'wp-ultimo'); ?></span>
|
||||
<span v-cloak v-show="preview"><?php _e('Editor', 'wp-ultimo'); ?></span>
|
||||
<span v-show="!preview"><?php esc_html_e('Preview', 'wp-multisite-waas'); ?></span>
|
||||
<span v-cloak v-show="preview"><?php esc_html_e('Editor', 'wp-multisite-waas'); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="wu-m-0 wu-ml-4" v-show="!preview">
|
||||
<a
|
||||
title="<?php _e('Add new Checkout Step', 'wp-ultimo'); ?>"
|
||||
href="
|
||||
<?php
|
||||
echo wu_get_form_url(
|
||||
'add_new_form_step',
|
||||
[
|
||||
'checkout_form' => $checkout_form,
|
||||
]
|
||||
);
|
||||
?>
|
||||
"
|
||||
title="<?php esc_attr_e('Add new Checkout Step', 'wp-multisite-waas'); ?>"
|
||||
href="<?php echo esc_url(wu_get_form_url('add_new_form_step', array('checkout_form' => $checkout_form))); ?>"
|
||||
type="button"
|
||||
class="wubox wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-text-gray-600 hover:wu-text-gray-800"
|
||||
>
|
||||
<span class="dashicons-wu-circle-with-plus wu-align-middle"></span>
|
||||
<?php _e('Add new Checkout Step', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Add new Checkout Step', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
@ -13,12 +13,14 @@
|
||||
class="wu--mt-8 wu-py-8 wu-bg-gray-100 wu-bg-cover wu-bg-center"
|
||||
style="opacity: 0.15; background-image: url(
|
||||
<?php
|
||||
echo get_avatar_url(
|
||||
$item->get_user_id(),
|
||||
[
|
||||
'default' => 'identicon',
|
||||
'size' => 320,
|
||||
]
|
||||
echo esc_url(
|
||||
get_avatar_url(
|
||||
$item->get_user_id(),
|
||||
array(
|
||||
'default' => 'identicon',
|
||||
'size' => 320,
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
)"
|
||||
@ -43,21 +45,21 @@
|
||||
|
||||
<div class="wu-text-base wu-mt-1">
|
||||
<div>
|
||||
<span class="wu-font-semibold"><?php echo $item->get_display_name(); ?></span>
|
||||
<small>#<?php echo $item->get_id(); ?></small>
|
||||
<span class="wu-font-semibold"><?php echo esc_html($item->get_display_name()); ?></span>
|
||||
<small>#<?php echo esc_html($item->get_id()); ?></small>
|
||||
</div>
|
||||
<div class="wu-text-xs wu-my-1">
|
||||
<?php if ($item->get_email_address()) : ?>
|
||||
<a class="wu-no-underline" href="mailto:<?php echo $item->get_email_address(); ?>">
|
||||
<?php echo $item->get_email_address(); ?>
|
||||
<a class="wu-no-underline" href="mailto:<?php echo esc_attr($item->get_email_address()); ?>">
|
||||
<?php echo esc_html($item->get_email_address()); ?>
|
||||
</a>
|
||||
<?php else : ?>
|
||||
<?php _e('No email address', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('No email address', 'wp-multisite-waas'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="wu-text-xs">
|
||||
<span class="<?php echo $item->is_vip() ? esc_attr('wu-font-semibold') : ''; ?>">
|
||||
<?php echo $item->is_vip() ? __('VIP Customer', 'wp-ultimo') : __('Regular Customer', 'wp-ultimo'); ?>
|
||||
<?php echo $item->is_vip() ? __('VIP Customer', 'wp-multisite-waas') : __('Regular Customer', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -66,32 +68,32 @@
|
||||
|
||||
<div class="wu-flex wu-justify-between wu-border-0 wu-border-t wu-border-solid wu-border-gray-300 wu-py-2 wu-px-3">
|
||||
<span>
|
||||
<?php _e('Last Login:', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Last Login:', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
<span class="wu-font-semibold">
|
||||
<?php
|
||||
if ($item->is_online()) {
|
||||
echo '<span class="wu-inline-block wu-mr-1 wu-rounded-full wu-h-2 wu-w-2 wu-bg-green-500"></span>' . __('Online', 'wp-ultimo');
|
||||
echo '<span class="wu-inline-block wu-mr-1 wu-rounded-full wu-h-2 wu-w-2 wu-bg-green-500"></span>' . __('Online', 'wp-multisite-waas');
|
||||
} elseif ( '0000-00-00 00:00:00' !== $item->get_last_login() ) {
|
||||
echo human_time_diff(strtotime($item->get_last_login()), time()) . ' ' . __('ago', 'wp-ultimo');
|
||||
echo human_time_diff(strtotime($item->get_last_login()), time()) . ' ' . __('ago', 'wp-multisite-waas');
|
||||
} else {
|
||||
_e('Never logged in', 'wp-ultimo');
|
||||
_e('Never logged in', 'wp-multisite-waas');
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="wu-flex wu-justify-between wu-border-0 wu-border-t wu-border-solid wu-border-gray-300 wu-py-2 wu-px-3">
|
||||
<span>
|
||||
<?php _e('Customer Since:', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Customer Since:', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
<span class="wu-font-semibold">
|
||||
<?php echo human_time_diff(strtotime($item->get_date_registered()), time()) . ' ' . __('ago', 'wp-ultimo'); ?>
|
||||
<?php echo human_time_diff(strtotime($item->get_date_registered()), time()) . ' ' . __('ago', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="wu-flex wu-justify-between wu-border-0 wu-border-gray-300 wu-border-t wu-border-b-0 wu-border-solid wu-py-2 wu-px-3">
|
||||
<span>
|
||||
<?php _e('Memberships:', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Memberships:', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
<div>
|
||||
<span class="wu-font-semibold">
|
||||
@ -102,7 +104,7 @@
|
||||
if ( ! empty($item->get_memberships())) {
|
||||
?>
|
||||
<a href="<?php echo wu_network_admin_url('wp-ultimo-memberships', ['customer_id' => $item->get_id()]); ?>">
|
||||
<?php _e('View', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('View', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
@ -113,7 +115,7 @@
|
||||
|
||||
<div class="wu-flex wu-justify-between wu-border-0 wu-border-gray-300 wu-border-t wu-border-b-0 wu-border-solid wu-py-2 wu-px-3">
|
||||
<span>
|
||||
<?php _e('Actions:', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Actions:', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
<div>
|
||||
|
||||
@ -122,10 +124,10 @@
|
||||
// Concatenate switch to url
|
||||
$is_modal_switch_to = \WP_Ultimo\User_Switching::get_instance()->check_user_switching_is_activated() ? '' : 'wubox';
|
||||
|
||||
$url_switch_to = sprintf('<a title="%s" class="%s" href="%s">%s</a>', __('Switch To', 'wp-ultimo'), $is_modal_switch_to, \WP_Ultimo\User_Switching::get_instance()->render($item->get_user_id()), __('Switch To', 'wp-ultimo'));
|
||||
$url_switch_to = sprintf('<a title="%s" class="%s" href="%s">%s</a>', __('Switch To', 'wp-multisite-waas'), $is_modal_switch_to, \WP_Ultimo\User_Switching::get_instance()->render($item->get_user_id()), __('Switch To', 'wp-multisite-waas'));
|
||||
|
||||
$actions = [
|
||||
'switch-to' => $item->get_user_id() !== get_current_user_id() ? $url_switch_to : __('None', 'wp-ultimo'),
|
||||
'switch-to' => $item->get_user_id() !== get_current_user_id() ? $url_switch_to : __('None', 'wp-multisite-waas'),
|
||||
];
|
||||
|
||||
echo implode('<br />', $actions);
|
||||
@ -141,11 +143,11 @@
|
||||
|
||||
<label>
|
||||
<input class="wu-rounded-none" type="checkbox" name="bulk-delete[]" value="<?php echo $item->get_id(); ?>" />
|
||||
<?php _e('Select Customer', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Select Customer', 'wp-multisite-waas'); ?>
|
||||
</label>
|
||||
|
||||
<a href="<?php echo wu_network_admin_url('wp-ultimo-edit-customer', ['id' => $item->get_id()]); ?>" class="button button-primary">
|
||||
<?php _e('Manage', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Manage', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -6,10 +6,9 @@
|
||||
*/
|
||||
?>
|
||||
<div id="wp-ultimo-wrap" class="<?php wu_wrap_use_container(); ?> wrap wu-styling">
|
||||
|
||||
<h1 class="wp-heading-inline">
|
||||
|
||||
<?php echo $page_title; ?>
|
||||
<?php echo esc_html($page_title); ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
@ -32,7 +31,7 @@
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $action_link['label']; ?>
|
||||
<?php echo esc_html($action_link['label']); ?>
|
||||
|
||||
</a>
|
||||
|
||||
@ -49,11 +48,8 @@
|
||||
?>
|
||||
|
||||
</h1>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
<?php do_action('wu_dash_before_metaboxes', $page); ?>
|
||||
|
||||
<?php if (apply_filters('wu_dashboard_display_widgets', true)) : ?>
|
||||
|
||||
<div id="dashboard-widgets-wrap">
|
||||
|
@ -8,81 +8,46 @@
|
||||
<div id="wp-ultimo-wrap" class="<?php wu_wrap_use_container(); ?> wrap">
|
||||
|
||||
<h1 class="wp-heading-inline">
|
||||
<?php echo esc_html($page->edit ? $labels['edit_label'] : $labels['add_new_label']); ?>
|
||||
|
||||
<?php echo $page->edit ? $labels['edit_label'] : $labels['add_new_label']; ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* You can filter the get_title_link using wu_page_list_get_title_link, see class-wu-page-list.php
|
||||
*
|
||||
* @since 1.8.2
|
||||
*/
|
||||
foreach ($page->get_title_links() as $action_link) :
|
||||
$action_classes = $action_link['classes'] ?? '';
|
||||
|
||||
$attrs = $action_link['attrs'] ?? '';
|
||||
|
||||
?>
|
||||
|
||||
<a title="<?php echo esc_attr($action_link['label']); ?>" href="<?php echo esc_url($action_link['url']); ?>" class="page-title-action <?php echo esc_attr($action_classes); ?>" <?php echo $attrs; ?>>
|
||||
|
||||
<?php if ($action_link['icon']) : ?>
|
||||
|
||||
<span class="dashicons dashicons-<?php echo esc_attr($action_link['icon']); ?> wu-text-sm wu-align-middle wu-h-4 wu-w-4">
|
||||
|
||||
</span>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $action_link['label']; ?>
|
||||
|
||||
</a>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Allow plugin developers to add additional buttons to edit pages
|
||||
*
|
||||
* @since 1.8.2
|
||||
* @param object Object holding the information
|
||||
* @param WU_Page WP Multisite WaaS Page instance
|
||||
*/
|
||||
do_action('wu_page_edit_after_title', $object, $page);
|
||||
?>
|
||||
<?php foreach ($page->get_title_links() as $action_link) : ?>
|
||||
<a title="<?php echo esc_attr($action_link['label']); ?>" href="<?php echo esc_url($action_link['url']); ?>" class="page-title-action <?php echo esc_attr($action_link['classes'] ?? ''); ?>" <?php echo esc_attr($action_link['attrs'] ?? ''); ?>>
|
||||
<?php if ($action_link['icon']) : ?>
|
||||
<span class="dashicons dashicons-<?php echo esc_attr($action_link['icon']); ?> wu-text-sm wu-align-middle wu-h-4 wu-w-4"> </span>
|
||||
<?php endif; ?>
|
||||
<?php echo esc_html($action_link['label']); ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php do_action('wu_page_edit_after_title', $object, $page); ?>
|
||||
</h1>
|
||||
|
||||
<?php if (isset($_GET['updated'])) : ?>
|
||||
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
<p><?php echo $labels['updated_message']; ?></p>
|
||||
</div>
|
||||
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
<p><?php echo esc_html($labels['updated_message']); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($_GET['notice'])) : ?>
|
||||
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
<p><?php echo $labels['updated_message']; ?></p>
|
||||
</div>
|
||||
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
<p><?php echo esc_html($labels['updated_message']); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Allow plugin developers to add additional handlers to URL query redirects
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param WP_Ultimo\Admin_Pages\Base_Admin_Page $page The page object.
|
||||
*/
|
||||
do_action('wu_page_edit_redirect_handlers', $page);
|
||||
?>
|
||||
<?php do_action('wu_page_edit_redirect_handlers', $page); ?>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
<form id="form-<?php echo esc_attr($page->get_id()); ?>" name="post" method="post" autocomplete="off">
|
||||
<?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); ?>
|
||||
<?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); ?>
|
||||
<?php wp_nonce_field(sprintf('saving_%s', $page->object_id), sprintf('saving_%s', $page->object_id), false); ?>
|
||||
<?php wp_nonce_field(sprintf('saving_%s', $page->object_id), '_wpultimo_nonce'); ?>
|
||||
<?php if ($page->edit) : ?>
|
||||
<?php wp_nonce_field(sprintf('deleting_%s', $page->object_id), sprintf('deleting_%s', $page->object_id), false); ?>
|
||||
<?php wp_nonce_field(sprintf('deleting_%s', $page->object_id), 'delete_wpultimo_nonce'); ?>
|
||||
<input type="hidden" name="id" value="<?php echo esc_attr($object->get_id()); ?>">
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="poststuff">
|
||||
|
||||
@ -96,12 +61,12 @@
|
||||
|
||||
<div id="titlewrap">
|
||||
|
||||
<input placeholder="<?php echo $labels['title_placeholder']; ?>" type="text" name="name" size="30" value="<?php echo method_exists($object, 'get_name') ? esc_attr($object->get_name()) : ''; ?>" id="title" spellcheck="true" autocomplete="off">
|
||||
<input placeholder="<?php echo esc_attr($labels['title_placeholder']); ?>" type="text" name="name" size="30" value="<?php echo method_exists($object, 'get_name') ? esc_attr($object->get_name()) : ''; ?>" id="title" spellcheck="true" autocomplete="off">
|
||||
|
||||
<?php if ( ! empty($labels['title_description'])) : ?>
|
||||
|
||||
<span class="wu-block wu-bg-gray-100 wu-rounded wu-border-solid wu-border-gray-400 wu-border-t-0 wu-border-l wu-border-b wu-border-r wu-text-xs wu-py-2 wu-p-2 wu-pt-3 wu--mt-2">
|
||||
<?php echo $labels['title_description']; ?>
|
||||
<?php echo esc_html($labels['title_description']); ?>
|
||||
</span>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -231,7 +196,7 @@
|
||||
|
||||
<?php wp_nonce_field(sprintf('deleting_%s', $page->object_id), 'delete_wpultimo_nonce'); ?>
|
||||
|
||||
<input type="hidden" name="id" value="<?php echo $object->get_id(); ?>">
|
||||
<input type="hidden" name="id" value="<?php echo esc_attr($object->get_id()); ?>">
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
<?php
|
||||
echo wu_render_empty_state(
|
||||
[
|
||||
'message' => __('No notes yet.', 'wp-ultimo'),
|
||||
'sub_message' => __('Use the "Add new Note" to create the first one.', 'wp-ultimo'),
|
||||
'message' => __('No notes yet.', 'wp-multisite-waas'),
|
||||
'sub_message' => __('Use the "Add new Note" to create the first one.', 'wp-multisite-waas'),
|
||||
'link_url' => false,
|
||||
'display_background_image' => false,
|
||||
]
|
||||
@ -51,7 +51,7 @@
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php echo $user->display_name; ?>
|
||||
<?php echo esc_html($user->display_name); ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
<span class="wu-ml-2">
|
||||
|
||||
<a class="dashicons-wu-trash wu-p-0 wu-border-none wu-text-red-600 wu-button-delete wu-no-underline wubox" href="<?php echo esc_url(wu_get_form_url('delete_note', $modal_atts)); ?>"
|
||||
title="<?php echo esc_attr__('Clear Note', 'wp-ultimo'); ?>"></a>
|
||||
title="<?php echo esc_attr__('Clear Note', 'wp-multisite-waas'); ?>"></a>
|
||||
|
||||
</span>
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
<span class="wu-self-center wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
|
||||
<?php echo _e('Loading Preview...', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Loading Preview...', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
<span class="wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
|
||||
<?php echo __('Template Preview', 'wp-ultimo'); ?>
|
||||
<?php echo esc_html__('Template Preview', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
<div id="preview_content" class="wu-block wu-bg-gray wu-text-center wu-mb-5 wu-border wu-border-t-0 wu-border-solid wu-rounded wu-border-gray-400">
|
||||
|
||||
<iframe id="preview-stage-iframe" class="preview-stage-iframe" width="100%" style="height: <?php echo $preview_height; ?>;" frameborder="0" data-src="<?php echo esc_url($preview_iframe_url); ?>" src="<?php echo esc_url($preview_iframe_url); ?>"></iframe>
|
||||
<iframe id="preview-stage-iframe" class="preview-stage-iframe" width="100%" style="height: <?php echo esc_attr($preview_height); ?>;" frameborder="0" data-src="<?php echo esc_url($preview_iframe_url); ?>" src="<?php echo esc_url($preview_iframe_url); ?>"></iframe>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
<div class="wu-p-12 wu-h-12 wu--mt-1 wu--mx-3 wu--mb-3 wu-bg-gray-100 wu-text-gray-500 wu-text-xs wu-text-center">
|
||||
<span class="dashicons dashicons-warning wu-h-8 wu-w-8 wu-mx-auto wu-text-center wu-text-4xl wu-block"></span>
|
||||
<span class="wu-block wu-text-sm wu-mt-2">
|
||||
<?php printf(__('%s will show up here once this item is saved.', 'wp-ultimo'), $title); ?>
|
||||
<?php printf(esc_html__('%s will show up here once this item is saved.', 'wp-multisite-waas'), esc_html($title)); ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<?php if ( ! empty($labels['save_description'])) : ?>
|
||||
|
||||
<p class="wu-mb-5">
|
||||
<?php echo $labels['save_description']; ?>
|
||||
<?php echo wp_kses_post($labels['save_description']); ?>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -16,7 +16,7 @@
|
||||
<div class="wu-bg-gray-200 wu-p-4 wu--m-3 wu--mt-2 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
|
||||
|
||||
<button type="submit" name="action" value="save" class="button button-primary wu-w-full">
|
||||
<?php echo $labels['save_button_label']; ?>
|
||||
<?php echo esc_html($labels['save_button_label']); ?>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
<span class="wu-text-base wu-w-4 wu-h-4 wu-pt-2px wu-mr-1 dashicons dashicons-wu-chevron-with-circle-down"> </span>
|
||||
|
||||
<?php _e('All Options', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('All Options', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
@ -63,7 +63,7 @@
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $section['title']; ?>
|
||||
<?php echo esc_html($section['title']); ?>
|
||||
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
@ -79,13 +79,13 @@
|
||||
|
||||
<span v-show="!display_all">
|
||||
|
||||
<?php _e('Display all fields', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Display all fields', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
<span v-cloak v-show="display_all">
|
||||
|
||||
<?php _e('Hide other fields', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Hide other fields', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -101,7 +101,7 @@
|
||||
|
||||
<span class="wu-blinking-animation">
|
||||
|
||||
<?php _e('Loading...', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Loading...', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
|
@ -5,57 +5,34 @@
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<div
|
||||
class="wu-flex wu-justify-center wu-items-center wu-text-center wu-bg-contain wu-bg-no-repeat wu--mb-12 wu-pb-12"
|
||||
style="background-image: url(<?php echo $display_background_image ? wu_get_asset('empty-state-bg.webp', 'img') : ''; ?>); <?php echo $display_background_image ? 'height: calc(100vh - 300px); background-position: center -30px;' : ''; ?>"
|
||||
<div
|
||||
class="wu-flex wu-justify-center wu-items-center wu-text-center wu-bg-contain wu-bg-no-repeat wu--mb-12 wu-pb-12"
|
||||
style="background-image: url(<?php echo esc_url($display_background_image ? wu_get_asset('empty-state-bg.webp', 'img') : ''); ?>); <?php echo esc_attr($display_background_image ? 'height: calc(100vh - 300px); background-position: center -30px;' : ''); ?>"
|
||||
>
|
||||
|
||||
<div class="wu-block wu-p-4 md:wu-pt-12 wu-self-center">
|
||||
|
||||
<span class="wu-block wu-text-2xl wu-text-gray-600">
|
||||
|
||||
<?php echo $message; ?>
|
||||
|
||||
</span>
|
||||
|
||||
<?php if ( ! empty($link_url)) : ?>
|
||||
|
||||
<div class="wu-block wu-text-base wu-text-gray-500 wu-py-6">
|
||||
|
||||
<?php echo $sub_message; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<a
|
||||
href="<?php echo esc_attr($link_url); ?>"
|
||||
title="<?php echo esc_attr($link_label); ?>"
|
||||
class="button button-primary button-hero <?php echo esc_attr($link_classes); ?>"
|
||||
>
|
||||
|
||||
<?php if ( ! empty($link_icon)) : ?>
|
||||
|
||||
<span class="<?php echo esc_attr($link_icon); ?> wu-align-middle"></span>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $link_label; ?>
|
||||
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<div class="wu-block wu-text-base wu-text-gray-500 wu-py-6">
|
||||
|
||||
<?php echo $sub_message; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<span class="wu-block wu-text-2xl wu-text-gray-600">
|
||||
<?php echo esc_html($message); ?>
|
||||
</span>
|
||||
<?php if ( ! empty($link_url)) : ?>
|
||||
<div class="wu-block wu-text-base wu-text-gray-500 wu-py-6">
|
||||
<?php echo esc_html($sub_message); ?>
|
||||
</div>
|
||||
<div>
|
||||
<a
|
||||
href="<?php echo esc_attr($link_url); ?>"
|
||||
title="<?php echo esc_attr($link_label); ?>"
|
||||
class="button button-primary button-hero <?php echo esc_attr($link_classes); ?>"
|
||||
>
|
||||
<?php if ( ! empty($link_icon)) : ?>
|
||||
<span class="<?php echo esc_attr($link_icon); ?> wu-align-middle"></span>
|
||||
<?php endif; ?>
|
||||
<?php echo esc_html($link_label); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="wu-block wu-text-base wu-text-gray-500 wu-py-6">
|
||||
<?php echo esc_html($sub_message); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -47,11 +47,11 @@
|
||||
class="button drawer-toggle"
|
||||
v-bind:aria-expanded="open ? 'true' : 'false'"
|
||||
>
|
||||
<?php _e('Advanced Filters', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Advanced Filters', 'wp-multisite-waas'); ?>
|
||||
</button>
|
||||
|
||||
<div class="wu-py-3 wu-px-2 wu-inline-block wu-uppercase wu-font-semibold wu-text-gray-600 wu-text-xs" v-show="open" v-cloak>
|
||||
<?php _e('Advanced Filters', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Advanced Filters', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<button
|
||||
@ -60,7 +60,7 @@
|
||||
type="button"
|
||||
class="button drawer-toggle"
|
||||
>
|
||||
<?php _e('Close', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Close', 'wp-multisite-waas'); ?>
|
||||
</button>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -110,7 +110,7 @@
|
||||
class="wu-uppercase wu-font-semibold wu-text-gray-600 wu-text-xs"
|
||||
v-if="index === 0"
|
||||
>
|
||||
<?php _e('Where', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Where', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
<select
|
||||
@ -118,16 +118,16 @@
|
||||
v-if="index === 1"
|
||||
v-model="relation"
|
||||
>
|
||||
<option value="and"><?php _e('and', 'wp-ultimo'); ?></option>
|
||||
<option value="or"><?php _e('or', 'wp-ultimo'); ?></option>
|
||||
<option value="and"><?php esc_html_e('and', 'wp-multisite-waas'); ?></option>
|
||||
<option value="or"><?php esc_html_e('or', 'wp-multisite-waas'); ?></option>
|
||||
</select>
|
||||
|
||||
<span
|
||||
class="wu-uppercase wu-font-semibold wu-text-gray-600 wu-text-xs"
|
||||
v-if="index > 1"
|
||||
>
|
||||
<span v-show="relation === 'and'"><?php _e('and', 'wp-ultimo'); ?></span>
|
||||
<span v-show="relation === 'or'"><?php _e('or', 'wp-ultimo'); ?></span>
|
||||
<span v-show="relation === 'and'"><?php esc_html_e('and', 'wp-multisite-waas'); ?></span>
|
||||
<span v-show="relation === 'or'"><?php esc_html_e('or', 'wp-multisite-waas'); ?></span>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@ -151,24 +151,24 @@
|
||||
<div class="wu-w-2/12 wu-mx-2">
|
||||
|
||||
<select class="form-control wu-w-full" v-if="get_filter_type(filter.field) == 'bool'" v-model="filter.value">
|
||||
<option value="1"><?php _e('is true.', 'wp-ultimo'); ?></option>
|
||||
<option value="0"><?php _e('is false.', 'wp-ultimo'); ?></option>
|
||||
<option value="1"><?php esc_html_e('is true.', 'wp-multisite-waas'); ?></option>
|
||||
<option value="0"><?php esc_html_e('is false.', 'wp-multisite-waas'); ?></option>
|
||||
</select>
|
||||
|
||||
<select class="form-control wu-w-full" v-if="get_filter_type(filter.field) == 'text'" v-bind:value="get_filter_rule(filter.field)">
|
||||
<option value="is"><?php _e('is', 'wp-ultimo'); ?></option>
|
||||
<option value="is_not"><?php _e('is not', 'wp-ultimo'); ?></option>
|
||||
<option value="contains"><?php _e('contains', 'wp-ultimo'); ?></option>
|
||||
<option value="does_not_contain"><?php _e('does not contain', 'wp-ultimo'); ?></option>
|
||||
<option value="starts_with"><?php _e('starts with', 'wp-ultimo'); ?></option>
|
||||
<option value="ends_with"><?php _e('ends with', 'wp-ultimo'); ?></option>
|
||||
<option value="is_empty"><?php _e('is empty.', 'wp-ultimo'); ?></option>
|
||||
<option value="is_not_empty"><?php _e('is not empty.', 'wp-ultimo'); ?></option>
|
||||
<option value="is"><?php esc_html_e('is', 'wp-multisite-waas'); ?></option>
|
||||
<option value="is_not"><?php esc_html_e('is not', 'wp-multisite-waas'); ?></option>
|
||||
<option value="contains"><?php esc_html_e('contains', 'wp-multisite-waas'); ?></option>
|
||||
<option value="does_not_contain"><?php esc_html_e('does not contain', 'wp-multisite-waas'); ?></option>
|
||||
<option value="starts_with"><?php esc_html_e('starts with', 'wp-multisite-waas'); ?></option>
|
||||
<option value="ends_with"><?php esc_html_e('ends with', 'wp-multisite-waas'); ?></option>
|
||||
<option value="is_empty"><?php esc_html_e('is empty.', 'wp-multisite-waas'); ?></option>
|
||||
<option value="is_not_empty"><?php esc_html_e('is not empty.', 'wp-multisite-waas'); ?></option>
|
||||
</select>
|
||||
|
||||
<select class="form-control wu-w-full" v-if="get_filter_type(filter.field) == 'date'" v-bind:value="get_filter_rule(filter.field)">
|
||||
<option value="before"><?php _e('is before', 'wp-ultimo'); ?></option>
|
||||
<option value="after"><?php _e('is after', 'wp-ultimo'); ?></option>
|
||||
<option value="before"><?php esc_html_e('is before', 'wp-multisite-waas'); ?></option>
|
||||
<option value="after"><?php esc_html_e('is after', 'wp-multisite-waas'); ?></option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
@ -178,7 +178,7 @@
|
||||
<input
|
||||
type="text"
|
||||
class="form-control wu-w-full"
|
||||
placeholder="<?php esc_attr_e('Value', 'wp-ultimo'); ?>"
|
||||
placeholder="<?php esc_attr_e('Value', 'wp-multisite-waas'); ?>"
|
||||
v-if="_.contains(['text', 'date'], get_filter_type(filter.field)) && !_.contains(['is_empty', 'is_not_empty'], filter.rule)"
|
||||
v-model="filter.value"
|
||||
/>
|
||||
@ -193,7 +193,7 @@
|
||||
class="button"
|
||||
v-show="index > 0"
|
||||
>
|
||||
<?php _e('Remove Filter', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Remove Filter', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
@ -206,7 +206,7 @@
|
||||
class="button button-primary wu-float-right"
|
||||
v-show="index === filters.length - 1"
|
||||
>
|
||||
<?php _e('Add new Filter', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Add new Filter', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@
|
||||
?>
|
||||
<?php $table->display_tablenav('top'); ?>
|
||||
|
||||
<div class="wu-mt-4 <?php echo implode(' ', $table->get_table_classes()); ?>">
|
||||
<div class="wu-mt-4 <?php echo esc_attr(implode(' ', $table->get_table_classes())); ?>">
|
||||
|
||||
<div id="the-list" class="wu-grid-content wu-grid wu-gap-4 wu-grid-cols-1 md:wu-grid-cols-2 lg:wu-grid-cols-3 xl:wu-grid-cols-4">
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<h1 class="wp-heading-inline">
|
||||
|
||||
<?php echo $page->get_title(); ?>
|
||||
<?php echo esc_html($page->get_title()); ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $action_link['label']; ?>
|
||||
<?php echo esc_html($action_link['label']); ?>
|
||||
|
||||
</a>
|
||||
|
||||
@ -50,9 +50,9 @@
|
||||
|
||||
</h1>
|
||||
|
||||
<?php if (isset($_GET['deleted'])) : ?>
|
||||
<?php if (isset($_GET['deleted'])) : // phpcs:ignore WordPress.Security.NonceVerification ?>
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
<p><?php echo $page->get_labels()['deleted_message']; ?></p>
|
||||
<p><?php echo esc_html($page->get_labels()['deleted_message']); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -19,11 +19,11 @@
|
||||
<img
|
||||
style="opacity: 0.6; height: 16rem;"
|
||||
class="wu-w-full"
|
||||
src="<?php echo $featured_image; ?>"
|
||||
src="<?php echo esc_url($featured_image); ?>"
|
||||
/>
|
||||
|
||||
<div class="wu-my-4 wu-mx-3 wu-inline-block wu-absolute wu-bottom-0 wu-right-0 wu-rounded wu-px-2 wu-py-1 wu-uppercase wu-text-xs wu-font-bold <?php echo esc_attr($item->get_type_class()); ?>">
|
||||
<?php echo $item->get_type_label(); ?>
|
||||
<?php echo esc_html($item->get_type_label()); ?>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
@ -33,7 +33,7 @@
|
||||
</div>
|
||||
|
||||
<div class="wu-my-4 wu-mx-3 wu-inline-block wu-absolute wu-bottom-0 wu-right-0 wu-rounded wu-px-2 wu-py-1 wu-uppercase wu-text-xs wu-font-bold <?php echo esc_attr($item->get_type_class()); ?>">
|
||||
<?php echo $item->get_type_label(); ?>
|
||||
<?php echo esc_html($item->get_type_label()); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
@ -45,7 +45,7 @@
|
||||
<div class="wu-text-base wu-mt-1 wu-px-3 wu-mt-3">
|
||||
|
||||
<div>
|
||||
<span class="wu-font-semibold"><?php echo $item->get_name(); ?></span>
|
||||
<span class="wu-font-semibold"><?php echo esc_html($item->get_name()); ?></span>
|
||||
<!-- <small><?php echo $item->get_price_description(); ?></small> -->
|
||||
</div>
|
||||
|
||||
@ -61,11 +61,11 @@
|
||||
|
||||
<!-- <label>
|
||||
<input class="wu-rounded-none" type="checkbox" name="bulk-delete[]" value="<?php echo $item->get_id(); ?>" />
|
||||
<?php _e('Select Site', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Select Site', 'wp-multisite-waas'); ?>
|
||||
</label> -->
|
||||
|
||||
<a href="<?php echo wu_network_admin_url('wp-ultimo-edit-product', ['id' => $item->get_id()]); ?>" class="button button-primary">
|
||||
<?php _e('Read More', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Read More', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
<div class="wu-flex-shrink wu-mr-4 wu-items-center wu-justify-between wu-flex">
|
||||
|
||||
<?php echo $args['image']; ?>
|
||||
<?php echo wp_kses_post($args['image']); ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -25,11 +25,11 @@
|
||||
|
||||
<span class="wu-font-semibold wu-truncate wu-text-gray-700">
|
||||
|
||||
<?php echo $args['title']; ?>
|
||||
<?php echo wp_kses_post($args['title']); ?>
|
||||
|
||||
<?php if ($args['id']) : ?>
|
||||
|
||||
<span class="wu-font-normal wu-text-xs">(#<?php echo $args['id']; ?>)</span>
|
||||
<span class="wu-font-normal wu-text-xs">(#<?php echo esc_html($args['id']); ?>)</span>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
<div class="wu-ml-2 wu-flex-shrink-0 wu-flex">
|
||||
|
||||
<?php echo $args['status']; ?>
|
||||
<?php echo wp_kses_post($args['status']); ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -55,21 +55,21 @@
|
||||
|
||||
<?php if (wu_get_isset($item, 'url')) : ?>
|
||||
|
||||
<a title="<?php echo wu_get_isset($item, 'value', ''); ?>" href="<?php echo esc_attr($item['url']); ?>" class="wu-no-underline wu-flex wu-items-center wu-text-xs wp-ui-text-highlight <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo $w_classes; ?>" <?php echo wu_tooltip_text($item['label']); ?>>
|
||||
<a title="<?php echo wu_get_isset($item, 'value', ''); ?>" href="<?php echo esc_attr($item['url']); ?>" class="wu-no-underline wu-flex wu-items-center wu-text-xs wp-ui-text-highlight <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo esc_attr($w_classes); ?>" <?php echo wu_tooltip_text($item['label']); ?>>
|
||||
|
||||
<span class="<?php echo esc_attr($item['icon']); ?>"></span>
|
||||
|
||||
<?php echo $item['value']; ?>
|
||||
<?php echo esc_html($item['value']); ?>
|
||||
|
||||
</a>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<span class="wu-flex wu-items-center wu-text-xs wu-text-gray-600 <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo $w_classes; ?>" <?php echo wu_get_isset($item, 'label') ? wu_tooltip_text($item['label']) : ''; ?>>
|
||||
<span class="wu-flex wu-items-center wu-text-xs wu-text-gray-600 <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo esc_attr($w_classes); ?>" <?php echo wu_get_isset($item, 'label') ? wu_tooltip_text($item['label']) : ''; ?>>
|
||||
|
||||
<span class="<?php echo esc_attr($item['icon']); ?>"></span>
|
||||
|
||||
<?php echo $item['value']; ?>
|
||||
<?php echo esc_html($item['value']); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -92,21 +92,21 @@ endforeach;
|
||||
|
||||
<?php if (wu_get_isset($item, 'url')) : ?>
|
||||
|
||||
<a title="<?php echo wu_get_isset($item, 'value', ''); ?>" href="<?php echo esc_attr($item['url']); ?>" class="wu-no-underline wu-flex wu-items-center wu-text-xs wp-ui-text-highlight <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo $w_classes; ?>" <?php echo wu_tooltip_text($item['label']); ?>>
|
||||
<a title="<?php echo wu_get_isset($item, 'value', ''); ?>" href="<?php echo esc_attr($item['url']); ?>" class="wu-no-underline wu-flex wu-items-center wu-text-xs wp-ui-text-highlight <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo esc_attr($w_classes); ?>" <?php echo wu_tooltip_text($item['label']); ?>>
|
||||
|
||||
<span class="<?php echo esc_attr($item['icon']); ?>"></span>
|
||||
|
||||
<?php echo $item['value']; ?>
|
||||
<?php echo esc_html($item['value']); ?>
|
||||
|
||||
</a>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<span class="wu-flex wu-items-center wu-text-xs wu-text-gray-600 <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo $w_classes; ?> " <?php echo wu_get_isset($item, 'label') ? wu_tooltip_text($item['label']) : ''; ?>>
|
||||
<span class="wu-flex wu-items-center wu-text-xs wu-text-gray-600 <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo esc_attr($w_classes); ?> " <?php echo wu_get_isset($item, 'label') ? wu_tooltip_text($item['label']) : ''; ?>>
|
||||
|
||||
<span class="<?php echo esc_attr($item['icon']); ?>"></span>
|
||||
|
||||
<?php echo $item['value']; ?>
|
||||
<?php echo esc_html($item['value']); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -127,7 +127,7 @@ endforeach;
|
||||
|
||||
<div class="wu-flex wu-ml-5 wu-flex-shrink-0 wu-items-center wu-justify-between">
|
||||
|
||||
<a href="<?php echo esc_attr($args['url']); ?>" title="<?php esc_attr_e('View', 'wp-ultimo'); ?>">
|
||||
<a href="<?php echo esc_attr($args['url']); ?>" title="<?php esc_attr_e('View', 'wp-multisite-waas'); ?>">
|
||||
<svg class="wu-h-5 wu-w-5 wu-text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<h1 class="wp-heading-inline">
|
||||
|
||||
<?php echo $page->get_title(); ?>
|
||||
<?php echo esc_html($page->get_title()); ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $action_link['label']; ?>
|
||||
<?php echo esc_html($action_link['label']); ?>
|
||||
|
||||
</a>
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
<?php if (wu_request('updated')) : ?>
|
||||
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
<p><?php _e('Settings successfully saved.', 'wp-ultimo'); ?></p>
|
||||
<p><?php esc_html_e('Settings successfully saved.', 'wp-multisite-waas'); ?></p>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -88,7 +88,7 @@
|
||||
|
||||
<li class="md:wu-hidden wu-p-4 wu-font-bold wu-uppercase wu-text-xs wu-text-gray-700">
|
||||
|
||||
<?php _e('Menu', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Menu', 'wp-multisite-waas'); ?>
|
||||
|
||||
</li>
|
||||
|
||||
@ -114,21 +114,21 @@
|
||||
if (wu_get_isset($section, 'invisible')) {
|
||||
continue; // skip add-ons for now.
|
||||
|
||||
} // end if;
|
||||
}
|
||||
|
||||
if (wu_get_isset($section, 'addon')) {
|
||||
$addons[ $section_name ] = $section;
|
||||
|
||||
continue; // skip add-ons for now.
|
||||
|
||||
} // end if;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the flag after the current section is looped.
|
||||
*/
|
||||
if ($current_section === $section_name) {
|
||||
$is_pre_current_section = false;
|
||||
} // end if;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -144,7 +144,7 @@
|
||||
|
||||
<span class="<?php echo esc_attr($section['icon']); ?> wu-align-text-bottom wu-mr-1"></span>
|
||||
|
||||
<?php echo $section['title']; ?>
|
||||
<?php echo esc_html($section['title']); ?>
|
||||
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
@ -158,7 +158,7 @@
|
||||
|
||||
<li class="classes">
|
||||
<a href="<?php echo esc_url($page->get_section_link($section_name) . '#' . $sub_section_name); ?>" class="wu-block wu-py-2 wu-px-4 wu-no-underline wu-text-gray-500 hover:wu-text-gray-600 wu-text-sm">
|
||||
→ <?php echo $sub_section['title']; ?>
|
||||
→ <?php echo esc_html($sub_section['title']); ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -183,7 +183,7 @@
|
||||
<ul class="wu-pt-4">
|
||||
|
||||
<li class="wu-px-4 wu-font-bold wu-uppercase wu-text-xs wu-text-gray-700">
|
||||
<?php _e('Add-ons', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Add-ons', 'wp-multisite-waas'); ?>
|
||||
</li>
|
||||
|
||||
<?php foreach ($addons as $section_name => $section) : ?>
|
||||
@ -195,7 +195,7 @@
|
||||
*/
|
||||
if ($current_section === $section_name) {
|
||||
$is_pre_current_section = false;
|
||||
} // end if;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -207,7 +207,7 @@
|
||||
|
||||
<span class="<?php echo esc_attr($section['icon']); ?> wu-align-text-bottom wu-mr-1"></span>
|
||||
|
||||
<?php echo $section['title']; ?>
|
||||
<?php echo esc_html($section['title']); ?>
|
||||
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
@ -221,7 +221,7 @@
|
||||
|
||||
<li class="classes">
|
||||
<a href="<?php echo esc_url($page->get_section_link($section_name) . '#' . $sub_section_name); ?>" class="wu-block wu-py-2 wu-px-4 wu-no-underline wu-text-gray-500 hover:wu-text-gray-600 wu-text-sm">
|
||||
→ <?php echo $sub_section['title']; ?>
|
||||
→ <?php echo esc_html($sub_section['title']); ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -301,23 +301,3 @@
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
/** Not a huge fan of having this here, but it's better than having
|
||||
a file for this alone. */
|
||||
settings_loader = wu_block_ui('#wp-ultimo-wizard-body');
|
||||
|
||||
/**
|
||||
* Remove the block ui after the settings loaded.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
*/
|
||||
function remove_block_ui() {
|
||||
|
||||
settings_loader.unblock();
|
||||
|
||||
} // end remove_block_ui;
|
||||
|
||||
</script>
|
||||
|
@ -14,14 +14,14 @@
|
||||
<img
|
||||
style="opacity: 0.6;"
|
||||
class="wu-w-full wu-h-auto wu-image-preview"
|
||||
data-image="<?php echo $item->get_featured_image('large'); ?>"
|
||||
src="<?php echo $item->get_featured_image('wu-thumb-medium'); ?>"
|
||||
data-image="<?php echo esc_attr($item->get_featured_image('large')); ?>"
|
||||
src="<?php echo esc_attr($item->get_featured_image('wu-thumb-medium')); ?>"
|
||||
/>
|
||||
|
||||
<?php if (current_user_can('wu_read_sites')) : ?>
|
||||
|
||||
<div class="wu-my-4 wu-mx-3 wu-inline-block wu-absolute wu-bottom-0 wu-right-0 wu-rounded wu-px-2 wu-py-1 wu-uppercase wu-text-xs wu-font-bold <?php echo esc_attr($item->get_type_class()); ?>">
|
||||
<?php echo $item->get_type_label(); ?>
|
||||
<?php echo esc_html($item->get_type_label()); ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -31,12 +31,12 @@
|
||||
<div class="wu-text-base wu-px-3 wu-my-3">
|
||||
|
||||
<div>
|
||||
<span class="wu-font-semibold"><?php echo $item->get_title(); ?></span>
|
||||
<small><?php echo $item->get_id() ? '#' . $item->get_id() : ''; ?></small>
|
||||
<span class="wu-font-semibold"><?php echo esc_html($item->get_title()); ?></span>
|
||||
<small><?php echo esc_html($item->get_id() ? '#' . $item->get_id() : ''); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="wu-text-xs wu-my-1">
|
||||
<a class="wu-no-underline" href="<?php echo $item->get_active_site_url(); ?>"><?php echo $item->get_active_site_url(); ?></a>
|
||||
<a class="wu-no-underline" href="<?php echo esc_url($item->get_active_site_url()); ?>"><?php echo esc_url($item->get_active_site_url()); ?></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -48,23 +48,23 @@
|
||||
<?php if ($item->get_type() === 'pending') : ?>
|
||||
|
||||
<label>
|
||||
<input class="wu-rounded-none" type="checkbox" name="bulk-delete[]" value="<?php echo $item->get_membership_id(); ?>" />
|
||||
<?php _e('Select Site', 'wp-ultimo'); ?>
|
||||
<input class="wu-rounded-none" type="checkbox" name="bulk-delete[]" value="<?php echo esc_attr($item->get_membership_id()); ?>" />
|
||||
<?php esc_html_e('Select Site', 'wp-multisite-waas'); ?>
|
||||
</label>
|
||||
|
||||
<a title="<?php echo esc_attr(__('Publish pending site', 'wp-ultimo')); ?>" href="<?php echo wu_get_form_url('publish_pending_site', ['membership_id' => $item->get_membership_id()]); ?>" class="wubox button button-primary">
|
||||
<?php _e('Publish Site', 'wp-ultimo'); ?>
|
||||
<a title="<?php echo esc_attr(__('Publish pending site', 'wp-multisite-waas')); ?>" href="<?php echo esc_attr(wu_get_form_url('publish_pending_site', ['membership_id' => $item->get_membership_id()])); ?>" class="wubox button button-primary">
|
||||
<?php esc_html_e('Publish Site', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<label>
|
||||
<input class="wu-rounded-none" type="checkbox" name="bulk-delete[]" value="<?php echo $item->get_id(); ?>" />
|
||||
<?php _e('Select Site', 'wp-ultimo'); ?>
|
||||
<input class="wu-rounded-none" type="checkbox" name="bulk-delete[]" value="<?php echo esc_attr($item->get_id()); ?>" />
|
||||
<?php esc_html_e('Select Site', 'wp-multisite-waas'); ?>
|
||||
</label>
|
||||
|
||||
<a href="<?php echo wu_network_admin_url('wp-ultimo-edit-site', ['id' => $item->get_id()]); ?>" class="button button-primary">
|
||||
<?php _e('Manage', 'wp-ultimo'); ?>
|
||||
<a href="<?php echo esc_attr(wu_network_admin_url('wp-ultimo-edit-site', ['id' => $item->get_id()])); ?>" class="button button-primary">
|
||||
<?php esc_html_e('Manage', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -73,8 +73,8 @@
|
||||
|
||||
<span> </span>
|
||||
|
||||
<a href="<?php echo wu_network_admin_url('wp-ultimo-edit-site', ['id' => $item->get_id()]); ?>" class="button button-primary">
|
||||
<?php _e('See Main Site', 'wp-ultimo'); ?>
|
||||
<a href="<?php echo esc_attr(wu_network_admin_url('wp-ultimo-edit-site', ['id' => $item->get_id()])); ?>" class="button button-primary">
|
||||
<?php esc_html_e('See Main Site', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
|
@ -8,26 +8,26 @@
|
||||
<div id="wp-ultimo-wrap" class="wrap wu-wrap <?php echo esc_attr($classes); ?>">
|
||||
|
||||
<h1 class="wp-heading-inline">
|
||||
<!-- This is here for admin notices placement only -->
|
||||
<!-- This is here for admin notices placement only -->
|
||||
</h1>
|
||||
|
||||
<?php if ($logo) : ?>
|
||||
|
||||
<div class="wu-text-center">
|
||||
<div class="wu-text-center">
|
||||
|
||||
<img style="width: 200px;" src="<?php echo esc_attr($logo); ?>" alt="">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($_GET['deleted'])) : ?>
|
||||
<?php if (isset($_GET['deleted'])) : // phpcs:ignore WordPress.Security.NonceVerification ?>
|
||||
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
|
||||
<p><?php echo $page->labels['deleted_message']; ?></p>
|
||||
<p><?php echo esc_html($page->labels['deleted_message']); ?></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
@ -35,11 +35,11 @@
|
||||
|
||||
<div id="poststuff" class="md:wu-flex wu-mr-4 md:wu-mr-0">
|
||||
|
||||
<div class="md:wu-w-2/12 wu-pt-10">
|
||||
<div class="md:wu-w-2/12 wu-pt-10">
|
||||
|
||||
<span class="wu-uppercase wu-block wu-px-4 wu-text-gray-700 wu-font-bold">
|
||||
|
||||
<?php echo $page->get_title(); ?>
|
||||
<?php echo esc_html($page->get_title()); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -53,105 +53,105 @@
|
||||
do_action('wu_page_wizard_after_title', $page);
|
||||
?>
|
||||
|
||||
<!-- Navigator -->
|
||||
<ul class="">
|
||||
<!-- Navigator -->
|
||||
<ul class="">
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
/**
|
||||
* We need to set a couple of flags in here to control clickable navigation elements.
|
||||
* This flag makes sure only steps the user already went through are clickable.
|
||||
*/
|
||||
$is_pre_current_section = true;
|
||||
/**
|
||||
* We need to set a couple of flags in here to control clickable navigation elements.
|
||||
* This flag makes sure only steps the user already went through are clickable.
|
||||
*/
|
||||
$is_pre_current_section = true;
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
<?php foreach ($sections as $section_name => $section) : ?>
|
||||
<?php foreach ($sections as $section_name => $section) : ?>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Updates the flag after the current section is looped.
|
||||
*/
|
||||
if ($current_section === $section_name) {
|
||||
$is_pre_current_section = false;
|
||||
} // end if;
|
||||
/**
|
||||
* Updates the flag after the current section is looped.
|
||||
*/
|
||||
if ($current_section === $section_name) {
|
||||
$is_pre_current_section = false;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
<?php if (wu_get_isset($section, 'separator')) : ?>
|
||||
<?php if (wu_get_isset($section, 'separator')) : ?>
|
||||
|
||||
<!-- Separator Item -->
|
||||
<li class="wu-sticky wu-py-2 wu-px-4"> </li>
|
||||
<!-- Separator Item -->
|
||||
<li class="wu-sticky wu-py-2 wu-px-4"> </li>
|
||||
|
||||
<?php else : ?>
|
||||
<?php else : ?>
|
||||
|
||||
<!-- Menu Item -->
|
||||
<li class="wu-sticky">
|
||||
<!-- Menu Item -->
|
||||
<li class="wu-sticky">
|
||||
|
||||
<!-- Menu Link -->
|
||||
<a href="<?php echo esc_url($page->get_section_link($section_name)); ?>" class="wu-block wu-py-2 wu-px-4 wu-no-underline wu-text-sm wu-rounded <?php echo ! $clickable_navigation && ! $is_pre_current_section ? 'wu-pointer-events-none' : ''; ?> <?php echo $current_section === $section_name ? 'wu-bg-gray-300 wu-text-gray-800' : 'wu-text-gray-600 hover:wu-text-gray-700'; ?>">
|
||||
<?php echo $section['title']; ?>
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
<!-- Menu Link -->
|
||||
<a href="<?php echo esc_url($page->get_section_link($section_name)); ?>" class="wu-block wu-py-2 wu-px-4 wu-no-underline wu-text-sm wu-rounded <?php echo ! $clickable_navigation && ! $is_pre_current_section ? 'wu-pointer-events-none' : ''; ?> <?php echo $current_section === $section_name ? 'wu-bg-gray-300 wu-text-gray-800' : 'wu-text-gray-600 hover:wu-text-gray-700'; ?>">
|
||||
<?php echo esc_html($section['title']); ?>
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
|
||||
<?php if ( ! empty($section['sub-sections'])) : ?>
|
||||
<?php if ( ! empty($section['sub-sections'])) : ?>
|
||||
|
||||
<!-- Sub-menu -->
|
||||
<ul class="classes">
|
||||
<!-- Sub-menu -->
|
||||
<ul class="classes">
|
||||
|
||||
<?php foreach ($section['sub-sections'] as $sub_section_name => $sub_section) : ?>
|
||||
<?php foreach ($section['sub-sections'] as $sub_section_name => $sub_section) : ?>
|
||||
|
||||
<li class="classes">
|
||||
<a href="#" class="wu-block wu-py-2 wu-px-4 wu-no-underline wu-text-gray-500 hover:wu-text-gray-600 wu-text-sm">
|
||||
→ <?php echo $sub_section['title']; ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="classes">
|
||||
<a href="#" class="wu-block wu-py-2 wu-px-4 wu-no-underline wu-text-gray-500 hover:wu-text-gray-600 wu-text-sm">
|
||||
→ <?php echo esc_html($sub_section['title']); ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
<!-- End Sub-menu -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</li>
|
||||
<!-- End Menu Item -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
<!-- End Sub-menu -->
|
||||
</ul>
|
||||
<!-- End Navigator -->
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<!-- End Menu Item -->
|
||||
<div class="md:wu-w-8/12 wu-px-4 metabox-holder">
|
||||
|
||||
<?php endif; ?>
|
||||
<form method="post" id="<?php echo esc_attr($form_id); ?>">
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php
|
||||
|
||||
</ul>
|
||||
<!-- End Navigator -->
|
||||
/**
|
||||
* Print Side Metaboxes
|
||||
*
|
||||
* Allow plugin developers to add new metaboxes
|
||||
*
|
||||
* @since 1.8.2
|
||||
* @param object Object being edited right now
|
||||
*/
|
||||
do_meta_boxes($screen->id, 'normal', false);
|
||||
|
||||
</div>
|
||||
?>
|
||||
|
||||
<div class="md:wu-w-8/12 wu-px-4 metabox-holder">
|
||||
<?php wp_nonce_field(sprintf('saving_%s', $current_section), sprintf('saving_%s', $current_section), false); ?>
|
||||
|
||||
<form method="post" id="<?php echo esc_attr($form_id); ?>">
|
||||
<?php wp_nonce_field(sprintf('saving_%s', $current_section), '_wpultimo_nonce'); ?>
|
||||
|
||||
<?php
|
||||
</form>
|
||||
|
||||
/**
|
||||
* Print Side Metaboxes
|
||||
*
|
||||
* Allow plugin developers to add new metaboxes
|
||||
*
|
||||
* @since 1.8.2
|
||||
* @param object Object being edited right now
|
||||
*/
|
||||
do_meta_boxes($screen->id, 'normal', false);
|
||||
|
||||
?>
|
||||
|
||||
<?php wp_nonce_field(sprintf('saving_%s', $current_section), sprintf('saving_%s', $current_section), false); ?>
|
||||
|
||||
<?php wp_nonce_field(sprintf('saving_%s', $current_section), '_wpultimo_nonce'); ?>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -9,13 +9,13 @@
|
||||
<div class="wu-flex wu-justify-between wu-bg-gray-100 wu--m-in wu-mt-4 wu-p-4 wu-overflow-hidden wu-border-t wu-border-solid wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300">
|
||||
|
||||
<a href="<?php echo esc_url($page->get_prev_section_link()); ?>" class="wu-self-center button button-large wu-float-left">
|
||||
<?php _e('← Go Back', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('← Go Back', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<span class="wu-self-center wu-content-center wu-flex">
|
||||
|
||||
<button name="submit" value="1" class="button button-primary button-large">
|
||||
<?php _e('Continue', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Continue', 'wp-multisite-waas'); ?>
|
||||
</button>
|
||||
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user