Template changes in eSyndiCat 2.4 [Gold] version

Discussion in 'eSyndiCat Pro v2.4.x' started by Sergey Ten, Feb 24, 2012.

  1. Sergey Ten

    Sergey Ten <b>eSyndiCat Lead Developer</b>

    Hello all,

    It's a list of changes in template for 2.4 version.

    *** templates/your_template/header.tpl ***

    [ Find code ]

    HTML:
    <link rel="alternate" type="application/rss+xml" title="{$category.title|escape:"html"}" href="{$smarty.const.ESYN_URL}feed.php?from=category&amp;id={$category.id}" />
    
    [ Replace with ]

    HTML:
    <link rel="alternate" type="application/rss+xml" title="{$category.title|escape:"html"}" href="{$smarty.const.ESYN_URL}feed.php?from=category&amp;id={$category.id}&amp;start={$start}" />
    

    [ Find code ]

    HTML:
    {if isset($view) && $view neq 'random' && isset($listings)}
    
    [ Replace with ]

    HTML:
    {if isset($view) && in_array($view, array('popular','new','top'))}
    

    [ Find code ]

    HTML:
    {assign var="lang_file" value="tmp/cache/intelli.lang."|cat:$config.lang}
    {include_file js="js/jquery/jquery, js/utils/sessvars, js/intelli/intelli, tmp/cache/intelli.config, $lang_file"}
    
    [ Replace with ]

    HTML:
    {assign var="lang_file" value=$smarty.const.ESYN_TMP_NAME|cat:"/cache/intelli.lang."|cat:$config.lang}
    
    {include_file js="js/jquery/jquery, js/utils/sessvars, js/intelli/intelli, js/intelli/intelli.resize"}
    {include_file js=$smarty.const.ESYN_TMP_NAME|cat:"/cache/intelli.config"}
    {include_file js=$lang_file}
    

    [ Find code ]

    HTML:
    {if isset($js)}
    	{include_file js=$js}
    {/if}
    
    [ After add code ]

    HTML:
    {include_file js="js/intelli/intelli.minmax, js/intelli/intelli.thumbs, js/intelli/intelli.search, js/intelli/intelli.common, js/frontend/footer"}
    

    [ Find code ]

    HTML:
    {include_file js="js/jquery/plugins/jquery.interface, js/jquery/plugins/jquery.dimensions"}
    
    [ Replace with ]

    HTML:
    {include_file js="js/jquery/plugins/jquery.interface"}
    
    [ Find code ]

    HTML:
    {foreach from=$menus.inventory item=menu}
    	{if $menu.name eq $smarty.const.ESYN_REALM}
    		<li class="active">{$menu.title}</li>
    	{else}
    		<li><a href="{$menu.url}" {if $menu.nofollow eq '1'}rel="nofollow"{/if}>{$menu.title}</a></li>
    	{/if}
    {/foreach}
    
    [ Replace with ]

    HTML:
    {include file="parse-blocks.tpl" pos=$blocks.inventory|default:null}
    
    [ Find code ]

    HTML:
    {if isset($esynAccountInfo)}
    
    [ Replace with ]

    HTML:
    {if !empty($esynAccountInfo)}
    
    [ Find code ]

    HTML:
    {if isset($listings) && isset($view)}
    	<div class="xml-button">
    		{if isset($category.id)}
    			<a href="{$smarty.const.ESYN_URL}feed.php?from=category&amp;id={$category.id}">{print_img fl="xml.gif" full=true alt=$lang.xml_syndication}</a>
    		{/if}
    		{if in_array($view, array('popular','new','top'))}
    			<a href="{$smarty.const.ESYN_URL}feed.php?from={$view}">{print_img fl="xml.gif" full=true alt=$lang.xml_syndication}</a>
    		{/if}
    	</div>
    {/if}
    
    [ Replace with ]

    HTML:
    {if isset($listings)}
    	<div class="xml-button">
    		{if isset($category) && $category.id >= 0 && isset($listings)}
    			<a href="{$smarty.const.ESYN_URL}feed.php?from=category&amp;id={$category.id}&amp;start={$start}">{print_img fl="xml.gif" full=true alt=$lang.xml_syndication}</a>
    		{/if}
    		{if isset($view) && in_array($view, array('popular','new','top'))}
    			<a href="{$smarty.const.ESYN_URL}feed.php?from={$view}">{print_img fl="xml.gif" full=true alt=$lang.xml_syndication}</a>
    		{/if}
    	</div>
    {/if}
    

    [ Find code ]

    HTML:
    <div class="top-menu">
    	<ul class="menu">
    	{foreach from=$menus.main item=menu}
    		{if $menu.name eq $smarty.const.ESYN_REALM}
    			<li class="active"><div>{$menu.title}</div></li>
    		{else}
    			<li><a href="{$menu.url}" {if $menu.nofollow eq '1'}rel="nofollow"{/if}>{$menu.title}</a></li>
    		{/if}
    	{/foreach}	
    	</ul>
    </div>
    
    [ Replace with ]

    HTML:
    {include file="parse-blocks.tpl" pos=$blocks.mainmenu|default:null}
    

    [ Find code ]

    HTML:
    <td valign="top" class="left-column">
    	<div id="leftBlocks" class="groupWrapper">
    		{include file="parse-blocks.tpl" pos=$leftBlocks|default:null}
    	</div>
    </td>
    
    [ Replace with ]

    HTML:
    <!--__s_l-->
    <td valign="top" class="left-column">
    	<div id="leftBlocks" class="groupWrapper">
    		<!--__s_l_c-->
    		{include file="parse-blocks.tpl" pos=$blocks.left|default:null}
    		<!--__s_l_ce-->
    	</div>
    </td>
    <!--__se_l-->
    
    [ Find code ]

    HTML:
    {include file="parse-blocks.tpl" pos=$topBlocks|default:null}
    
    [ Replace with ]

    HTML:
    {include file="parse-blocks.tpl" pos=$blocks.top|default:null}
    

    *** templates/your_template/footer.tpl ***

    [ Find code ]

    HTML:
    {include file="parse-blocks.tpl" pos=$user1Blocks|default:null}
    
    [ Replace with ]

    HTML:
    {include file="parse-blocks.tpl" pos=$blocks.user1|default:null}
    
    [ Find code ]

    HTML:
    {include file="parse-blocks.tpl" pos=$user2Blocks|default:null}
    
    [ Replace with ]

    HTML:
    {include file="parse-blocks.tpl" pos=$blocks.user2|default:null}
    
    [ Find code ]

    HTML:
    {include file="parse-blocks.tpl" pos=$bottomBlocks|default:null}
    
    [ Replace with ]

    HTML:
    {include file="parse-blocks.tpl" pos=$blocks.bottom|default:null}
    
    [ Find code ]

    HTML:
    <td class="right-column" valign="top">
    	<div id="rightBlocks" class="groupWrapper">
    		{include file="parse-blocks.tpl" pos=$rightBlocks|default:null}
    	</div>
    </td>
    
    [ Replace with ]

    HTML:
    <!--__s_r-->
    <td class="right-column" valign="top">
    	<div id="rightBlocks" class="groupWrapper">
    		<!--__s_r_c-->
    		{include file="parse-blocks.tpl" pos=$blocks.right|default:null}
    		<!--__s_r_ce-->
    	</div>
    	</td>
    <!--__se_r-->
    
    [ Find code ]

    HTML:
    {include file="parse-blocks.tpl" pos=$verybottomBlocks|default:null}
    
    [ Replace with ]

    HTML:
    {include file="parse-blocks.tpl" pos=$blocks.verybottom|default:null}
    
    [ Find code ]

    HTML:
    {foreach from=$menus.bottom item=menu name="bottom_menu"}
    	{if $menu.name eq $smarty.const.ESYN_REALM}
    		{$menu.title}
    	{else}
    		<a href="{$menu.url}" {if $menu.nofollow eq '1'}rel="nofollow"{/if}>{$menu.title}</a>
    	{/if}
    
    	{if not $smarty.foreach.bottom_menu.last} | {/if}
    {/foreach}
    
    [ Replace with ]

    HTML:
    {include file="parse-blocks.tpl" pos=$blocks.copyright|default:null}
    
    [ Find code ]

    HTML:
    <div class="copyright">&copy; {$smarty.server.REQUEST_TIME|date_format:"%Y"} Powered by <a href="http://www.esyndicat.com/">eSyndiCat Directory Software</a></div>
    
    [ Replace with ]

    HTML:
    <div class="copyright">&copy; {$smarty.server.REQUEST_TIME|date_format:"%Y"} {lang key="copyright"}</div>
    
    [ Find code ]

    HTML:
    {include_file js="js/intelli/intelli.minmax, js/intelli/intelli.thumbs, js/intelli/intelli.search, js/intelli/intelli.common, js/frontend/footer"}
    
    [ Remove it ]
  2. pravo

    pravo Paid Customer

    Excellent!
  3. truthonlytruth

    truthonlytruth Paid Customer

    you are the best best best... :)
    Thank you
  4. teompa

    teompa Paid Customer

    When will be updated to version 2.4 templates to be available in the download section?
  5. Greg

    Greg Moderator

    14 templates have been added to the downloads area.

Share This Page