Changeset 854 for trunk/Modules/News


Ignore:
Timestamp:
Jan 19, 2016, 5:25:11 PM (9 years ago)
Author:
chronos
Message:
  • Added: Responsive web layout. Two column layout is switched for single column for devices with smaller display.
  • Modified: All four boxes at front page made as oveflowing defined height.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/News/News.php

    r850 r854  
    2929  function ShowBox()
    3030  {
    31     $Count = 6;
     31    $Count = 10;
    3232    $Output = '<strong><a href="'.$this->System->Link('/news/').'">'.T('News').':</a></strong>'.
    33     '<div class="NewsBox">';
     33    '<div class="box"><div class="NewsBox">';
    3434    $DbResult = $this->Database->query('SELECT `News`.`Time`, `User`.`Name`, `News`.`Text`,`News`.`Title`, `News`.`Id` '.
    3535      ' FROM `News` JOIN `User` ON `User`.`ID` = `News`.`User` ORDER BY `Time` DESC LIMIT '.$Count);
     
    3737    {
    3838      $Output .= '<h4><a href="'.$this->System->Link('/news/?a=item&amp;i='.$DbRow['Id']).'">'.$DbRow['Title'].'</a> ('.HumanDate($DbRow['Time']).')</h4>'.
    39         ' <div>'.$DbRow['Text'].' ('.$DbRow['Name'].')</div>';
     39        '<div>'.$DbRow['Text'].' ('.$DbRow['Name'].')</div>';
    4040    }
    41     $Output .= '</div>';
     41    $Output .= '</div></div>';
    4242    return($Output);
    4343  }
Note: See TracChangeset for help on using the changeset viewer.