Last change
on this file since 66986 was
40981,
checked in by joseph@…, 10 years ago
|
Il faut faire l'insertion y compris dans un contexte non Zpip
|
File size:
584 bytes
|
Line | |
---|
1 | <?php |
---|
2 | function dublin_core_insert_head($flux){ |
---|
3 | // Si Zpip, on connait le type de page |
---|
4 | if (defined('_DIR_PLUGIN_Z')) { |
---|
5 | if ($GLOBALS['page']['contexte']['type'] == 'article'){ |
---|
6 | $flux .= recuperer_fond('dublin_core_article', array('id_article'=>$GLOBALS['page']['contexte']['id_article'])); |
---|
7 | } |
---|
8 | // Sinon, on regarde juste si on dispose d'un id_article dans l'environnement |
---|
9 | } else { |
---|
10 | if ($GLOBALS['page']['contexte']['id_article']>0){ |
---|
11 | $flux .= recuperer_fond('dublin_core_article', array('id_article'=>$GLOBALS['page']['contexte']['id_article'])); |
---|
12 | } |
---|
13 | } |
---|
14 | return $flux; |
---|
15 | } |
---|
16 | |
---|
17 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.