Changeset 854 for trunk/Modules


Ignore:
Timestamp:
Jan 19, 2016, 5:25:11 PM (8 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.
Location:
trunk/Modules
Files:
5 edited

Legend:

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

    r852 r854  
    4444    $Count = 20;
    4545    $Output = '<strong><a href="'.$this->System->Link('/forum/').'">'.T('Last forum posts').':</a></strong>';
     46    $Output .= '<div class="box">';
    4647
    4748    $Query = 'SELECT `ForumText`.`Text`, `ForumText`.`Date`, `User`.`Name` AS `UserName`, '.
     
    6061        '</tr>';
    6162    }
    62     $Output .= '</table>';
     63    $Output .= '</table></div>';
    6364    return($Output);
    6465  }
  • trunk/Modules/FrontPage/FrontPage.php

    r850 r854  
    8181
    8282    $Output .= ''.
    83       '<table class="Home"><tr><td colspan="2">'.$this->ShowWelcome().
    84       '</td></tr>';
    85     $Output .= '<tr><td colspan="3"><h3><a href="'.$this->System->Link('/download/').'">'.T('Download files').'</a></h3></td></tr>';
     83      '<div class="Home">'.$this->ShowWelcome().
     84      '</div>';
     85    $Output .= '<div><h3><a href="'.$this->System->Link('/download/').'">'.T('Download files').'</a></h3></div>';
    8686
    87     $Output .= '<tr>'.
    88       '<td class="news-box">'.$this->System->ModuleManager->Modules['News']->ShowBox().'</td>'.
    89       '<td class="SideBox">'.$this->System->ModuleManager->Modules['ShoutBox']->ShowBox().'</td>'.
    90       '</tr></table>'.
    91       '<table class="Home"><tr>'.
    92       '<td class="news-box">'.$this->System->ModuleManager->Modules['Forum']->ShowBox().'</td>'.
    93       '<td class="SideBox">'.$this->System->ModuleManager->Modules['Translation']->ShowBox().'</td>'.
    94       '</tr></table>';
     87    $Output .=
     88      '<div class="box-left">'.$this->System->ModuleManager->Modules['News']->ShowBox().'</div>'.
     89      '<div class="box-right">'.$this->System->ModuleManager->Modules['ShoutBox']->ShowBox().'</div>'.
     90      '<div class="box-left">'.$this->System->ModuleManager->Modules['Forum']->ShowBox().'</div>'.
     91      '<div class="box-right">'.$this->System->ModuleManager->Modules['Translation']->ShowBox().'</div>';
    9592     return($Output);
    9693  }
  • 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  }
  • trunk/Modules/ShoutBox/ShoutBox.php

    r851 r854  
    3030
    3131    if($this->System->User->Licence(LICENCE_USER))
    32       $Output .= ' <a href="'.$this->System->Link('/shoutbox/?a=add').'">'.T('Add').'</a>';
    33     $Output .= '<div class="box"><table>';
     32      $Output .= '<a href="'.$this->System->Link('/shoutbox/?a=add').'">'.T('Add').'</a>';
     33    $Output .= '<div class="box"><div class="shoutbox"><table>';
    3434    $DbResult = $this->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 30');
    3535    while($Line = $DbResult->fetch_assoc())
    3636      $Output .= '<tr><td><strong>'.$Line['UserName'].'</strong>: '.MakeActiveLinks($Line['Text']).'</td></tr>';
    37     $Output .= '</table></div>';
     37    $Output .= '</table></div></div>';
    3838    return($Output);
    3939  }
  • trunk/Modules/Translation/Translation.php

    r850 r854  
    9999    $Count = 40;
    100100    $Output = '<strong>'.T('Last translated').':</strong>';
     101    $Output .= '<div class="box">';
    101102
    102103    $GroupListQuery = 'SELECT `Group`.* FROM `Group`';
     
    131132      $Output .= '</table>';
    132133    }
     134    $Output .= '</div>';
    133135    return($Output);
    134136  }
Note: See TracChangeset for help on using the changeset viewer.