mirror of
https://github.com/godotengine/godot-question2answer.git
synced 2026-01-01 01:48:37 +03:00
Synchronize some files from production
This commit is contained in:
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 249 KiB |
11
qa-plugin/godot-layout/metadata.json
Normal file
11
qa-plugin/godot-layout/metadata.json
Normal 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"
|
||||
}
|
||||
25
qa-plugin/godot-layout/qa-godot-readonly-warning.php
Normal file
25
qa-plugin/godot-layout/qa-godot-readonly-warning.php
Normal 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>');
|
||||
}
|
||||
}
|
||||
10
qa-plugin/godot-layout/qa-plugin.php
Normal file
10
qa-plugin/godot-layout/qa-plugin.php
Normal 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');
|
||||
Reference in New Issue
Block a user