Ignore:
Timestamp:
Feb 17, 2011, 6:35:25 PM (13 years ago)
Author:
patdenice
Message:

Additional pages can now be standalone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/additional_page.php

    r9263 r9270  
    1414
    1515// Récupération des données de la page
    16 $query = 'SELECT id, title , content, users, groups, permalink
     16$query = 'SELECT id, title , content, users, groups, permalink, standalone
    1717FROM ' . ADD_PAGES_TABLE . '
    1818';
     
    3939  'title' => trigger_event('AP_render_content', $row['title']),
    4040  'content' => trigger_event('AP_render_content', $row['content']),
     41  'standalone' => ($row['standalone'] == 'true')
    4142);
    4243
     
    6465        page_forbidden(l10n('You are not authorized to access the requested page'));
    6566  }
     67}
     68
     69if ($page['additional_page']['standalone'])
     70{
     71  echo $page['additional_page']['content'];
     72  exit;
    6673}
    6774
Note: See TracChangeset for help on using the changeset viewer.