271121 Visibility Icon

This commit is contained in:
Daisuke 2021-11-27 15:31:52 -06:00
parent b44e9d69ad
commit 8b2355c143
17 changed files with 58 additions and 5 deletions

View File

@ -286,7 +286,9 @@ input[type="submit"] {
content: '';
}
.sensitive::after {
content: '';
}
.post_buttons {
color: #404040;

View File

@ -563,7 +563,7 @@ aside {
border-radius: 3px;
}
.postAge,.public:after,.unlisted:after,.private:after,.direct:after {
.postAge,.public:after,.unlisted:after,.private:after,.direct:after,.sensitive:after {
font-size:12px;
}

View File

@ -36,7 +36,6 @@ so grateful
ini_set('display_errors', 1);
ini_set("log_errors", 1);
error_reporting(1);
ini_set("error_log", "php-error.log");
include "settings.php"; # the general settings of the FE
include "include/init.php"; # initializes the page load with some variables and cookies

View File

@ -235,7 +235,7 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) {
foreach ($urls as $url) {
parse_str(parse_url($url, PHP_URL_QUERY) , $my_array_of_vars);
if (isset($my_array_of_vars['v'])) {
$post['media'] = "<embed class='desktop' width='620' height='415' src='https://invidiou.site/embed/" . $my_array_of_vars['v'] . "'>";
$post['media'] = "<embed class='desktop' width='620' height='415' src='https://youtube.com/embed/" . $my_array_of_vars['v'] . "'>";
}
}
}
@ -304,7 +304,7 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) {
/* the code of the post footer (date, visibility and like/reblog buttons */
$post['footer'] = "<div style='float:left;'>
<a style='text-decoration:none;' class='ldr postAge' id='".strtotime($elem['created_at'])."' target='_blank' href='?thread=" . $elem['id'] . "' title='".gmdate("d/m/y H:i", strtotime($elem['created_at']))."'>" .time_elapsed_string($elem['created_at']) . "</a> - <span class='fontello ".$elem['visibility']."'> </span>
<a style='text-decoration:none;' class='ldr postAge' id='".strtotime($elem['created_at'])."' target='_blank' href='?thread=" . $elem['id'] . "' title='".gmdate("d/m/y H:i", strtotime($elem['created_at']))."'>" .time_elapsed_string($elem['created_at']) . "</a> - <span class='fontello ".$elem['visibility']."'></span> <span class='fontello ". ($elem['sensitive'] == true ? "sensitive" : "")."'> </span>
</div>
<div class='post_buttons' id='" . $elem['id'] . "'>
" . ($logedin ? "<div class='felem'><a onClick='return false' class='replyform' href='?thread=" . $elem['id'] . "' style='font-family:fontello; vertical-align:middle;' alt='reply'>&#xf112;</a></div>" : "") . "

View File

@ -363,6 +363,10 @@ input[type="checkbox"]:checked+label {
content: '';
}
.sensitive::after {
content: '';
}
.notif .post_buttons {
color: black;
background-color:#efd7f3;

View File

@ -301,6 +301,10 @@ input[type="submit"] {
content: '';
}
.sensitive::after {
content: '';
}
.post_buttons {
color: #0b82d2;
}

View File

@ -285,6 +285,10 @@ input[type="submit"] {
content: '';
}
.sensitive::after {
content: '';
}
.post_buttons {
color: #425f99;
}

View File

@ -390,6 +390,10 @@ input[type="submit"] {
background-repeat:no-repeat;
}
.sensitive::after {
content: '';
}
.notif .post_buttons {
color: black;
background-color:#b8b8b8;

View File

@ -275,6 +275,10 @@ input[type="submit"] {
content: '';
}
.sensitive::after {
content: '';
}
.post_buttons {
color: #425f99;
}

View File

@ -323,6 +323,10 @@ input[type="submit"] {
content: '';
}
.sensitive::after {
content: '';
}
.post_buttons {
color: #404040;
}

View File

@ -339,6 +339,10 @@ input[type="submit"]:hover {
content: '';
}
.sensitive::after {
content: '';
}
.post_buttons {
color: #425f99;
}

View File

@ -392,6 +392,10 @@ button,.postform input[type="submit"],.reply input[type="submit"] {
content: '';
}
.sensitive::after {
content: '';
}
.post .post_buttons a{
color:white;
}

View File

@ -106,6 +106,10 @@ input[type="text"]{
content: '';
}
.sensitive::after {
content: '';
}
.unlisted::after {
content: '';
}

View File

@ -119,6 +119,10 @@ input[type="checkbox"]:checked+label {
content: '';
}
.sensitive::after {
content: '';
}
.side_element li:hover {
background-color: rgba(255, 255, 255, 0.25);
}

View File

@ -247,6 +247,10 @@ textarea,input[type="text"]{
content: '';
}
.sensitive::after {
content: '';
}
.polloption{
display:block;
margin:5px;

View File

@ -406,6 +406,10 @@ button,.postform input[type="submit"],.reply input[type="submit"] {
content: '';
}
.sensitive::after {
content: '';
}
.notif .post_buttons {
background-color:white;
border: 1px solid #999999 !important;

View File

@ -399,6 +399,10 @@ input[type="submit"] {
content: '';
}
.sensitive::after {
content: '';
}
.post_footer .post_buttons a, .post_footer span{
color: #042eb8;
}