first commit

This commit is contained in:
stge9dementia 2022-11-28 17:49:00 -03:00
commit fad83a3b1a
64 changed files with 3356 additions and 0 deletions

BIN
fonts/Ubuntu-Bold.ttf Normal file

Binary file not shown.

BIN
fonts/Ubuntu-BoldItalic.ttf Normal file

Binary file not shown.

BIN
fonts/Ubuntu-Italic.ttf Normal file

Binary file not shown.

BIN
fonts/Ubuntu-Light.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Ubuntu-Medium.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Ubuntu-Regular.ttf Normal file

Binary file not shown.

BIN
images/468x60-banner.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
images/answer-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/answer-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

BIN
images/approve-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

BIN
images/bg.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
images/bodybg.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M0 48V487.7C0 501.1 10.9 512 24.3 512c5 0 9.9-1.5 14-4.4L192 400 345.7 507.6c4.1 2.9 9 4.4 14 4.4c13.4 0 24.3-10.9 24.3-24.3V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48z"/></svg>

After

Width:  |  Height:  |  Size: 419 B

BIN
images/claim-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

BIN
images/claim-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 997 B

BIN
images/close-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/close-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

BIN
images/comment-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/comment-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

BIN
images/delete-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/delete-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

BIN
images/edit-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/edit-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

BIN
images/error-bg.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

BIN
images/favorite-heart.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
images/favorite-icon-15x15.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
images/feed-icon-14x14.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

BIN
images/flag-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/flag-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

BIN
images/follow-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/follow-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

BIN
images/hide-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/hide-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

BIN
images/q2a-buttons.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
images/q2a-logo.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
images/reject-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 819 B

BIN
images/reopen-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/reopen-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 B

BIN
images/reshow-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/reshow-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

BIN
images/rss.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
images/search-icon-flat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
images/search.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
images/select-star.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
images/selected-star.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
images/shadow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
images/sidebar-bg.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

BIN
images/spinner-icon-14x14.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
images/subtree.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/suggest-bg.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

BIN
images/unflag-icon-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/unflag-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

BIN
images/vote-buttons-2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
images/vote-buttons-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
images/vote-buttons-4.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
images/vote-buttons-ie6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
images/vote-buttons-small.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
images/vote-buttons.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

10
metadata.json Executable file
View File

@ -0,0 +1,10 @@
{
"name": "R.O",
"description": "Tema RTL não responsivo moderno para o Respostas Ocultas.",
"version": "1.0",
"date": "2022-11-25",
"author": "Slug",
"author_uri": "http://xh6liiypqffzwnu5734ucwps37tn2g6npthvugz3gdoqpikujju525yd.onion/index.php/user/Slug",
"license": "GPLv2",
"min_q2a": "1.5"
}

3144
qa-styles.css Executable file

File diff suppressed because it is too large Load Diff

201
qa-theme.php Executable file
View File

@ -0,0 +1,201 @@
<?php
class qa_html_theme extends qa_html_theme_base
{
protected $ranking_block_layout = true;
protected $theme = 'r.o';
public function nav_user_search()
{
if (!qa_is_logged_in()) {
if (isset($this->content['navigation']['user']['login']) && !QA_FINAL_EXTERNAL_USERS) {
$login = $this->content['navigation']['user']['login'];
$emailOnly = qa_opt('allow_login_email_only');
$inputType = $emailOnly ? 'email' : 'text';
$this->output(
'<form class="qam-login-form" action="'.$login['url'].'" method="post">',
'<input type="' . $inputType . '" class="qam-login-text" name="emailhandle" dir="auto" placeholder="'.trim(qa_lang_html($emailOnly ? 'users/email_label' : 'users/email_handle_label'), ':').'"/>',
'<input type="password" class="qam-login-text" name="password" dir="auto" placeholder="'.trim(qa_lang_html('users/password_label'), ':').'"/>',
'<div class="qam-rememberbox"><input type="checkbox" name="remember" id="qam-rememberme" value="1"/>',
'<label for="qam-rememberme" class="qam-remember">'.qa_lang_html('users/remember').'</label></div>',
'<input type="hidden" name="code" value="'.qa_html(qa_get_form_security_code('login')).'"/>',
'<input type="submit" value="Faça Login" class="qa-form-tall-button qa-form-tall-button-login" name="dologin"/>',
'</form>'
);
unset($this->content['navigation']['user']['login']);
}
}
qa_html_theme_base::nav_user_search();
}
public function logged_in()
{
require_once QA_INCLUDE_DIR . 'app/format.php';
if (qa_is_logged_in()) // output user avatar to login bar
$this->output(
'<div class="qa-logged-in-avatar">',
QA_FINAL_EXTERNAL_USERS
? qa_get_external_avatar_html(qa_get_logged_in_userid(), 24, true)
: qa_get_user_avatar_html(qa_get_logged_in_flags(), qa_get_logged_in_email(), qa_get_logged_in_handle(),
qa_get_logged_in_user_field('avatarblobid'), qa_get_logged_in_user_field('avatarwidth'), qa_get_logged_in_user_field('avatarheight'),
24, true),
'</div>'
);
qa_html_theme_base::logged_in();
if (qa_is_logged_in()) { // adds points count after logged in username
$userpoints = qa_get_logged_in_points();
$pointshtml = ($userpoints == 1)
? qa_lang_html_sub('main/1_point', '1', '1')
: qa_lang_html_sub('main/x_points', qa_html(qa_format_number($userpoints)));
$this->output(
'<span class="qa-logged-in-points">',
'('.$pointshtml.')',
'</span>'
);
}
}
// adds login bar, user navigation and search at top of page in place of custom header content
public function body_header()
{
$this->output('<div class="qam-login-bar">');
$this->output('<div class="qam-login-group">');
$this->nav_user_search();
$this->output('</div></div>');
$this->nav_main_sub();
}
public function head_css()
{
$this->output('<link rel="stylesheet" href="' . $this->rooturl . $this->css_name() . '"/>');
$this->output('<script src="https://kit.fontawesome.com/b5f666874b.js" crossorigin="anonymous"></script>');
if (isset($this->content['css_src'])) {
foreach ($this->content['css_src'] as $css_src) {
$this->output('<link rel="stylesheet" href="' . $css_src . '"/>');
}
}
if (!empty($this->content['notices'])) {
$this->output(
'<style>',
'.qa-body-js-on .qa-notice {display:none;}',
'</style>'
);
}
}
public function nav_main_sub()
{
$this->nav('main');
$this->nav('sub');
}
// allows modification of custom element shown inside header after logo
public function header_custom()
{
if (isset($this->content['body_header'])) {
$this->output('<div class="header-banner">');
$this->output_raw($this->content['body_header']);
$this->output('</div>');
}
}
// removes user navigation and search from header and replaces with custom header content. Also opens new <div>s
public function header()
{
$this->header_clear();
$this->logo();
$this->header_custom();
$this->output('</div> <!-- END qa-header -->', '');
$this->output('<div class="qa-main-shadow">', '');
$this->output('<div class="qa-main-wrapper">', '');
}
// removes sidebar for user profile pages
public function sidepanel()
{
if ($this->template != 'user')
qa_html_theme_base::sidepanel();
}
// prevent display of regular footer content (see body_suffix()) and replace with closing new <div>s
public function footer()
{
$this->output('</div> <!-- END main-wrapper -->');
$this->output('</div> <!-- END main-shadow -->');
}
// add RSS feed icon after the page title
public function favorite()
{
parent::favorite();
$feed = @$this->content['feed'];
if (!empty($feed)) {
$this->output('<a href="'.$feed['url'].'" title="'.@$feed['label'].'"><img src="'.$this->rooturl.'images/rss.jpg" alt="" width="16" height="16" class="qa-rss-icon"/></a>');
}
}
// add view count to question list
public function q_item_stats($q_item)
{
$this->output('<div class="qa-q-item-stats">');
$this->voting($q_item);
$this->a_count($q_item);
qa_html_theme_base::view_count($q_item);
$this->output('</div>');
}
// prevent display of view count in the usual place
public function view_count($q_item)
{
if ($this->template == 'question')
qa_html_theme_base::view_count($q_item);
}
// to replace standard Q2A footer
public function body_suffix()
{
$this->output('<div class="qa-footer-bottom-group">');
qa_html_theme_base::footer();
$this->output('</div> <!-- END footer-bottom-group -->', '');
}
public function before_attribution()
{
$this->output(
'<div class="qa-attribution">',
'Copyright (c) 2022 Respostas Ocultas - ',
'</div>'
);
}
public function attribution()
{
$this->output(
'<div class="qa-attribution">',
'Tema criado com <i id="created-by-icon-heart" class="fa-solid fa-heart" style="color: red;"></i> por <a href="http://xh6liiypqffzwnu5734ucwps37tn2g6npthvugz3gdoqpikujju525yd.onion/index.php/user/Slug">Slug</a>',
'</div>',
);
$this->before_attribution();
}
}