Skip to content

Instantly share code, notes, and snippets.

INSERT INTO `core_email_template` (`template_id`, `template_code`, `template_text`, `template_styles`, `template_type`, `template_subject`, `template_sender_name`, `template_sender_email`, `added_at`, `modified_at`, `orig_template_code`, `orig_template_variables`)
VALUES
(32, 'Product stock alert - MUR', '<!--@subject Email - Header @-->\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n <meta name=\"viewport\" content=\"initial-scale=1.0, width=device-width\" />\r\n</head>\r\n<body>\r\n{{var non_inline_styles}}\r\n<!-- Begin wrapper table -->\r\n<table width=\"50%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" id=\"background-table\">\r\n <tr>\r\n <td valign=\"top\" class=\"container-td\" align=\"center\">\r\n <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\
@ghorvat
ghorvat / gist:cac7c515f782c38f4191
Created February 8, 2016 14:28
Stock alert _FML
INSERT INTO `core_email_template` (`template_id`, `template_code`, `template_text`, `template_styles`, `template_type`, `template_subject`, `template_sender_name`, `template_sender_email`, `added_at`, `modified_at`, `orig_template_code`, `orig_template_variables`)
VALUES
(31, 'Product stock alert - FML', '<!--@subject Email - Header @-->\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n <meta name=\"viewport\" content=\"initial-scale=1.0, width=device-width\" />\r\n</head>\r\n<body>\r\n{{var non_inline_styles}}\r\n<!-- Begin wrapper table -->\r\n<table width=\"50%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" id=\"background-table\">\r\n <tr>\r\n <td valign=\"top\" class=\"container-td\" align=\"center\">\r\n <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\
foreach ($items as $delta => $item) {
// suppress all children so this field is not rendered
if ($field['type'] == 'list_boolean') {
$classes_array[] = drupal_html_class($field['settings']['allowed_values'][$item['value']]);
}
elseif ($field['type'] == 'taxonomy_term_reference') {
$tids[] = $item['tid']; //store the terms ids and just do taxonomy_term_load_multiple once at the end
}
else {
$classes_array[] = drupal_html_class($item['value']);
<!-- Start: Wrapper -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center"
style="border-spacing:0;border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;">
<tr>
<td width="100%" valign="top" bgcolor="#f6f7fb"
style="border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;">
<!-- Start: Header -->
<table border="0" cellpadding="0" cellspacing="0" align="center" class="deviceWidth"
<?php
/**
* This class wraps the Template email sending functionality
* If SMTP Pro is enabled it will send emails using the given
* configuration.
*
* @author Ashley Schroder (aschroder.com)
* @copyright Copyright (c) 2014 Ashley Schroder
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
@ghorvat
ghorvat / gist:b83535b1087200486c73
Created January 6, 2016 08:11
Marcolini Email template
{{template config_path="design/email/header"}}
<!-- Start: Wrapper -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center"
style="border-spacing:0;border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;">
<tr>
<td width="100%" valign="top" bgcolor="#f6f7fb"
style="border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;">
<!-- Start: Preheader -->
<div style="font-family:Arial, sans-serif;font-size:1px;color:#f6f7fb;line-height:1px;mso-line-height-rule:exactly;display:none;max-width:0px;max-height:0px;opacity:0;overflow:hidden;mso-hide:all;">
http://www.makeuprevolutionstore.com/skin/frontend/flatshop/default/css/gh.css
http://www.makeuprevolutionstore.com/ skin/frontend/flatshop/default/css/styles.css
http://www.freedommakeuplondon.com/skin/frontend/flatshop/freedom/css/freedom.css
gh.css
styles.css
freedom.css
http://www.makeuprevolutionstore.com/media/css/96c6a58c0f2ee2959bb697946597258a.css
http://www.makeuprevolutionstore.com/media/css/b8d66accc96418a3824283bb64e04bb0.css
<div id="playerbMmhbTZbjQff"></div>
<script type="text/javascript">
jwplayer("playerbMmhbTZbjQff").setup({
"playlist": "https://content.jwplatform.com/feeds/j14SMplV.rss",
width: "100%",
aspectratio: "16:9"
});
var firstInstance = jwplayer("playerbMmhbTZbjQff");
</script>
jQuery(window).bind("resize load", function () {
jQuery(".middleCaptionSquareImageTile .image-item").each(function (i) {
var desc = jQuery(this).find(".image-description");
var ovaj = jQuery(this);
var descHeight = jQuery(desc).outerHeight();
var parentHeight = jQuery(desc).parent().outerHeight();
function equalizeHeights(selector) {
var heights = new Array();
// Loop to get all element heights
jQuery(selector).each(function () {
// Need to let sizes be whatever they want so no overflow on resize
jQuery(this).css('min-height', '0');
jQuery(this).css('max-height', 'none');
jQuery(this).css('height', 'auto');