Commit 30890cd0 authored by metzlerd's avatar metzlerd
Browse files

Reworked the doclinks theming.

parent eea1828f
......@@ -834,6 +834,9 @@ class FrxEditor {
$this->field_ids = array();
$content = array();
$format = $this->desc['format'];
if ($format == 'web' && $print) {
drupal_add_css(drupal_get_path('module', 'forena') . '/forena.css');
}
$r = $this->frxReport;
// Determine the data to get.
if (!$parms) {
......@@ -1011,10 +1014,13 @@ class FrxEditor {
$r = $this->frxReport;
foreach ($doctypes as $ext) {
if (array_search($ext, $r->formats) !== FALSE) {
$links[] = array('title' => $ext, 'href' => $this->report_link . ".$ext");
$links[] = array('title' => strtoupper($ext), 'href' => $this->report_link . ".$ext");
}
}
if ($links) return array('#theme' => 'links', '#links' => $links);
if ($links) return array(
'#theme' => 'links',
'#links' => $links,
'#attributes' => array('class' => array('forena-doclinks')));
return '';
}
......
div.doclinks {
float: right;
ul.forena-doclinks li {
display: inline;
margin-right: 0.5em;
padding-left: 0;
}
a.doclinks {
padding-left: 10px;
ul.forena-doclinks {
margin-left: 0;
}
.paging_full_numbers a.paginate_button,
.paging_full_numbers a.paginate_active {
border: 1px solid;
......
......@@ -1457,9 +1457,6 @@ function forena_theme() {
'file' => 'forena.report.inc',
'render element' => 'form',
),
'forena_doclinks' => array(
'render element' => 'links',
),
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment