Changeset 9713


Ignore:
Timestamp:
03/15/11 20:33:20 (9 years ago)
Author:
patdenice
Message:

New admin links.

Location:
extensions/AdditionalPages/trunk
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/trunk/additional_page.php

    r9660 r9713  
    135135  if (is_admin()) 
    136136  { 
    137     $template->assign('U_EDIT', PHPWG_ROOT_PATH.'admin.php?page=plugin&section='.AP_DIR.'%2Fadmin%2Fadmin.php&tab=edit_page&edit='.$page['additional_page']['id'].'&redirect=true'); 
     137    $template->assign('U_EDIT', get_root_url().'admin.php?page=plugin-'.AP_DIR.'-edit_page&edit='.$page['additional_page']['id'].'&redirect=true'); 
    138138  } 
    139139  $template->clear_assign(array('U_MODE_POSTED', 'U_MODE_CREATED')); 
  • extensions/AdditionalPages/trunk/admin.php

    r9712 r9713  
    77 
    88include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); 
    9 $my_base_url = get_admin_plugin_menu_link(__FILE__); 
     9$my_base_url = get_root_url().'admin.php?page=plugin-'.AP_DIR; 
    1010 
    1111$query = 'SELECT id 
     
    2727if ($page_exist) 
    2828{ 
    29   $tabsheet->add('manage', l10n('Manage'), $my_base_url.'&tab=manage'); 
     29  $tabsheet->add('manage', l10n('Manage'), $my_base_url.'-manage'); 
    3030} 
    31 $tabsheet->add('add_page', l10n('ap_add_page'), $my_base_url.'&tab=add_page'); 
    32 $tabsheet->add('config', l10n('Configuration'), $my_base_url.'&tab=config'); 
     31$tabsheet->add('add_page', l10n('ap_add_page'), $my_base_url.'-add_page'); 
     32$tabsheet->add('config', l10n('Configuration'), $my_base_url.'-config'); 
    3333if ($page['tab'] == 'edit_page') 
    3434{ 
    35   $tabsheet->add('edit_page', l10n('ap_edit_page'), $my_base_url.'&tab=edit_page&edit='.$_GET['edit']); 
     35  $tabsheet->add('edit_page', l10n('ap_edit_page'), $my_base_url.'-edit_page&edit='.$_GET['edit']); 
    3636} 
    3737$tabsheet->select($page['tab']); 
  • extensions/AdditionalPages/trunk/admin/manage.inc.php

    r9660 r9713  
    4646{ 
    4747  $row['U_PAGE'] = make_index_url(array('section'=>'page')).'/'.(isset($row['permalink']) ? $row['permalink'] : $row['id']); 
    48   $row['U_EDIT'] = PHPWG_ROOT_PATH.'admin.php?page=plugin&section='.AP_DIR.'%2Fadmin%2Fadmin.php&tab=edit_page&edit='.$row['id']; 
    49   $row['U_DELETE'] = PHPWG_ROOT_PATH.'admin.php?page=plugin&section='.AP_DIR.'%2Fadmin%2Fadmin.php&tab=edit_page&edit='.$row['id'].'&delete='; 
     48  $row['U_EDIT'] = get_root_url().'admin.php?page=plugin-'.AP_DIR.'-edit_page&edit='.$row['id']; 
     49  $row['U_DELETE'] = get_root_url().'admin.php?page=plugin-'.AP_DIR.'-edit_page&edit='.$row['id'].'&delete='; 
    5050 
    5151  $row['title'] = trigger_event('AP_render_title', $row['title']); 
  • extensions/AdditionalPages/trunk/main.inc.php

    r9660 r9713  
    3535    array_push($menu, array( 
    3636      'NAME' => 'Additional Pages', 
    37       'URL' => get_admin_plugin_menu_link(AP_PATH . 'admin/admin.php'))); 
     37      'URL' => get_root_url().'admin.php?page=plugin-'.AP_DIR, 
     38      ) 
     39    ); 
    3840    return $menu; 
    3941} 
Note: See TracChangeset for help on using the changeset viewer.