Results for pluXML : 6

1 - Chemin vers un plugin dans pluXML
$plxMotor=plxMotor::getInstance();
$plugin=$plxMotor->plxPlugins->aPlugins['nom_du_plugin'];
$plugin->methode();
			
4 - pluxml-admin-comments.php - ajouter ip au nom du posteur de commentaires
echo '<td>'.plxUtils::strCut($plxAdmin->plxRecord_coms->f('author'),30).' / '.$plxAdmin->plxRecord_coms->f('ip').'&nbsp;</td>';

			
5 - Lister les articles des catégories actives
<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('&#039;',$value),array('\'',$art[$key]),$list);
	}
	              echo $list;				
?>

</ul>


			
6 - Lister les pages statiques d'un groupe particulier
<?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;?>