Skip to content

Instantly share code, notes, and snippets.

View 10foldsolutions's full-sized avatar

10foldsolutions

View GitHub Profile
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<!--NAVIGATION CODE
LOGO: 209
TOP BAR: 275
EMAIL CONTENT: 259
SIGNATURE: 296
FOOTER: 409
.toast-title {
font-weight: bold;
}
.toast-message {
-ms-word-wrap: break-word;
word-wrap: break-word;
padding-top: 28px;
}
.toast-message a,
.toast-message label {
<script>!function(w,d,i,s){function l(){if(!d.getElementById(i)){var f=d.getElementsByTagName(s)[0],e=d.createElement(s);e.type="text/javascript",e.async=!0,e.src="https://canny.io/sdk.js",f.parentNode.insertBefore(e,f)}}if("function"!=typeof w.Canny){var c=function(){c.q.push(arguments)};c.q=[],w.Canny=c,"complete"===d.readyState?l():w.attachEvent?w.attachEvent("onload",l):w.addEventListener("load",l,!1)}}(window,document,"canny-jssdk","script");</script>
<script type="text/javascript">
Canny('identify', {
appID: '5ada60c895e6667ef5f73ac6',
user: {
// avatarURL: viewer.avatarURL, // optional
//created: new Date(viewer.created).toISOString(), // optional
email: '<?php echo $_SESSION['email']; ?>',
id: <?php echo $accountID; ?>,
companies: viewer.companies.map((company) => ({
<?php
// using SendGrid's PHP Library
// https://github.com/sendgrid/sendgrid-php
//require 'vendor/autoload.php'; // If you're using Composer (recommended)
// Comment out the above line if not using Composer
require("includes/sendgrid/sendgrid-php.php");
// If not using Composer, uncomment the above line
$email = new \SendGrid\Mail\Mail();
$email->setFrom("brett@10foldsolutions.com", "Example User");
{% if context == 'cart' or context == 'checkout' %}
<script type="text/javascript">
/* include cart total amount */
_cartstack.push(['setCartTotal', '{{ total_order }}']);
/* cart items loop, to be included in the email template */
{% for item in items %}