Changeset 4336


Ignore:
Timestamp:
11/22/09 00:25:19 (10 years ago)
Author:
LucMorizur
Message:

[Event Cats] Head to different help files from different tabs

Location:
extensions/event_cats
Files:
5 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/autolog_entries.inc.php

    r4329 r4336  
    223223$template->assign('ec_ap_ok2', (count($ec_lists['add_pages']) > 0)); 
    224224$template->assign('code_list', $code_list); 
     225$template->assign('U_HELP', get_root_url().'popuphelp.php?page=ec_help_ent'); 
    225226 
    226227?> 
  • extensions/event_cats/admin/autolog_new.inc.php

    r4329 r4336  
    8282/****************************************************************************/ 
    8383 
     84if ($ec_is_creation = ( 
     85  $ec_default_action == 'duplicate_entry_submit' or 
     86  $ec_default_action == 'duplicate_entry_ask' or 
     87  $ec_default_action == 'create_ask' or 
     88  $ec_default_action == 'create' 
     89)) 
     90 $template->assign('U_HELP', get_root_url().'popuphelp.php?page=ec_help_new'); 
     91else 
     92 $template->assign('U_HELP', get_root_url().'popuphelp.php?page=ec_help_mod'); 
     93 
    8494$template->assign('ec_hidden_when_no_code', 
    8595  (count($ec_lists['duplicable_codes']) == 0) ? 'style = "display:none;"' : '' 
     
    92102  FROM `".IMAGE_CATEGORY_TABLE."` 
    93103"))) == 0)); 
    94 $template->assign('ec_is_creation', ( 
    95     $ec_default_action == 'duplicate_entry_submit' or 
    96     $ec_default_action == 'duplicate_entry_ask' or 
    97     $ec_default_action == 'create_ask' or 
    98     $ec_default_action == 'create' 
    99   ) 
    100 ); 
     104$template->assign('ec_is_creation',         $ec_is_creation); 
    101105$template->assign('ec_ap_ok',               EC_AP_OK); 
    102106$template->assign('ec_lists',               $ec_lists); 
  • extensions/event_cats/admin/config.inc.php

    r4329 r4336  
    6969foreach ($ec_conf_default as $k => $v) { $ec_conf2[$k] = $ec_conf[$i]; $i++; } 
    7070$template->assign('ec_conf', $ec_conf2); 
     71$template->assign('U_HELP', get_root_url().'popuphelp.php?page=ec_help_cfg'); 
    7172 
    7273?> 
  • extensions/event_cats/admin/duplication.inc.php

    r4329 r4336  
    7070$ec_conf2['duplic_display'] = read_ec_conf('duplic_display'); 
    7171$template->assign('ec_conf', $ec_conf2); 
     72$template->assign('U_HELP', get_root_url().'popuphelp.php?page=ec_help_dup'); 
    7273 
    7374?> 
  • extensions/event_cats/admin/evntcats_admin.php

    r4333 r4336  
    346346               $my_base_url.'&tab=config'); 
    347347 
    348 $template->assign( 
    349  array('U_HELP' => get_root_url().'popuphelp.php?page=event_cats')); 
    350  
    351348$template->assign('EVNTCATS_URLS', array( 
    352349 'ROOT'     => EVNTCATS_PATH, 
  • extensions/event_cats/main.inc.php

    r4330 r4336  
    9797function ec_popup_help_content($popup_help_content, $page) { 
    9898  return ( 
    99    $help_content = ($page == 'event_cats' and is_admin()) ? 
    100     load_language('help.html', EVNTCATS_PATH, array('return' => true)) : false 
     99   $help_content = (is_admin() and in_array($page, array( 
     100    'ec_help_new', 'ec_help_mod', 'ec_help_ent', 'ec_help_cfg', 'ec_help_dup' 
     101   ))) ? 
     102    load_language($page.'.html', EVNTCATS_PATH, array('return' => true)) : false 
    101103  ) ? $popup_help_content.$help_content : $popup_help_content; 
    102104} 
     
    290292    ) 
    291293  ) { 
    292     $template->assign( 'U_REGISTER', get_root_url().'register.php'); 
     294    $template->assign('U_REGISTER', get_root_url().'register.php'); 
    293295    if ( 
    294296      read_ec_conf('duplic_display') == '1' or ( 
     
    297299      ) 
    298300    ) { 
    299       $lang['Register'] = l10n('Duplicate'); 
    300       $lang['Create a new account'] = l10n('Create a new account with same properties'); 
     301      $lang['Register'] = $lang['Duplicate']; 
     302      $lang['Create a new account'] = $lang['Create a new account with same properties']; 
    301303    } 
    302304  } 
Note: See TracChangeset for help on using the changeset viewer.