function theme_gallery_assist_item in Gallery Assist 6
Theme the output of a singel item.
1 theme call to theme_gallery_assist_item()
- gallery_assist_display_item_default in ./
gallery_assist.module - Build the output to display each gallery image. Call the own pager and the theme.
File
- ./
gallery_assist.module, line 4118 - Drupal content type with gallery functionality.
Code
function theme_gallery_assist_item($item = array()) {
$output .= ' <div class="clear-block gallery-assist-item-container">' . "\n";
$output .= ' <div id="node-' . $item->nid . '" class="node">' . "\n";
if ($item->submitted) {
$output .= ' <span class="submitted">' . $item->submitted . '</span>' . "\n";
}
$output .= ' <div class="clear-block">' . $item->links . '</div>' . "\n";
$output .= ' <div class="content clear-block">' . "\n";
if ($item->top == 1 || $item->top == 3) {
$output .= ' <div id="ga-pager" class="' . $item->nodetype . ' ga-pager clear-block">' . $item->pager . '</div>' . "\n";
}
$output .= ' <div id="ga-image-display" class="' . $item->nodetype . ' ga-image-display" style="' . $item->size_parameters . ';' . $item->extra_styles . $item->img_extra_styles . '">' . "\n";
$output .= $_GET['links'] == 'on' ? $item->adm_link : '';
$output .= $item->img;
$output .= '</div>';
if ($item->top == 0 || $item->top == 3) {
$output .= ' <div id="ga-pager" class="' . $item->nodetype . ' ga-pager clear-block">' . $item->pager . '</div>' . "\n";
}
$output .= empty($item->copyright) ? '' : ' <div id="gallery-item-copyright" class="' . $item->nodetype . ' gallery-item-copyright" style="' . $item->boxes_width . ';' . $item->extra_styles . '">© ' . $item->copyright . '</div>' . "\n";
if ($item->ptitle) {
$output .= ' <div id="gallery-item-caption-title" class="' . $item->nodetype . ' gallery-item-caption-title" style="' . $item->boxes_width . ';' . $item->extra_styles . '">' . $item->ptitle . '</div>' . "\n";
}
if ($item->pdescription) {
$output .= ' <div id="gallery-item-caption-text" class="' . $item->nodetype . ' gallery-item-caption-text" style="' . $item->boxes_width . ';' . $item->extra_styles . '">' . $item->pdescription . '</div>' . "\n";
}
if ($item->allow_download == 1) {
$output .= ' <div id="gallery-item-download-link" class="' . $item->nodetype . ' gallery-item-download-link" style="' . $item->boxes_width . ';' . $item->extra_styles . '"><a href="' . $item->download_path . '">Download</a></div>' . "\n";
}
$output .= ' </div>' . "\n";
$output .= ' </div>' . "\n";
$output .= ' </div>' . "\n";
return $output;
}