Ignore:
Timestamp:
11/05/07 21:03:15 (5 years ago)
Author:
hverton
Message:

The user_info_panel module has a dependency with the forum_threads_list_panel module. This dependency is now checked, and links will be replaced my plain text if the module is not installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/user_info_panel/templates/modules.user_info_panel.tpl

    r978 r1059  
    3939        <hr /> 
    4040        <div style='text-align:center'> 
    41             <a href='{$smarty.const.MODULES}forum_threads_list_panel/new_posts.php' class='side'><b>{$new_post_msg|string_format:$locale.090}{if $new_post_msg == 1}{$locale.088}{else}{$locale.089}{/if}</b></a> 
    42             <hr /> 
    43             {buttonlink name=$locale.091 link=$smarty.const.MODULES|cat:"forum_threads_list_panel/new_posts.php?markasread="|cat:$user_id} 
     41            {if $new_posts_panel} 
     42                <a href='{$smarty.const.MODULES}forum_threads_list_panel/new_posts.php' class='side'><b>{$new_post_msg|string_format:$locale.090}{if $new_post_msg == 1}{$locale.088}{else}{$locale.089}{/if}</b></a> 
     43                <hr /> 
     44                {buttonlink name=$locale.091 link=$smarty.const.MODULES|cat:"forum_threads_list_panel/new_posts.php?markasread="|cat:$user_id} 
     45            {else} 
     46                <b>{$new_post_msg|string_format:$locale.090}{if $new_post_msg == 1}{$locale.088}{else}{$locale.089}{/if}</b> 
     47            {/if} 
    4448        </div> 
    4549    {/if} 
Note: See TracChangeset for help on using the changeset viewer.