Articles to know how use and modify new-website.
|
|
|
| ||||
Articles to know how use and modify new-website.
Only few prerequisites are needed to use new-website:
- Clone a git repository
- Use a PHP server like Apache
- Write HTML and call PHP functions
From the git repository of new-website, you can clone the repository:
git clone https://gitorious.org/new-website/new-website.git |
/var/www
or /var/www/html
for Apache2 on GNU/Linux). The user can modify content of data directory. If the modification of files in other directories is needed, you should consider contribute to new-website.
The data_demo directory contains data of new-website. These data are ignored if is not empty data directory.
files and files_demo directories work like data and data_demo directories. To share files, copy them into files/section/article/file.ext
or files/section/file.ext
and get a link with a PHP function: local_link_file('section', 'article', 'file.ext')
or local_link_file('section', 'file.ext')
.
The img directory contains all icons and logos.
The include directory and index.php contain the struture of the website: header, menu, footer, ...
The lib directory contains useful PHP functions.
![]() |
![]() |
![]() |