Skip to content

Instantly share code, notes, and snippets.

@Tlapi
Tlapi / abandoned_cart.html
Created August 8, 2017 07:31
Produkty do opuštěného košíku
*|IF:#ECM_BASKET=1|*
<table>
<tbody>
<tr>
<td>
<a href="*|ECM_BASKET[1].url|*"><img src="*|ECM_BASKET[1].img_url|*" alt="*|ECM_BASKET[1].name|*" /></a>
<br />
<strong>*|ECM_BASKET[1].name|*</strong>
<br />
<span>*|ECM_BASKET[1].price|* Kč</span>
.automationBuilder{
clear: left;
}
.automationBuilder h3{
font-size: 15px;
color: #818181;
text-align: center;
font-weight: normal;
margin: 25px;
}
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Topol.io plugin example</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
@Tlapi
Tlapi / product.json
Created May 22, 2017 11:25
Product.json
{
"tagName": "mj-product",
"attributes": {
"image": "*|PRODUCT_IMG_SRC_1|*",
"href": "*|PRODUCT_HREF_1|*",
"title": "*|PRODUCT_TITLE_1|*",
"price": "*|PRODUCT_PRICE_1|*",
"description": "*|PRODUCT_DESC_1|*",
"layout": "image:hide,title:show,description:show,price:show,button:show",
"dynamic": true,
@Tlapi
Tlapi / debug.mjml
Created October 11, 2016 08:08
MJML definice debug
{"tagName":"mj-global-style","attributes":{"h1:color":"#de1010","h1:font-family":"Ubuntu, Helvetica, Arial, sans-serif","h2:color":"#000","h2:font-family":"Ubuntu, Helvetica, Arial, sans-serif","h3:color":"#000","h3:font-family":"Ubuntu, Helvetica, Arial, sans-serif",":color":"#000",":font-family":"Ubuntu, Helvetica, Arial, sans-serif",":line-height":"1.5","a:color":"#25b3b0","button:background-color":"#823372","containerWidth":600,"fonts":"Ubuntu,Helvetica,Arial,sans-serif"},"children":[{"tagName":"mj-container","attributes":{"background-color":"#e83535","containerWidth":600},"children":[{"tagName":"mj-section","attributes":{"locked":"true","full-width":"full-width","containerWidth":600,"padding":"9px 0px 9px 0px"},"children":[{"tagName":"mj-column","attributes":{"width":"66.66666666666666%","vertical-align":"middle","containerWidth":600},"children":[{"tagName":"mj-text","attributes":{"align":"left","font-size":"11","locked":"true","editable":"true","padding-bottom":"0","padding-top":"0","containerWidth":400
@Tlapi
Tlapi / navbar.html
Last active September 14, 2016 14:36
E-mail navbar
<!--[if mso | IE]>
<table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td style="vertical-align:undefined;width:600px;">
<![endif]-->
<div>
<div class="mj-inline-links" style="width:100%;text-align:center;">
<!--[if gte mso 9]>
<table role="presentation" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<![endif]-->
@Tlapi
Tlapi / Meniny.txt
Last active September 12, 2016 11:55
Meniny
01.01,Nový rok
01.02,Alexandra
01.02,Karina
01.03,Daniela
01.04,Drahoslav
01.05,Andrea
01.06,Antónia
01.07,Bohuslava
01.08,Severín
01.09,Alexej
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'key: API_KEY'
));
<?php
$request = new HttpRequest();
$request->setUrl('http://api2.ecomailapp.cz/lists/70/subscribe-bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'content-type' => 'application/x-www-form-urlencoded',
'postman-token' => '9a24f187-4a0c-3acb-865a-78153b2e52dc',
'cache-control' => 'no-cache',
@Tlapi
Tlapi / Bug definice
Created June 20, 2016 10:30
Bug definice
{"tagName":"mj-container","attributes":{"background-color":"#e7e7e7","containerWidth":600},"children":[{"tagName":"mj-section","attributes":{"locked":"true","full-width":"full-width","containerWidth":600,"padding":"9px 0px 9px 0px","background-color":"#ffffff"},"children":[{"tagName":"mj-column","attributes":{"width":"66.66666666666666%","vertical-align":"middle","containerWidth":600},"children":[{"tagName":"mj-text","attributes":{"align":"left","font-size":"11","locked":"true","editable":"true","padding-bottom":"0","padding-top":"0","containerWidth":400,"color":"#5c5c5c"},"content":"<!--[CDATA[<span style=\"font-size: 11px; color: #808080;\">Napi&scaron;te kr&aacute;tk&eacute; shrnut&iacute; va&scaron;eho e-mailu, tzv. \"preheader\"<\/span>]]--> "}]},{"tagName":"mj-column","attributes":{"width":"33.33333333333333%","vertical-align":"middle","containerWidth":600},"children":[{"tagName":"mj-text","attributes":{"align":"right","font-size":"11","locked":"true","editable":"false","padding-bottom":"0","padding-top