<br/> <br/> <?php // maintenant, on sélectionne les relations : $news_relations_object = $thinkedit->newRelation(); $news_relations = $news_relations_object->getRelations($news_content); ?> <?php if (is_array($news_relations)) { ?> <?php foreach ($news_relations as $news_relation) { ?> <a class="news_<?php echo te_get_section_name($news_relation); ?> " href="<?php echo te_link($news_relation); ?> "><?php echo $news_relation->getTitle(); ?> </a> <?php } ?> <?php } ?>
<!-- Related nodes --> <?php $relations = $relation->getRelations($content, array('class' => 'node')); ?> <?php if (is_array($relations)) { ?> <div id="relations"> <div class="title color100">Voir aussi...</div> <?php foreach ($relations as $my_relation) { ?> <div> <a class="<?php echo te_get_section_name($my_relation); ?> _sub" href="<?php echo te_link($my_relation); ?> " title="<?php echo $my_relation->getTitle(); ?> "> <img src="<?php echo te_design(); ?> /sources/fleche.gif"> <?php echo te_short($my_relation->getTitle(), 25); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="168" valign="top" id="menu"> <?php $filesystem = $thinkedit->newFilesystem(); $filesystem->setPath('/ressources/photos/' . te_get_section_name($node)); $intro_photo = $filesystem->getRandomFile(); ?> <?php if ($intro_photo) { ?> <img class="intro_photo" src="<?php echo $intro_photo->getThumbnail(array('w' => 168, 'h' => 118, 'zc' => 1, 'q' => 90)); ?> "> <?php } ?> <?php include_once 'context_menu.php'; ?> </td> <td width="15"></td>