<?php require_once("/var/www/html/sites/all/themes/oxygen/global_head.inc"); ?> <?php require_once("showsite_head.inc"); ?> <?php if ($header): ?> <?php print $header ?> <?php endif; ?> <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block" style="background-color;white;">'. $tabs .'</div>'; endif; ?> <?php if (isset($tabs2)): print $tabs2; endif; ?> <div id="container" class="photos"> <div id="wrapper"> <div id="wideLeft" > <div id="wideLeftContent"> <img src="<?php print $pot;?>/images/photos_header.png" class="png" /> <div id="queuegallery_rating"> <?php print fivestar_widget_form($node) ?></div> <span class="gallery_title"><?php print $title ?></span> <?php $showCode = oxygen_helpers_get_taxonomy_name_from_node_vid($node, 5); ?> <?php print queuegallery_all($node->field_nodequeue_id[0][value], queuegallery_synonym_to_galleryterm($showCode)); ?> </div> <div style="clear:both;"></div> <div id="comment-wrapper"> <script> var idcomments_acct = 'acc93c3246315e13e155555cb33ddd7f'; var idcomments_post_id= "<?php print 'http://' . $_SERVER['HTTP_HOST']. '/node/' . $node->nid ?>"; var idcomments_post_url; </script> <span id="IDCommentsPostTitle" style="display:none"></span> <script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script> </div>
<div class="block-row clear-block pic-of-day"> <div class="pic-of-day-title"><img src="/sites/all/themes/jerseycouture/images/fluff-me-pic-title.png" /></div> <div class="pic-of-day-image"> <div id="pic-of-day-item"><a href="/Fluff-Me-Community/node/<?= $row->nid ?>"><img src="/<?php echo substr($fields['field_ugc_image_fid']->content,0,strrpos($fields['field_ugc_image_fid']->content,'/')).'/home'.strrchr($fields['field_ugc_image_fid']->content,'/'); ?>" width="234" height="210" border="0" /></a></div> <div class="pic-of-day-interact"><div class="pic-of-day-five-star"><?php $node = node_load($row->nid); if (function_exists('fivestar_widget_form')) print fivestar_widget_form($node); ?></div> <div class="comment-link"><a href="/Fluff-Me-Community/node/<?= $row->nid ?>"></a></div></div> </div> </div>
function phptemplate_preprocess_node(&$vars, $hook) { $node = $vars['node']; switch ($node->type) { case "project": //echo "<pre>"; print_r($node); echo "</pre>"; //Define thumbnail image field as imagecache version if ($node->field_image[0]['fid'] && file_exists($node->field_image[0]['filepath'])) { $vars['thumbnail'] = theme('imagecache', "list_page", $node->field_image[0]['filepath']); $vars['image_lrg'] = theme('imagecache', "single_page", $node->field_image[0]['filepath']); } break; //NODE TYPE EQUALS BLOG //NODE TYPE EQUALS BLOG case "blog": //echo "<pre>"; print_r ($node->field_link[uid]); echo "</pre>"; $links = $node->links; //Define thumbnail image field as imagecache version if ($node->field_image[0]['fid'] && file_exists($node->field_image[0]['filepath'])) { $vars['thumbnail'] = theme('imagecache', "thumbnail", $node->field_image[0]['filepath']); $vars['image_lrg'] = theme('imagecache', "rssimage-lrg", $node->field_image[0]['filepath']); } if ($node->field_link[0]['url']) { $links['source'] = array("title" => "Source", "href" => $node->field_link[0]['display_url'], "attributes" => array('title' => "Go to Source URL", "target" => "_blank")); $vars['link_url'] = $node->field_link[0]['display_url']; $vars['link_target'] = 'target="_blank"'; } if (module_exists('fivestar')) { $fivestarwidget = fivestar_widget_form($node); $vars['fivestar'] = $fivestarwidget; } /* FORMAT LINKS for BLOG NODES Reference: - http://www.seo-expert-blog.com/blog/drupal-block-snippet-recent-comments-by */ //echo "<pre>"; print_r ($vars['node']->links); echo "</pre>"; //Remove comment from links and place into $comment_link for template /*if (isset($links['comment_comments'])) { $vars['comment_link'] = l($links['comment_comments']['title'], $node->path, array('title' => $links['comment_comments']['attributes']['title']), NULL, 'comments', FALSE, TRUE); unset($links['comment_comments']); } if (isset($links['comment_add'])) { $vars['comment_link'] = l($links['comment_add']['title'], $links['comment_add']['href'], array('title' => t('Add your comment')), NULL, 'comment-form', FALSE, TRUE); unset($links['comment_add']); }*/ //Format Read More link if (isset($links['node_read_more'])) { //set class for blog links //$vars['more_link'] = theme('links', $links['node_read_more'], array('class' => 'readmore inline')); $vars['more_link'] = l("Continue reading...", $links['node_read_more']['href'], array('title' => $links['node_read_more']['attributes']['title']), NULL, 'commentblock'); unset($links['node_read_more']); } unset($links['blog_usernames_blog']); $vars['links'] = theme('links', $links, array('class' => 'links inline')); //echo "<pre>"; print_r ($vars['node']->links); echo "</pre>"; break; } }
<!-- End Inscription TITLE--> <!-- ID of Inscription--> <h3 class="subtitle"> <?php print $contest->model . ' - ' . $node->nid; ?> </h3> <!-- End ID of Inscription --> <!-- FiveStar Widget --> <?php $flag = flag_get_flag('finalist'); if ($contest->field_contest_state[0]['value'] == ContestState::PUBLIC_CONTEST && $flag->is_flagged($node->nid)) { if (user_access('rate content') && fivestar_validate_target('node', $node->nid)) { print fivestar_widget_form($node); } } if ($contest->field_contest_state[0]['value'] == ContestState::FINISHED && $flag->is_flagged($node->nid)) { if (fivestar_validate_target('node', $node->nid)) { print fivestar_static('node', $node->nid, 'vote', 'inscription'); } } ?> <!-- END FiveStar Widget --> <!-- University and Country --> <div class="university-country"> <?php $univ_country = ''; if (!empty($field_inscription_university[0]['view'])) {