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:
@ -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>
|
||||
|
Reference in New Issue
Block a user