Commit 33c57161 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fixed the gallery template so that the labels not being there doesn't

cause misalignment of the images. Also triggered an upgrade to re-install
the template
parent 7934bfd9
......@@ -218,6 +218,12 @@ function xmldb_core_upgrade($oldversion=0) {
insert_record('event_type', (object)array('name' => 'deleteartefact'));
}
if ($oldversion < 2007021600) {
require_once('template.php');
$template = template_parse('gallery');
upgrade_template('gallery', $template);
}
return $status;
}
......
......@@ -3,9 +3,13 @@
}
.gallery_container td {
padding:20px;
padding: 20px;
}
.gallery_container td div {
padding: 0;
margin: 0;
}
.gallery_title {
padding-bottom:50px;
}
\ No newline at end of file
}
......@@ -6,47 +6,31 @@
</td>
</tr>
<tr>
<td>
{{block type="artefact" id="tpl_image1" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label1"}}
</td>
<td>
{{block type="artefact" id="tpl_image2" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label2"}}
</td>
<td>
{{block type="artefact" id="tpl_image3" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label3"}}
</td>
<td>
{{block type="artefact" id="tpl_image4" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label4"}}
</td>
<td>
{{block type="artefact" id="tpl_image5" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label5"}}
</td>
<td>{{block type="artefact" id="tpl_image1" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
<td>{{block type="artefact" id="tpl_image2" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
<td>{{block type="artefact" id="tpl_image3" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
<td>{{block type="artefact" id="tpl_image4" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
<td>{{block type="artefact" id="tpl_image5" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
</tr>
<tr>
<td>
{{block type="artefact" id="tpl_image6" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label6"}}
</td>
<td>
{{block type="artefact" id="tpl_image7" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label7"}}
</td>
<td>
{{block type="artefact" id="tpl_image8" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label8"}}
</td>
<td>
{{block type="artefact" id="tpl_image9" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label9"}}
</td>
<td>
{{block type="artefact" id="tpl_image10" artefacttype="image" width="100" height="100" format="renderfull"}}<br>
{{block type="label" id="tpl_label10"}}
</td>
<td>{{block type="label" id="tpl_label1"}}</td>
<td>{{block type="label" id="tpl_label2"}}</td>
<td>{{block type="label" id="tpl_label3"}}</td>
<td>{{block type="label" id="tpl_label4"}}</td>
<td>{{block type="label" id="tpl_label5"}}</td>
</tr>
<tr>
<td>{{block type="artefact" id="tpl_image6" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
<td>{{block type="artefact" id="tpl_image7" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
<td>{{block type="artefact" id="tpl_image8" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
<td>{{block type="artefact" id="tpl_image9" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
<td>{{block type="artefact" id="tpl_image10" artefacttype="image" width="100" height="100" format="renderfull"}}</td>
</tr>
<tr>
<td>{{block type="label" id="tpl_label6"}}</td>
<td>{{block type="label" id="tpl_label7"}}</td>
<td>{{block type="label" id="tpl_label8"}}</td>
<td>{{block type="label" id="tpl_label9"}}</td>
<td>{{block type="label" id="tpl_label10"}}</td>
</tr>
</table>
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2007020500;
$config->version = 2007021600;
$config->release = '0.7.0.dev';
$config->minupgradefrom = 2007011600;
$config->minupgraderelease = '0.4.0 (build tag BUILD_20070122)';
......
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