PluginProbe
WP Directory Kit / 1.3.1
WP Directory Kit v1.3.1
1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 1.4.0 1.4.1 All 35 releases
wpdirectorykit / application / views / email / save_search_new_listings.php

save_search_new_listings.php in WP Directory Kit 1.3.1, at application/views/email/save_search_new_listings.php

88 lines 5.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The template for Email, notify about news listings.
5 * Receiver: save search owner
6 * This is the template that email layout
7 *
8 */
9
10 if (!defined('ABSPATH')) {
11 exit; // Exit if accessed directly.
12 }
13
14 ?>
15
16
17 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
18 <html xmlns="http://www.w3.org/1999/xhtml">
19
20 <head>
21 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
22 <title><?php echo wp_kses_post($subject); ?></title>
23 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
24 </head>
25
26 <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="padding: 0;width: 100%; background-color: #f7f7f7; -webkit-text-size-adjust: none;">
27 <div id="wrapper" dir="ltr" style="max-width: 600px; width:calc(100% - 30px); background-color: #fff; margin: 0 auto;border: 1px solid #dedede;box-shadow: 0 1px 4px rgb(0 0 0 / 10%);">
28
29 <!-- header -->
30 <div class="header" style="background-color: #2671cb;padding: 48px 48px;color: #FFF;">
31 <h2 style="margin:0;font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #ab79a1; color: #ffffff; background-color: inherit;"">
32 <?php echo wp_kses_post($subject); ?>
33 </h2>
34 </div>
35
36 <!-- Body -->
37 <div class=" body" style="padding: 48px 48px;color: #636363; font-size: 14px;font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
38 <h2 style="margin-top:0">
39 <?php echo esc_html__('Updated listings by your search', 'wpdirectorykit') . ': <a href="' . esc_url($search_link_results) . '">' . esc_html__('Show Results', 'wpdirectorykit') . '</a>'; ?>
40 </h2>
41 <table style="border: 1px solid;border-collapse: collapse;width:100%;">
42 <thead>
43 <tr>
44 <th style="padding:10px 10px; border: 1px solid;border-collapse: collapse;"><?php echo __('Title', 'wpdirectorykit'); ?></th>
45 <th style="padding:10px 10px; border: 1px solid;border-collapse: collapse;text-align: center;"><?php echo __('Image', 'wpdirectorykit'); ?></th>
46 <th style="padding:10px 10px; border: 1px solid;border-collapse: collapse;"><?php echo __('Date updated', 'wpdirectorykit'); ?></th>
47 </tr>
48 </thead>
49 <tbody>
50 <?php if (count($results) == 0) : ?>
51 <tr class="no-items">
52 <td style="padding:10px 10px; border: 1px solid;border-collapse: collapse;" colspan="3"><?php echo __('No Listings found.', 'wpdirectorykit'); ?></td>
53 </tr><?php endif; ?>
54 <?php foreach ($results as $listing) : ?>
55 <tr>
56 <td style="padding:10px 10px; border: 1px solid;border-collapse: collapse;">
57 <a href="<?php echo esc_url(get_permalink($listing)); ?>"><?php echo wmvc_show_data('post_title', $listing, '-'); ?></a>
58 </td>
59 <td style="padding:10px 10px; border: 1px solid;border-collapse: collapse;text-align: center;">
60 <a target="_blank" href="<?php echo esc_url(get_permalink($listing)); ?>">
61 <img src="<?php echo esc_url(wdk_image_src($listing)); ?>" alt="thumb" style="height:70px;width:110px;object-fit:cover;text-align: center;" />
62 </a>
63 </td>
64 <td style="padding:10px 10px; border: 1px solid;border-collapse: collapse;text-align: center;">
65 <?php echo wdk_get_date($listing->post_date, false); ?>
66 </td>
67 </tr>
68 <?php endforeach; ?>
69 </tbody>
70 </table>
71 <br>
72 <?php if (isset($search_link_edit)) : ?>
73 <p>
74 <a href="<?php echo esc_url($search_link_edit); ?>"><?php echo esc_html__('Click for edit/disable alert', 'wpdirectorykit'); ?></a>
75 </p>
76 <?php endif; ?>
77 </div>
78
79 <!-- Footer -->
80 <div class="footer" style="padding: 25px 48px;color: #4e5254; font-weight: 500;font-size: 14px;line-height: 1.6;font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;border-top: 1px solid #eee;">
81 <?php echo esc_html__('Thanks', 'wpdirectorykit'); ?>, </br>
82 <?php echo esc_html__('Best regards', 'wpdirectorykit'); ?>, </br>
83 <?php echo esc_html(get_bloginfo('name')); ?> </br>
84 </div>
85 </div>
86 </body>
87
88 </html>