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:
4
test/static/code/test.php
Normal file
4
test/static/code/test.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
// test comment
|
||||
$test = 'test';
|
4
test/static/code_table.html
Normal file
4
test/static/code_table.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="grid-code"><div class="doc"></div><div class="code"><pre><code class="language-php"><?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>
|
4
test/static/code_table.php
Normal file
4
test/static/code_table.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
// this is a test
|
||||
$test = 'some test code';
|
18
test/static/config.php
Normal file
18
test/static/config.php
Normal 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',
|
||||
]),
|
||||
],
|
||||
];
|
3
test/static/templates/_partial.phtml
Normal file
3
test/static/templates/_partial.phtml
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
$GLOBALS['PARTIAL_TEST'] = $test;
|
3
test/static/templates/default.phtml
Normal file
3
test/static/templates/default.phtml
Normal file
@@ -0,0 +1,3 @@
|
||||
<div><?= escape($title) ?></div>
|
||||
<div><?= escape($subtitle) ?></div>
|
||||
<div><?= escape($description) ?></div>
|
1
test/static/templates/index.phtml
Normal file
1
test/static/templates/index.phtml
Normal file
@@ -0,0 +1 @@
|
||||
<div>index</div>
|
Reference in New Issue
Block a user