function te_root_link() { return te_link(te_root()); }
?> <div style="margin-left: 15px"> <?php } ?> <?php if ($context_menu_item->isCurrent()) { ?> <span class="submenu_current"> <?php } ?> <a href="<?php echo te_link($context_menu_item->node); ?> "><?php echo te_short($context_menu_item->getTitle(), 25); ?> </a><br/> <?php if ($context_menu_item->isCurrent()) { ?> </span> <?php } ?> <?php
?> <?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); ?> </a> </div>
<?php foreach ($child->getChildren() as $children2) { ?> <li> <?php echo $children2->getTitle(); ?> <?php $content2 = $children2->getContent(); ?> (<?php echo trim($content2->get('authors')); ?> ) <br/><a href="<?php echo te_link($children2); ?> " class="link_intro color100">Lire...</a> </li> <?php } ?> <?php } ?> <?php } ?> <?php }
?> <?php echo te_short($sub_content->get('intro'), 200); ?> <?php } else { ?> <?php echo te_short($sub_content->get('body'), 200); ?> <?php } ?> <br/> <a href="<?php echo te_link($child); ?> " class="link_intro color100">Entrez ></a> </div> <?php } ?> <?php } ?> </div> <?php } ?>
<?php echo $content->getTitle(); ?> </div> <div id="breadcrumb"> <?php if ($breadcrumb_menu = te_breadcrumb_menu()) { ?> <?php foreach ($breadcrumb_menu as $breadcrumb_menu_item) { ?> <a href="<?php echo te_link($breadcrumb_menu_item->node); ?> "><?php echo $breadcrumb_menu_item->getTitle(); ?> </a> <?php if (!$breadcrumb_menu_item->isEnd()) { ?> > <?php } ?> <?php } ?> <?php
$root = $thinkedit->newNode(); $root->loadRootNode(); echo '<title>' . strip_tags($root->getTitle()) . '</title>' . "\n"; echo '<link>TODO</link>' . "\n"; $root_content = $root->getContent(); echo '<description><![CDATA[' . "\n" . strip_tags($root_content->get('body')) . "\n" . ']]></description>'; echo ''; $db = $thinkedit->getDb(); $results = $db->select('select * from node where publish = 1 order by created_date desc, id desc limit 1, 20'); if ($results) { foreach ($results as $result) { $node = $thinkedit->newNode(); $node->load($result['id']); echo '<item>' . "\n"; echo '<title>' . ' <![CDATA[' . "\n" . $node->getTitle() . "\n" . ']]>' . '</title>' . "\n"; echo '<link>' . ' <![CDATA[' . "\n" . 'http://' . $_SERVER["SERVER_NAME"] . te_link($node) . "\n" . ']]>' . '</link>' . "\n"; $content = $node->getContent(); $content->load(); if ($content->get('intro')) { $intro = $content->get('intro'); } elseif ($content->get('body')) { $intro = te_short($content->get('body'), 200); } else { $intro = 'no description available'; } echo '<description>' . ' <![CDATA[' . "\n" . $intro . "\n" . ']]>' . '</description>' . "\n"; echo '</item>' . "\n"; } } echo '</channel>' . "\n"; echo '</rss>' . "\n";
<?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 } ?> </td> </tr>
} ?> </div> <?php } ?> <?php $relation_object = $thinkedit->newRelation(); $relations = $relation_object->getRelations($content); ?> <?php if ($relations) { ?> <hr/> <?php foreach ($relations as $relation) { ?> <li><a href="<?php echo te_link($relation); ?> "><?php echo $relation->getTitle(); ?> </a></li> <?php } }
</div><!-- end sub --> <div id="nav"> <div class="wrapper"> <h2 class="accessibility">Navigation</h2> <ul class="clearfix"> <?php if ($main_menu = te_main_menu()) { ?> <?php foreach ($main_menu as $main_menu_item) { ?> <li><a href="<?php echo te_link($main_menu_item->node); ?> "><?php echo $main_menu_item->getTitle(); ?> </a></li> <?php if (!$main_menu_item->isEnd()) { ?> <span class="menu_separator"></span><?php } ?> <?php } ?> <?php