1 - Obtenir l'adresse de l'article en cours dans PluXml
$url_article=$plxShow->plxMotor->urlRewrite('index.php?article'.$plxShow->plxMotor->plxRecord_arts->f('numero').'/'.$plxShow->plxMotor->plxRecord_arts->f('url'))
$url_article=$plxShow->plxMotor->urlRewrite('index.php?article'.$plxShow->plxMotor->plxRecord_arts->f('numero').'/'.$plxShow->plxMotor->plxRecord_arts->f('url'))
$plxMotor=plxMotor::getInstance();
$plugin=$plxMotor->plxPlugins->aPlugins['nom_du_plugin'];
$plugin->methode();
<?php include(PLX_ROOT.$plxMotor->aConf['racine_themes'].$plxMotor->style.'/php/monfichier.php') ?>
<?php $plxShow->staticInclude('002') ?>
echo '<td>'.plxUtils::strCut($plxAdmin->plxRecord_coms->f('author'),30).' / '.$plxAdmin->plxRecord_coms->f('ip').' </td>';
<ul>
<?php ob_start();
$plxShow->catList('',"
<li><a id=\"toggler-#cat_id\" href=\"#cat_url\" onclick=\"toggleDiv('cat-#cat_id','toggler-#cat_id','+ #cat_name','- #cat_name');return false;\" title=\"#cat_name\">+ #cat_name</a> (#art_nb)
<ul id=\"cat-#cat_id\" class=\"hide\">
[#cat_id]
</ul>
</li>");
$list = ob_get_clean();
preg_match_all('!\[([a-zA-Z0-9-_])*\]!',$list,$match);
$art = array();
foreach ($match[1] as $key => $value) {
ob_start();
$plxShow->lastArtList('<li><a href="#art_url">#art_title</a> (#art_nbcoms)</li>', 5, $value,'');
$art[$key] = ob_get_clean();
}
foreach ($match[0] as $key => $value) {
$list = str_replace(array(''',$value),array('\'',$art[$key]),$list);
}
echo $list;
?>
</ul>
<?php $plxShow = plxShow::getInstance();
if ($plxShow->mode() == 'static') :
$group='Documentation';
if (!empty($plxShow->plxMotor->aStats)) {
foreach($plxShow->plxMotor->aStats as $k => $v) {
if ($v['group'] == $group) {
echo '<a href="?static'.intval($k).'/'.$v['url'].'" class="icone_'.strtolower($v['name']).'">'.$v['name'].'</a>';
}
}
}
endif;?>