htmlmail--user--password_reset.tpl.php in HTML Mail 7.2
File
htmlmail--user--password_reset.tpl.php
View source
<?php
$template_name = basename(__FILE__);
$current_path = realpath(NULL);
$current_len = strlen($current_path);
$template_path = realpath(dirname(__FILE__));
if (!strncmp($template_path, $current_path, $current_len)) {
$template_path = substr($template_path, $current_len + 1);
}
$template_url = url($template_path, array(
'absolute' => TRUE,
));
?>
<div class="htmlmail-user-password-reset-body htmlmail-user-body htmlmail-body">
<?php
echo $body;
?>
</div>
<?php
if ($debug) {
$module_template = "htmlmail--user.tpl.php";
$message_template = 'htmlmail--user--password_reset.tpl.php';
?>
<hr />
<div class="htmlmail-user-password-reset-debug htmlmail-user-debug htmlmail-debug">
<dl><dt><p>
To customize your user password reset messages:
</p></dt><dd><ol><li><p><?php
if (empty($theme)) {
?>
Visit <u>admin/config/system/htmlmail</u>
and select a theme to hold your custom email template files.
</p></li><li><p><?php
}
elseif (empty($theme_path)) {
?>
Visit <u>admin/build/themes</u>
to enable your selected <u><?php
echo drupal_ucfirst($theme);
?></u> theme.
</p></li><li><?php
}
if ("{$template_path}/{$template_name}" == "{$theme_path}/{$message_template}") {
?><p>
Edit your<br />
<u><code><?php
echo "{$template_path}/{$template_name}";
?></code></u>
<br />file.
</p></li><li><?php
}
else {
if (!file_exists("{$theme_path}/htmlmail.tpl.php")) {
?><p>
Copy<br />
<u><code><?php
echo "{$module_path}/htmlmail.tpl.php";
?></code></u>
<br />to<br />
<u><code><?php
echo "{$theme_path}/htmlmail.tpl.php";
?></code></u>
</p></li><li><?php
}
if (!file_exists("{$theme_path}/{$module_template}")) {
?><p>
For general user-module message customization, copy<br />
<u><code><?php
echo "{$module_path}/htmlmail.tpl.php";
?></code></u>
<br />to<br />
<code><?php
echo "{$theme_path}/{$module_template}";
?></code>
</p></li><li><?php
}
if (!file_exists("{$theme_path}/{$message_template}")) {
?><p>
Copy<br />
<u><code><?php
echo "{$template_path}/{$template_name}";
?></code></u>
<br />to<br />
<u><code><?php
echo "{$theme_path}/{$message_template}";
?></code></u>.
</p></li><li><?php
}
?><p>
Edit the copied file.
</p></li><li><?php
}
?><p>
Send a test message to make sure your customizations worked.
</p></li><li><p>
If you think your customizations would be of use to others,
please contribute your file as a feature request in the
<a href="https://www.drupal.org/node/add/project-issue/htmlmail">issue queue</a>.
</p></li></ol></dd><dt><p>
The user module sets the <u><code>$params</code></u> variable.
For this message,
</p></dt><dd><p><code><pre>
$params = <?php
echo check_plain(print_r($params, 1));
?>
</pre></code></p></dd></dl>
</div>
<?php
}