} } if( $code == 'TLT' && $aya == 2 ){ ///library/quran/ayah/compare/1/2 $urlto = 'library/quran/ayah/compare/'.$node->field_surah_no[0]['value'].'/'.$node->field_ayah_no[0]['value'] ; $title ="Compare Translations Surah ".$node->field_surah_no[0]['value']." Ayah ".$node->field_ayah_no[0]['value'] ; } if( $code == 'ARB' && $aya == 2 ){ ///library/quran/surah/arabic/2/ARB $urlto = 'library/quran/surah/arabic/'.$node->field_surah_no[0]['value'].'/'.$code ; $title = "Al-Qur'an (Arabic) Surah ".$node->field_surah_no[0]['value']; } ?> <div id="node-<?php print $node->nid; ?>" class="node-teaser<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?><?php print $cls; ?>"> <h2><?php print l($title ,$urlto,array()); ?></h2> <?php $cloud = community_tags_display('node', NULL, $node->nid);//print community tags print $cloud; ?> </div> <div style="clear:both" ></div> <?php }else{ ?> <div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?><?php print $cls; ?>"> <div class="node-<?php print $node->type; ?>" > <?php print $picture ?> <?php if ($page == 0): ?> <h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2> <?php endif; ?> <?php if ($submitted): ?> <span class="submitted"><?php print $submitted; ?></span> <?php endif; ?>
else if($code == 'WOI'){ //library/islam/world/content/WOI/Islam A World Civilization/1 $titletxt .= ' - '.$node->field_art_sec_head[0]['value']; $urlto = 'library/islam/world/content/'.$code .'/'.$node->title.'/'.$node->field_art_sec_no[0]['value']; } else if($code == 'DI'){ //library/islam/islamposters/content/DI/1/Discover Islam $urlto = 'library/islam/islamposters/content/'.$code .'/'.$node->field_art_no[0]['value'].'/'.$titletxt; } else { //print $code; } if(arg(0) == 'comment' && arg(1) == 'reply' ){ $cls = ' comment-node'; } // only for comment reply page //Tag page or taxonomy page for the section //prints a teaser and link to view page of article and lists the tag if ($page == 0){ //ouput teaser section fot tag pages ?> <div id="node-<?php print $node->nid; ?>" class="node-teaser<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?><?php print $cls; ?>"> <h2><?php print l($titletxt,$urlto,array()); ?></h2> <?php print $node->content['body']['#value']; $cloud = community_tags_display('node', NULL, $node->nid); print $cloud; ?> </div> <div style="clear:both" ></div> <?php }else{ // output node page ?> <div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?><?php print $cls; ?>"> <h2><?php print l($titletxt,$urlto,array()); ?></h2> <?php print $content; ?> </div> <?php } ?>