1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-07-31 20:10:54 +02:00

Moved menu html into partials and updated icon

This commit is contained in:
Andrew Davis
2019-01-06 21:33:07 -06:00
parent 3b19c5dbbd
commit e440d61652
7 changed files with 29 additions and 63 deletions

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7 3H2v14h5V3zm2 0v14h9V3H9zM0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm3 1h3v2H3V4zm0 3h3v2H3V7zm0 3h3v2H3v-2z"/></svg>

After

Width:  |  Height:  |  Size: 217 B

View File

@@ -0,0 +1,6 @@
<div class="menu">
<button class="menu-button" title="Open Menu">
<div class="icon"><?= icon('show-sidebar') ?></div>
Menu
</button>
</div>

View File

@@ -0,0 +1,8 @@
<div class="modal closed">
<div class="modal-content">
<button class="modal-button right" title="Close">
<div class="icon"><?= icon('close-outline') ?></div>
</button>
<?php partial('table_of_contents') ?>
</div>
</div>

View File

@@ -1,12 +1,7 @@
<?php partial('header', ['title' => 'PHP Apprentice - Credits']) ?>
<div class="container small center">
<div class="menu">
<button class="menu-button" title="Open Menu">
<div class="icon"><?= icon('menu') ?></div>
Menu
</button>
</div>
<?php partial('menu_button') ?>
<div>
<h1>Credits</h1>
@@ -41,13 +36,6 @@
</div>
</div>
<div class="modal closed">
<div class="modal-content">
<button class="modal-button right" title="Close">
<div class="icon"><?= icon('close-outline') ?></div>
</button>
<?php partial('table_of_contents') ?>
</div>
</div>
<?php partial('menu_modal') ?>
<?php partial('footer') ?>

View File

@@ -1,12 +1,7 @@
<?php partial('header', ['title' => $title, 'subtitle' => $subtitle]) ?>
<div class="container small center">
<div class="menu">
<button class="menu-button" title="Open Menu">
<div class="icon"><?= icon('menu') ?></div>
Menu
</button>
</div>
<?php partial('menu_button') ?>
<h1><?= escape($title) ?></h1>
<h3 class="subtitle"><?= escape($subtitle) ?></h3>
@@ -29,13 +24,6 @@
</div>
</div>
<div class="modal closed">
<div class="modal-content">
<button class="modal-button right" title="Close">
<div class="icon"><?= icon('close-outline') ?></div>
</button>
<?php partial('table_of_contents') ?>
</div>
</div>
<?php partial('menu_modal') ?>
<?php partial('footer') ?>

View File

@@ -1,12 +1,8 @@
<?php partial('header', ['title' => 'PHP Apprentice']) ?>
<div class="container small center">
<div class="menu">
<button class="menu-button" title="Open Menu">
<div class="icon"><?= icon('menu') ?></div>
Menu
</button>
</div>
<?php partial('menu_button') ?>
<div>
<div class="home-title-wrapper">
<div class="home-logo"><?= icon('elephant') ?></div>
@@ -34,13 +30,5 @@
</div>
</div>
<div class="modal closed">
<div class="modal-content">
<button class="modal-button right" title="Close">
<div class="icon"><?= icon('close-outline') ?></div>
</button>
<?php partial('table_of_contents') ?>
</div>
</div>
<?php partial('menu_modal') ?>
<?php partial('footer') ?>

View File

@@ -1,12 +1,7 @@
<?php partial('header', ['title' => 'PHP Apprentice - Installing PHP']) ?>
<div class="container small center">
<div class="menu">
<button class="menu-button" title="Open Menu">
<div class="icon"><?= icon('menu') ?></div>
Menu
</button>
</div>
<?php partial('menu_button') ?>
<div>
<h1>Installing PHP</h1>
@@ -15,28 +10,20 @@
<li>Download PHP from the <a href="https://windows.php.net/download">PHP For Windows</a> site. I recommend downloading the non-thread safe PHP 7.1 or 7.2 (unless you want to use Apache and you know if you do). You will also need to choose 32 bit (x86) or 64 bit (x64) depending on your version of Windows.</li>
<li>Download the corresponding Visual C++ Redistributable from the same site. For PHP 7.1, it is VC14 and for PHP 7.2, it is VC15.</li>
<li>Install the VC redistrubutable using the downloaded executable.</li>
<li>The PHP download comes in a zip folder. Extract the zip folder into your user directory in a folder named "php". The path should look like "C:\Users\username\php".</li>
<li>The PHP download comes in a zip folder. Extract the zip folder into your user directory in a folder named <code>php</code>. The path should look like <code>C:\Users\username\php</code>.</li>
<li>Next, we need to add PHP to your environment variables path. Open "System" under "Control Panel". Go to the "Advanced" tab and select "Environment Variables". In the "User variables" section, select "Path" and click the "Edit" button. You will see a list of different folder paths. Add the PHP path to the list using the "Add" button. The PHP path is the same folder where you extracted PHP.</li>
<li>Now, you can open PowerShell or Command Prompt and type "php -v" to verify PHP was installed correctly. It will return the installed version of PHP on your system.</li>
<li>Now, you can open PowerShell or Command Prompt and type <code>php -v</code> to verify PHP was installed correctly. It will return the installed version of PHP on your system.</li>
</ol>
<h2>MacOS</h2>
<p>Good news! Each version of MacOS comes with PHP by default. However, if you are running an older version of MacOS or OS X, then you will need to manually install a new version of PHP. To check your current version, open Terminal and type "php -v". You will need at least PHP 7.1 on your computer to use all the features in these tutorials.</p>
<p>Good news! Each version of MacOS comes with PHP by default. However, if you are running an older version of MacOS or OS X, then you will need to manually install a new version of PHP. To check your current version, open Terminal and type <code>php -v</code>. You will need at least PHP 7.1 on your computer to use all the features in these tutorials.</p>
<ol class="body-ol">
<li>Install <a href="https://brew.sh/">Homebrew</a>.</li>
<li>Run "brew install php" in Terminal.</li>
<li>Check your version is correct by running "php -v" in Terminal.</li>
<li>Run <code>brew install php</code> in Terminal.</li>
<li>Check your version is correct by running <code>php -v</code> in Terminal.</li>
</ol>
</div>
</div>
<div class="modal closed">
<div class="modal-content">
<button class="modal-button right" title="Close">
<div class="icon"><?= icon('close-outline') ?></div>
</button>
<?php partial('table_of_contents') ?>
</div>
</div>
<?php partial('menu_modal') ?>
<?php partial('footer') ?>