Added error page, Added drawings, Improved composer
Update .gitignore, .htaccess, and 24 more files...
This commit is contained in:
@@ -28,6 +28,3 @@ if($enable_glider) {
|
||||
echo('<link href="/resources/GliderJs/1.7.6/glider.min.css" rel="stylesheet" />');
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -94,11 +94,11 @@ abstract class ComposerElementModifiers {
|
||||
const CONTAINER_CARD = ["card", "card"];
|
||||
|
||||
// Buttons
|
||||
const BUTTON_THIN = ["thin", "btn-sm"];
|
||||
const BUTTON_THICK = ["thick", "btn-lg"];
|
||||
const BUTTON_ROUNDED = ["rounded", "btn-rounded"];
|
||||
const BUTTON_CIRCLE = ["circle", "rounded-circle"];
|
||||
const BUTTON_DOWNLOAD_PRIMARY = ["download-primary", "btn-primary"];
|
||||
const BUTTON_THIN = ["thin", ""];
|
||||
const BUTTON_THICK = ["thick", ""];
|
||||
const BUTTON_ROUNDED = ["rounded", ""];
|
||||
const BUTTON_CIRCLE = ["circle", ""];
|
||||
const BUTTON_DOWNLOAD_PRIMARY = ["download-primary", "primary"];
|
||||
|
||||
// Horizontal ruler
|
||||
const HR_SUBTLE = ["subtle", "subtle"];
|
||||
@@ -114,7 +114,7 @@ abstract class ComposerElementModifiers {
|
||||
const TABLE_INNER_BORDER = ["inner-bordered", "table-inner-bordered"];
|
||||
const TABLE_OUTER_BORDER = ["outer-bordered", "table-outer-bordered"];
|
||||
const TABLE_V2_STYLISH = ["stylish", "stylish r-s border o-hidden"];
|
||||
const TABLE_V2_CELL_PADDING = ["auto-cell-padding", "table-p-xs"];
|
||||
const TABLE_V2_CELL_PADDING = ["auto-cell-padding", "table-p-xs table-h-p-s"];
|
||||
const TABLE_V2_VERTICAL_ALIGN = ["v-center-cells", "table-v-center"];
|
||||
|
||||
// Code
|
||||
@@ -334,16 +334,31 @@ class ComposerContentMetadata {
|
||||
true
|
||||
) . '<div class="px-xxs">' . $inner_html . '</div>';
|
||||
|
||||
// Appending the tags if any are present
|
||||
// Grabbing the DOM for inside the tags bar
|
||||
$_template_gpr_tags_dom = '<i class="fad fa-tags t-size-10"></i>';
|
||||
if(sizeof($this->article->tags) > 0) {
|
||||
foreach($this->article->tags as $tag) {
|
||||
$inner_html .= '<a href="'.l10n_url_abs("/content/?tags=" . $tag .
|
||||
'" class="content-tag">#' . $tag . '</a>');
|
||||
$_template_gpr_tags_dom .= '<a href="'.l10n_url_abs("/content/?tags=" . $tag .
|
||||
'" class="ml-xs">#' . $tag . '</a>');
|
||||
}
|
||||
} else {
|
||||
$inner_html .= '<i>' . localize("content.error.message.data.no.tags") . '</i>';
|
||||
$_template_gpr_tags_dom .= '<i>' . localize("content.error.message.data.no.tags") . '</i>';
|
||||
}
|
||||
|
||||
// Printing the tags bar
|
||||
$inner_html .= getMainHeader(
|
||||
$_template_gpr_tags_dom,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
true,
|
||||
null,
|
||||
6,
|
||||
false,
|
||||
false,
|
||||
true
|
||||
);
|
||||
|
||||
break;
|
||||
case ComposerTemplates::RAW:
|
||||
default:
|
||||
|
||||
File diff suppressed because one or more lines are too long
21
commons/strings/en/error.json
Normal file
21
commons/strings/en/error.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"error.403.head.title": "403 - NibblePoker",
|
||||
"error.403.head.description": "Access to the requested resource isn't unauthorized.",
|
||||
"error.403.og.title": "NibblePoker - 403 Error",
|
||||
"error.403.og.description": "Access to the requested resource isn't unauthorized.",
|
||||
"error.403.header.title": "Error<span class=\"mx-s t-size-15\">❱</span>403 Error",
|
||||
|
||||
"error.404.head.title": "404 - NibblePoker",
|
||||
"error.404.head.description": "The server couldn't find the requested resource.",
|
||||
"error.404.og.title": "NibblePoker - 404 Error",
|
||||
"error.404.og.description": "The server couldn't find the requested resource.",
|
||||
"error.404.header.title": "Error<span class=\"mx-s t-size-15\">❱</span>404 Error",
|
||||
|
||||
"error.500.head.title": "500 - NibblePoker",
|
||||
"error.500.head.description": "The server has encountered a situation it doesn't know how to handle.",
|
||||
"error.500.og.title": "NibblePoker - 500 Error",
|
||||
"error.500.og.description": "The server has encountered a situation it doesn't know how to handle.",
|
||||
"error.500.header.title": "Error<span class=\"mx-s t-size-15\">❱</span>500 Error",
|
||||
|
||||
"error.skit.pc.dead": "Drawing of an old PC with a face with crossed eyes."
|
||||
}
|
||||
Reference in New Issue
Block a user