Skip to content
Permalink
Browse files

initial commit

  • Loading branch information
bpd01001 committed Jan 26, 2017
0 parents commit 154f8a5ea195b3f36e94932f7eb7a09722358d19
Showing with 13,743 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +22 −0 README.md
  3. +63 −0 theme-src/LICENSE.txt
  4. +34 −0 theme-src/README.txt
  5. +4 −0 theme-src/assets/css/font-awesome.min.css
  6. +65 −0 theme-src/assets/css/ie8.css
  7. BIN theme-src/assets/css/images/bg01.png
  8. +2,590 −0 theme-src/assets/css/main.css
  9. BIN theme-src/assets/fonts/FontAwesome.otf
  10. BIN theme-src/assets/fonts/fontawesome-webfont.eot
  11. +685 −0 theme-src/assets/fonts/fontawesome-webfont.svg
  12. BIN theme-src/assets/fonts/fontawesome-webfont.ttf
  13. BIN theme-src/assets/fonts/fontawesome-webfont.woff
  14. BIN theme-src/assets/fonts/fontawesome-webfont.woff2
  15. +96 −0 theme-src/assets/js/ie/PIE.htc
  16. +8 −0 theme-src/assets/js/ie/html5shiv.js
  17. +6 −0 theme-src/assets/js/ie/respond.min.js
  18. +2 −0 theme-src/assets/js/jquery.dropotron.min.js
  19. +5 −0 theme-src/assets/js/jquery.min.js
  20. +83 −0 theme-src/assets/js/main.js
  21. +2 −0 theme-src/assets/js/skel.min.js
  22. +587 −0 theme-src/assets/js/util.js
  23. +77 −0 theme-src/assets/sass/ie8.scss
  24. +34 −0 theme-src/assets/sass/libs/_functions.scss
  25. +56 −0 theme-src/assets/sass/libs/_mixins.scss
  26. +585 −0 theme-src/assets/sass/libs/_skel.scss
  27. +22 −0 theme-src/assets/sass/libs/_vars.scss
  28. +1,295 −0 theme-src/assets/sass/main.scss
  29. BIN theme-src/images/pic01.jpg
  30. BIN theme-src/images/pic02.jpg
  31. BIN theme-src/images/pic03.jpg
  32. BIN theme-src/images/pic04.jpg
  33. BIN theme-src/images/pic05.jpg
  34. BIN theme-src/images/pic06.jpg
  35. BIN theme-src/images/pic07.jpg
  36. +263 −0 theme-src/index.html
  37. +222 −0 theme-src/left-sidebar.html
  38. +189 −0 theme-src/no-sidebar.html
  39. +222 −0 theme-src/right-sidebar.html
  40. +74 −0 www/_partials/footer.php
  41. +5 −0 www/_partials/head.php
  42. +20 −0 www/_partials/header.php
  43. +4 −0 www/_partials/scripts.php
  44. +4 −0 www/assets/css/font-awesome.min.css
  45. +65 −0 www/assets/css/ie8.css
  46. BIN www/assets/css/images/bg01.png
  47. +2,590 −0 www/assets/css/main.css
  48. BIN www/assets/fonts/FontAwesome.otf
  49. BIN www/assets/fonts/fontawesome-webfont.eot
  50. +685 −0 www/assets/fonts/fontawesome-webfont.svg
  51. BIN www/assets/fonts/fontawesome-webfont.ttf
  52. BIN www/assets/fonts/fontawesome-webfont.woff
  53. BIN www/assets/fonts/fontawesome-webfont.woff2
  54. +96 −0 www/assets/js/ie/PIE.htc
  55. +8 −0 www/assets/js/ie/html5shiv.js
  56. +6 −0 www/assets/js/ie/respond.min.js
  57. +2 −0 www/assets/js/jquery.dropotron.min.js
  58. +5 −0 www/assets/js/jquery.min.js
  59. +83 −0 www/assets/js/main.js
  60. +2 −0 www/assets/js/skel.min.js
  61. +587 −0 www/assets/js/util.js
  62. +77 −0 www/assets/sass/ie8.scss
  63. +34 −0 www/assets/sass/libs/_functions.scss
  64. +56 −0 www/assets/sass/libs/_mixins.scss
  65. +585 −0 www/assets/sass/libs/_skel.scss
  66. +22 −0 www/assets/sass/libs/_vars.scss
  67. +1,295 −0 www/assets/sass/main.scss
  68. +53 −0 www/config.php
  69. BIN www/images/pic01.jpg
  70. BIN www/images/pic02.jpg
  71. BIN www/images/pic03.jpg
  72. BIN www/images/pic04.jpg
  73. BIN www/images/pic05.jpg
  74. BIN www/images/pic06.jpg
  75. BIN www/images/pic07.jpg
  76. +167 −0 www/index.php
