Skip to content

Commit d31a803

Browse files
authored
Merge pull request #159 from CCPBioSim/software
place call to external data at the top of file
2 parents 2572c64 + c88d576 commit d31a803

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

  • pkg_ccpbiosim/constituents/com_ccpbiosim/site/tmpl/workshop

pkg_ccpbiosim/constituents/com_ccpbiosim/site/tmpl/workshop/default.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@
2020
$wa = $this->document->getWebAssetManager();
2121
$wa->useStyle('com_ccpbiosim.site')
2222
->useScript('com_ccpbiosim.site');
23-
?>
24-
<?php if ($this->params->get('show_page_heading')) : ?>
25-
<div class="page-header">
26-
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
27-
</div>
28-
<?php endif; ?>
29-
<p>We provide access to training courses that have been previously run as instructor led workshops. These courses are made available for everyone to learn about topics from the simple to the more advanced. We have categorised these below, please report any problems using our <a href="/contact">contact</a> form.</p>
30-
<?php
3123
$json = "https://ccpbiosim.github.io/assets.json";
3224
$data = json_decode(file_get_contents($json), true);
3325
$data_sorted = array("coding" => array("catname" => "Courses for Programming"),
@@ -39,6 +31,12 @@
3931
$data_sorted[$coursedata["category"]]["courses"][$course] = $coursedata;
4032
}
4133
?>
34+
<?php if ($this->params->get('show_page_heading')) : ?>
35+
<div class="page-header">
36+
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
37+
</div>
38+
<?php endif; ?>
39+
<p>We provide access to training courses that have been previously run as instructor led workshops. These courses are made available for everyone to learn about topics from the simple to the more advanced. We have categorised these below, please report any problems using our <a href="/contact">contact</a> form.</p>
4240
<div class="container my-5">
4341
<div class="accordion" id="courseAccordion">
4442
<?php foreach ($data_sorted as $category => $categorydata) : ?>

0 commit comments

Comments
 (0)