Synchronize some files from production

This commit is contained in:
Yuri Sizov
2023-10-06 16:01:02 +02:00
parent c8e613b883
commit 7cc0fb5f08
4 changed files with 46 additions and 0 deletions

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

View File

@@ -0,0 +1,11 @@
{
"name": "Godot Custom Layouts",
"description": "",
"version": "1.0",
"date": "2023-10-05",
"author": "Godot Organization",
"author_uri": "https://godotengine.org",
"license": "MIT",
"min_q2a": "1.4",
"load_order": "after_db_init"
}

View File

@@ -0,0 +1,25 @@
<?php
class qa_godot_readonly_warning
{
public function allow_template($template)
{
return true;
}
public function allow_region($region)
{
return true;
}
public function output_widget($region, $place, $themeobject, $template, $request, $qa_content)
{
$themeobject->output('<div style="background-color: #fecaca;border: 3px solid #991b1b;border-radius: 6px;color: #991b1b;padding: 2px 16px;">');
$themeobject->output('<h3 style="font-size: 115%;font-weight: 600;">The Godot Q&A is currently undergoing maintenance!</h3>');
$themeobject->output('<p>Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.</p>');
$themeobject->output('<p>We are working on bringing this community platform back to its full functionality, stay tuned for updates.</p>');
$themeobject->output('<p><a href="https://godotengine.org" style="color: #337ab7 !important;">godotengine.org</a> | <a href="https://twitter.com/godotengine" style="color: #337ab7 !important;">Twitter</a></p>');
$themeobject->output('</div>');
}
}

View File

@@ -0,0 +1,10 @@
<?php
if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
header('Location: ../../');
exit;
}
qa_register_plugin_module('widget', 'qa-godot-readonly-warning.php', 'qa_godot_readonly_warning', 'Read-only Warning');