@@ -0,0 +1 @@
.DS_Store
@@ -0,0 +1,22 @@
# PHP Website
This exercise allows you to practice includes, conditional logic, comparison operators and control structures.

## (Real-World) Premise
You are taking a static website and converting it to PHP. This will allow you to easily add pages and navigation by simply modifying PHP variables, instead of doing a find/replace on every page of your website.

## Getting Started
1. Clone or download this repository.
2. In your terminal, enter the `php-website` directory.
3. Run `php -S localhost:8000` to start the local webserver.

## Instructions
1. Visit http://localhost:8000/theme-src/ - This is the static HTML site. Use this for reference only.
2. In a new tab, visit http://localhost:8000/www/index.php - This is your PHP version.
3. Open `www/index.php` in your editor and include `config.php` at the top of your page.
4. Use includes to add each of the four partials where indicated.
5. Open `www/_partials/header.php` and use a `foreach` loop to output your navigation.
6. Use an `if` statement to add the `current` class to correct <li> tag.
7. Open `www/_partials/scripts.php` and use a `foreach` loop to output your scripts.
8. Duplicate `index.php` as `about.php` and `contact.php`.
9. Change the content of `about.php` to resemble `theme-src/left-sidebar.html`.
10. Change the content of `contact.php` to resemble `theme-src/right-sidebar.html`.

Large diffs are not rendered by default.

@@ -0,0 +1,34 @@
Verti by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)


A super simple + modern responsive website template. Took a slightly different direction
on the mobile version's slide out nav (floating button versus a full on titlebar).

Demo images* courtesy of Unsplash, a radtastic collection of CC0 (public domain) images
you can use for pretty much whatever.

(* = Not included)

Feedback, bug reports, and comments are not only welcome, but strongly encouraged :)

AJ
aj@lkn.io | @ajlkn


Credits:

Demo Images:
Unsplash (unsplash.com)

Icons:
Font Awesome (fortawesome.github.com/Font-Awesome)

Other:
jQuery (jquery.com)
html5shiv.js (@afarkas @jdalton @jon_neal @rem)
CSS3 Pie (css3pie.com)
Respond.js (j.mp/respondjs)
jquery.dropotron (@ajlkn)
Skel (skel.io)

Large diffs are not rendered by default.

@@ -0,0 +1,65 @@
/*
Verti by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

/* Basic */

body {
background-color: #f0f0f0;
}

/* Image */

.image img {
position: relative;
-ms-behavior: url("assets/js/ie/PIE.htc");
}

/* Button */

input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
button {
position: relative;
-ms-behavior: url("assets/js/ie/PIE.htc");
}

/* Widgets */

.box,
.widget.contact ul li a {
position: relative;
-ms-behavior: url("assets/js/ie/PIE.htc");
}

/* Header */

#logo h1 {
position: relative;
-ms-behavior: url("assets/js/ie/PIE.htc");
}

/* Nav */

#nav ul li a, #nav ul li span {
position: relative;
-ms-behavior: url("assets/js/ie/PIE.htc");
}

.dropotron {
border: solid 1px #eee;
box-shadow: none !important;
-ms-behavior: url("assets/js/ie/PIE.htc");
}

.dropotron.level-0 {
box-shadow: none !important;
}

.dropotron.level-0:before {
display: none;
}
Binary file not shown.

0 comments on commit 154f8a5

Please sign in to comment.
You can’t perform that action at this time.