quant.theme.inc in Quant 7
Theme wrappers
File
quant.theme.incView source
<?php
/**
* @file
* Theme wrappers
*/
/**
* Theme wrapper for the quant analytics page
*
* @param $form
* The datepicker form, in HTML.
* @param $charts
* An array of generated charts.
*/
function theme_quant_page($vars) {
$content = '';
$content .= $vars['form'];
if ($vars['charts']) {
foreach ($vars['charts'] as $chart) {
$content .= $chart;
}
}
return '<div id="quant-page">' . $content . '</div>';
}
/**
* Theme wrapper for quant_time_form()
*/
function theme_quant_time_form($vars) {
$form = $vars['form'];
$output = '';
$output .= '<fieldset>';
$output .= '<div class="description">';
$output .= drupal_render($form['message']);
$output .= '</div>';
$output .= '<div class="quant-option-row">';
$output .= drupal_render($form['option']['period']);
$output .= drupal_render($form['period']);
$output .= '</div>';
$output .= '<div class="quant-option-row">';
$output .= drupal_render($form['option']['custom']);
$output .= '<span class="description">' . t('From:') . '</span>';
$output .= drupal_render($form['custom_from']);
$output .= '<span class="description">' . t('To:') . '</span>';
$output .= drupal_render($form['custom_to']);
$output .= '<span class="description"><i>' . t('Format !format', array(
'!format' => 'MM/DD/YYYY',
)) . '</i></span>';
$output .= '</div>';
$output .= drupal_render_children($form);
$output .= '</fieldset>';
return $output;
}
Functions
Name![]() |
Description |
---|---|
theme_quant_page | Theme wrapper for the quant analytics page |
theme_quant_time_form | Theme wrapper for quant_time_form() |