Jump to content

blocksearch-top.tpl


Recommended Posts

Hi.

I have a question.

I made my shop as the image.

I hooked languages and log-in block in blocksearch-top.

I just want to move <log-in>block to the right of <languages>

 

Can anyone help me?

========================================================================

{*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
<!-- Block search module TOP -->
<div id="search_block_top" class="col-sm-4 clearfix">
<form id="searchbox" method="get" action="{$link->getPageLink('search')|escape:'html':'UTF-8'}" >
<input type="hidden" name="controller" value="search" />
<input type="hidden" name="orderby" value="position" />
<input type="hidden" name="orderway" value="desc" />
<input class="search_query form-control" type="text" id="search_query_top" name="search_query" placeholder="{l s='Search' mod='blocksearch'}" value="{$search_query|escape:'htmlall':'UTF-8'|stripslashes}" />
<button type="submit" name="submit_search" class="btn btn-default button-search">
<span>{l s='Search' mod='blocksearch'}</span>
</button>
</form>
</div>
 
<div id="block_langu" >
 
{foreach from=$languages key=k item=language name="languages"}
 {if $language.iso_code != $lang_iso}
     {assign var=indice_lang value=$language.id_lang}
     {if isset($lang_rewrite_urls.$indice_lang)}
      <a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}">
    {else}
      <a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}">
     {/if}
 {/if}
     <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="24" height="16.5" />
{if $language.iso_code != $lang_iso}
     </a>
{/if}
</li>
{/foreach}
</div>
 
 
 
{if $is_logged}
 
<div class="header_user_info">
 
 
 
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>
 
</div>
 
{/if}
 
<div class="header_user_info" >
 
{if $is_logged}
 
<a class="logout" href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Log me out' mod='blockuserinfo'}">
 
{l s='Sign out' mod='blockuserinfo'}
 
</a>
 
{else}
 
<a class="login" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Login to your customer account' mod='blockuserinfo'}">
 
{l s='Sign in' mod='blockuserinfo'}
 
</a>
 
{/if}
 
</div>
 
<!-- /Block search module TOP -->
=======================================================================

This is my blocksearch-top.tpl

 

Please hel me.

Thank you.

post-1027948-0-48541500-1443314229_thumb.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...