Fresh Site Template Files
- You'll need to have PHP in order to make this site work. You can either use a web server like the PSU web space or get PHP running on your own system by enabling it in MacOS or installing MAMP.
- File sizes can get out of hand. Make sure that everybody is submitting image files that are suitably compressed and at the exact dimensions you need for your design.
- Please delete any files you see that you are not using, including old images and scripts. We can get them back if you accidentally delete something you're not supposed to.
This is the home page for the site. It's mostly just a skeleton that uses the include function (eg.
include 'header.php';) in order to load up individual parts of the site from other files. The include function essentially loads the content of whatever file is mentioned and inserts it into that spot when a viewer views the page.
There is not much to change here but it's important to update all term-specific info in this file before launching.
Header has become a weird file that basically just holds meta tags and links to CSS/JS. I'm not sure why it was done this way. ¯\(ツ)/¯
This file essentially will load up a specific student page based on whoever's name is in the browser URL (as represented by
$_GET["name"]). It will look through all of the students in the 'students' folder and find the first folder that matches that name. You may need to copy and paste some code near line 28 to include your term's folder in the search.
Every terms' students need to put all of their work into a folder named
firstname-lastname, all lower case and no special characters. All of these folders should have an index.php file, as well as all necessary images to show that student's work. See previous terms for examples.
Each term needs a grad-tiles.php file to create the grid of student images ont he home page and in the archive. It needs to be updated with all of this term's students, but it's important you don't change the structure of this file so that it maintains consistency with previous terms.