Design Themes Modification When Updating from CNCat 4.1.3 to CNCat 4.2
index.tpl
Modifications:
Statistics block is added on the right below the blocks of new links and articles.
New Elements:
- Configuration parameter: $CNCAT[config][show_stats] – display statistics.
- Code that enables statistics items: {DISPLAY STATISTICS}
Apply Modifications:
Replace the following code
{IF $CNCAT[page][show_new_items]}
<td class="right">
{DISPLAY NEW_ITEMS}
{DISPLAY NEW_ARTICLES}
</td>
{ENDIF}
with
{IF $CNCAT[page][show_new_items] || $CNCAT[config][show_stats]}
<td class="right">
{IF $CNCAT[page][show_new_items]}
{DISPLAY NEW_ITEMS}
{DISPLAY NEW_ARTICLES}
{ENDIF}
{IF $CNCAT[config][show_stats]}
{DISPLAY STATISTICS}
{ENDIF}
</td>
{ENDIF}