Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Commit 0aa919f

Browse files
author
Shawn Hooper
committed
Basic Page & Class Framework
1 parent 173153f commit 0aa919f

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Internationalization Test Data
2+
intl/
3+
14
# Created by .ignore support plugin (hsz.mobi)
25
### JetBrains template
36
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio

assets/babel-editor.scss

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
body {
2+
background-color:lightblue;
3+
max-width: 1000px;
4+
margin: 0 auto;
5+
6+
.wrapper {
7+
border-radius:15px;
8+
background-color:white;
9+
padding:15px;
10+
}
11+
}
12+
13+
header {
14+
text-align:center;
15+
}
16+
17+
main {
18+
min-height:600px;
19+
}
20+
21+
h1 {
22+
font-size:180%;
23+
font-weight:bold;
24+
}

classes/BabelEditor/BabelEditor.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
namespace BabelEditor;
3+
4+
class BabelEditor {
5+
6+
public function __construct() {
7+
/**
8+
* Load the Source String Files (messages)
9+
*/
10+
11+
12+
13+
}
14+
15+
}

index.php

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
spl_autoload_register(function($className)
4+
{
5+
$namespace=str_replace("\\","/",__NAMESPACE__);
6+
$className=str_replace("\\","/",$className);
7+
$class="classes/".(empty($namespace)?"":$namespace."/")."{$className}.php";
8+
include_once($class);
9+
});
10+
11+
$babelEditor = new \BabelEditor\BabelEditor();
12+
13+
14+
?><html lang="en">
15+
<head>
16+
<title>Babel Editor</title>
17+
<link rel="stylesheet" href="assets/babel-editor.css" />
18+
</head>
19+
20+
<body>
21+
<div class="wrapper">
22+
<header>
23+
<h1>Babel Editor</h1>
24+
</header>
25+
<main>
26+
<?php
27+
28+
29+
30+
?>
31+
</main>
32+
<footer>
33+
<hr />
34+
Created by Actionable
35+
</footer>
36+
</div>
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)