Created
June 16, 2011 17:54
-
-
Save ho-nl/1029815 to your computer and use it in GitHub Desktop.
Expression Enginen template engine vs. Native PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:weblog:entries | |
entry_id="47" | |
dynamic="off" | |
status="not closed" | |
disable="categories|category_fields|member_data|pagination|trackbacks" | |
} | |
{embed="page/.screen" | |
title='{if "{seo_title_{nsm_lang}}" != ''}{seo_title_{nsm_lang}}{if:else}{title}{/if}' | |
meta_description="{meta_description_{nsm_lang}}" | |
} | |
<!-- col2-right-layout --> | |
<div class="main-container col2-right-layout"> | |
<div class="main"> | |
<div class="breadcrumbs"> | |
{exp:structure:breadcrumb | |
inc_home="yes" | |
inc_here="yes" | |
here_as_title="yes" | |
separator="/" | |
wrap_each="li" | |
wrap_here="strong" | |
wrap_separator="span" | |
} | |
</div> | |
<div class="col-main"> | |
<!-- content --> | |
<div class="std disciplines"> | |
{content_{nsm_lang}} | |
</div> | |
</div><!-- col-main--> | |
<div class="col-right sidebar std"> | |
{code_2col_right} | |
</div>http://github.com/erskinedesign/ | |
</div><!-- main --> | |
</div><!-- main-container col2-right-layout --> | |
{embed="page/.screen_footer"} | |
{/exp:weblog:entries} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? $entries = $exp->channel->entries($settings = array( | |
'entry_id' => 47, | |
'dynamic' => 'off', | |
'status' => 'not closed', | |
'disable' => 'categories|category_fields|member_data|pagination|trackbacks' | |
)); ?> | |
<? foreach($entries as $entry): ?> | |
<? $exp->embed("page/.screen", array( | |
'title' => $entry->val('seo_title_' . $exp->nsm_lang) ? $entry->var('seo_title_' . $exp->nsm_lang) : $entry->title, | |
'meta_description' => $entry->val('meta_description_' . $exp->nsm_lang) | |
)); ?> | |
<!-- col2-right-layout --> | |
<div class="main-container col2-right-layout"> | |
<div class="main"> | |
<div class="breadcrumbs"> | |
<? $exp->structure->breadcrumb(array( | |
'inc_home' => 'yes', | |
'inc_here' => 'yes', | |
'here_as_title' => 'yes', | |
'separator' => '/', | |
'wrap_each' => 'li', | |
'wrap_here' => 'strong', | |
'wrap_separator' => 'span' | |
)); ?> | |
</div> | |
<div class="col-main"> | |
<!-- content --> | |
<div class="std disciplines"> | |
<? echo $entry->val('content_' . $exp->nsm_lang); ?> | |
</div> | |
</div><!-- col-main--> | |
<div class="col-right sidebar std"> | |
<? $exp->load('code_2col_right'); ?> | |
</div> | |
</div><!-- main --> | |
</div><!-- main-container col2-right-layout --> | |
<? $exp->embed("page/.screen_footer"); ?> | |
<? endforeach; //channel->entries ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment