-
-
+
+
= view('admin/_partials/_podcast-card', [
'podcast' => $podcast,
]) ?>
diff --git a/app/Views/admin/podcast/view.php b/app/Views/admin/podcast/view.php
index b0af9c9d..9a781031 100644
--- a/app/Views/admin/podcast/view.php
+++ b/app/Views/admin/podcast/view.php
@@ -1,4 +1,6 @@
-
+
= $this->extend('admin/_layout') ?>
@@ -28,7 +30,7 @@
= lang('Podcast.goto_page') ?>
+ ) ?>">= lang('Podcast.go_to_page') ?>
= $user->username ?>
= $user->email ?> |
diff --git a/app/Views/auth/login.php b/app/Views/auth/login.php
index 2d7fcee1..106851d0 100644
--- a/app/Views/auth/login.php
+++ b/app/Views/auth/login.php
@@ -1,28 +1,28 @@
= $this->extend($config->viewLayout) ?>
= $this->section('title') ?>
- = lang('Auth.loginTitle') ?>
+ = lang('Auth.loginTitle') ?>
= $this->endSection() ?>
= $this->section('content') ?>
= $this->endSection() ?>
@@ -31,14 +31,14 @@
= $this->section('footer') ?>
= $this->endSection() ?>
diff --git a/app/Views/errors/cli/error_exception.php b/app/Views/errors/cli/error_exception.php
index a91a3f6a..1ad33d06 100644
--- a/app/Views/errors/cli/error_exception.php
+++ b/app/Views/errors/cli/error_exception.php
@@ -6,14 +6,18 @@ Filename: = $exception->getFile(), "\n" ?>
Line Number: = $exception->getLine() ?>
-
- Backtrace:
- getTrace() as $error): ?>
-
- = trim(
- '-' . $error['line'] . ' - ' . $error['file'] . '::' . $error['function']
- ) . "\n" ?>
-
-
+ Backtrace:
+ getTrace() as $error): ?>
+
+ = trim(
+ '-' .
+ $error['line'] .
+ ' - ' .
+ $error['file'] .
+ '::' .
+ $error['function']
+ ) . "\n" ?>
+
+
diff --git a/app/Views/errors/html/debug.css b/app/Views/errors/html/debug.css
index e526b24f..6595eedb 100644
--- a/app/Views/errors/html/debug.css
+++ b/app/Views/errors/html/debug.css
@@ -1,176 +1,177 @@
body {
- height: 100%;
- background: #fafafa;
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- color: #777;
- font-weight: 300;
- margin: 0;
- padding: 0;
+ height: 100%;
+ background: #fafafa;
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ color: #777;
+ font-weight: 300;
+ margin: 0;
+ padding: 0;
}
h1 {
- font-weight: lighter;
- letter-spacing: 0.8;
- font-size: 3rem;
- color: #222;
- margin: 0;
+ font-weight: lighter;
+ letter-spacing: 0.8;
+ font-size: 3rem;
+ color: #222;
+ margin: 0;
}
h1.headline {
- margin-top: 20%;
- font-size: 5rem;
+ margin-top: 20%;
+ font-size: 5rem;
}
.text-center {
- text-align: center;
+ text-align: center;
}
p.lead {
- font-size: 1.6rem;
+ font-size: 1.6rem;
}
.container {
- max-width: 75rem;
- margin: 0 auto;
- padding: 1rem;
+ max-width: 75rem;
+ margin: 0 auto;
+ padding: 1rem;
}
.header {
- background: #85271f;
- color: #fff;
+ background: #85271f;
+ color: #fff;
}
.header h1 {
- color: #fff;
+ color: #fff;
}
.header p {
- font-size: 1.2rem;
- margin: 0;
- line-height: 2.5;
+ font-size: 1.2rem;
+ margin: 0;
+ line-height: 2.5;
}
.header a {
- color: rgba(255,255,255,0.5);
- margin-left: 2rem;
- display: none;
- text-decoration: none;
+ color: rgba(255, 255, 255, 0.5);
+ margin-left: 2rem;
+ display: none;
+ text-decoration: none;
}
.header:hover a {
- display: inline;
+ display: inline;
}
.footer .container {
- border-top: 1px solid #e7e7e7;
- margin-top: 1rem;
- text-align: center;
+ border-top: 1px solid #e7e7e7;
+ margin-top: 1rem;
+ text-align: center;
}
.source {
- background: #333;
- color: #c7c7c7;
- padding: 0.5em 1em;
- border-radius: 5px;
- font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
- margin: 0;
+ background: #333;
+ color: #c7c7c7;
+ padding: 0.5em 1em;
+ border-radius: 5px;
+ font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
+ margin: 0;
}
.source span.line {
- line-height: 1.4;
+ line-height: 1.4;
}
.source span.line .number {
- color: #666;
+ color: #666;
}
.source .line .highlight {
- display: block;
- background: #555;
- color: #fff;
+ display: block;
+ background: #555;
+ color: #fff;
}
.source span.highlight .number {
- color: #fff;
+ color: #fff;
}
.tabs {
- list-style: none;
- list-style-position: inside;
- margin: 0;
- padding: 0;
- margin-bottom: -1px;
+ list-style: none;
+ list-style-position: inside;
+ margin: 0;
+ padding: 0;
+ margin-bottom: -1px;
}
.tabs li {
- display: inline;
+ display: inline;
}
.tabs a:link,
.tabs a:visited {
- padding: 0rem 1rem;
- line-height: 2.7;
- text-decoration: none;
- color: #a7a7a7;
- background: #f1f1f1;
- border: 1px solid #e7e7e7;
- border-bottom: 0;
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
- display: inline-block;
+ padding: 0rem 1rem;
+ line-height: 2.7;
+ text-decoration: none;
+ color: #a7a7a7;
+ background: #f1f1f1;
+ border: 1px solid #e7e7e7;
+ border-bottom: 0;
+ border-top-left-radius: 5px;
+ border-top-right-radius: 5px;
+ display: inline-block;
}
.tabs a:hover {
- background: #e7e7e7;
- border-color: #e1e1e1;
+ background: #e7e7e7;
+ border-color: #e1e1e1;
}
.tabs a.active {
- background: #fff;
+ background: #fff;
}
.tab-content {
- background: #fff;
- border: 1px solid #efefef;
+ background: #fff;
+ border: 1px solid #efefef;
}
.content {
- padding: 1rem;
+ padding: 1rem;
}
.hide {
- display: none;
+ display: none;
}
.alert {
- margin-top: 2rem;
- display: block;
- text-align: center;
- line-height: 3.0;
- background: #d9edf7;
- border: 1px solid #bcdff1;
- border-radius: 5px;
- color: #31708f;
+ margin-top: 2rem;
+ display: block;
+ text-align: center;
+ line-height: 3;
+ background: #d9edf7;
+ border: 1px solid #bcdff1;
+ border-radius: 5px;
+ color: #31708f;
}
-ul, ol {
- line-height: 1.8;
+ul,
+ol {
+ line-height: 1.8;
}
table {
- width: 100%;
- overflow: hidden;
+ width: 100%;
+ overflow: hidden;
}
th {
- text-align: left;
- border-bottom: 1px solid #e7e7e7;
- padding-bottom: 0.5rem;
+ text-align: left;
+ border-bottom: 1px solid #e7e7e7;
+ padding-bottom: 0.5rem;
}
td {
- padding: 0.2rem 0.5rem 0.2rem 0;
+ padding: 0.2rem 0.5rem 0.2rem 0;
}
tr:hover td {
- background: #f1f1f1;
+ background: #f1f1f1;
}
td pre {
- white-space: pre-wrap;
+ white-space: pre-wrap;
}
.trace a {
- color: inherit;
+ color: inherit;
}
.trace table {
- width: auto;
+ width: auto;
}
.trace tr td:first-child {
- min-width: 5em;
- font-weight: bold;
+ min-width: 5em;
+ font-weight: bold;
}
.trace td {
- background: #e7e7e7;
- padding: 0 1rem;
+ background: #e7e7e7;
+ padding: 0 1rem;
}
.trace td pre {
- margin: 0;
+ margin: 0;
}
.args {
- display: none;
-}
\ No newline at end of file
+ display: none;
+}
diff --git a/app/Views/errors/html/debug.js b/app/Views/errors/html/debug.js
index 07e8124e..3428750f 100644
--- a/app/Views/errors/html/debug.js
+++ b/app/Views/errors/html/debug.js
@@ -2,107 +2,108 @@
// Tabs
//--------------------------------------------------------------------
-var tabLinks = new Array();
-var contentDivs = new Array();
+var tabLinks = [];
+var contentDivs = [];
function init() {
-
- // Grab the tab links and content divs from the page
- var tabListItems = document.getElementById('tabs').childNodes;
- console.log(tabListItems);
- for (var i = 0; i < tabListItems.length; i++) {
- if (tabListItems[i].nodeName == "LI") {
- var tabLink = getFirstChildWithTagName(tabListItems[i], 'A');
- var id = getHash(tabLink.getAttribute('href'));
- tabLinks[id] = tabLink;
- contentDivs[id] = document.getElementById(id);
- }
+ // Grab the tab links and content divs from the page
+ var tabListItems = document.getElementById("tabs").childNodes;
+ console.log(tabListItems);
+ for (var i = 0; i < tabListItems.length; i++) {
+ if (tabListItems[i].nodeName == "LI") {
+ var tabLink = getFirstChildWithTagName(tabListItems[i], "A");
+ var id = getHash(tabLink.getAttribute("href"));
+ tabLinks[id] = tabLink;
+ contentDivs[id] = document.getElementById(id);
}
+ }
- // Assign onclick events to the tab links, and
- // highlight the first tab
- var i = 0;
+ // Assign onclick events to the tab links, and
+ // highlight the first tab
+ var j = 0;
- for (var id in tabLinks) {
- tabLinks[id].onclick = showTab;
- tabLinks[id].onfocus = function () { this.blur() };
- if (i == 0) {
- tabLinks[id].className = 'active';
- }
- i++;
+ for (id in tabLinks) {
+ tabLinks[id].onclick = showTab;
+ tabLinks[id].onfocus = function () {
+ this.blur();
+ };
+ if (j == 0) {
+ tabLinks[id].className = "active";
}
+ j++;
+ }
- // Hide all content divs except the first
- var i = 0;
+ // Hide all content divs except the first
+ var k = 0;
- for (var id in contentDivs) {
- if (i != 0) {
- console.log(contentDivs[id]);
- contentDivs[id].className = 'content hide';
- }
- i++;
+ for (id in contentDivs) {
+ if (k != 0) {
+ console.log(contentDivs[id]);
+ contentDivs[id].className = "content hide";
}
+ k++;
+ }
}
//--------------------------------------------------------------------
function showTab() {
- var selectedId = getHash(this.getAttribute('href'));
+ var selectedId = getHash(this.getAttribute("href"));
- // Highlight the selected tab, and dim all others.
- // Also show the selected content div, and hide all others.
- for (var id in contentDivs) {
- if (id == selectedId) {
- tabLinks[id].className = 'active';
- contentDivs[id].className = 'content';
- }
- else {
- tabLinks[id].className = '';
- contentDivs[id].className = 'content hide';
- }
+ // Highlight the selected tab, and dim all others.
+ // Also show the selected content div, and hide all others.
+ for (var id in contentDivs) {
+ if (id == selectedId) {
+ tabLinks[id].className = "active";
+ contentDivs[id].className = "content";
+ } else {
+ tabLinks[id].className = "";
+ contentDivs[id].className = "content hide";
}
+ }
- // Stop the browser following the link
- return false;
+ // Stop the browser following the link
+ return false;
}
//--------------------------------------------------------------------
function getFirstChildWithTagName(element, tagName) {
- for (var i = 0; i < element.childNodes.length; i++) {
- if (element.childNodes[i].nodeName == tagName) {
- return element.childNodes[i];
- }
+ for (var i = 0; i < element.childNodes.length; i++) {
+ if (element.childNodes[i].nodeName == tagName) {
+ return element.childNodes[i];
}
+ }
}
//--------------------------------------------------------------------
function getHash(url) {
- var hashPos = url.lastIndexOf('#');
- return url.substring(hashPos + 1);
+ var hashPos = url.lastIndexOf("#");
+ return url.substring(hashPos + 1);
}
//--------------------------------------------------------------------
function toggle(elem) {
- elem = document.getElementById(elem);
+ elem = document.getElementById(elem);
- if (elem.style && elem.style['display']) {
- // Only works with the "style" attr
- var disp = elem.style['display'];
- }
- else if (elem.currentStyle) {
- // For MSIE, naturally
- var disp = elem.currentStyle['display'];
- }
- else if (window.getComputedStyle) {
- // For most other browsers
- var disp = document.defaultView.getComputedStyle(elem, null).getPropertyValue('display');
- }
+ var disp = "";
+ if (elem.style && elem.style["display"]) {
+ // Only works with the "style" attr
+ disp = elem.style["display"];
+ } else if (elem.currentStyle) {
+ // For MSIE, naturally
+ disp = elem.currentStyle["display"];
+ } else if (window.getComputedStyle) {
+ // For most other browsers
+ disp = document.defaultView
+ .getComputedStyle(elem, null)
+ .getPropertyValue("display");
+ }
- // Toggle the state of the "display" style
- elem.style.display = disp == 'block' ? 'none' : 'block';
+ // Toggle the state of the "display" style
+ elem.style.display = disp == "block" ? "none" : "block";
- return false;
-}
\ No newline at end of file
+ return false;
+}
diff --git a/app/Views/errors/html/error_404.php b/app/Views/errors/html/error_404.php
index 35017d33..a1f3f32f 100644
--- a/app/Views/errors/html/error_404.php
+++ b/app/Views/errors/html/error_404.php
@@ -2,94 +2,94 @@
-
-
404 Page Not Found
+
+
404 Page Not Found
-
+ a:active,
+ a:link,
+ a:visited {
+ color: #dd4814;
+ }
+
-
-
404 - File Not Found
+
+
404 - File Not Found
-
-
- = esc($message) ?>
-
- Sorry! Cannot seem to find the page you were looking for.
-
-
-
+
+
+ = esc($message) ?>
+
+ Sorry! Cannot seem to find the page you were looking for.
+
+
+
\ No newline at end of file
diff --git a/app/Views/errors/html/error_exception.php b/app/Views/errors/html/error_exception.php
index 7eb3736a..5101f1e1 100644
--- a/app/Views/errors/html/error_exception.php
+++ b/app/Views/errors/html/error_exception.php
@@ -3,426 +3,532 @@
-
-
+
+
-
= htmlspecialchars($title, ENT_SUBSTITUTE, 'UTF-8') ?>
-
+
= htmlspecialchars($title, ENT_SUBSTITUTE, 'UTF-8') ?>
+
-
+
-
-
+
+
-
-
-
= static::cleanPath($file, $line) ?> at line = $line ?>
+
+
+
= static::cleanPath(
+ $file,
+ $line
+ ) ?> at line = $line ?>
-
-
- = static::highlightFile($file, $line, 15) ?>
-
-
-
+
+
+ = static::highlightFile($file, $line, 15) ?>
+
+
+
-
+
-
+
-
+
-
-
+
+
-
- $row): ?>
+
+ $row): ?>
+ -
+
+
+
+
+
+ {PHP internal code}
+
-
-
-
-
-
-
-
- {PHP internal code}
-
+
+
+ — = $row[
+ 'class'
+ ] .
+ $row['type'] .
+ $row['function'] ?>
+
+
+ ( arguments )
+
+
-
-
- — = $row['class'] .
- $row['type'] .
- $row['function'] ?>
-
-
- ( arguments )
-
-
+ getParameters();
+ }
+ foreach (
+ $row['args']
+ as $key => $value
+ ): ?>
+
+ = htmlspecialchars(
+ isset($params[$key])
+ ? '$' .
+ $params[
+ $key
+ ]->name
+ : "#$key",
+ ENT_SUBSTITUTE,
+ 'UTF-8'
+ ) ?> |
+
+ = print_r(
+ $value,
+ true
+ ) ?>
+ |
+
+
- getParameters();
- }
- foreach ($row['args'] as $key => $value): ?>
-
- = htmlspecialchars(
- isset($params[$key]) ? '$' . $params[$key]->name : "#$key",
- ENT_SUBSTITUTE,
- 'UTF-8'
- ) ?> |
-
- = print_r($value, true) ?>
- |
-
-
+
+
+ ()
+
+
+
+
+ — = $row[
+ 'function'
+ ] ?>()
+
+
+
+
+
+
+ = static::highlightFile(
+ $row['file'],
+ $row['line']
+ ) ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
$= $var ?>
+
+
+
+
+ Key |
+ Value |
+
+
+
+ $value): ?>
+
+ = htmlspecialchars(
+ $key,
+ ENT_IGNORE,
+ 'UTF-8'
+ ) ?> |
+
+
+ = htmlspecialchars(
+ $value,
+ ENT_SUBSTITUTE,
+ 'UTF-8'
+ ) ?>
+
+ = '' .
+ print_r($value, true) ?>
+
+ |
+
+
+
+
+
+
+
+
+
+
+
Constants
+
+
+
+
+ Key |
+ Value |
+
+
+
+ $value
+ ): ?>
+
+ = htmlspecialchars(
+ $key,
+ ENT_IGNORE,
+ 'UTF-8'
+ ) ?> |
+
+
+ = htmlspecialchars(
+ $value,
+ ENT_SUBSTITUTE,
+ 'UTF-8'
+ ) ?>
+
+ = '' .
+ print_r($value, true) ?>
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Path |
+ = $request->uri ?> |
+
+
+ HTTP Method |
+ = $request->getMethod(true) ?> |
+
+
+ IP Address |
+ = $request->getIPAddress() ?> |
+
+
+ Is AJAX Request? |
+ = $request->isAJAX() ? 'yes' : 'no' ?> |
+
+
+ Is CLI Request? |
+ = $request->isCLI() ? 'yes' : 'no' ?> |
+
+
+ Is Secure Request? |
+ = $request->isSecure() ? 'yes' : 'no' ?> |
+
+
+ User Agent |
+ = $request
+ ->getUserAgent()
+ ->getAgentString() ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
$= $var ?>
+
+
+
+
+ Key |
+ Value |
+
+
+
+ $value): ?>
+
+ = htmlspecialchars(
+ $key,
+ ENT_IGNORE,
+ 'UTF-8'
+ ) ?> |
+
+
+ = htmlspecialchars(
+ $value,
+ ENT_SUBSTITUTE,
+ 'UTF-8'
+ ) ?>
+
+ = '' .
+ print_r($value, true) ?>
+
+ |
+
+
+
+
+
+
+
+
+
+ No $_GET, $_POST, or $_COOKIE Information to show.
+
+
+
+
+ getHeaders(); ?>
+
+
Headers
+
+
+
+
+ Header |
+ Value |
+
+
+
+
+
+
+
+
+ = esc(
+ $h->getName(),
+ 'html'
+ ) ?> |
+ = esc(
+ $h->getValueLine(),
+ 'html'
+ ) ?> |
+
+
+
+
+
+
+
+
+
+
+ setStatusCode(http_response_code());
?>
+
+
+
+ Response Status |
+ = $response->getStatusCode() .
+ ' - ' .
+ $response->getReason() ?> |
+
+
-
-
-
- ()
-
-
+ getHeaders(); ?>
+
+
-
- — = $row['function'] ?>()
-
-
+ Headers
-
-
-
- = static::highlightFile($row['file'], $row['line']) ?>
-
-
-
+
+
+
+ Header |
+ Value |
+
+
+
+ $value): ?>
+
+ = esc($name, 'html') ?> |
+ = esc(
+ $response->getHeaderLine($name),
+ 'html'
+ ) ?> |
+
+
+
+
-
-
+
+
-
+
+
+
-
-
-
-
+
+
+ - = htmlspecialchars(
+ static::cleanPath($file),
+ ENT_SUBSTITUTE,
+ 'UTF-8'
+ ) ?>
+
+
+
-
$= $var ?>
+
+
-
-
-
- Key |
- Value |
-
-
-
- $value): ?>
-
- = htmlspecialchars($key, ENT_IGNORE, 'UTF-8') ?> |
-
-
- = htmlspecialchars($value, ENT_SUBSTITUTE, 'UTF-8') ?>
-
- = '' . print_r($value, true) ?>
-
- |
-
-
-
-
+
+
+
+ Memory Usage |
+ = static::describeMemory(
+ memory_get_usage(true)
+ ) ?> |
+
+
+ Peak Memory Usage: |
+ = static::describeMemory(
+ memory_get_peak_usage(true)
+ ) ?> |
+
+
+ Memory Limit: |
+ = ini_get('memory_limit') ?> |
+
+
+
-
+
-
-
-
-
Constants
+
-
-
-
- Key |
- Value |
-
-
-
- $value): ?>
-
- = htmlspecialchars($key, ENT_IGNORE, 'UTF-8') ?> |
-
-
- = htmlspecialchars($value, ENT_SUBSTITUTE, 'UTF-8') ?>
-
- = '' . print_r($value, true) ?>
-
- |
-
-
-
-
-
-
+
-
-
-
+
-
-
-
-
+
+
diff --git a/app/Views/errors/html/production.php b/app/Views/errors/html/production.php
index 983f519f..7197c1c0 100644
--- a/app/Views/errors/html/production.php
+++ b/app/Views/errors/html/production.php
@@ -18,11 +18,8 @@
-
Whoops!
-
We seem to have hit a snag. Please try again later...
-
diff --git a/app/Views/podcast.php b/app/Views/podcast.php
index b4ba052a..b64782b0 100644
--- a/app/Views/podcast.php
+++ b/app/Views/podcast.php
@@ -24,7 +24,6 @@
= $episode->title ?>
#= $episode->number ?>
- = $episode->description ?>