Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $newsletter; // Newsletter object
- global $post; // Current post managed by WordPress
- /*
- * Some variabled are prepared by Newsletter Plus and are available inside the theme,
- * for example the theme options used to build the email body as configured by blog
- * owner.
- *
- * $theme_options - is an associative array with theme options: every option starts
- * with "theme_" as required. See the theme-options.php file for details.
- * Inside that array there are the autmated email options as well, if needed.
- * A special value can be present in theme_options and is the "last_run" which indicates
- * when th automated email has been composed last time. Is should be used to find if
- * there are now posts or not.
- *
- * $is_test - if true it means we are composing an email for test purpose.
- */
- // This array will be passed to WordPress to extract the posts
- $filters = array();
- // Maximum number of post to retrieve
- $filters['showposts'] = (int) $theme_options['theme_max_posts'];
- if ($filters['showposts'] == 0)
- $filters['showposts'] = 10;
- // Include only posts from specified categories. Do not filter per category is no
- // one category has been selected.
- if (is_array($theme_options['theme_categories'])) {
- $filters['cat'] = implode(',', $theme_options['theme_categories']);
- }
- // Retrieve the posts asking them to WordPress
- $posts = get_posts(array('category' => 17,'posts_per_page' => 1));
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <!-- Define Charset -->
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <!-- Responsive Meta Tag -->
- <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
- <!-- Facebook sharing information tags -->
- <meta property="og:title" content="Newsletter |Almosementi|">
- <title>Newsletter | Almosementi |</title>
- <link href='http://fonts.googleapis.com/css?family=Merriweather:400,700|Raleway:400,700' rel='stylesheet' type='text/css'>
- <style type="text/css" data-premailer="ignore">
- /*-------------------------------------- Responsive 600px PC Attributes --------------------------------------*/
- *{ margin:0; padding:0;}
- body{
- width:100% !important;
- min-width: 100%;
- -webkit-text-size-adjust:100%;
- -ms-text-size-adjust:100%;
- margin:0;
- padding:0;
- background:#ebebeb;
- font-family: 'Raleway', sans-serif;
- }
- p{ font-family: 'Raleway', sans-serif;}
- h1, h2, h3, h4, h5, h6 { word-break: normal; font-family: 'Merriweather', serif; }
- h1 {font-size: 40px;}
- h2 {font-size: 36px;}
- h3 {font-size: 32px;}
- h4 {font-size: 28px;}
- h5 {font-size: 24px;}
- h6 {font-size: 20px; }
- h6.title { color:#1a161a; padding-bottom:20px; font-weight:600; font-family: 'Raleway', serif; font-size:32px; text-transform:uppercase; }
- h6.date { font-size:16px; color:#00b4ff }
- a{ color:#00b4ff; text-decoration:none; }
- a:hover{ color:#00b4ff; text-decoration: underline; }
- @media only screen and (max-width: 900px) {
- body {
- width:auto!important;
- }
- /* Responsive Wrappers */
- .BoxWrap {
- width:600px !important;
- }
- .BookLeft {
- width:300px !important;
- }
- .BookRight {
- width:280px !important;
- }
- .Respo1Column {
- width:560px !important;
- }
- .Respo2Column {
- width:270px !important;
- }
- .Respo3Column {
- width:560px !important;
- }
- /* Responsive Images */
- .RespoImage1Col {
- width:600px !important;
- height:auto !important;
- }
- .RespoImage1ColW Img {
- width:600px !important;
- height:auto !important;
- }
- .RespoImage2Col {
- width:270px !important;
- height:auto !important;
- }
- .RespoImage2ColW Img {
- width:270px !important;
- height:auto !important;
- }
- .RespoImage3Col {
- width:560px !important;
- height:auto !important;
- }
- .RespoImage3ColW Img {
- width:560px !important;
- height:auto !important;
- }
- /* Responsive Images with Padding */
- .RespoImage1ColPadding {
- width:560px !important;
- height:auto !important;
- }
- .RespoImage1ColPaddingW Img {
- width:560px !important;
- height:auto !important;
- }
- /* Responsive Framed Images */
- .RespoImage2ColFramed {
- width:264px !important;
- height:auto !important;
- }
- .RespoImage2ColFramedW Img {
- width:264px !important;
- height:auto !important;
- }
- .RespoImage3ColFramed {
- width:554px !important;
- height:auto !important;
- }
- .RespoImage3ColFramedW Img {
- width:554px !important;
- height:auto !important;
- }
- /* Show/Hide */
- .respo-margin {
- width:20px !important;
- }
- .respo-hide-pc {
- display:none !important;
- }
- .respo-show-pc {
- display:block !important;
- }
- /* General */
- .respo-text-left {
- text-align:left !important;
- }
- .respo-center-pc {
- text-align:center !important;
- }
- }
- /*-------------------------------------- Responsive 440px Tablet Attributes --------------------------------------*/
- @media only screen and (max-width: 640px) {
- body {
- width:auto!important;
- }
- /* Responsive Wrappers */
- .BoxWrap {
- width:440px !important;
- }
- .BookLeft {
- width:440px !important;
- }
- .BookRight {
- width:440px !important;
- }
- .Respo1Column {
- width:420px !important;
- }
- .Respo2Column {
- width:400px !important;
- }
- .Respo3Column {
- width:400px !important;
- }
- .RespoTabletWidth {
- width:400px !important;
- }
- .Respo2ColumnTablet {
- width:400px !important;
- }
- /* Responsive Images */
- .RespoImage1Col {
- width:440px !important;
- height:auto !important;
- }
- .RespoImage1ColW Img {
- width:440px !important;
- height:auto !important;
- }
- .RespoImage2Col {
- width:400px !important;
- height:auto !important;
- }
- .RespoImage2ColW Img {
- width:400px !important;
- height:auto !important;
- }
- .RespoImage3Col {
- width:400px !important;
- height:auto !important;
- }
- .RespoImage3ColW Img {
- width:400px !important;
- height:auto !important;
- }
- .RespoImage3ColTablet {
- width:400px !important;
- height:auto !important;
- }
- .RespoImage3ColWTablet Img {
- width:400px !important;
- height:auto !important;
- }
- /* Responsive Images with Padding */
- .RespoImage1ColPadding {
- width:400px !important;
- height:auto !important;
- }
- .RespoImage1ColPaddingW Img {
- width:400px !important;
- height:auto !important;
- }
- /* Responsive Framed Images */
- .RespoImage2ColFramed {
- width:394px !important;
- height:auto !important;
- }
- .RespoImage2ColFramedW Img {
- width:394px !important;
- height:auto !important;
- }
- .RespoImage3ColFramed {
- width:394px !important;
- height:auto !important;
- }
- .RespoImage3ColFramedW Img {
- width:394px !important;
- height:auto !important;
- }
- /* Responsive Tablet and Mobile Only */
- .RespoImage2ColTablet {
- width:400px !important;
- height:auto !important;
- }
- .RespoImage2ColTabletW Img {
- width:400px !important;
- height:auto !important;
- }
- /* Show/Hide */
- .respo-hide-tablet {
- display:none !important;
- }
- .respo-show-tablet {
- display:block !important;
- }
- /* Responsive Text Align & Size */
- .Text_H1 {
- font-size: 36px!important;
- line-height: 125%!important;
- }
- .Text_H2 {
- font-size: 36px!important;
- line-height: 140%!important;
- }
- .Text_H3 {
- font-size: 14px!important;
- line-height: 150%!important;
- font-weight: normal!important;
- }
- .Text_H4 {
- font-size: 15px!important;
- line-height: 150%!important;
- font-weight: normal!important;
- }
- .respo-center-tablet {
- text-align:center !important;
- }
- .respo-spacer {
- height:200px!important;
- }
- }
- /*-------------------------------------- Responsive 280px Mobile Attributes --------------------------------------*/
- @media only screen and (max-width: 480px) {
- body {
- width:auto!important;
- }
- /* Responsive Wrappers */
- .BoxWrap {
- width:280px !important;
- }
- .BookLeft {
- width:280px !important;
- }
- .BookRight {
- width:280px !important;
- }
- .Respo1Column {
- width:260px !important;
- }
- .Respo2Column {
- width:240px !important;
- }
- .Respo3Column {
- width:240px !important;
- }
- .RespoTabletWidth {
- width:240px !important;
- }
- .Respo2ColumnTablet {
- width:240px !important;
- }
- /* Responsive Images */
- .RespoImage1Col {
- width:280px !important;
- height:auto !important;
- }
- .RespoImage1ColW Img {
- width:280px !important;
- height:auto !important;
- }
- .RespoImage2Col {
- width:240px !important;
- height:auto !important;
- }
- .RespoImage2ColW Img {
- width:240px !important;
- height:auto !important;
- }
- .RespoImage3Col {
- width:240px !important;
- height:auto !important;
- }
- .RespoImage3ColW Img {
- width:240px !important;
- height:auto !important;
- }
- .RespoImage3ColTablet {
- width:240px !important;
- height:auto !important;
- }
- .RespoImage3ColWTablet Img {
- width:240px !important;
- height:auto !important;
- }
- /* Responsive Images with Padding */
- .RespoImage1ColPadding {
- width:240px !important;
- height:auto !important;
- }
- .RespoImage1ColPaddingW Img {
- width:240px !important;
- height:auto !important;
- }
- /* Responsive Framed Images */
- .RespoImage2ColFramed {
- width:234px !important;
- height:auto !important;
- }
- .RespoImage2ColFramedW Img {
- width:234px !important;
- height:auto !important;
- }
- .RespoImage3ColFramed {
- width:234px !important;
- height:auto !important;
- }
- .RespoImage3ColFramedW Img {
- width:234px !important;
- height:auto !important;
- }
- /* Responsive Tablet and Mobile Only */
- .RespoImage2ColTablet {
- width:240px !important;
- height:auto !important;
- }
- .RespoImage2ColTabletW Img {
- width:240px !important;
- height:auto !important;
- }
- /* Show/Hide */
- .respo-hide-mobile {
- display:none !important;
- }
- /* Responsive Text Align & Size */
- .Text_H1 {
- font-size: 24px!important;
- line-height: 125%!important;
- }
- .Text_H2 {
- font-size: 24px!important;
- line-height: 140%!important;
- }
- .Text_H3 {
- font-size: 18px!important;
- line-height: 150%!important;
- font-weight: normal!important;
- }
- .Text_H4 {
- font-size: 11px!important;
- line-height: 150%!important;
- font-weight: normal!important;
- }
- .respo-center-mobile {
- text-align:center !important;
- }
- .respo-spacer {
- height:100px!important;
- }
- }
- </style>
- </head>
- <body>
- <?php
- // Do not use &post, it leads to problems...
- foreach ($posts as $post) {
- // Setup the post (WordPress requirement)
- setup_postdata($post);
- ?>
- <!-- ********************************************************************************************************* -->
- <!-- Begin Module: 1 Column | NoPadding | NoBreak -->
- <table width="100%" class="BackgroundColor04" bgcolor="#ebebeb" cellpadding="0" cellspacing="0" border="0" style="table-layout: fixed; margin: 0 auto;">
- <tbody>
- <tr>
- <td align="center" style="-webkit-text-size-adjust: none;">
- <table class="BoxWrap" width="800" align="center" cellpadding="0" cellspacing="0">
- <tbody>
- <tr>
- <td width="800" height="10" bgcolor="#000" style="-webkit-text-size-adjust: none;"></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <!-- End Module: 1 Column | NoPadding | NoBreak -->
- </tbody>
- </table>
- <!-- ********************************************************************************************************* -->
- <!-- Begin Module: 2 Column | Padding | BreakOnPC -->
- <table width="100%" class="BackgroundColor04" bgcolor="#ebebeb" cellpadding="0" cellspacing="0" border="0" style="table-layout: fixed; margin: 0 auto;">
- <tbody>
- <tr>
- <td align="center" style="-webkit-text-size-adjust: none;">
- <table class="BoxWrap BackgroundColor01" bgcolor="#ebebeb" width="800" align="center" cellpadding="0" cellspacing="0">
- <tbody>
- <tr>
- <td width="100%" height="20" style="-webkit-text-size-adjust: none;"></td>
- </tr>
- <tr>
- <td width="560" style="-webkit-text-size-adjust: none;">
- <!-- // Begin: First Column \\ -->
- <table class="Respo1Column" align="left" cellpadding="0" cellspacing="0">
- <tbody>
- <tr>
- <td height="55" class="Respo1Column" align="left" valign="middle" style="-webkit-text-size-adjust: none;">
- <img src="<?php echo $theme_url; ?>/img/logo-news.png" width="154" height="55" alt="almosementi"></td>
- </tr>
- </tbody>
- </table>
- <!-- // End: First Column \\ -->
- <!-- ************************** -->
- </td>
- </tr>
- <tr>
- <td width="100%" height="12" style="-webkit-text-size-adjust: none;"></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <!-- End Module: 2 Column | Padding | BreakOnPC -->
- </tbody>
- </table>
- <!-- ********************************************************************************************************* -->
- <!-- Begin Module: 1 Column | NoPadding | NoBreak -->
- <table width="100%" class="BackgroundColor04" bgcolor="#ebebeb" cellpadding="0" cellspacing="0" border="0" style="table-layout: fixed; margin: 0 auto;">
- <tbody>
- <tr>
- <td align="center" style="-webkit-text-size-adjust: none;">
- <table class="BoxWrap BackgroundColor01" bgcolor="#ebebeb" width="800" align="center" cellpadding="0" cellspacing="0">
- <tbody>
- <tr>
- <td style="-webkit-text-size-adjust: none;">
- <table width="100%" cellpadding="0" cellspacing="0">
- <tbody>
- <tr>
- <td class="RespoImage1ColW" width="800" valign="top" style="-webkit-text-size-adjust: none;">
- <?php
- if ( has_post_thumbnail() ) {
- // the current post has a thumbnail
- the_post_thumbnail('newsletter');
- } else { ?>
- <?php } ?>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <!-- End Module: 1 Column | NoPadding | NoBreak -->
- </tbody>
- </table>
- <!-- ********************************************************************************************************* -->
- <!-- Begin Module: Paragraph - One Column Segment -->
- <table width="100%" class="BackgroundColor04" bgcolor="#ebebeb" cellpadding="0" cellspacing="0" border="0" style="table-layout: fixed; margin: 0 auto;">
- <tbody>
- <tr>
- <td align="center" style="-webkit-text-size-adjust: none;">
- <table class="BoxWrap fixed-bg-style BackgroundColor05" bgcolor="#ebebeb" width="800" align="center" cellpadding="0" cellspacing="0">
- <tbody>
- <tr>
- <td width="100%" colspan="3" height="30" style="-webkit-text-size-adjust: none;"> </td>
- </tr>
- <tr>
- <td valign="top" width="290" class="RespoTabletWidth" style="-webkit-text-size-adjust: none;">
- <table width="100%" cellpadding="0" cellspacing="0">
- <tbody>
- <tr>
- <td valign="top" style="color: #00b4ff!important;text-align: left;-webkit-text-size-adjust: none; font-family: 'Merriweather', sans-serif; font-size: 16px;font-weight: 400;font-style: normal;">
- <span><?php the_time('j F y');?></span>
- </td>
- </tr>
- <tr>
- <td height="10" style="-webkit-text-size-adjust: none;"></td>
- </tr>
- <!-- Button -->
- <tr>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- <td class="RespoTabletWidth" width="500" style="-webkit-text-size-adjust: none;">
- <table width="100%" cellpadding="0" cellspacing="0">
- <tbody>
- <tr>
- <td width="100%" class="Text_H2" style="color: #1a161a!important;text-align: left;-webkit-text-size-adjust: none; font-family: 'Raleway', sans-serif; font-size: 36px;letter-spacing: 1px; font-weight: 400;font-style: normal;text-transform: capitalize;">
- <span><?php the_title();?></span>
- </td>
- </tr>
- <tr>
- <td height="10" style="-webkit-text-size-adjust: none;"></td>
- </tr>
- <tr>
- <td class="Text_H3" style="color: #1a161a!important;text-align: left;-webkit-text-size-adjust: none;font-family: 'Raleway', sans-serif;font-size: 14px;letter-spacing: 0px;font-weight: 400;font-style: normal;text-decoration: none;text-transform: capitalize;line-height: 175%;" mc:edit="Text_H13">
- <span><?php the_content();?></span>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <tr>
- <td width="100%" colspan="3" height="120" style="-webkit-text-size-adjust: none;"> </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- <!-- End Module: Paragraph - One Column Segment -->
- <!-- ********************************************************************************************************* -->
- <!-- FOOTER -->
- <table width="100%" class="BackgroundColor04" bgcolor="#ebebeb" cellpadding="0" cellspacing="0" border="0" style="table-layout: fixed; margin: 0 auto;">
- <tbody>
- <tr>
- <td align="center" style="-webkit-text-size-adjust: none;">
- <table class="BoxWrap fixed-bg-style BackgroundColor05" bgcolor="#ebebeb" width="800" align="center" cellpadding="0" cellspacing="0">
- <tbody>
- <tr>
- <td width="100%" colspan="3" height="30" style="-webkit-text-size-adjust: none;"> </td>
- </tr>
- <tr>
- <td valign="top" width="290" class="RespoTabletWidth" style="-webkit-text-size-adjust: none;">
- <table width="90%" cellpadding="0" cellspacing="0" style=" border-top:1px solid #1a171b;">
- <tbody>
- <tr>
- <td valign="top" style="color: #1a171b;text-align: left;-webkit-text-size-adjust: none; font-family: 'Raleway', sans-serif; font-size: 12px;font-weight: 400;font-style: normal; line-height:15px !important; padding-top:10px;">
- <span> © 2015 almo S.p.A., All rights reserved. <br>
- <a href="mailto:almo@almosementi.eu"> almo@almosementi.eu</a> </span>
- </td>
- </tr>
- <tr>
- <td height="10" style="-webkit-text-size-adjust: none;"></td>
- </tr>
- <!-- Button -->
- <tr>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- <td valign="top" class="RespoTabletWidth" width="500" style="-webkit-text-size-adjust: none; ">
- <table width="100%" cellpadding="0" cellspacing="0" style=" border-top:1px solid #1a171b;">
- <tbody>
- <tr>
- <td width="100%" style="color: #00b4ff;text-align: left;-webkit-text-size-adjust: none; font-family: 'Raleway', sans-serif; font-size: 12px; font-weight: 400;font-style: normal;text-transform: capitalize; padding-top:10px; text-decoration:underline !important;">
- <span><a href="{unsubscription_url}">unsubscribe from this list</a></span>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <tr>
- <td width="100%" colspan="3" height="30" style="-webkit-text-size-adjust: none;"> </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- <!-- end FOOTER -->
- <?php } ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement