Use new code style
This commit is contained in:
@ -6,56 +6,56 @@
|
||||
*/
|
||||
?>
|
||||
<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.png', 'img') : ''; ?>); <?php echo $display_background_image ? "height: calc(100vh - 300px); background-position: center -30px;" : ''; ?>"
|
||||
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.png', 'img') : ''; ?>); <?php echo $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">
|
||||
<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">
|
||||
<span class="wu-block wu-text-2xl wu-text-gray-600">
|
||||
|
||||
<?php echo $message; ?>
|
||||
<?php echo $message; ?>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<?php if (!empty($link_url)) : ?>
|
||||
<?php if ( ! empty($link_url)) : ?>
|
||||
|
||||
<div class="wu-block wu-text-base wu-text-gray-500 wu-py-6">
|
||||
<div class="wu-block wu-text-base wu-text-gray-500 wu-py-6">
|
||||
|
||||
<?php echo $sub_message; ?>
|
||||
<?php echo $sub_message; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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); ?>"
|
||||
>
|
||||
<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)) : ?>
|
||||
<?php if ( ! empty($link_icon)) : ?>
|
||||
|
||||
<span class="<?php echo esc_attr($link_icon); ?> wu-align-middle"></span>
|
||||
<span class="<?php echo esc_attr($link_icon); ?> wu-align-middle"></span>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $link_label; ?>
|
||||
<?php echo $link_label; ?>
|
||||
|
||||
</a>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
<?php else : ?>
|
||||
|
||||
<div class="wu-block wu-text-base wu-text-gray-500 wu-py-6">
|
||||
<div class="wu-block wu-text-base wu-text-gray-500 wu-py-6">
|
||||
|
||||
<?php echo $sub_message; ?>
|
||||
<?php echo $sub_message; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user