[-] FO: improvement on h4/h5 edits (id become class)

This commit is contained in:
sLorenzini
2012-12-06 10:06:56 +01:00
parent 8ddafa2568
commit 2191eec919
59 changed files with 97 additions and 80 deletions
@@ -25,7 +25,7 @@
<!-- MODULE Home Block best sellers -->
<div id="best-sellers_block_center" class="block products_block">
<p id="title">{l s='Top sellers' mod='blockbestsellers'}</p>
<p class="title_block">{l s='Top sellers' mod='blockbestsellers'}</p>
{if isset($best_sellers) AND $best_sellers}
<div class="block_content">
{assign var='liHeight' value=320}
@@ -36,7 +36,7 @@
<ul style="height:{$ulHeight}px;">
{foreach from=$best_sellers item=product name=myLoop}
<li style="border-bottom:0" class="ajax_block_product {if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.myLoop.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.myLoop.iteration > ($smarty.foreach.myLoop.total - ($smarty.foreach.myLoop.total % $nbItemsPerLine))}last_line{/if}">
<p id="s_title"><a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}</a></p>
<p class="s_title_block"><a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}</a></p>
<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='blockbestsellers'}">{$product.description_short|strip_tags|truncate:130:'...'}</a></div>
<a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /></a>
<div>
@@ -25,7 +25,7 @@
<!-- MODULE Block best sellers -->
<div id="best-sellers_block_right" class="block products_block">
<p id="title"><a href="{$link->getPageLink('best-sales')}">{l s='Top sellers' mod='blockbestsellers'}</a></p>
<p class="title_block"><a href="{$link->getPageLink('best-sales')}">{l s='Top sellers' mod='blockbestsellers'}</a></p>
<div class="block_content">
{if $best_sellers|@count > 0}
<ul class="product_images">
+2 -2
View File
@@ -1,7 +1,7 @@
/* Special style for block cart*/
#left_column #cart_block, #right_column #cart_block {
}
#header #cart_block #title {
#header #cart_block .title_block {
display: none;
}
#header #cart_block {
@@ -22,7 +22,7 @@
background:#eee
}
#cart_block.cart_block_hover {display:block}
#cart_block #title span {
#cart_block .title_block span {
float: right;
padding-left: 10px;
text-transform: none;
+1 -1
View File
@@ -43,7 +43,7 @@ var delete_txt = '{l s='Delete' mod='blockcart'}';
<!-- MODULE Block cart -->
<div id="cart_block" class="block exclusive">
<p id="title">
<p class="title_block">
<a href="{$link->getPageLink("$order_process", true)}" title="{l s='View my shopping cart' mod='blockcart'}" rel="nofollow">{l s='Cart' mod='blockcart'}</a>
{if $ajax_allowed}
<span id="block_cart_expand" {if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !isset($colapseExpandStatus)}class="hidden"{/if}>&nbsp;</span>
+1 -1
View File
@@ -25,7 +25,7 @@
<!-- Block categories module -->
<div id="categories_block_left" class="block">
<p id="title">{l s='Categories' mod='blockcategories'}</p>
<p class="title_block">{l s='Categories' mod='blockcategories'}</p>
<div class="block_content">
<ul class="tree {if $isDhtml}dhtml{/if}">
{foreach from=$blockCategTree.children item=child name=blockCategTree}
@@ -25,7 +25,7 @@
<!-- Block categories module -->
<div class="blockcategories_footer">
<p id="title">{l s='Categories' mod='blockcategories'}</p>
<p class="title_block">{l s='Categories' mod='blockcategories'}</p>
<div class="category_footer" style="float:left;clear:none;width:{$widthColumn}%">
<div style="float:left" class="list">
<ul class="tree {if $isDhtml}dhtml{/if}">
+2 -2
View File
@@ -27,7 +27,7 @@
<!-- Block CMS module -->
{foreach from=$cms_titles key=cms_key item=cms_title}
<div id="informations_block_left_{$cms_key}" class="block informations_block_left">
<p id="title"><a href="{$cms_title.category_link}">{if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if}</a></p>
<p class="title_block"><a href="{$cms_title.category_link}">{if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if}</a></p>
<ul class="block_content">
{foreach from=$cms_title.categories item=cms_page}
{if isset($cms_page.link)}<li class="bullet"><b style="margin-left:2em;">
@@ -45,7 +45,7 @@
{else}
<!-- MODULE Block footer -->
<div class="block_various_links" id="block_various_links_footer">
<p id="title">{l s='Information' mod='blockcms'}</p>
<p class="title_block">{l s='Information' mod='blockcms'}</p>
<ul>
{if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if}
<li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li>
+6
View File
@@ -9,6 +9,12 @@
font-size: 13px;
line-height: 18px
}
#contact_block p.title_block {
padding:6px 11px;
font-size: 12px;
line-height: auto
}
#contact_block p.tel {
margin:0 0 0 60px;
padding-left: 26px;
+1 -1
View File
@@ -24,7 +24,7 @@
*}
<div id="contact_block" class="block">
<p id="title">{l s='Contact us' mod='blockcontact'}</p>
<p class="title_block">{l s='Contact us' mod='blockcontact'}</p>
<div class="block_content clearfix">
<p>{l s='Our hotline is available 24/7' mod='blockcontact'}</p>
{if $telnumber != ''}<p class="tel"><span class="label">{l s='Phone:' mod='blockcontact'}</span>{$telnumber|escape:'htmlall':'UTF-8'}</p>{/if}
@@ -25,7 +25,7 @@
<!-- MODULE Block contact infos -->
<div id="block_contact_infos">
<p id="title">{l s='Contact us' mod='blockcontactinfos'}</p>
<p class="title_block">{l s='Contact us' mod='blockcontactinfos'}</p>
<ul>
{if $blockcontactinfos_company != ''}<li><strong>{$blockcontactinfos_company|escape:'htmlall':'UTF-8'}</strong></li>{/if}
{if $blockcontactinfos_address != ''}<li><pre>{$blockcontactinfos_address|escape:'htmlall':'UTF-8'}</pre></li>{/if}
+1 -1
View File
@@ -34,7 +34,7 @@ param_product_url = '';
{/if}
</script>
<div id="layered_block_left" class="block">
<p id="title">{l s='Catalog' mod='blocklayered'}</p>
<p class="title_block">{l s='Catalog' mod='blocklayered'}</p>
<div class="block_content">
<form action="#" id="layered_form">
<div>
+1 -1
View File
@@ -25,7 +25,7 @@
<!-- Block links module -->
<div id="links_block_left" class="block">
<p id="title">
<p class="title_block">
{if $url}
<a href="{$url|escape}">{$title|escape}</a>
{else}
@@ -25,7 +25,7 @@
<!-- Block manufacturers module -->
<div id="manufacturers_block_left" class="block blockmanufacturer">
<p id="title">{if $display_link_manufacturer}<a href="{$link->getPageLink('manufacturer')}" title="{l s='Manufacturers' mod='blockmanufacturer'}">{/if}{l s='Manufacturers' mod='blockmanufacturer'}{if $display_link_manufacturer}</a>{/if}</p>
<p class="title_block">{if $display_link_manufacturer}<a href="{$link->getPageLink('manufacturer')}" title="{l s='Manufacturers' mod='blockmanufacturer'}">{/if}{l s='Manufacturers' mod='blockmanufacturer'}{if $display_link_manufacturer}</a>{/if}</p>
<div class="block_content">
{if $manufacturers}
{if $text_list}
+1 -1
View File
@@ -25,7 +25,7 @@
<!-- Block myaccount module -->
<div class="block myaccount">
<p id="title"><a href="{$link->getPageLink('my-account', true)}">{l s='My account' mod='blockmyaccount'}</a></p>
<p class="title_block"><a href="{$link->getPageLink('my-account', true)}">{l s='My account' mod='blockmyaccount'}</a></p>
<div class="block_content">
<ul class="bullet">
<li><a href="{$link->getPageLink('history', true)}" title="">{l s='My orders' mod='blockmyaccount'}</a></li>
@@ -5,6 +5,7 @@
display: block;
padding: 7px 11px 5px 22px;
color: #333;
background: url("../blockcms/img/arrow_right_2.png") no-repeat 10px 10px transparent;
}
.myaccount p.logout {
padding-bottom:0;
@@ -14,9 +15,9 @@
/* block myaccount in footer */
#footer .myaccount #title {background: none;}
#footer .myaccount .title_block {background: none;}
#footer .myaccount .logout {display:none;}
#footer .myaccount #title {
#footer .myaccount .title_block {
padding:0 0 10px 0;
background:none
}
@@ -25,7 +25,7 @@
<!-- Block myaccount module -->
<div class="block myaccount">
<p id="title"><a href="{$link->getPageLink('my-account', true)}" title="{l s='Manage my customer account' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My account' mod='blockmyaccountfooter'}</a></p>
<p class="title_block"><a href="{$link->getPageLink('my-account', true)}" title="{l s='Manage my customer account' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My account' mod='blockmyaccountfooter'}</a></p>
<div class="block_content">
<ul class="bullet">
<li><a href="{$link->getPageLink('history', true)}" title="{l s='List of my orders' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My orders' mod='blockmyaccountfooter'}</a></li>
@@ -37,6 +37,11 @@
padding:0;
text-align:right;
}
#new-products_block_right p.title_block {
padding:6px 11px;
text-align:left;
}
#new-products_block_right .button_large {
padding:0;
border:none;
@@ -25,7 +25,7 @@
<!-- MODULE Block new products -->
<div id="new-products_block_right" class="block products_block">
<p id="title"><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blocknewproducts'}">{l s='New products' mod='blocknewproducts'}</a></p>
<p class="title_block"><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blocknewproducts'}">{l s='New products' mod='blocknewproducts'}</a></p>
<div class="block_content">
{if $new_products !== false}
<ul class="product_images clearfix">
+1 -1
View File
@@ -4,7 +4,7 @@
border:1px solid #ccc;
background:#eee;
}
#newsletter_block_left #title {
#newsletter_block_left .title_block {
padding:0 0 12px 28px;
color:#666;
text-shadow:0 1px 0 #fff;
@@ -26,7 +26,7 @@
<!-- Block Newsletter module-->
<div id="newsletter_block_left" class="block">
<p id="title">{l s='Newsletter' mod='blocknewsletter'}</p>
<p class="title_block">{l s='Newsletter' mod='blocknewsletter'}</p>
<div class="block_content">
{if isset($msg) && $msg}
<p class="{if $nw_error}warning_inline{else}success_inline{/if}">{$msg}</p>
+1 -1
View File
@@ -25,7 +25,7 @@
<!-- Block RSS module-->
<div id="rss_block_left" class="block">
<p id="title">{$title}</p>
<p class="title_block">{$title}</p>
<div class="block_content">
{if $rss_links}
<ul>
+1 -1
View File
@@ -25,7 +25,7 @@
<!-- Block search module -->
<div id="search_block_left" class="block exclusive">
<p id="title">{l s='Search' mod='blocksearch'}</p>
<p class="title_block">{l s='Search' mod='blocksearch'}</p>
<form method="get" action="{$link->getPageLink('search', true)}" id="searchbox">
<p class="block_content">
<label for="search_query_block">{l s='Enter a product name' mod='blocksearch'}</label>
+1 -1
View File
@@ -24,7 +24,7 @@
*}
<div id="social_block">
<p id="title">{l s='Follow us' mod='blocksocial'}</p>
<p class="title_block">{l s='Follow us' mod='blocksocial'}</p>
<ul>
{if $facebook_url != ''}<li class="facebook"><a href="{$facebook_url|escape:html:'UTF-8'}">{l s='Facebook' mod='blocksocial'}</a></li>{/if}
{if $twitter_url != ''}<li class="twitter"><a href="{$twitter_url|escape:html:'UTF-8'}">{l s='Twitter' mod='blocksocial'}</a></li>{/if}
+6 -1
View File
@@ -4,12 +4,17 @@
font-weight:bold;
text-align:right
}
#special_block_right p.title_block {
padding:6px 11px;
text-align:left
}
#special_block_right .products li {
padding:15px 0;
width: 130px;
border:none;
}
#special_block_right li #s_title {
#special_block_right li .s_title_block {
padding:0 0 3px 0;
font-size:12px;
text-align:left;
+2 -2
View File
@@ -25,7 +25,7 @@
<!-- MODULE Block specials -->
<div id="special_block_right" class="block products_block exclusive blockspecials">
<p id="title"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></p>
<p class="title_block"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></p>
<div class="block_content">
{if $special}
@@ -43,7 +43,7 @@
{/if}
{/if}
<p id="s_title"><a href="{$special.link}" title="{$special.name|escape:html:'UTF-8'}">{$special.name|escape:html:'UTF-8'}</a></p>
<p class="s_title_block"><a href="{$special.link}" title="{$special.name|escape:html:'UTF-8'}">{$special.name|escape:html:'UTF-8'}</a></p>
{if !$PS_CATALOG_MODE}
<span class="price-discount">{if !$priceDisplay}{displayWtPrice p=$special.price_without_reduction}{else}{displayWtPrice p=$priceWithoutReduction_tax_excl}{/if}</span>
<span class="price">{if !$priceDisplay}{displayWtPrice p=$special.price}{else}{displayWtPrice p=$special.price_tax_exc}{/if}</span>
+1 -1
View File
@@ -25,7 +25,7 @@
<!-- Block stores module -->
<div id="stores_block_left" class="block">
<p id="title"><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockstore'}">{l s='Our stores' mod='blockstore'}</a></p>
<p class="title_block"><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockstore'}">{l s='Our stores' mod='blockstore'}</a></p>
<div class="block_content blockstore">
<p class="store_image"><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockstore'}"><img src="{$module_dir}{$store_img}" alt="{l s='Our stores' mod='blockstore'}" width="174" height="115" /></a></p>
<p>
+1 -1
View File
@@ -25,7 +25,7 @@
<!-- Block suppliers module -->
<div id="suppliers_block_left" class="block blocksupplier">
<p id="title">{if $display_link_supplier}<a href="{$link->getPageLink('supplier')}" title="{l s='Suppliers' mod='blocksupplier'}">{/if}{l s='Suppliers' mod='blocksupplier'}{if $display_link_supplier}</a>{/if}</p>
<p class="title_block">{if $display_link_supplier}<a href="{$link->getPageLink('supplier')}" title="{l s='Suppliers' mod='blocksupplier'}">{/if}{l s='Suppliers' mod='blocksupplier'}{if $display_link_supplier}</a>{/if}</p>
<div class="block_content">
{if $suppliers}
{if $text_list}
+1 -1
View File
@@ -25,7 +25,7 @@
<!-- Block tags module -->
<div id="tags_block_left" class="block tags_block">
<p id="title">{l s='Tags' mod='blocktags'}</p>
<p class="title_block">{l s='Tags' mod='blocktags'}</p>
<p class="block_content">
{if $tags}
{foreach from=$tags item=tag name=myLoop}
+2 -2
View File
@@ -16,14 +16,14 @@
margin-left: 10px;
width: 130px;
}
#viewed-products_block_left li .text_desc #s_title {
#viewed-products_block_left li .text_desc .s_title_block {
padding:0 0 5px 0;
font-size:12px;
color:#333;
font-weight: bold;
}
#viewed-products_block_left li .text_desc #s_title a{
#viewed-products_block_left li .text_desc .s_title_block a{
color:#333;
}
#viewed-products_block_left li .text_desc p,
+2 -2
View File
@@ -25,7 +25,7 @@
<!-- Block Viewed products -->
<div id="viewed-products_block_left" class="block products_block">
<p id="title">{l s='Viewed products' mod='blockviewed'}</p>
<p class="title_block">{l s='Viewed products' mod='blockviewed'}</p>
<div class="block_content">
<ul class="products clearfix">
{foreach from=$productsViewedObj item=viewedProduct name=myLoop}
@@ -34,7 +34,7 @@
<img src="{if isset($viewedProduct->id_image) && $viewedProduct->id_image}{$link->getImageLink($viewedProduct->link_rewrite, $viewedProduct->cover, 'medium_default')}{else}{$img_prod_dir}{$lang_iso}-default-medium_default.jpg{/if}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$viewedProduct->legend|escape:html:'UTF-8'}" />
</a>
<div class="text_desc">
<p id="s_title"><a href="{$viewedProduct->product_link}" title="{l s='More about' mod='blockviewed'} {$viewedProduct->name|escape:html:'UTF-8'}">{$viewedProduct->name|truncate:14:'...'|escape:html:'UTF-8'}</a></p>
<p class="s_title_block"><a href="{$viewedProduct->product_link}" title="{l s='More about' mod='blockviewed'} {$viewedProduct->name|escape:html:'UTF-8'}">{$viewedProduct->name|truncate:14:'...'|escape:html:'UTF-8'}</a></p>
<p><a href="{$viewedProduct->product_link}" title="{l s='More about' mod='blockviewed'} {$viewedProduct->name|escape:html:'UTF-8'}">{$viewedProduct->description_short|strip_tags:'UTF-8'|truncate:44}</a></p>
</div>
</li>
+1 -1
View File
@@ -222,7 +222,7 @@ ul.wlp_bought_list li .product_infos {
margin-left:10px;
width:126px
}
ul.wlp_bought_list li .product_infos #s_title.product_name {
ul.wlp_bought_list li .product_infos .s_title_block.product_name {
padding:5px 0;
font-size:12px;
color:#222
+1 -1
View File
@@ -24,7 +24,7 @@
*}
<div id="wishlist_block" class="block account">
<p id="title">
<p class="title_block">
<a href="{$wishlist_link}">{l s='Wishlist' mod='blockwishlist'}</a>
</p>
<div class="block_content">
+1 -1
View File
@@ -5,7 +5,7 @@
height:240px
}
#featured-products_block_center li.last_item_of_line {margin-right:0;}
#featured-products_block_center #s_title {
#featured-products_block_center .s_title_block {
padding-top:5px;
height:30px;
font-size:12px;
+2 -2
View File
@@ -25,7 +25,7 @@
<!-- MODULE Home Featured Products -->
<div id="featured-products_block_center" class="block products_block clearfix">
<p id="title">{l s='Featured products' mod='homefeatured'}</p>
<p class="title_block">{l s='Featured products' mod='homefeatured'}</p>
{if isset($products) AND $products}
<div class="block_content">
{assign var='liHeight' value=250}
@@ -39,7 +39,7 @@
{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
<li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - $totModulo)}last_line{/if}">
<a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a>
<p id="s_title"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></p>
<p class="s_title_block"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></p>
<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>
<div>
<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>
+1 -1
View File
@@ -185,7 +185,7 @@
overflow:hidden;
width: 360px
}
#product_comments_block_tab div.comment_details #title {padding-bottom:10px}
#product_comments_block_tab div.comment_details .title_block {padding-bottom:10px}
#product_comments_block_tab div.comment_details p {padding-bottom:10px}
#product_comments_block_tab div.comment_details ul {
list-style-type:none;
+1 -1
View File
@@ -52,7 +52,7 @@ var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
</div>
</div>
<div class="comment_details">
<p id="title">{$comment.title}</p>
<p class="title_block">{$comment.title}</p>
<p>{$comment.content|escape:'html':'UTF-8'|nl2br}</p>
<ul>
{if $comment.total_advice > 0}