Prep Plugin for release on WordPress.org

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.
This commit is contained in:
David Stone
2025-04-07 09:15:21 -06:00
parent f05ab77418
commit a815fdf179
290 changed files with 2999 additions and 3269 deletions

View File

@ -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-multisite-waas'); ?>
<?php esc_html_e('Change Membership', 'wp-multisite-waas'); ?>
</h3>
@ -108,7 +108,7 @@
<div class="inside">
<?php echo $content; ?>
<?php echo wp_kses_post($content); ?>
</div>

View File

@ -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-multisite-waas'); ?></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-multisite-waas'); ?>">
<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-multisite-waas'); ?></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-multisite-waas'); ?>">
<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-multisite-waas'); ?>" }}
{{ 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-multisite-waas'); ?></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-multisite-waas'); ?>
<?php esc_html_e('Show more details', 'wp-multisite-waas'); ?>
</span>
</button>
</td>
<td class="type column-type" data-colname="<?php _e('Type', 'wp-multisite-waas'); ?>">
<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-multisite-waas'); ?>">
<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-multisite-waas'); ?>">
<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>

View File

@ -91,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-multisite-waas'), '{{ 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>
@ -104,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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?php echo wp_kses_post(__('This step is only visible for <strong>logged-in users</strong>', 'wp-multisite-waas')); ?>
</span>
</div>
@ -138,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-multisite-waas'); ?>
<?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-multisite-waas'); ?>"
<a title="<?php esc_html_e('Edit Section', 'wp-multisite-waas'); ?>"
:href="'
<?php
echo wu_get_form_url(
@ -174,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-multisite-waas'); ?>
<?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-multisite-waas'); ?>"
<a title="<?php esc_html_e('Add new Field', 'wp-multisite-waas'); ?>"
:href="'
<?php
echo wu_get_form_url(
@ -196,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-multisite-waas'); ?>
<?php esc_html_e('Add new Field', 'wp-multisite-waas'); ?>
</a>
</li>
@ -218,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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?php esc_html_e('See as visitor', 'wp-multisite-waas'); ?>
</a>
</div>
@ -231,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-multisite-waas'); ?>
<?php esc_html_e('Loading Preview...', 'wp-multisite-waas'); ?>
</span>
</div>
@ -241,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-multisite-waas'); ?>
<?php esc_html_e('Something wrong happened along the way =(', 'wp-multisite-waas'); ?>
</span>
</div>
@ -252,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-multisite-waas'); ?>
<?php esc_html_e('Your browser doesn\'t support iframes', 'wp-multisite-waas'); ?>
</iframe>
</div>
@ -285,15 +285,15 @@
<li class="wu-m-0 wu-ml-4">
<a
title="<?php _e('Preview', 'wp-multisite-waas'); ?>"
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-multisite-waas'); ?></span>
<span v-cloak v-show="preview"><?php _e('Editor', 'wp-multisite-waas'); ?></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>

View File

@ -42,7 +42,7 @@
<?php echo esc_html($item->get_email_address()); ?>
</a>
<?php else : ?>
<?php _e('No email address', 'wp-multisite-waas'); ?>
<?php esc_html_e('No email address', 'wp-multisite-waas'); ?>
<?php endif; ?>
</div>
<div class="wu-text-xs">
@ -56,7 +56,7 @@
<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-multisite-waas'); ?>
<?php esc_html_e('Last Login:', 'wp-multisite-waas'); ?>
</span>
<span class="wu-font-semibold">
<?php
@ -72,7 +72,7 @@
</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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
@ -81,7 +81,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('Memberships:', 'wp-multisite-waas'); ?>
<?php esc_html_e('Memberships:', 'wp-multisite-waas'); ?>
</span>
<div>
<span class="wu-font-semibold">
@ -92,7 +92,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-multisite-waas'); ?>
<?php esc_html_e('View', 'wp-multisite-waas'); ?>
</a>
<?php
}
@ -103,7 +103,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-multisite-waas'); ?>
<?php esc_html_e('Actions:', 'wp-multisite-waas'); ?>
</span>
<div>
@ -131,11 +131,11 @@
<label>
<input class="wu-rounded-none" type="checkbox" name="bulk-delete[]" value="<?php echo $item->get_id(); ?>" />
<?php _e('Select Customer', 'wp-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?php esc_html_e('Manage', 'wp-multisite-waas'); ?>
</a>
</div>
</div>

View File

@ -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">

View File

@ -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 esc_html($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 esc_attr($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">
&nbsp;
</span>
<?php endif; ?>
<?php echo esc_html($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">&nbsp;</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; ?>

View File

@ -51,7 +51,7 @@
)
);
?>
<?php echo $user->display_name; ?>
<?php echo esc_html($user->display_name); ?>
</div>

View File

@ -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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?php echo esc_html__('Template Preview', 'wp-multisite-waas'); ?>
</span>

View File

@ -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-multisite-waas'), $title); ?>
<?php printf(esc_html__('%s will show up here once this item is saved.', 'wp-multisite-waas'), esc_html($title)); ?>
</span>
</div>

View File

@ -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>

View File

@ -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">&nbsp;</span>
<?php _e('All Options', 'wp-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?php esc_html_e('Display all fields', 'wp-multisite-waas'); ?>
</span>
<span v-cloak v-show="display_all">
<?php _e('Hide other fields', 'wp-multisite-waas'); ?>
<?php esc_html_e('Hide other fields', 'wp-multisite-waas'); ?>
</span>
@ -101,7 +101,7 @@
<span class="wu-blinking-animation">
<?php _e('Loading...', 'wp-multisite-waas'); ?>
<?php esc_html_e('Loading...', 'wp-multisite-waas'); ?>
</span>

View File

@ -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 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-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 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>
<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>

View File

@ -47,11 +47,11 @@
class="button drawer-toggle"
v-bind:aria-expanded="open ? 'true' : 'false'"
>
<?php _e('Advanced Filters', 'wp-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?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-multisite-waas'); ?></option>
<option value="or"><?php _e('or', 'wp-multisite-waas'); ?></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-multisite-waas'); ?></span>
<span v-show="relation === 'or'"><?php _e('or', 'wp-multisite-waas'); ?></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-multisite-waas'); ?></option>
<option value="0"><?php _e('is false.', 'wp-multisite-waas'); ?></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-multisite-waas'); ?></option>
<option value="is_not"><?php _e('is not', 'wp-multisite-waas'); ?></option>
<option value="contains"><?php _e('contains', 'wp-multisite-waas'); ?></option>
<option value="does_not_contain"><?php _e('does not contain', 'wp-multisite-waas'); ?></option>
<option value="starts_with"><?php _e('starts with', 'wp-multisite-waas'); ?></option>
<option value="ends_with"><?php _e('ends with', 'wp-multisite-waas'); ?></option>
<option value="is_empty"><?php _e('is empty.', 'wp-multisite-waas'); ?></option>
<option value="is_not_empty"><?php _e('is not empty.', 'wp-multisite-waas'); ?></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-multisite-waas'); ?></option>
<option value="after"><?php _e('is after', 'wp-multisite-waas'); ?></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>
@ -193,7 +193,7 @@
class="button"
v-show="index > 0"
>
<?php _e('Remove Filter', 'wp-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?php esc_html_e('Add new Filter', 'wp-multisite-waas'); ?>
</a>
</div>

View File

@ -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">

View File

@ -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; ?>

View File

@ -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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?php esc_html_e('Read More', 'wp-multisite-waas'); ?>
</a>
</div>

View File

@ -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>

View File

@ -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-multisite-waas'); ?></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-multisite-waas'); ?>
<?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">
&rarr; <?php echo $sub_section['title']; ?>
&rarr; <?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-multisite-waas'); ?>
<?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">
&rarr; <?php echo $sub_section['title']; ?>
&rarr; <?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>

View File

@ -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">&nbsp;</li>
<!-- Separator Item -->
<li class="wu-sticky wu-py-2 wu-px-4">&nbsp;</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">
&rarr; <?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">
&rarr; <?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>

View File

@ -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('&larr; Go Back', 'wp-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?php esc_html_e('Continue', 'wp-multisite-waas'); ?>
</button>
</span>