Use new code style
This commit is contained in:
@ -15,105 +15,104 @@
|
||||
* @version 1.4.0
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
|
||||
exit; // Exit if accessed directly
|
||||
if ( ! defined('ABSPATH')) {
|
||||
exit; // Exit if accessed directly
|
||||
} // end if;
|
||||
|
||||
?>
|
||||
|
||||
<?php if (!$is_editor) : ?>
|
||||
<?php if ( ! $is_editor) : ?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html style="">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title><?php echo $subject; ?></title>
|
||||
</head>
|
||||
<!DOCTYPE html>
|
||||
<html style="">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title><?php echo $subject; ?></title>
|
||||
</head>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<body style="line-height: 1.6em; -webkit-font-smoothing: antialiased; height: 100%; -webkit-text-size-adjust: none; width: 100% !important; margin: 0; padding: 0; background-color:#f6f6f6">
|
||||
<table style="line-height: 1.6em; width: 100%; margin: 0; padding: 20px;">
|
||||
<tr style="">
|
||||
<td style=""></td>
|
||||
<td style="line-height: 1.6em; clear: both !important; display: block !important; max-width: 600px !important; margin: 0 auto; padding: 20px; border: 1px solid #f0f0f0;background-color:#FFFFFF">
|
||||
<div style="line-height: 1.6em; display: block; max-width: 600px; margin: 0 auto; padding: 0;">
|
||||
<table style="line-height: 1.6em; width: 100%; margin: 0; padding: 0;">
|
||||
<tr>
|
||||
<td style="background: <?php echo $template_settings['background_color']; ?>; text-align: center; padding: 20px 40px; /* margin: -20px; */">
|
||||
<a style="" href="<?php echo $site_url; ?>">
|
||||
<?php if ($template_settings['use_custom_logo'] && $template_settings['custom_logo']) : ?>
|
||||
<body style="line-height: 1.6em; -webkit-font-smoothing: antialiased; height: 100%; -webkit-text-size-adjust: none; width: 100% !important; margin: 0; padding: 0; background-color:#f6f6f6">
|
||||
<table style="line-height: 1.6em; width: 100%; margin: 0; padding: 20px;">
|
||||
<tr style="">
|
||||
<td style=""></td>
|
||||
<td style="line-height: 1.6em; clear: both !important; display: block !important; max-width: 600px !important; margin: 0 auto; padding: 20px; border: 1px solid #f0f0f0;background-color:#FFFFFF">
|
||||
<div style="line-height: 1.6em; display: block; max-width: 600px; margin: 0 auto; padding: 0;">
|
||||
<table style="line-height: 1.6em; width: 100%; margin: 0; padding: 0;">
|
||||
<tr>
|
||||
<td style="background: <?php echo $template_settings['background_color']; ?>; text-align: center; padding: 20px 40px; /* margin: -20px; */">
|
||||
<a style="" href="<?php echo $site_url; ?>">
|
||||
<?php if ($template_settings['use_custom_logo'] && $template_settings['custom_logo']) : ?>
|
||||
|
||||
<img style="max-width: 280px; width: auto; max-height: 70px;" src="<?php echo wp_get_attachment_url($template_settings['custom_logo']); ?>" alt="<?php echo esc_attr($site_name); ?>">
|
||||
<img style="max-width: 280px; width: auto; max-height: 70px;" src="<?php echo wp_get_attachment_url($template_settings['custom_logo']); ?>" alt="<?php echo esc_attr($site_name); ?>">
|
||||
|
||||
<?php else : ?>
|
||||
<?php else : ?>
|
||||
|
||||
<img style="max-width: 280px; width: auto; max-height: 70px;" src="<?php echo esc_attr($logo_url); ?>" alt="<?php echo esc_attr($site_name); ?>">
|
||||
<img style="max-width: 280px; width: auto; max-height: 70px;" src="<?php echo esc_attr($logo_url); ?>" alt="<?php echo esc_attr($site_name); ?>">
|
||||
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="">
|
||||
<td style="">
|
||||
<span style="font-family: <?php echo $template_settings['content_font']; ?>; font-size: 14px; line-height: 1.6em; color: <?php echo $template_settings['content_color']; ?>; font-weight: normal; margin: 0 0 10px; padding: 0; text-align: <?php echo $template_settings['content_align']; ?>;"><?php echo $content; ?></span>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td style=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="line-height: 1.6em; clear: both !important; width: 100%; margin: 0; padding: 0;">
|
||||
<tr style="">
|
||||
<td style=""></td>
|
||||
<td style="line-height: 1.6em; clear: both !important; display: block !important; max-width: 600px !important; margin: 0 auto; padding: 0;">
|
||||
<div style="line-height: 1.6em; display: block; max-width: 600px; margin: 0 auto; padding: 0;">
|
||||
<table style="line-height: 1.6em; width: 100%; margin: 0; padding: 0;">
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="">
|
||||
<td style="">
|
||||
<span style="font-family: <?php echo $template_settings['content_font']; ?>; font-size: 14px; line-height: 1.6em; color: <?php echo $template_settings['content_color']; ?>; font-weight: normal; margin: 0 0 10px; padding: 0; text-align: <?php echo $template_settings['content_align']; ?>;"><?php echo $content; ?></span>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td style=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="line-height: 1.6em; clear: both !important; width: 100%; margin: 0; padding: 0;">
|
||||
<tr style="">
|
||||
<td style=""></td>
|
||||
<td style="line-height: 1.6em; clear: both !important; display: block !important; max-width: 600px !important; margin: 0 auto; padding: 0;">
|
||||
<div style="line-height: 1.6em; display: block; max-width: 600px; margin: 0 auto; padding: 0;">
|
||||
<table style="line-height: 1.6em; width: 100%; margin: 0; padding: 0;">
|
||||
|
||||
<?php if ($template_settings['footer_text']) : ?>
|
||||
<?php if ($template_settings['footer_text']) : ?>
|
||||
|
||||
<tr style="">
|
||||
<td style=" text-align: center;">
|
||||
<p style="font-family: <?php echo $template_settings['footer_font']; ?>; font-size: 12px; line-height: 1.6m; color: <?php echo $template_settings['footer_color']; ?>; font-weight: normal; margin: 0 0 10px; padding: 0; text-align: <?php echo $template_settings['footer_align']; ?>">
|
||||
<tr style="">
|
||||
<td style=" text-align: center;">
|
||||
<p style="font-family: <?php echo $template_settings['footer_font']; ?>; font-size: 12px; line-height: 1.6m; color: <?php echo $template_settings['footer_color']; ?>; font-weight: normal; margin: 0 0 10px; padding: 0; text-align: <?php echo $template_settings['footer_align']; ?>">
|
||||
<?php echo $template_settings['footer_text']; ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($template_settings['display_company_address']) : ?>
|
||||
<tr style="">
|
||||
<td style=" text-align: center;">
|
||||
<p style="font-family: <?php echo $template_settings['footer_font']; ?>; font-size: 12px; line-height: 1.6m; color: <?php echo $template_settings['footer_color']; ?>; font-weight: normal; margin: 0 0 10px; padding: 0; text-align: <?php echo $template_settings['footer_align']; ?>">
|
||||
<strong><?php echo wu_get_setting('company_name'); ?></strong><br>
|
||||
<?php if ($template_settings['display_company_address']) : ?>
|
||||
<tr style="">
|
||||
<td style=" text-align: center;">
|
||||
<p style="font-family: <?php echo $template_settings['footer_font']; ?>; font-size: 12px; line-height: 1.6m; color: <?php echo $template_settings['footer_color']; ?>; font-weight: normal; margin: 0 0 10px; padding: 0; text-align: <?php echo $template_settings['footer_align']; ?>">
|
||||
<strong><?php echo wu_get_setting('company_name'); ?></strong><br>
|
||||
<?php echo nl2br(wu_get_setting('company_address', array())); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<tr style="">
|
||||
<td style=" text-align: center;">
|
||||
<p style="font-family: <?php echo $template_settings['footer_font']; ?>; font-size: 12px; line-height: 1.6m; color: <?php echo $template_settings['footer_color']; ?>; font-weight: normal; margin: 0 0 10px; padding: 0; text-align: <?php echo $template_settings['footer_align']; ?>">
|
||||
<a href="<?php echo $site_url; ?>" style="line-height: 1.6em; color: #999999; margin: 0; padding: 0;">
|
||||
<?php echo esc_attr($site_name); ?>
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td style=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
<?php if (!$is_editor) : ?>
|
||||
</html>
|
||||
<?php endif; ?>
|
||||
<tr style="">
|
||||
<td style=" text-align: center;">
|
||||
<p style="font-family: <?php echo $template_settings['footer_font']; ?>; font-size: 12px; line-height: 1.6m; color: <?php echo $template_settings['footer_color']; ?>; font-weight: normal; margin: 0 0 10px; padding: 0; text-align: <?php echo $template_settings['footer_align']; ?>">
|
||||
<a href="<?php echo $site_url; ?>" style="line-height: 1.6em; color: #999999; margin: 0; padding: 0;">
|
||||
<?php echo esc_attr($site_name); ?>
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td style=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
<?php if ( ! $is_editor) : ?>
|
||||
</html>
|
||||
<?php endif; ?>
|
||||
|
@ -15,8 +15,8 @@
|
||||
* @version 1.4.0
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit; // Exit if accessed directly
|
||||
if ( ! defined('ABSPATH')) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -7,64 +7,64 @@
|
||||
?>
|
||||
<div class="<?php echo esc_attr($wrapper_class); ?>">
|
||||
|
||||
<?php if ($targets) : ?>
|
||||
<?php if ($targets) : ?>
|
||||
|
||||
<ul class="wu-widget-list">
|
||||
<ul class="wu-widget-list">
|
||||
|
||||
<?php foreach ($targets as $target_key => $target) : ?>
|
||||
<?php foreach ($targets as $target_key => $target) : ?>
|
||||
|
||||
<li class="wu-p-2 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-200 wu-border-solid">
|
||||
<li class="wu-p-2 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-200 wu-border-solid">
|
||||
|
||||
<a title="<?php echo $target['display_name']; ?>" href='<?php echo $target['link'] ?>' class='<?php echo $modal_class; ?> wu-table-card wu-text-gray-700 wu-p-2 wu-flex wu-flex-grow wu-rounded wu-items-center wu-border wu-border-solid wu-border-gray-300 wu-no-underline'>
|
||||
<a title="<?php echo $target['display_name']; ?>" href='<?php echo $target['link']; ?>' class='<?php echo $modal_class; ?> wu-table-card wu-text-gray-700 wu-p-2 wu-flex wu-flex-grow wu-rounded wu-items-center wu-border wu-border-solid wu-border-gray-300 wu-no-underline'>
|
||||
|
||||
<div class="wu-flex wu-relative wu-h-6 wu-w-6 wu-rounded-full wu-ring-2 wu-mx-4 wu-my-2 wu-box-border wu-ring-white wu-bg-gray-300 wu-items-center wu-justify-center">
|
||||
<div class="wu-flex wu-relative wu-h-6 wu-w-6 wu-rounded-full wu-ring-2 wu-mx-4 wu-my-2 wu-box-border wu-ring-white wu-bg-gray-300 wu-items-center wu-justify-center">
|
||||
|
||||
<?php echo $target['avatar']; ?>
|
||||
<?php echo $target['avatar']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='wu-pl-2'>
|
||||
<div class='wu-pl-2'>
|
||||
|
||||
<strong class='wu-block'><?php echo $target['display_name']; ?><small class='wu-font-normal'> (#<?php echo $target['id']; ?>)</small></strong>
|
||||
<strong class='wu-block'><?php echo $target['display_name']; ?><small class='wu-font-normal'> (#<?php echo $target['id']; ?>)</small></strong>
|
||||
|
||||
<small><?php echo $target['description']; ?></small>
|
||||
<small><?php echo $target['description']; ?></small>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
</li>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<?php else : ?>
|
||||
<?php else : ?>
|
||||
|
||||
<ul class="wu-widget-list">
|
||||
<ul class="wu-widget-list">
|
||||
|
||||
<li class="wu-p-2 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
|
||||
<li class="wu-p-2 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
|
||||
|
||||
<div class="wu-p-2 wu-mr-1 wu-flex wu-rounded wu-items-center wu-border wu-border-solid wu-border-gray-300 wu-bg-white wu-relative wu-overflow-hidden">
|
||||
<div class="wu-p-2 wu-mr-1 wu-flex wu-rounded wu-items-center wu-border wu-border-solid wu-border-gray-300 wu-bg-white wu-relative wu-overflow-hidden">
|
||||
|
||||
<span class='dashicons dashicons-wu-block wu-text-gray-600 wu-px-1 wu-pr-3'> </span>
|
||||
<span class='dashicons dashicons-wu-block wu-text-gray-600 wu-px-1 wu-pr-3'> </span>
|
||||
|
||||
<div class=''>
|
||||
<div class=''>
|
||||
|
||||
<span class='wu-block wu-py-3 wu-text-gray-600 wu-text-2xs wu-font-bold wu-uppercase'>
|
||||
<span class='wu-block wu-py-3 wu-text-gray-600 wu-text-2xs wu-font-bold wu-uppercase'>
|
||||
|
||||
<?php echo esc_html(__('No Targets', 'wp-ultimo')); ?>
|
||||
<?php echo esc_html(__('No Targets', 'wp-ultimo')); ?>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user