> Main > Products and Services > Purchase > Company
English / Russian

Documentation

Design Themes Modification When Updating from CNCat 4.1.3 to CNCat 4.2

© "CN-Software" Ltd. 2002-2008
support@cn-software.com
www.cn-software.com
Previous | Table of Contents  | Next

article.tpl

Modifications:

Ability to rate web-resources has been added for a user, links Rate, Comments.

New Elements:

Apply Modifications:

  1. Add new attributes to the item template header. To do this, replace

   (ITEM  [item_id, item_title, item_rating_moder,

with

   (ITEM  [item_id, item_title, item_rating_moder, item_rating_users, item_votes_count, item_com_count

  1. Replace

   <tr><td rowspan="3" class="number">

with

   <tr><td rowspan="4" class="number">

  1. Above the following code part

   {IF $CNCAT[item][item_descr]}

add

   <tr><td colspan="1" class="info">

       {IF $CNCAT[item][link_rating_pr]>=0}

            {$CNCAT[lang][pr]}: {$CNCAT[item][link_rating_pr]}  

       {ENDIF}

 

       {IF $CNCAT[item][link_rating_cy]>=0}

            {$CNCAT[lang][cy]}: {$CNCAT[item][link_rating_cy]}  

       {ENDIF}

 

       {IF $CNCAT[item][item_rating_moder]>0 || $CNCAT[item][item_rating_users]>0}

           {$CNCAT[lang][rating]}: <span title="{$CNCAT[lang][administrator]}">{IF $CNCAT[item][item_rating_moder]>0}{$CNCAT[item][item_rating_moder]}{ELSE}{$CNCAT[lang][no]}{ENDIF}</span>/<span title="{$CNCAT[lang][users]}">{IF $CNCAT[item][item_rating_users]>0}{$CNCAT[item][item_rating_users]}{ELSE}{$CNCAT[lang][no]}{ENDIF}</span>

       {ENDIF}

 

       {IF $CNCAT[config][rating_enable]}

           | <a href="{cn_str($CNCAT[item][_ext_url])}#vote">{$CNCAT[lang][appreciate]}</a>

       {ENDIF}

 

       {IF $CNCAT[config][comments_articles_enable]}

           | <a href="{cn_str($CNCAT[item][_ext_url])}#comments">{$CNCAT[lang][comments]} {IF $CNCAT[item][item_com_count]}(<strong>{$CNCAT[item][item_com_count]}</strong>){ENDIF}</a>

       {ENDIF}

   </td></tr>


Previous | Table of Contents  | Next