Jump to content

Editing Smarty Code - Themes


Recommended Posts

Hi guys,
 
I'm trying change some codes in a copy of default theme, prestashop 1.6.
I know something about Smarty, but theres a line:

<div class="nav">
	<div class="container">
		<div class="row"> 
			<nav>{$smarty.capture.displayNav}</nav>
		</div>
	</div>
</div>

I want to know where is the file "Nav"? 

<nav>{$smarty.capture.displayNav}</nav>

 

I think this Smarty.capture is like "include file php", in php is easy, just look for the name of file, but here, i cant find it.

 

Thanks guys

Link to comment
Share on other sites

"Nav" is not a file.

{$smarty.capture.displayNav} is a variable, that was assigned a few lines before:

{capture name='displayNav'}{hook h='displayNav'}{/capture}

Smarty {capture} is used to collect the output of the template between the tags into a variable instead of displaying it.

Take a look at this page: http://www.smarty.net/docs/en/language.function.capture.tpl

  • Like 1
Link to comment
Share on other sites

"Nav" is not a file.

{$smarty.capture.displayNav} is a variable, that was assigned a few lines before:

{capture name='displayNav'}{hook h='displayNav'}{/capture}

Smarty {capture} is used to collect the output of the template between the tags into a variable instead of displaying it.

Take a look at this page: http://www.smarty.net/docs/en/language.function.capture.tpl

Thank you, and theres a tutorial or something for change or create a new theme?

I cant find nothing about the coluns, names or files etc.

 

The good is the structure of site :)

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...