{$post->getText()|noescape}
@@ -84,8 +84,8 @@
{/if}
{var $attachmentsLayout = $post->getChildrenWithLayout($width)}
-
-
- {include "../attachment.xml", attachment => $attachment[2], parent => $post, parentType => "post"}
+
diff --git a/Web/Presenters/templates/components/post/oldpost.xml b/Web/Presenters/templates/components/post/oldpost.xml
index 48063747..ff4ec03d 100644
--- a/Web/Presenters/templates/components/post/oldpost.xml
+++ b/Web/Presenters/templates/components/post/oldpost.xml
@@ -67,7 +67,7 @@
+ {include "../attachment.xml", attachment => $attachment[2], parent => $post, parentType => "post", tilesCount => sizeof($attachmentsLayout->tiles)}
+
{var $owner = $author->getId()}
@@ -79,8 +79,8 @@
{/if}
{var $attachmentsLayout = $post->getChildrenWithLayout($width)}
- +}BMLjo)V@{#y%K0fJg{=-_RWIjGI5u^>=
zJr>J*7;@bm0qmW55zs_AuMO-uP6l7gP?GmuLX@Re@J|a;J^24of&;4Z)${JVYEkki
zw!vKnBGYRBUcMlA)wjIs3Lj0JU(Np7?bMjqHN>&;+q}P)ku!QtTqYOu;7nXne?QwK
zW{4aA?h)Pu8Y!jy!%U48)^nCaW(p;!rks;N5`kT?q6H`NZw!@^@11|-Lz9vba&%98
z2^PIDq2V{>_o^*^!zL<phLLiF82NYW?pi~@-23fN$4EVuXpkC3dtlg
zg?N3YlOPzeGTm>BL}p%UzUkvK2@M*0Z?4H;Fp4JI;xA6LMA~Vv=GR=ySZ^Q0gykYw
zcwTfK+Sz#&D{%l{4@8-VK6ZsQz@>kz3Hfw1`H1m_x)V`wVlmo3uM|avKxb5eeFuQ
zpl`nf+xR{;H9j{tcWGvbv`wq8Kl?}yZwrR#YierFVx!|_23>qdN_%?ArEXGocdSDK
zJN{&aWoXrix5^gPonnQUuwIr60^PMFjIX5<6Jok%0)eNm}%
z{G-nOmrZ@-2Dx0VLb~uF1w{i6sX1Y@p*eQBtU2OG7PY2k4Q6P#>F4W9^;f~SNBtT;
zVrXdiiAJO8aW4yVYjv&IU6CPyc~Wtr-So$h#+z{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`C02eQHq|lhC_*YJf_4V(JN6EWPI~VH!D;AYB)}0nPiE_eob`}W!(#&
zIUNMh6IbDRnCIPoq;@J$0Z*sy3-4;B3OF8u>3$^%9NVh@OJuuNr{W0zy<7{T#7oJ)
zhj+25++}{Iz)lYR@aZ3c&h50M9@`c@=<(n}HWK$hBl2?)=wRIamX;P<1VXq5KI&X*
zwh72d+S(xwyQfE@PNFr&L}QSmf@o|B_xPg$afd3B%01{$U&qdANEw{_tIt%??-@I?+)16ur>~IQK=|sx1
zOxlSxkj@a1#;582J$8(Hs2s=Lhg*qb6C|AmIAM=pgn8oA@B{9dehB8EC
zgoqW7GdeV5;?XeIx7YJGd_OTBIgYOm)kn9#@hE!t(1Vm{ze#`M5~Uvdh
- {include "../attachment.xml", attachment => $attachment[2], parent => $post, parentType => "post"}
+
diff --git a/Web/Util/Makima/Makima.php b/Web/Util/Makima/Makima.php
index c9446826..3fc7b014 100644
--- a/Web/Util/Makima/Makima.php
+++ b/Web/Util/Makima/Makima.php
@@ -18,7 +18,7 @@ class Makima
$this->photos = $photos;
}
- private function getOrientation(Photo $photo, &$ratio): int
+ private function getOrientation($photo, &$ratio): int
{
[$width, $height] = $photo->getDimensions();
$ratio = $width / $height;
diff --git a/Web/static/css/main.css b/Web/static/css/main.css
index 4e0ec10b..3725ee70 100644
--- a/Web/static/css/main.css
+++ b/Web/static/css/main.css
@@ -2441,7 +2441,7 @@ a.poll-retract-vote {
position: relative;
}
-.post-horizontal .upload-item .play-button {
+.post-horizontal .upload-item .play-button, .compact_video .play-button {
position: absolute;
height: 30px;
width: 30px;
@@ -2452,7 +2452,7 @@ a.poll-retract-vote {
align-items: center;
}
-.post-horizontal .upload-item .play-button .play-button-ico {
+.post-horizontal .upload-item .play-button .play-button-ico, .compact_video .play-button .play-button-ico {
background: url(/assets/packages/static/openvk/img/wall.png) no-repeat 1px 0;
display: inline-block;
height: 15px;
@@ -2648,12 +2648,13 @@ a.poll-retract-vote {
padding: 3px 0;
}
-.video-wowzer a::before {
- content: "b";
- color: transparent;
- width: 12px;
- background-image: url(/assets/packages/static/openvk/img/videoico.png);
- display: none;
+.video-wowzer .small-video-ico {
+ vertical-align: bottom;
+ display: inline-block;
+ width: 11px;
+ height: 14px;
+ background: url(/assets/packages/static/openvk/img/wall.png?v=2);
+ background-position: -87px 0px;
}
/* Da search */
@@ -3511,3 +3512,26 @@ hr {
width: 30px;
height: 7px;
}
+
+.compact_video {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ height: 100%;
+ width: 100%;
+
+ position: relative;
+}
+
+.compact_video .video-length {
+ text-align: center;
+ position: absolute;
+ width: 34px;
+ height: 14px;
+ bottom: 5px;
+ right: 5px;
+ background: rgba(0,0,0,0.5);
+ color: white;
+}
+
diff --git a/Web/static/css/nsfw-posts.css b/Web/static/css/nsfw-posts.css
index ed9841ca..1d946252 100644
--- a/Web/static/css/nsfw-posts.css
+++ b/Web/static/css/nsfw-posts.css
@@ -1,28 +1,28 @@
-.post-nsfw .post-content .media {
- filter: saturate(0.8) blur(15px);
-}
-
-.post-nsfw .post-content .attachment {
- overflow: hidden;
+.post-nsfw .post-content {
position: relative;
+ overflow: hidden;
+ cursor: pointer;
}
-.post-nsfw .post-content .attachment:active .media {
- filter: none;
+.post-nsfw .post-content .text {
+ filter: saturate(0.8) blur(28px);
+ pointer-events: none;
}
-.post-nsfw .post-content .attachment::after {
+.post-nsfw .post-content::after {
position: absolute;
- top: calc(50% - 16px);
+ top: 0;
left: 0;
width: 100%;
- padding: 8px 0;
- background-color: hsla(0, 0%, 0%, .5);
+ height: 100%;
+ z-index: 1;
+ background-color: hsla(0, 0%, 0%, .7);
color: #fff;
text-align: center;
content: attr(data-localized-nsfw-text);
-}
-.post-nsfw .post-content .attachment:active::after {
- display: none;
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
}
diff --git a/Web/static/img/videoico.png b/Web/static/img/videoico.png
deleted file mode 100644
index 4ebe30f3cf986b60f018409d4faa3892cbffb937..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 130
zcmeAS@N?(olHy`uVBq!ia0vp^+#ogw8<4F3I>j1DaTa()7BevDDT6R$#Zvn+prDDT
zi(^Q|t>gp+(Ji`GMNA$4A0Kn)SJ3{)zxblzCL3lw*Bd6ivwUWre9PT0qn_}|Zqj5{
ZhPsJNSCb}uz7EvS;OXk;vd$@?2>|2eCRhLf
diff --git a/Web/static/img/wall.png b/Web/static/img/wall.png
index 70cd42c0b883dd82499989e4e1fb0434ff2d5f86..197dca8d39ae2bce46709d3f264ab181353c787e 100644
GIT binary patch
delta 2111
zcmbu9`9Bj51IOK0j$z4!MhS(QVdQEUHiic+M{T*4C`b6ZW+P{gM2AcZdn~!emSeeB
zj-;YuW2q>@
+ {include "../attachment.xml", attachment => $attachment[2], parent => $post, parentType => "post", tilesCount => sizeof($attachmentsLayout->tiles)}