| 1 |
<div class="node ntype-<?php print $node->type; ?> <?php print $zebra; ?> clearfix" id="node-<?php print $node->nid; ?>"> |
<div class="node ntype-<?php print $node->type; ?> <?php print $zebra; ?> clearfix" id="node-<?php print $node->nid; ?>"> |
| 2 |
<?php print extra_voting_forms_show_form($node,'n',3); ?> |
<?php print extra_voting_forms_show_form($node,'n',3); ?> |
| 3 |
<?php $embedded_stuff=drigg_embed_contents($node,$node_url,$teaser); ?> |
<?php |
| 4 |
|
if( module_exists(drigg_embed) ){ |
| 5 |
<div class="offset"> |
$embedded_stuff=drigg_embed_contents($node,$node_url,$teaser); |
| 6 |
<?php if($teaser){ ?> |
} |
| 7 |
<h2><a href="<?php print $node_url ?>"><?php print $title; ?></a></h2> |
?> |
| 8 |
<?php } else { ?> |
|
| 9 |
|
<div class="offset"> |
| 10 |
<!-- This accommodates for the fact that Drigg can be configured so that |
<?php if($teaser){ ?> |
| 11 |
a story doesn't have a link pointing to an external resource --> |
<h2><a href="<?php print $node_url ?>"><?php print $title; ?></a></h2> |
| 12 |
<?php if( drigg_url_is_local($node) ){ ?> |
<?php } else { ?> |
| 13 |
<h2><?php print $title; ?></h2> |
|
| 14 |
<?php } else {?> |
<!-- This accommodates for the fact that Drigg can be configured so that |
| 15 |
<h2> |
a story doesn't have a link pointing to an external resource --> |
| 16 |
<a href="<?php print drigg_link($node) ?>"><?php print $title; ?></a> |
<?php if( drigg_url_is_local($node) ){ ?> |
| 17 |
</h2> |
<h2><?php print $title; ?></h2> |
| 18 |
<?php } ?> |
<?php } else {?> |
| 19 |
|
<h2> |
| 20 |
<?php } ?> |
<a href="<?php print drigg_link($node) ?>"><?php print $title; ?></a> |
| 21 |
|
</h2> |
| 22 |
<?php # Change 'tag' into 'category' to show a category link instead ?> |
<?php } ?> |
| 23 |
<?php $section_link=drigg_section_link($node,'category'); ?> |
|
| 24 |
|
<?php } ?> |
| 25 |
<?php if ($teaser && $embedded_stuff) { ?> |
|
| 26 |
<div class="embedded-teaser"> |
<?php # Change 'tag' into 'category' to show a category link instead ?> |
| 27 |
<?php print $embedded_stuff ?> |
<?php $section_link=drigg_section_link($node,'category'); ?> |
| 28 |
</div> |
|
| 29 |
<?php } ?> |
<?php if ($teaser && $embedded_stuff) { ?> |
| 30 |
|
<div class="embedded-teaser"> |
| 31 |
<div class="story"> |
<?php print $embedded_stuff ?> |
| 32 |
|
</div> |
| 33 |
<?php if (! drigg_url_is_local($node) ){ ?> |
<?php } ?> |
| 34 |
<small><?php print theme('format_url_home',$url); ?> –</small> |
|
| 35 |
<?php } ?> |
<div class="story"> |
| 36 |
|
|
| 37 |
<?php print $content; ?> |
<?php if (! drigg_url_is_local($node) ){ ?> |
| 38 |
<?php if($teaser){ ?> |
<small><?php print theme('format_url_home',$url); ?> –</small> |
| 39 |
<a href="<?php print $node_url ?>"><?php print t('Read more »'); ?></a> |
<?php } ?> |
| 40 |
<?php } else { ?> |
|
| 41 |
|
<?php print $content; ?> |
| 42 |
<?php if (! drigg_url_is_local($node) ){ ?> |
<?php if($teaser){ ?> |
| 43 |
<a href="<?php print $node->url ?>"><?php print t('Read »'); ?></a> |
<a href="<?php print $node_url ?>"><?php print t('Read more »'); ?></a> |
| 44 |
<?php } ?> |
<?php } else { ?> |
| 45 |
|
|
| 46 |
|
<?php if (! drigg_url_is_local($node) ){ ?> |
| 47 |
<?php } ?> |
<a href="<?php print $node->url ?>"><?php print t('Read »'); ?></a> |
| 48 |
</div> |
<?php } ?> |
| 49 |
|
|
| 50 |
<?php if (!$teaser && $embedded_stuff) { ?> |
|
| 51 |
<div class="embedded"> |
<?php } ?> |
| 52 |
<?php print $embedded_stuff ?> |
</div> |
| 53 |
</div> |
|
| 54 |
<?php } ?> |
<?php if (!$teaser && $embedded_stuff) { ?> |
| 55 |
|
<div class="embedded"> |
| 56 |
<?php if($links){ ?> |
<?php print $embedded_stuff ?> |
| 57 |
<div class="storydata"> |
</div> |
| 58 |
<?php print theme('user_picture',user_load(array('uid'=>$node->uid)));?> |
<?php } ?> |
| 59 |
<?php if($submitted) print t('Created by ').theme('username', $node);?> |
|
| 60 |
<?php print drigg_created_string($node); ?> |
<?php if($links){ ?> |
| 61 |
<?php $ps=drigg_promoted_string($node); ?> |
<div class="storydata"> |
| 62 |
<?php if($ps){ ?> |
<?php print theme('user_picture',user_load(array('uid'=>$node->uid)));?> |
| 63 |
– <strong><?php print $ps; ?></strong> |
<?php if($submitted) print t('Created by ').theme('username', $node);?> |
| 64 |
<?php } ?> |
<?php print drigg_created_string($node); ?> |
| 65 |
<br /> |
<?php $ps=drigg_promoted_string($node); ?> |
| 66 |
Category: <?php print $section_link; ?> Tags: <?php print $terms; ?> |
<?php if($ps){ ?> |
| 67 |
</div> |
– <strong><?php print $ps; ?></strong> |
| 68 |
|
<?php } ?> |
| 69 |
<div class="links"> |
<br /> |
| 70 |
<?php print $links; ?> |
Category: <?php print $section_link; ?> Tags: <?php print $terms; ?> |
| 71 |
</div> |
</div> |
| 72 |
<?php } ?> |
|
| 73 |
|
<div class="links"> |
| 74 |
</div> |
<?php print $links; ?> |
| 75 |
</div> |
</div> |
| 76 |
|
<?php } ?> |
| 77 |
<?php if(!$teaser): ?> |
|
| 78 |
<div class="node-related clearfix"> |
</div> |
| 79 |
|
</div> |
| 80 |
<?php if (module_exists('drigg_rl')){ ?> |
|
| 81 |
<h2>Similar stories</h2> |
<?php if(!$teaser): ?> |
| 82 |
<?php print drigg_rl_related_links_get_html($node->title.' '.$node->body, $node->nid, 5, FALSE); ?> |
<div class="node-related clearfix"> |
| 83 |
<?php } ?> |
|
| 84 |
|
<?php if (module_exists('drigg_rl')){ ?> |
| 85 |
</div> |
<h2>Similar stories</h2> |
| 86 |
<?php endif; ?> |
<?php print drigg_rl_related_links_get_html($node->title.' '.$node->body, $node->nid, 5, FALSE); ?> |
| 87 |
|
<?php } ?> |
| 88 |
<?php print drigg_ui_article_menu(); ?> |
|
| 89 |
|
</div> |
| 90 |
|
<?php endif; ?> |
| 91 |
|
|
| 92 |
|
<?php print drigg_ui_article_menu(); ?> |