[*] MO : updated modules for mobile theme

This commit is contained in:
nPellicari
2012-02-28 09:51:30 +00:00
parent 2aa5dbd529
commit 4429b66e12
2 changed files with 12 additions and 5 deletions
@@ -24,13 +24,13 @@
* International Registered Trademark & Property of PrestaShop SA
*}
<hr width="99%" align="center" size="2" />
<!-- Block Mobile Newsletter module-->
<div id="newsletter">
<p>Newsletter</p>
<h4>{l s="Newsletter" mod="blocknewletter"}</h4>
<form action="form.php" method="post">
<div data-role="fieldcontain">
<label for="email">Your email:</label>
<input type="text" name="email" size="18"
<fieldset>
<input type="email" name="email"
value="{if isset($value) && $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}"
onfocus="javascript:if(this.value=='{l s='your e-mail' mod='blocknewsletter'}')this.value='';"
onblur="javascript:if(this.value=='')this.value='{l s='your e-mail' mod='blocknewsletter'}';"
@@ -38,6 +38,6 @@
<div data-theme="a" class="ui-btn ui-btn-corner-all ui-shadow ui-btn-up-a" aria-disabled="false">
<span aria-hidden="true" class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text">OK</span></span>
</div>
</div>
</fieldset>
</form>
</div><!-- /newsletter -->
+7
View File
@@ -57,6 +57,13 @@ class BlockSearch extends Module
return $this->hookTop($params);
}
public function hookDisplayMobileHeader($params)
{
if (Configuration::get('PS_SEARCH_AJAX'))
$this->context->controller->addJqueryPlugin('autocomplete');
$this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css');
}
public function hookHeader($params)
{
if (Configuration::get('PS_SEARCH_AJAX'))