Commit f41919b7 authored by doka's avatar doka Committed by jcnventura

Issue #1175194 by doka: Simply use all images in slideshow dir

parent e083beb1
......@@ -188,9 +188,15 @@
<?php endif; ?>
<?php if (!$page['slideshow']) : ?>
<div class="slideshow">
<img src="<?php print $base_path . $directory; ?>/images/slideshows/sea.jpg" width="950" height="355" alt="slideshow 1"/>
<img src="<?php print $base_path . $directory; ?>/images/slideshows/noon.jpg" width="950" height="355" alt="slideshow 2"/>
<img src="<?php print $base_path . $directory; ?>/images/slideshows/snow.jpg" width="950" height="355" alt="slideshow 3"/>
<!-- GP start header rotation -->
<?php
$mask = '/\.(?:jp[e]?g|gif|png)$/i';
$files = file_scan_directory(drupal_get_path('theme', 'danland') . '/images/slideshows', $mask);
foreach ($files as $filename => $data) {
?>
<img src="<?php print $filename; ?>" width="950" height="355" alt="slideshow"/>
<?php } ?>
<!-- end header rotation -->
</div> <!-- end slideshow -->
<?php endif; ?>
</div>
......@@ -345,4 +351,4 @@
<div style="clear:both"></div>
<div id="notice"><p>Theme by <a href="http://www.danetsoft.com">Danetsoft</a> and <a href="http://www.danpros.com">Danang Probo Sayekti</a> inspired by <a href="http://www.maksimer.no">Maksimer</a></p></div>
</div>
\ No newline at end of file
</div>
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