function theme_juicebox_debug_markup in Juicebox HTML5 Responsive Image Galleries 7.2
Returns HTML for the alternative "debug" display of a Juicebox gallery.
Parameters
array $variables: An associative array containing variables used to render this HTML.
File
- themes/
juicebox.theme.inc, line 98 - Theme related functions for processing output related to Juicebox galleries.
Code
function theme_juicebox_debug_markup(&$variables) {
$settings = $variables['settings'];
$output = '';
// Display a structured list of each debug detail.
$output .= '<div class="' . trim('juicebox-parent ' . $settings['custom_parent_classes']) . '">' . "\n";
$output .= render($variables['c_links']);
$output .= '<div id="' . $variables['gallery_id'] . '" class="juicebox-container juicebox-placeholder juicebox-debug-info">' . "\n";
$output .= '<p>' . t('Showing debugging information in place of gallery.') . '</p>';
$output .= '<dl>';
$output .= '<dt>' . t('Gallery ID') . '</dt>';
$output .= '<dd>' . $variables['gallery_id'] . '</dd>';
$output .= '<dt>' . t('XML URL') . '</dt>';
$output .= '<dd>' . $variables['xml_link'] . '</dd>';
$output .= '<dt>' . t('Juicebox Javascript Library') . '</dt>';
$output .= '<dd>' . $variables['lib_status'] . '</dd>';
$output .= '<dt>' . t('Image Count') . '</dt>';
$output .= '<dd>' . $variables['image_count'] . ' ' . t('images') . '</dd>';
$output .= '<dt>' . t('Juicebox Gallery Options') . '</dt>';
$output .= '<dd>' . theme('item_list', array(
'items' => $variables['option_list'],
)) . '</dd>';
$output .= '</dl>';
$output .= '</div></div>';
return $output;
}