mirror of
https://github.com/processwire/processwire.git
synced 2025-08-24 15:23:11 +02:00
Initial commit to new repo (carried over from: https://github.com/ryancramerdesign/ProcessWire/tree/devns)
This commit is contained in:
1
site-blank/templates/README.txt
Normal file
1
site-blank/templates/README.txt
Normal file
@@ -0,0 +1 @@
|
||||
This file is here to ensure Git adds the dir to the repo. You may delete this file.
|
15
site-blank/templates/admin.php
Normal file
15
site-blank/templates/admin.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php namespace ProcessWire;
|
||||
|
||||
/**
|
||||
* Admin template just loads the admin application controller,
|
||||
* and admin is just an application built on top of ProcessWire.
|
||||
*
|
||||
* This demonstrates how you can use ProcessWire as a front-end
|
||||
* to another application.
|
||||
*
|
||||
* Feel free to hook admin-specific functionality from this file,
|
||||
* but remember to leave the require() statement below at the end.
|
||||
*
|
||||
*/
|
||||
|
||||
require($config->paths->adminTemplates . 'controller.php');
|
13
site-blank/templates/basic-page.php
Normal file
13
site-blank/templates/basic-page.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo $page->title; ?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>styles/main.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1><?php echo $page->title; ?></h1>
|
||||
<?php if($page->editable()) echo "<p><a href='$page->editURL'>Edit</a></p>"; ?>
|
||||
|
||||
</body>
|
||||
</html>
|
11
site-blank/templates/errors/500.html
Normal file
11
site-blank/templates/errors/500.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>500 Internal Server Error</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Internal Server Error</h1>
|
||||
<p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
|
||||
<p>{message}</p>
|
||||
</body>
|
||||
</html>
|
21
site-blank/templates/errors/README.txt
Normal file
21
site-blank/templates/errors/README.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
When a fatal error occurs, ProcessWire displays the message:
|
||||
|
||||
"Unable to complete this request due to an error."
|
||||
|
||||
The message is intentionally vague for security purposes.
|
||||
Details will be logged to /site/assets/logs/errors.txt.
|
||||
|
||||
When present in this directory, the file 500.html will be
|
||||
displayed instead of the generic error message above. Feel
|
||||
free to modify this file to show whatever you would like.
|
||||
Please note the following:
|
||||
|
||||
* 500.html is plain HTML and has no PHP or API access.
|
||||
|
||||
* You may enter the tag {message} and ProcessWire will
|
||||
replace this with additional details when applicable.
|
||||
When not applicable, it will make it blank.
|
||||
|
||||
* If you are logged in as an admin, ProcessWire will
|
||||
give you a detailed error message rather than 500.html.
|
||||
|
3
site-blank/templates/home.php
Normal file
3
site-blank/templates/home.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
include("./basic-page.php");
|
1
site-blank/templates/scripts/main.js
Normal file
1
site-blank/templates/scripts/main.js
Normal file
@@ -0,0 +1 @@
|
||||
// Blank
|
1
site-blank/templates/styles/main.css
Normal file
1
site-blank/templates/styles/main.css
Normal file
@@ -0,0 +1 @@
|
||||
/* blank */
|
Reference in New Issue
Block a user