Changeset 700 in t29-www for en


Ignore:
Timestamp:
Dec 30, 2014, 9:09:50 AM (5 years ago)
Author:
heribert
Message:

mal schauen, ob´s funktioniert

Location:
en
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • en/navigation.xml

    r663 r700  
    1515<ul class="u1">
    1616        <li><a seiten_id="startseite" href="/en/">Start</a></li>
    17         <li class="has-submenu"><a seiten_id="news" href="/en/news.php">News</a>
    18                 <ul class="u2 rich-text">
     17        <li><a seiten_id="news" href="/en/news.php">News</a>
     18                <ul class="u2 rich-text hidden">
    1919                        <!-- magic comment (do not replace): -->
    2020                        <!--# INSERT_NEWS #-->
  • en/news.php

    r698 r700  
    55        $menu_version = 2;
    66
    7         $neues_menu = <<< MENU
    8        
    9 - datum: July 2014
    10   titel: "Historic workshop device"
    11   text: "<em>A historic 5-bit character decoder</em> from the university. Here it is used as a decryption engine in our experimental workshop."
    12   bild: /shared/photos/kommunikationstechnik/telegrafenalphabet.jpg
    13   link: /en/communication/fax.php#decoder
    14 
    15 - datum: June 2014
    16   titel: "Art installation with cards"
    17   text:  "Our Cardpunch IBM029 were on jorney: For some time, it were part of an art installation in Tübingen (Baden-Wüttemberg, near Stuttgart)."
    18   bild: /shared/photos/rechnertechnik/tuebingen.jpg
    19   link: http://www.kunst-stoff.fr/tresorraum/wir-die-iborgs/
    20 
    21 - datum: May 2014
    22   titel: "Facit papertape device"
    23   untertitel: "IBM1130"
    24   text: "Periphery of the 1130: Facit tape devices"
    25   bild: /shared/photos/rechnertechnik/facit4000.jpg
    26   link: /en/computer/ibm1130.php#1130
    27 
    28 - datum: January 2014
    29   titel: "IBM 1130"
    30   text: "A new callenge: IBM 1130 Mainframe"
    31   bild: /shared/photos/rechnertechnik/ibm-1130.jpg
    32   link: /en/computer/ibm1130.php#ibm1130
    33 
    34 - datum: December 2013
    35   titel: Reproducing punch
    36   untertitel: A new IBM device
    37   text: "Recruit: A large IBM reproducing punch from the early days of computing"
    38   bild: /shared/photos/rechnertechnik/ibm-514.jpg
    39   link: /en/computer/punchcard.php#reproducing
    40 
    41 - datum: September 2013
    42   titel: "Gamma 55 is up und running"
    43   text: "Success! The BULL GAMMA 55 is up and running! An historical moment."
    44   bild: /shared/photos/rechnertechnik/leser617.jpg
    45   link: /en/computer/gamma55.php#ge-55
    46 
    47 MENU;
    48 // ende der menue-Eintraege
    49 
     7        // muss noch entfernt werden:
     8        $neues_menu = "";
    509        if(!require("../lib/news.php")) return;
    5110?>
     
    5615       posts are on top.</p>
    5716
    58 <!--
    59   ACHTUNG, Testlauf im ENGLISCHEN:
    60 
    61   Der Inhalt der Neuigkeiten-Datei im englischen ist nun nicht mehr "doppelt-gemoppelt", sondern
    62   wird nur noch einmal gewartet, und zwar in dem obigen Auflistungsbereich. Im Bereich hier unten
    63   wird der obige Inhalt nur noch in die gewohnte HTML-Formatierung gebracht.
    64 
    65   - Sven, 28. August 2014
    66 -->
    67 
    68 <ul class="news-feed news-ng">
    69         <?php /* soll funktion werden in news.php */
    70 //function print_newsfeed() {
    71 //      global $neues_menu, $lib;
    72         require $lib.'/spyc.php';
    73         $data = Spyc::YAMLLoad($neues_menu);
    74         $fields = array('titel', 'datum', 'text');
    75 
    76         $news_ul_content = '';
    77         foreach($data as $e) {
    78                 if(!array_reduce(array_map(function($x) use ($fields,$e){ return isset($e[$x]); }, $fields),
    79                                 function($a,$b){ return $a && $b;}, true)) {
    80                         print "<li><a href='#'>Fehler in Formatierung!<em>Dieser Menüeintrag ist falsch formatiert</em></a></li>";
    81                         $this->log->WARN("<h5>Neuigkeiten-Liste: Fehler in Formatierung</h5><p>Ein Eintrag in der Neuigkeisten-Liste ist falsch formatiert. Ich erwarte zu jedem Menüeintrag die Felder ".implode(", ", $fields).". Eine der Angaben fehlt oder ist fehlerhaft formatiert: <pre>".var_export($e, true)."</pre>");
    82                 } else {
    83                         ?><li><a href="<?php print isset($e['link']) ? $e['link'] : '#'; ?>">
    84                                 <h3><?php print $e['datum']; ?></h3>
    85                                 <?php print isset($e['bild']) ? "<img src='$e[bild]' alt='$e[titel]'>" : ''; ?>
    86                                 <?php print $e['text']; ?>
    87                         </a></li>
    88                         <?php
    89                 }
    90         }
    91 //}
    92 
    93 
    94 //       print_newsfeed();
    95 ?>
     17           <ul class="news-feed news-ng">
     18        <li><a href="/en/communication/fax.php#decoder">
     19                                <h3>July 2014</h3>
     20                                <img src='/shared/photos/kommunikationstechnik/telegrafenalphabet.jpg' alt='Historic workshop device'>                          <em>A historic 5-bit character decoder</em> from the university. Here it is used as a decryption engine in our experimental workshop.                   </a></li>
     21                        <li><a href="http://www.kunst-stoff.fr/tresorraum/wir-die-iborgs/">
     22                                <h3>June 2014</h3>
     23                                <img src='/shared/photos/rechnertechnik/tuebingen.jpg' alt='Art installation with cards'>                               Our Cardpunch IBM029 were on jorney: For some time, it were part of an art installation in Tübingen (Baden-Wüttemberg, near Stuttgart).                 </a></li>
     24                        <li><a href="/en/computer/ibm1130.php#1130">
     25                                <h3>May 2014</h3>
     26                                <img src='/shared/photos/rechnertechnik/facit4000.jpg' alt='Facit papertape device'>                            Periphery of the 1130: Facit tape devices                       </a></li>
     27                        <li><a href="/en/computer/ibm1130.php#ibm1130">
     28                                <h3>January 2014</h3>
     29                                <img src='/shared/photos/rechnertechnik/ibm-1130.jpg' alt='IBM 1130'>                           A new callenge: IBM 1130 Mainframe                      </a></li>
     30                        <li><a href="/en/computer/punchcard.php#reproducing">
     31                                <h3>December 2013</h3>
     32                                <img src='/shared/photos/rechnertechnik/ibm-514.jpg' alt='Reproducing punch'>                           Recruit: A large IBM reproducing punch from the early days of computing                 </a></li>
     33                        <li><a href="/en/computer/gamma55.php#ge-55">
     34                                <h3>September 2013</h3>
     35                                <img src='/shared/photos/rechnertechnik/leser617.jpg' alt='Gamma 55 is up und running'>                         Success! The BULL GAMMA 55 is up and running! An historical moment.                     </a></li>
     36                        </ul>
    9637</ul>
    9738
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License