web/select.php
changeset 549 623960a74176
parent 547 128fd22a8863
child 633 dfcbb21a8eac
--- a/web/select.php	Mon Mar 19 12:14:47 2012 +0100
+++ b/web/select.php	Mon Mar 19 12:46:43 2012 +0100
@@ -124,7 +124,40 @@
                         </li>
                     </ul>
                 </div>
-            <?php display_archives_list($config['event_list'], "archive_box_3", URL_ROOT, dirname(__FILE__)."/", $translate); ?>
+<?php
+    $basepath = dirname(__FILE__)."/";
+    foreach ($config['event_list'] as $i => $rep) {
+        
+        include("$basepath$rep/config.php");
+        
+        set_config_translations($config, $translate);
+            
+        $tail_img = $translate->_('config__archive_img');
+        if(is_array($tail_img)) {
+            $tail_img = $tail_img[0];
+        }
+        $archive_title = $translate->_('config__archive_title');
+        if(is_array($archive_title)) {
+            $archive_title = $archive_title[0];
+        }
+        $archive_description = $translate->_('config__archive_description');
+        if(is_array($archive_description)) {
+            $archive_description = $archive_description[0];
+        }
+    
+?>
+            <div class="archivesVideoBox">
+                <a href="<?php echo URL_ROOT . $rep ?>">
+                    <img src="<?php echo URL_ROOT . "$rep/$tail_img" ?>" width="270" height="150"/>
+                </a>
+                <h3 class="AVBtitle"><?php echo $archive_title ?></h3>
+                <p class="AVBtext"><?php echo $archive_description; ?></p>
+            </div>
+<?php
+
+    }
+
+ ?>
             </div>
             <div class="footer">
                 <hr />