Changeset 39


Ignore:
Timestamp:
May 5, 2019, 5:28:21 PM (5 years ago)
Author:
chronos
Message:
  • Removed: Old code for showing HTML page.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config/Config.sample.php

    r37 r39  
    99$Config['Encoding'] = 'utf-8';
    1010$Config['BaseURL'] = '';
    11 $Config['Contact'] = 'email@localhost';
    1211$Config['ItemsPerPage'] = 30;
    1312$Config['VisiblePagingItems'] = 5;
  • trunk/View.php

    r37 r39  
    8585    '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'.
    8686    '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">'.
    87     '<head><link rel="stylesheet" href="'.$this->System->Link('/style/').$this->Style.'/style.css" type="text/css" media="all" />'.
    88     '<meta http-equiv="content-type" content="application/xhtml+xml; charset='.$this->Encoding.'" />'.
     87    '<head>'.
     88    '<link rel="stylesheet" href="'.$this->System->Link('/style/').$this->Style.'/style.css" type="text/css" media="all" />';
     89    $Output .= '<link rel="alternate" title="Taneční seznamka" href="'.
     90      $this->System->Link('/seznamka/rss/').'" type="application/rss+xml" />';
     91    $Output .= '<meta http-equiv="content-type" content="application/xhtml+xml; charset='.$this->Encoding.'" />'.
    8992    '<meta name="viewport" content="width=device-width, initial-scale=1">'.
    9093    '<script type="text/javascript" src="'.$this->System->Link('/style/').$this->Style.'/jquery.js"></script>'.
     
    123126      $Output .= '<div class="Footer">'.
    124127      '<i>';
    125       $Output .= ' Správa webu: '.$this->System->Config['Web']['Admin'].' ';
    126128      $Output .= ' Kontakt: <a href="mailto:'.$this->System->Config['Web']['AdminEmail'].'">'.$this->System->Config['Web']['AdminEmail'].'</a> ';
    127129      $Output .= ' <a href="https://app.zdechov.net/tanec/">Zdrojový kód</a> ';
  • trunk/index.php

    r37 r39  
    7171  }
    7272 
    73   function GetOutput($Content)
    74   {
    75     global $Config;
    76 
    77     $Output = '<?xml version="1.0" encoding="'.$this->Config['Encoding'].'"?>'."\n".
    78       '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'.
    79       '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">'.
    80       '<head>'.
    81       '<link rel="stylesheet" href="'.$this->Link('/style.css').'" type="text/css" media="all" />'.
    82       '<meta http-equiv="content-type" content="application/xhtml+xml; charset='.$this->Config['Encoding'].'" />'.
    83       '<script type="text/javascript" src="'.$this->Link('/jquery.js').'"></script>';
    84     $Output .= '<link rel="alternate" title="Taneční seznamka" href="'.
    85       $this->Link('/seznamka/rss/').'" type="application/rss+xml" />';
    86     $Output .= '<title>'.$this->Title.'</title>'.
    87       '</head><body>';
    88     $Output .= $Content;
    89     $Output .= '<div class="footer">Kontakt: <a href="mailto:'.$Config['Contact'].'">'.$Config['Contact'].'</a> '.
    90        '<a href="https://app.zdechov.net/tanec/">Zdrojový kód</a></div>';
    91     $Output .= '</body></html>';
    92     return($Output);
    93   } 
    94 
    9573  function RegisterPage($Path, $Handler)
    9674  {
Note: See TracChangeset for help on using the changeset viewer.