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.
39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Empty List Table View
|
|
*
|
|
* @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-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>
|
|
</div>
|