PluginProbe
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI / 8.0.3
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI v8.0.3
8.0.3 8.0.1 8.0.2 8.0.0 7.9.9.7 7.9.9.6 7.9.9.5 7.9.9.4 7.9.9.3 7.9.9.2 7.9.9.1 7.9.9 7.9.8 7.9.7 7.9.6 7.9.5 7.9.4 7.9.3 7.9.2 7.9.1 7.9.0 7.8.9 7.8.8 7.8.7 7.8.6 All 45 releases
← All changes | templates/emails/header-default.php +83 -0 7.9.28.0.3 View file →
@@ -1,0 +1,83 @@
1 +<?php
2 +/**
3 + * Default Email Template: Header
4 + *
5 + * This template can be overridden by copying it to yourtheme/gamipress/emails/header-default.php
6 + */
7 +
8 +if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9 +
10 +// For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline.
11 +// !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
12 +
13 +$body = "
14 + background-color: #f6f6f6;
15 + font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
16 +";
17 +
18 +$wrapper = "
19 + width:100%;
20 + -webkit-text-size-adjust:none !important;
21 + margin:0;
22 + padding: 70px 0 0 0;
23 +";
24 +
25 +$template_container = "
26 + box-shadow:0 0 0 1px #f3f3f3 !important;
27 + background-color: #ffffff;
28 + border: 1px solid #e9e9e9;
29 + padding: 20px;
30 +";
31 +
32 +$template_header = "
33 + color: #00000;
34 + border-top-left-radius:3px !important;
35 + border-top-right-radius:3px !important;
36 + border-bottom: 0;
37 + font-weight:bold;
38 + line-height:100%;
39 + text-align: center;
40 + vertical-align:middle;
41 +";
42 +
43 +$body_content = "
44 + font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
45 +";
46 +
47 +$body_content_inner = "
48 + color: #000000;
49 + font-size:14px;
50 + font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
51 + text-align:left;
52 +";
53 +
54 +$header_img = gamipress_get_option( 'email_logo', '' );
55 +?>
56 +<!DOCTYPE html>
57 +<html>
58 + <head>
59 + <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
60 + <title><?php echo get_bloginfo( 'name' ); ?></title>
61 + </head>
62 + <body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="<?php echo $body; ?>">
63 + <div style="<?php echo $wrapper; ?>" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>">
64 + <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
65 + <tr>
66 + <td align="center" valign="top">
67 + <?php if( ! empty( $header_img ) ) : ?>
68 + <div id="template_header_image">
69 + <?php echo '<p style="margin-top:0;"><img src="' . esc_url( $header_img ) . '" alt="' . get_bloginfo( 'name' ) . '" /></p>'; ?>
70 + </div>
71 + <?php endif; ?>
72 + <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_container" style="<?php echo $template_container; ?>">
73 + <tr>
74 + <td align="center" valign="top">
75 + <!-- Body -->
76 + <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_body">
77 + <tr>
78 + <td valign="top" style="<?php echo $body_content; ?>">
79 + <!-- Content -->
80 + <table border="0" cellpadding="20" cellspacing="0" width="100%">
81 + <tr>
82 + <td valign="top">
83 + <div style="<?php echo $body_content_inner; ?>">