PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 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 All 37 releases
wpdirectorykit / application / views / email / new_user_auto_created.php

new_user_auto_created.php in WP Directory Kit 1.5.9, at application/views/email/new_user_auto_created.php

120 lines 6.2 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, Basic message, notify.
5 * Receiver: all
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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
17 <html xmlns="http://www.w3.org/1999/xhtml">
18
19 <head>
20 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
21 <title><?php echo wp_kses_post($subject); ?></title>
22 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
23 </head>
24
25 <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="padding: 0;width: 100%; background-color: #f7f7f7; -webkit-text-size-adjust: none;">
26 <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%);">
27
28 <!-- header -->
29 <div class="header" style="background-color: #2671cb;padding: 48px 48px;color: #FFF;">
30 <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;"">
31 <?php echo wp_kses_post($subject); ?>
32 </h2>
33 </div>
34
35 <!-- Body -->
36 <div class=" body" style="padding: 48px 48px;color: #636363; font-size: 14px;font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
37 <h2 style="margin-top:0">
38 <?php echo esc_html__('Hi', 'wpdirectorykit'); ?> <?php echo esc_html(wdk_show_data('display_name', $user)); ?>,
39 </h2>
40 <p>
41 <?php
42 echo wp_kses(
43 sprintf(
44 /* translators: 1: Tag with link open, 2: Site name, 3: close link tag. */
45 esc_html__('Account auto created on portal %1$s%2$s%3$s, please use your access bellow for login', 'wpdirectorykit'),
46 '<a href="' . esc_url(get_home_url()) . '">',
47 esc_html(get_bloginfo('name')),
48 '</a>'
49 ),
50 array(
51 'a' => array(
52 'href' => true,
53 ),
54 )
55 );
56 ?>
57 </p>
58
59 <?php if(wdk_get_option('wdk_membership_new_user_email_credentials_enable')):?>
60 <p>
61 <strong><?php echo esc_html__('Login', 'wpdirectorykit'); ?>:</strong> <?php echo esc_html($login); ?><br>
62 </p>
63 <p>
64 <strong><?php echo esc_html__('Password', 'wpdirectorykit'); ?>:</strong> <?php echo esc_html($password); ?><br>
65 </p>
66 <?php endif;?>
67
68 <?php if(wdk_get_option('wdk_membership_new_user_email_autologin_hash_link_enable')):?>
69 <p>
70 <strong><?php echo esc_html__('Login', 'wpdirectorykit'); ?>: <a href="<?php echo esc_url(wdk_generate_auto_login_link($user->ID)); ?>"><?php echo esc_url(wdk_generate_auto_login_link($user->ID)); ?></a>
71 </p>
72 <?php endif;?>
73
74 <?php if(wdk_get_option('wdk_membership_new_user_email_credentials_enable') || (!wdk_get_option('wdk_membership_new_user_email_autologin_hash_link_enable') && !wdk_get_option('wdk_membership_new_user_email_credentials_enable'))):?>
75 <p>
76 <strong><?php echo esc_html__('Reset password', 'wpdirectorykit'); ?>: <a href="<?php echo esc_url(wp_lostpassword_url()); ?>"><?php echo esc_url(wp_lostpassword_url()); ?></a>
77 </p>
78 <?php endif;?>
79
80
81 <p>
82 <strong><?php echo esc_html__('Link', 'wpdirectorykit'); ?>:</strong>
83
84 <?php if(get_option('wdk_membership_login_page')):?>
85 <a href="<?php echo esc_url(get_permalink(get_option('wdk_membership_login_page')));?>"><?php echo esc_url(get_permalink(get_option('wdk_membership_login_page')));?></a>
86 <?php else:?>
87 <a href="<?php echo esc_url(wp_login_url());?>"><?php echo esc_url(wp_login_url());?></a>
88 <?php endif;?>
89 </p>
90
91 <?php if (isset($message) && is_string($message)) : ?>
92 <?php echo wp_kses_post($message); ?>
93 <?php elseif (is_string($data)) : ?>
94 <?php echo wp_kses_post($data); ?>
95 <?php else : ?>
96 <?php foreach ($data as $key => $value) : ?>
97 <?php if (!empty($value)) : ?>
98 <?php if (!is_string($value)) continue; ?>
99 <?php if ($key == 'subject') continue; ?>
100 <p>
101 <strong><?php
102 // Dynamic field values are registered in the translation catalog separately.
103 // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
104 echo esc_html__(ucfirst(str_replace('_', ' ', $key)), 'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br />
105 </p>
106 <?php endif; ?>
107 <?php endforeach; ?>
108 <?php endif; ?>
109 </div>
110
111 <!-- Footer -->
112 <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;">
113 <?php echo esc_html__('Thanks', 'wpdirectorykit'); ?>, </br>
114 <?php echo esc_html__('Best regards', 'wpdirectorykit'); ?>, </br>
115 <?php echo esc_html(get_bloginfo('name')); ?> </br>
116 </div>
117 </div>
118 </body>
119
120 </html>