Skip to content

Commit 18ad667

Browse files
committed
Merge pull request #3839 in SW/shopware from sw-12303/5.2/newsletter-layout to 5.2
* commit 'f007e2cd1f6abe947b5b9175f79a8ae0e0d7ae1a': SW-12303 Fixed width of product boxes SW-12303 Fixed newsletter styling
2 parents 2a5d42a + f007e2c commit 18ad667

File tree

1 file changed

+25
-15
lines changed

1 file changed

+25
-15
lines changed

themes/Frontend/Bare/newsletter/container/article.tpl

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,61 @@
22
{include file="string:`$sCampaignContainer.description`"}
33
</h2>
44

5-
<table width="560" border="0" cellpadding="0" cellspacing="0" style="margin:0;padding:0;font-family:Arial,Helvetica;">
5+
<table width="560" border="0" cellpadding="0" cellspacing="0" style="width:560px;margin:0;padding:0;font-family:Arial,Helvetica,sans-serif;">
66
<tr>
77
<td width="100%">
8-
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin:0;padding:0;font-family:Arial,Helvetica;">
8+
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin:0;padding:0;font-family:Arial,Helvetica,sans-serif;">
99
{foreach from=$sCampaignContainer.data item=sArticle name=artikelListe}
1010
{if $sArticle@index%3==0}<tr>{/if}
11+
1112
<!-- beginning article -->
12-
<td height="320" width="180" align="center" valign="top" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #dfdfdf; padding:0;margin:0; width:180px;">
13+
14+
{$boxWidth = 180}
15+
16+
{if $sCampaignContainer.data|count == 1}
17+
{$boxWidth = 560}
18+
{elseif $sCampaignContainer.data|count == 2}
19+
{$boxWidth = 270}
20+
{/if}
21+
22+
<td height="350" width="{$boxWidth}" align="center" valign="top" style="border: 1px solid #dfdfdf; padding:0;margin:0; width:{$boxWidth}px;">
1323
<!-- article content -->
14-
<table width="100%" height="100%" align="center" border="0" cellpadding="0" cellspacing="0" style="padding:0;margin:0;background-color:#ffffff;font-family:Arial,Helvetica;">
24+
<table width="{$boxWidth}" align="center" border="0" cellpadding="0" cellspacing="0" style="width:{$boxWidth}px; padding:0; margin:0; background-color:#ffffff; font-family:Arial,Helvetica,sans-serif;">
1525
<tr>
16-
<td height="180" valign="center" style="text-align:center;background-color:#fff;">
26+
<td height="180" valign="center" style="height: 180px; text-align:center; background-color:#fff;">
1727
<div align="center" style="overflow:hidden;">
1828
<a target="_blank" href="{url controller=detail sArticle=$sArticle.articleID}" title="{$sArticle.articleName|escape}">
1929
{if $sArticle.image.source}
20-
<img style="max-height: 140px;max-width: 130px;" src="{$sArticle.image.thumbnails[0].source}" border="0" alt="{$sArticle.articleName|escape|truncate:155}">
30+
<img style="max-height: 160px; max-width: 160px;" src="{$sArticle.image.thumbnails[0].source}" border="0" alt="{$sArticle.articleName|escape|truncate:155}">
2131
{else}
22-
<img src="{link file='frontend/_public/src/img/no-picture.jpg' fullPath}" alt="{s name="ListingBoxNoPicture" namespace="frontend/listing/box_article"}{/s}" border="0"/>
32+
<img style="max-height: 160px; max-width: 160px;" src="{link file='frontend/_public/src/img/no-picture.jpg' fullPath}" alt="{s name="ListingBoxNoPicture" namespace="frontend/listing/box_article"}{/s}" border="0"/>
2333
{/if}
2434
</a>
2535
</div>
2636
</td>
2737
</tr>
2838
<tr>
29-
<td valign="top" style="color:#000; font-size:13px; background-color:#fff; height:5px; padding: 8px 10px 5px 10px; font-weight:bold;">
39+
<td height="35" valign="top" style="color:#000; font-size:13px; background-color:#fff; height: 35px; padding: 10px 10px 5px 10px; font-weight:bold;">
3040
<a href="{url controller=detail sArticle=$sArticle.articleID}" target="_blank" title="{$sArticle.articleName|escape}" style="color:#000000;text-decoration:underline;font-size:13px;">{$sArticle.articleName}</a>
3141
</td>
3242
</tr>
3343
<tr>
34-
<td height="50" valign="top" style="font-size:13px; color:#8c8c8c; padding: 0 10px 8px 10px;">
44+
<td height="50" valign="top" style="font-size:13px; color:#8c8c8c; height: 50px; padding: 0 10px 10px 10px;">
3545
{$sArticle.description_long|strip_tags|truncate:80:"..."}
3646
</td>
3747
</tr>
3848
<tr>
39-
<td height="40" style="text-align:left; padding:10px;">
40-
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family:Arial,Helvetica;">
49+
<td height="40" style="text-align:left; height: 40px; padding:10px;">
50+
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family:Arial,Helvetica,sans-serif;">
4151
<tr>
4252
<td width="160">
4353
{if $sArticle.purchaseunit}
44-
<div style="font-size:13px;color:#888;margin-bottom:8px;">
45-
<p style="font-size:13px;margin:0;">
54+
<div style="font-size:12px;color:#888;margin-bottom:10px;">
55+
<p style="font-size:12px;margin:0;">
4656
<strong>{s name="ListingBoxArticleContent" namespace="frontend/listing/box_article"}{/s}:</strong> {$sArticle.purchaseunit} {$sArticle.sUnit.description}
4757
</p>
4858
{if $sArticle.purchaseunit != $sArticle.referenceunit}
49-
<p style="font-size:13px;margin:0">
59+
<p style="font-size:12px;margin:0">
5060
{if $sArticle.referenceunit}
5161
<strong class="baseprice">{s name="ListingBoxBaseprice" namespace="frontend/listing/box_article"}{/s}:</strong>
5262
{$sArticle.referenceunit} {$sArticle.sUnit.description} = {$sArticle.referenceprice|currency} {s name="Star" namespace="frontend/listing/box_article"}{/s}
@@ -56,7 +66,7 @@
5666
</div>
5767
{/if}
5868
{if $sArticle.has_pseudoprice}
59-
<span style="color:#999; font-size:13px; line-height:13px;"><s>{$sArticle.pseudoprice|currency} {s name="Star" namespace="frontend/listing/box_article"}{/s}</s></span>
69+
<span style="color:#999; font-size:12px; line-height:12px;"><s>{$sArticle.pseudoprice|currency} {s name="Star" namespace="frontend/listing/box_article"}{/s}</s></span>
6070
<br/>
6171
<strong style="color:#990000;font-size:14px;">
6272
{if $sArticle.priceStartingFrom}{s name='NewsletterBoxArticleStartsAt'}ab{/s} {/if}

0 commit comments

Comments
 (0)