Ignore:
Timestamp:
Dec 22, 2009, 1:29:01 AM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Add feature 1335 (possibility to display the 'Connection' link in identification block menu for generic users)

Location:
extensions/event_cats/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/evntcats_admin.php

    r4486 r4553  
    152152   if (!change_ec_conf('comment_display', $_POST['ec_comments']))
    153153    ec_end2(11);
     154  if (isset($_POST['ec_connection']))
     155   if (!change_ec_conf('display_connection', $_POST['ec_connection']))
     156    ec_end2(12);
    154157  $page['tab'] = 'config';
    155158  $page['infos'][] = l10n('ec_config_saved');
     
    386389$template->assign('ec_help_banner_OK', (read_ec_conf('in_help_display') == '1'));
    387390
    388 $template->assign('EVNTCATS_PATH',EVNTCATS_PATH);
    389 $template->assign('RACINE_URL',ROOT_URL);
     391$template->assign('EVNTCATS_PATH', EVNTCATS_PATH);
     392$template->assign('RACINE_URL', ROOT_URL);
    390393$template->assign('U_HELP', get_root_url().'popuphelp.php?page=help');
    391394
  • extensions/event_cats/admin/template/config.tpl

    r4470 r4553  
    169169            {'Banner off'|@translate}
    170170          </label>
     171        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
     172        <td style = "text-align:right; font-weight:bold;">
     173          {'Display connection'|@translate}&nbsp;&nbsp;
     174        </td>
     175        <td>
     176          <label for = "ec_connection_1_id">
     177            <input type = "radio" name = "ec_connection" value = "1" id = "ec_connection_1_id"
     178              {if $ec_conf.display_connection == '1'} checked = "checked" {/if}
     179            />
     180            {'Yes'|@translate}
     181          </label><br />
     182          <label for = "ec_connection_0_id">
     183            <input type = "radio" name = "ec_connection" value = "0" id = "ec_connection_0_id"
     184              {if $ec_conf.display_connection == '0'} checked = "checked" {/if}
     185            />
     186            {'No'|@translate}
     187          </label>
    171188        </td>
    172189    </table>
Note: See TracChangeset for help on using the changeset viewer.