Changeset 567 in t29-www for lib


Ignore:
Timestamp:
Jun 5, 2014, 11:54:38 PM (10 years ago)
Author:
sven
Message:

Den Footer implementiert, der seit langem unter das Design
gehört.

Ausserdem: Beam-Navigation angetestet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/template.php

    r561 r567  
    399399                $show_rel_prev = in_array('show-rel-prev', $this->current_link_classes);
    400400               
     401                // Footer-String, um Footer je nach Footer-Menue "da" oder "nicht da" einbinden zu koennen
     402                $footer_text = <<<FOOTER
     403               
     404FOOTER;
    401405        ?>
    402406    <footer class="in-sheet <?php if(!$print_footer_menu) print "empty-footer"; ?>">
     
    404408                        <!-- hier wird nav.side die Liste per JS reinkopiert -->
    405409                </nav>
    406                 <nav class="rel clearfix">
     410                <nav class="rel clearfix <?php if(!$print_footer_menu) print "empty"; ?>">
    407411                <ul>
    408412                        <?php
     
    424428                </ul>
    425429                </nav>
     430                <?php
     431                        // packe Bigfooter bei leerem Footer-Menue in footer.in-sheet
     432                        if(!$print_footer_menu)
     433                                $this->print_footer_text();
     434                ?>
    426435                <div class="right">
    427436                        <!-- text der rechts unten steht -->
     
    430439  </div> <!--! end of #container -->
    431440  <footer class="attached">
    432     <div class="legacy"><?php $p('footer-legacy-text'); ?></div>
    433         <!--
    434         <ul class="clearfix">
    435         <li class="logo">
    436                 <a href="<?php $href($p('footer-legal-file')); ?>" class="img" title="technikum29 Logo">Logo</a>
    437                 <p><?php $p('footer-copyright-tag'); ?>
    438                    <br><?php printf('<a href="%s">%s</a>', $href($_('footer-legal-file')), $_('footer-legal-link')); ?>
    439                 </p>
    440         </li>
    441         <li class="copy">
    442                 <a href="<?php $href($p('footer-legal-file')); ?>#image-copyright" class="img">CC</a>
    443                 <p>Viele Bilder können unter einer <a href="<?php $href($p('footer-legal-file')); ?>#image-copyright">CreativeCommons-Lizenz</a>
    444                    verwendet werden. <a href="<?php $href($p('footer-legal-file')); ?>#image-copyright">Erkundigen Sie sich</a>.</p>
    445         </li>
    446         </ul>
    447         -->
     441    <!--<div class="legacy"><?php $p('footer-legacy-text'); ?></div>-->
    448442        <?php
     443                // packe Bigfooter bei gefuelltem footer.in-sheet nach footer.attached.
     444                if($print_footer_menu)
     445                        $this->print_footer_text();
     446       
    449447                // pending log messages
    450448                if(!$this->log->is_empty()) {
     
    455453        ?>
    456454  </footer>
    457 </div><!-- end of div id="footer-background-container" helper -->
     455<?php /*</div><!-- end of div id="footer-background-container" helper -->*/ // seems misplaced ?>
    458456
    459457  <?php /* JavaScript at the bottom for fast page loading */ ?>
     
    474472        } // function print_footer()
    475473       
     474        /**
     475         * Den "Bigfooter"-Text ausgeben.
     476         * Hilfsfunktion fuer print_footer().
     477         * (Grund: Implementierung als langer String in print_footer() ist unbequem)
     478         **/
     479        private function print_footer_text() {
     480                $p = $this->msg->get_shorthand_printer(); // t29Messages gettext printer
     481                $_ = $this->msg->get_shorthand_returner(); // t29Messages gettext
     482                $href = $this->conf['host']->get_shorthand_link_returner(); // t29Host link rewriter
     483               
     484                ?><div class="bigfooter">
     485                    <ul class="clearfix">
     486                        <li class="logo"><a href="<?php print $href($_('footer-legal-file')); ?>" class="clearfix"><!-- FIXME: clearfix should be semantically performed -->
     487                                <i title="technikum29 Logo">Logo</i>
     488                                <span class="p"><?php $p('footer-copyright-tag'); ?>
     489                                <br><u><?php $p('footer-legal-link'); ?></u>
     490                                </span>
     491                        </a></li>
     492                        <li class="copy"><a href="<?php print $href($_('footer-legal-file')); ?>#image-copyright" class="clearfix">
     493                                <i>CC</i>
     494                                <span class="p">Viele Bilder können unter einer <u>CreativeCommons-Lizenz</u>
     495                                verwendet werden. <u>Erkundigen Sie sich</u>.</span>
     496                        </a></li>
     497                    </ul>
     498                </div><?php
     499        }
     500       
    476501        // Hilfsfunktionen
    477502        private function relational_link_to_string($a) {
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