function theme_panopoly_magic_preview_link in Panopoly 7
Returns HTML for a preview link.
1 theme call to theme_panopoly_magic_preview_link()
- panopoly_magic_process_panels_add_content_modal in modules/
panopoly/ panopoly_magic/ panopoly_magic.module - Process the panels_add_content_modal() to adjust the markup to present the preview
File
- modules/
panopoly/ panopoly_magic/ panopoly_magic.module, line 1842
Code
function theme_panopoly_magic_preview_link($vars) {
// Since we're a theme function and not a template, template_preprocess()
// won't run and we have to deal with 'classes_array' directly.
$classes = implode(' ', $vars['classes_array']);
$html = '';
$html .= '<div class="' . $classes . '">';
$html .= $vars['preview_link'];
$html .= $vars['add_link'];
if (!empty($vars['description'])) {
$html .= '<div class="help-block">' . $vars['description'] . '</div>';
}
$html .= '</div>';
return $html;
}