Newsletter Artisan
Newsletter Artisan allows you to create dynamic newsletters using your posts form WordPress CMS as content. One of the features is that you are able to create a showcase of themes for your newsletters. These can be used in everyday work by content editors to updated your subscribed website users abo
Newsletter Artisan allows you to create dynamic newsletters using your posts form WordPress CMS as content. One of the features is that you are able to create a showcase of themes for your newsletters. These can be used in everyday work by content editors to updated your subscribed website users about new posts on the page. Newsletter developers can use Newsletter Artisan to create new themes inside of WordPress CMS. To get the data all you have to do is to use Mustache syntax and reference objects documented.
Arbitrary section
Below is an example theme. You can use it to get your project up and running. You may find the same code in ‘template_snippets’ folder of the plugin.
<html><head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> body { margin: 0; padding: 0; min-width: 100%; } table { border-collapse: collapse; border-spacing: 0; } td { padding: 0; vertical-align: top; } .spacer, .border { font-size: 1px; line-height: 1px; } .spacer { width: 100%; } img { border: 0; -ms-interpolation-mode: bicubic; } .image { font-size: 0; Margin-bottom: 25px; } .image img { display: block; } .logo img { display: block; } strong { font-weight: bold; } h1, h2, h3, p, ol, ul, li { Margin-top: 0; } ol, ul, li { padding-left: 0; } .btn a { mso-hide: all; } blockquote { Margin-top: 0; Margin-right: 0; Margin-bottom: 0; padding-right: 0; } .column-top { font-size: 60px; line-height: 60px; } .column-bottom { font-size: 34px; line-height: 34px; } .column { text-align: left; } .contents { width: 100%; } .padded { padding-left: 60px; padding-right: 60px; } .wrapper { display: table; table-layout: fixed; width: 100%; min-width: 620px; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } table.wrapper { table-layout: fixed; } .one-col, .two-col, .three-col { Margin-left: auto; Margin-right: auto; width: 600px; } .two-col .image { Margin-bottom: 23px; } .two-col .column-bottom { font-size: 37px; line-height: 37px; } .two-col .column { width: 300px; } .two-col .first .padded { padding-left: 60px; padding-right: 30px; } .two-col .second .padded { padding-left: 30px; padding-right: 60px; } .three-col .image { Margin-bottom: 21px; } .three-col .column-bottom { font-size: 39px; line-height: 39px; } .three-col .column { width: 200px; } .three-col .first .padded { padding-left: 60px; padding-right: 0; } .three-col .second .padded { padding-left: 30px; padding-right: 30px; } .three-col .third .padded { padding-left: 0; padding-right: 60px; } @media only screen { .wrapper { text-rendering: optimizeLegibility; } } @media only screen and (max-width: 620px) { [class*=wrapper] { min-width: 320px !important; width: 100% !important; } [class*=wrapper] .one-col, [class*=wrapper] .two-col, [class*=wrapper] .three-col { width: 320px !important; } [class*=wrapper] .column, [class*=wrapper] .gutter { display: block; float: left; width: 320px !important; } [class*=wrapper] .padded { padding-left: 30px !important; padding-right: 30px !important; } [class*=wrapper] .block { display: block !important; } [class*=wrapper] .hide { display: none !important; mso-hide: all; /* hide elements in Outlook 2007-2013 */ } [class*=wrapper] .image { margin-bottom: 25px !important; } [class*=wrapper] .image img { height: auto !important; width: 100% !important; } [class*=social_col_first] { width: 0px !important; } [class*=social_col_second] { width: 300px !important; } [class*=spacer_hide] { height: 0px !important; } } .wrapper h1 { font-weight: 400; } .wrapper h2 { font-weight: 400; } .wrapper h3 { font-weight: bold; } .wrapper p, .wrapper ol, .wrapper ul { font-weight: 400; } .wrapper blockquote p, .wrapper blockquote ol, .wrapper blockquote ul { font-style: italic; font-weight: 500; } .wrapper .column table:nth-last-child(2) td h1:last-child, .wrapper .column table:nth-last-child(2) td h2:last-child, .wrapper .column table:nth-last-child(2) td h3:last-child, .wrapper .column table:nth-last-child(2) td p:last-child, .wrapper .column table:nth-last-child(2) td ol:last-child, .wrapper .column table:nth-last-child(2) td ul:last-child { Margin-bottom: 25px; } .wrapper a { transition: all .2s; } .wrapper .preheader, .wrapper .header, .wrapper .footer, .wrapper .feature { Margin-left: auto; Margin-right: auto; } .wrapper .one-col, .wrapper .two-col, .wrapper .three-col { background-color: #ffffff; border-radius: 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); } .wrapper center.divider { Margin-bottom: 25px; } .wrapper center.divider img { display: block; Margin-left: auto; Margin-right: auto; } .wrapper .preheader { width: 600px; } .wrapper .preheader table { width: 540px; } .wrapper .preheader .inner { padding-top: 11px; padding-bottom: 12px; } .wrapper .preheader .title { text-align: left; } .wrapper .preheader .webversion { text-align: right; width: 240px; } .wrapper .preheader .webversion a { letter-spacing: 0.03em; } .wrapper .preheader .title a, .wrapper .preheader .webversion a { font-weight: bold; text-decoration: none; } .wrapper h1 a, .wrapper h2 a, .wrapper h3 a { text-decoration: none; } .wrapper h1 { font-size: 36px; Margin-bottom: 21px; text-align: center; } .wrapper h2 { font-size: 24px; Margin-bottom: 20px; } .wrapper h3 { font-size: 15px; Margin-bottom: 16px; } .wrapper p, .wrapper ol, .wrapper ul { font-size: 15px; } .wrapper p a, .wrapper ol a, .wrapper ul a { text-decoration: none; } .wrapper p a:hover, .wrapper ol a:hover, .wrapper ul a:hover { border-bottom: none !important; } .wrapper ol, .wrapper ul { Margin-left: 39px; } .wrapper blockquote { Margin-left: 1em; padding-left: 1em; } .wrapper .btn { Margin-bottom: 25px; } .wrapper .btn a { background-image: url(https://i1.createsend1.com/static/eb/customise/02-blush/images/btn-one-col.png); background-position: center center; background-size: cover; display: inline-block; font-size: 15px; font-weight: 400; line-height: 25px; padding: 8px 24px 9px 24px; text-align: center; text-decoration: none; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); transition: all .2s; width: 432px; } .wrapper .btn a:hover { opacity: .9; } .preheader .title, .preheader .webversion, .footer .padded { font-size: 11px; font-weight: normal; letter-spacing: 0.01em; line-height: 17px; } .two-col .column table:nth-last-child(2) td h1:last-child, .two-col .column table:nth-last-child(2) td h2:last-child, .two-col .column table:nth-last-child(2) td h3:last-child, .two-col .column table:nth-last-child(2) td p:last-child, .two-col .column table:nth-last-child(2) td ol:last-child, .two-col .column table:nth-last-child(2) td ul:last-child { Margin-bottom: 23px; } .two-col h1 { font-size: 32px; Margin-bottom: 18px; } .two-col h2 { font-size: 20px; Margin-bottom: 16px; } .two-col h3 { font-size: 14px; Margin-bottom: 14px; } .two-col p, .two-col ol, .two-col ul { font-size: 14px; } .two-col ol, .two-col ul { Margin-left: 32px; } .two-col center.divider { Margin-bottom: 23px; } .two-col .btn { Margin-bottom: 23px; } .two-col .btn a { background-image: url(https://i2.createsend1.com/static/eb/customise/02-blush/images/btn-two-col.png); font-size: 14px; line-height: 23px; padding: 7px 24px 8px 24px; width: 162px; } .three-col .column table:nth-last-child(2) td h1:last-child, .three-col .column table:nth-last-child(2) td h2:last-child, .three-col .column table:nth-last-child(2) td h3:last-child, .three-col .column table:nth-last-child(2) td p:last-child, .three-col .column table:nth-last-child(2) td ol:last-child, .three-col .column table:nth-last-child(2) td ul:last-child { Margin-bottom: 21px; } .three-col h1 { background-image: none; font-size: 26px; Margin-bottom: 16px; } .three-col h2 { font-size: 18px; Margin-bottom: 12px; } .three-col h3 { font-size: 13px; Margin-bottom: 10px; } .three-col p, .three-col ol, .three-col ul { font-size: 13px; } .three-col ol, .three-col ul { Margin-left: 24px; } .three-col center.divider { Margin-bottom: 21px; } .three-col .btn { Margin-bottom: 21px; } .three-col .btn a { background-image: url(https://i4.createsend1.com/static/eb/customise/02-blush/images/btn-three-col.png); font-size: 13px; line-height: 21px; padding: 5px 24px 6px 24px; width: 92px; } .feature-top, .feature-bottom { background-color: #ffffff; font-size: 0; line-height: 0; width: 600px; } .feature-top img, .feature-bottom img { display: inline-block; } .feature-top { padding-bottom: 44px; } .feature-bottom { padding-top: 31px; } .feature { background-color: #ffffff; width: 600px; } .feature .column-top { font-size: 44px; line-height: 44px; } .feature .column-bottom { font-size: 10px; line-height: 10px; } .feature .one-col { text-align: center; width: 510px; } .wrapper .feature .one-col { box-shadow: none; } .feature .padded { padding-left: 44px; padding-right: 44px; } .feature h2 { text-align: center; } .feature h3 { text-align: center; } .feature p { text-align: center; } .feature ol, .feature ul { text-align: left; } .feature blockquote { border-left: 0; Margin-left: 0; padding-left: 0; } .wrapper .feature .btn a { background-image: url(https://i3.createsend1.com/static/eb/customise/02-blush/images/btn-feature.png); width: 372px; } .frame-bottom td { line-height: 9px; } .frame-bottom .left, .frame-bottom .right { width: 245px; } .heart { vertical-align: middle; width: 18px; } .heart img { display: block; } .header { width: 600px; } .logo { font-size: 42px; line-height: 50px; padding-top: 40px; padding-bottom: 37px; text-align: center; } .logo img { Margin-left: auto; Margin-right: auto; } .wrapper .logo a { text-decoration: none; } .footer { width: 600px; } .footer .divider { line-height: 11px; width: 100%; } .footer #address a, .footer #permission a { text-decoration: none; font-weight: normal; } .social td { padding: 0 13px 40px 13px; vertical-align: middle; } .social img { vertical-align: middle; } .social span { mso-text-raise: 6px; } .forward, .facebook, .twitter { display: inline-block; font-size: 12px; font-weight: 400; line-height: 12px; text-decoration: none; text-transform: