* @code * <?php print '<pre>'. check_plain(print_r($info_split, 1)) .'</pre>'; ?> * @endcode * * @see template_preprocess() * @see template_preprocess_search_result() * @see template_process() */ $show_result = FALSE; $node_image = NULL; if (!empty($result['node']->entity_id) && $result['node']->entity_type == 'node') { if (in_array($result['node']->bundle, array('crux', 'article', 'slideshow', 'video'))) { $show_result = TRUE; $node = new stdClass(); $node->nid = $result['node']->entity_id; $node_image = ibtmedia_image_get_rendered_node_image($node, 'medium_thumbnail'); } } ?> <?php if ($show_result) { ?> <li class="<?php print $classes; ?> "<?php print $attributes; ?> > <article class="article-teaser clearfix">
* @code * <?php print '<pre>'. check_plain(print_r($info_split, 1)) .'</pre>'; ?> * @endcode * * @see template_preprocess() * @see template_preprocess_search_result() * @see template_process() */ $show_result = FALSE; $node_image = NULL; if (!empty($result['node']->entity_id) && $result['node']->entity_type == 'node') { if (in_array($result['node']->bundle, array('article', 'slideshow', 'external_source', 'ranking_item', 'ranking_table'))) { $show_result = TRUE; $node = new stdClass(); $node->nid = $result['node']->entity_id; $node_image = ibtmedia_image_get_rendered_node_image($node, 'small_teaser'); if ($node_image) { $node_image = l($node_image, 'node/' . $node->nid, array('html' => TRUE)); } $emea = FALSE; if (!empty($result['fields']['sm_emea_region'])) { if (in_array('emea', $result['fields']['sm_emea_region'])) { $emea = TRUE; } } } } ?> <?php if ($show_result) {
* <?php print $info_split['comment']; ?> * </span> * <?php endif; ?> * @endcode * * To check for all available data within $info_split, use the code below. * @code * <?php print '<pre>'. check_plain(print_r($info_split, 1)) .'</pre>'; ?> * @endcode * * @see template_preprocess() * @see template_preprocess_search_result() * @see template_process() */ $show_result = FALSE; $node_image = NULL; if (!empty($result['node']->entity_id) && $result['node']->entity_type == 'node') { if (in_array($result['node']->bundle, array('article', 'slideshow'))) { $show_result = TRUE; $node = new stdClass(); $node = node_load($result['node']->entity_id); $node_image = ibtmedia_image_get_rendered_node_image($node, 'headline'); $node_image = l($node_image, 'node/' . $node->nid, array('html' => TRUE)); $node->type = $result['node']->bundle; } $view = node_view($node, 'teaser'); echo drupal_render($view); } ?>
<div class="usworld"> <div class="block_title"> <span></span> <?php print $term->name; ?> </div> <ul class="content"> <?php foreach ($nodes as $node) { $field_teaser = field_get_items('node', $node, 'field_teaser_title'); $image = ibtmedia_image_get_rendered_node_image($node); ?> <li> <?php print l($image, 'node/' . $node->nid, array('html' => TRUE)); print l(ibtmedia_node_short_title($node), 'node/' . $node->nid); ?> <p class="summary"><?php print ibtmedia_node_teaser_text($node); ?> </p> <div class="clear"></div> </li> <?php } ?> </ul> </div>