1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-08-24 23:25:48 +02:00

Initial commit for public repo

This commit is contained in:
Andrew Davis
2018-09-02 10:57:36 -05:00
commit cb5d7c2386
79 changed files with 14644 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<?php
// test comment
$test = 'test';

View File

@@ -0,0 +1,4 @@
<div class="grid-code"><div class="doc"></div><div class="code"><pre><code class="language-php">&lt;?php
</code></pre></div><div class="doc">this is a test</div><div class="code"><pre><code class="language-php">$test = 'some test code';
</code></pre></div></div>

View File

@@ -0,0 +1,4 @@
<?php
// this is a test
$test = 'some test code';

18
test/static/config.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
use Apprentice\Page;
return [
'icon_dir' => __DIR__ . '/../icons',
'code_dir' => __DIR__ . '/code',
'templates_dir' => __DIR__ . '/templates',
'output_dir' => '/tmp/apprentice_output',
'pages' => [
Page::create('index', 'index.phtml'),
Page::create('test', null, 'test.php', [
'title' => 'Test Title',
'subtitle' => 'Test Subtitle',
'description' => 'Test Description',
]),
],
];

View File

@@ -0,0 +1,3 @@
<?php
$GLOBALS['PARTIAL_TEST'] = $test;

View File

@@ -0,0 +1,3 @@
<div><?= escape($title) ?></div>
<div><?= escape($subtitle) ?></div>
<div><?= escape($description) ?></div>

View File

@@ -0,0 +1 @@
<div>index</div>