function theme_views_slideshow_thumbnailhover_no_display_section in Views Slideshow 6.2
Add the the HTML for the hidden slideshow elements.
1 theme call to theme_views_slideshow_thumbnailhover_no_display_section()
- template_preprocess_views_slideshow_thumbnailhover in contrib/
views_slideshow_thumbnailhover/ views_slideshow_thumbnailhover.theme.inc - Implements template_preprocess_hook_THEMENAME().
File
- contrib/
views_slideshow_thumbnailhover/ views_slideshow_thumbnailhover.theme.inc, line 127 - Theme & preprocess functions for the Views Slideshow: ThumbnailHover module.
Code
function theme_views_slideshow_thumbnailhover_no_display_section($view, $rows, $vss_id, $options, $teaser = TRUE) {
// Add the slideshow elements.
$attributes['id'] = "views_slideshow_thumbnailhover_teaser_section_" . $vss_id;
$attributes['class'] = 'views_slideshow_thumbnailhover_teaser_section views_slideshow_teaser_section';
$attributes = drupal_attributes($attributes);
$output = "<div{$attributes}>";
foreach ($view->result as $count => $node) {
if ($view->display_handler
->uses_fields()) {
$rendered = '';
foreach ($options['views_slideshow_thumbnailhover']['main_fields'] as $field => $use) {
if ($use !== 0 && is_object($view->field[$field]) && !$view->field[$field]->options['exclude']) {
$rendered .= '<div class="views-field-' . views_css_safe($view->field[$field]->field) . '">';
if ($view->field[$field]
->label()) {
$rendered .= '<label class="view-label-' . views_css_safe($view->field[$field]->field) . '">';
$rendered .= $view->field[$field]
->label() . ':';
$rendered .= '</label>';
}
$rendered .= '<div class="views-content-' . views_css_safe($view->field[$field]->field) . '">';
$rendered .= $view->style_plugin->rendered_fields[$count][$field];
$rendered .= '</div>';
$rendered .= '</div>';
}
}
}
else {
$rendered = node_view(node_load($node->nid), $teaser, FALSE, FALSE);
}
$output .= theme('views_slideshow_thumbnailhover_no_display_teaser', $rendered, $vss_id, $count);
}
$output .= "</div>";
return $output;
}