From d3e135ea15dff75c47fff244c59260f22839595b Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 9 Apr 2014 14:19:15 +0200 Subject: [PATCH] Enhanced support for new video posts (closed #75) --- public_html/media/css/post-small.css | 31 +++++++++++------- public_html/media/img/thumb-overlay-3gp.png | Bin 0 -> 2136 bytes public_html/media/img/thumb-overlay-flv.png | Bin 0 -> 1514 bytes public_html/media/img/thumb-overlay-mp4.png | Bin 0 -> 2023 bytes public_html/media/img/thumb-overlay-ogg.png | Bin 0 -> 2158 bytes public_html/media/img/thumb-overlay-swf.png | Bin 1951 -> 1966 bytes public_html/media/img/thumb-overlay-webm.png | Bin 0 -> 2542 bytes public_html/media/img/thumb-overlay-yt.png | Bin 1597 -> 1484 bytes src/Helpers/TextHelper.php | 8 ++++- src/Models/SearchParsers/PostSearchParser.php | 2 ++ src/Views/post-small.phtml | 3 +- 11 files changed, 31 insertions(+), 13 deletions(-) create mode 100644 public_html/media/img/thumb-overlay-3gp.png create mode 100644 public_html/media/img/thumb-overlay-flv.png create mode 100644 public_html/media/img/thumb-overlay-mp4.png create mode 100644 public_html/media/img/thumb-overlay-ogg.png create mode 100644 public_html/media/img/thumb-overlay-webm.png diff --git a/public_html/media/css/post-small.css b/public_html/media/css/post-small.css index 90c2f477..cfc5295a 100644 --- a/public_html/media/css/post-small.css +++ b/public_html/media/css/post-small.css @@ -10,7 +10,12 @@ } .post-type-youtube:after, -.post-type-flash:after { +.post-type-swf:after, +.post-type-mp4:after, +.post-type-webm:after, +.post-type-ogg:after, +.post-type-3gp:after, +.post-type-flv:after { position: absolute; right: 1px; /* border */ top: 1px; /* border */ @@ -19,18 +24,22 @@ content: ' '; pointer-events: none; } -.post-type-flash { +.post-type-youtube, +.post-type-swf, +.post-type-mp4, +.post-type-webm, +.post-type-ogg, +.post-type-3gp, +.post-type-flv { border-color: red; } -.post-type-youtube { - border-color: red; -} -.post-type-flash:after { - background: url('../img/thumb-overlay-swf.png'); -} -.post-type-youtube:after { - background: url('../img/thumb-overlay-yt.png'); -} +.post-type-swf:after { background: url('../img/thumb-overlay-swf.png'); } +.post-type-youtube:after { background: url('../img/thumb-overlay-yt.png'); } +.post-type-mp4:after { background: url('../img/thumb-overlay-mp4.png'); } +.post-type-webm:after { background: url('../img/thumb-overlay-webm.png'); } +.post-type-ogg:after { background: url('../img/thumb-overlay-ogg.png'); } +.post-type-3gp:after { background: url('../img/thumb-overlay-3gp.png'); } +.post-type-flv:after { background: url('../img/thumb-overlay-flv.png'); } .post .toggle-tag { diff --git a/public_html/media/img/thumb-overlay-3gp.png b/public_html/media/img/thumb-overlay-3gp.png new file mode 100644 index 0000000000000000000000000000000000000000..16e5af8301a82456e7880fd4a51a1936623e4d70 GIT binary patch literal 2136 zcmdT_X;+g;7OoHy2Wf(@ttcQ87X(|tut@9x0veXIvI??@lCY>@3kYb3VR^A>qy+^d zq9O`ogR%r9LWGb6XdRA#5Kv^5paKzN#K>mYnOA4N%!l~_Q|I1#&b{~Cd+Js_RrQCP zi=*0Ft+fCEHHs721Hs&Hx(nd zL8tHP&>D6CfHlq(vYqFzgA+r^>0TjQpH0d$&5C=+GEW87o0Vq!(%DqE@_WWtuF+ow ze>f#s?{WB$ME%IutW@$*L&8p@J(pT^k7(WGTIT+)J=(PMy3OAL?@xJ$O7r@CUR`1i zFFv#8oNr-AcgQLfvVx~EpU07#*_-qBsoiE?lI0 zK~|95k{LO4TQ;9xzBa}hMS(CF2nte!IB2i1zB$=dMKNxE(Q)mWkxQRHb-rz*dE+wD z>pt~|JlnpVrP7+3o~~v_Y;PAQa-Oh6cJ$`ig7yy`jdz3v{*z~#|Ae5~H+{*v5GVfC zM|bEiv&kc5vSEe4-z^z`hcrL8wC>|=Q^&d4tm@EHJ-}*ZV6*_$dbGMAPwh*OWq=U< z#p$7A{GH3p8teB9a(t=I%VV5(?HIcUe3CfsQ6E45jU)jUb(37to2$Z`Okrz=oT*Kn zFbZR!>fW|s9DgvRJjiCs8hoP`P=u0GZfe=)F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overlay-mp4.png b/public_html/media/img/thumb-overlay-mp4.png new file mode 100644 index 0000000000000000000000000000000000000000..49f2aaf0648b6eca688ca9cdae64957ade40722c GIT binary patch literal 2023 zcmdT__gB-&7M~P?f(RC*DWH^uL42xPzOZ|{fq2fTakozMBqz4y%AnLB4vNv_Tc za_Vvb00kle?*?Jc-=>6u#;dzJ%mfv;(2RTre&pYEGgk;01Jqd!{G=k4H2npZp z?C+trP}CR^@8A(Tx;RF@>JbFzt_)&JDXj)k#Jljcwc>gb;^&NI!9T|XEvxmL8RmXN)^hehN|<_~ui>y`R=2SS8|6;LxTNb{wqW!b6lZ4T8Q+ZE+3I_` zk{8{g(izE@E=>hu{mp|%^OJhTJ=VV}6V7Sux~V;E9U=b=T9{|~HgO;jC& zh=2BZ-U6KVjcJ7I@^$&DMnoMY7iGnC38Sdc+(uULAbavRWLJf|uzcNR5u}#m4{&cu zc5i^9?>7SFxRswOb-9w5&m3xH^=+uxIVB}Fd;iP|e%JmRFa+`{D0aZ2IdtpP{5c>|`8R;Ifl`IwCL zN~lp6WPhwZEIW+5v3gY-H%Kp+-!(ZY-mzsE@_(rBr4ZGVXVOClUOSPVSHxfV%{^f9 zTEbgcz|@oM+E=`(vM4uDiBX2fZ!SMpM7$Zb2+i%xJSo?&J~UB`z=ZQ#eLw;`fo(tR zKj@FR#qzYfXfyn^<#C6NULuNraquDn!w!yOb!Pr4k1s+Os$r2E2^$IaUuP^>m&}J( z?`>&_d2hM45nnrClnL_cL>lYC2<9nFFdnkxiXezwMW?(o&uX_Z=WBHo@$(J*pcN9m zcP1Z(5x-z-LEFpulmnuNqK97chE7zG1EE87Jn8vH6T8Qp*<*$3<2+BYQPQlma)XhU z-8#?P$-leHHi4I&bAPl_`C+6fcnB^`Zr?j5)7McSr(+)#7F7)u2k-wNX(&cScDIrF zu!Duiar>lky)o94uxOLnOZyey$v(03Rv>-#5W3s9&OUMRhvkRk#&^}>*tn3t*N=Wh z-(F7ngZ$heMKqu@MbH55<5b=URQ|IM@8{xWF7<7H1}O+lT)v2T2}c3Y~MmT!2i z21)QNLo=2o{8e&to#l)Iqi&tH7{CzxEI=_D8XC+POX4JsmbPaW8s1teW$p-X8QgGO zM=}<277j54fwTb%F-?uoX}2UbIBcmr>9L2F=B~ua4&E%Ewf7cN$65Bn^!oW@T#;wH zm+2keT`d!)tU*1tUS06n#&QXE9Bqt7#RjhHJcZq#doTyPG%4AVs^+xVYF2$N?Q#AnWJh-2BZE<13rlv!Z;Y)Hx~4Et*VkzrXiQ2}qoOn2pbFLhaR;#bcz@Bt-#P%GjatvITO z){PfrTCq!W9i8R0LAi2e;Ky0q3>`QTL_kk0EeT z(~jaOco8i)rhp2MMtIw4EVK3*TT*t&j@5<1d@q``qwp zFWP^u4Ov1?e8sZ$)2KS-q0nsQpH#Oa=;IWL#3lxaGeTb*38@;}I7gDC&%JMscn_|J zFR_mZeiEs)!5YvF=sh`Q-P-rj;Tl-)mW25CJp0(z8QMOs4Ouh-&&VyxRiwRB@k$V? z<&^n5G+Ie(1LCWD@*=5c&9f!5p1QM{cZ_d)e-H-{|4{9hsaRFWDNEls{>41qqDB}t zxSgoGy%#UULT@1`{l}`-*Ayu1h4ffwQN-Z0$;?DvN%v7#4I`qOP8*2|94bX?D7k$P%IxrwQ2uqC$ zf&iFdOi!M`Kx*xQvBH{~Va+gx7&9ye6I3*o{a*=T5rH9B;{JES!LC39C;<@9xZ-OZ HDL4NDTK|!= literal 0 HcmV?d00001 diff --git a/public_html/media/img/thumb-overlay-ogg.png b/public_html/media/img/thumb-overlay-ogg.png new file mode 100644 index 0000000000000000000000000000000000000000..da892f6b6daed5f99ceed65d0016ea02663c34c9 GIT binary patch literal 2158 zcmdT_`#;ldAHTMV2O&?A+{NypJCj1?uyP)@mz!oKWOJHXVNsLAWY%43rAMrC7NMlW z$f2Ba%5z7AoNCV9!sJvNYGd5rdVYF-c>aLrdVN0E`}O&JUhmg+U9ao?d3~-CT%D8@ zG!*~<0iQ9f0lO*)?uQpn`0Gvl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l8+7mi~!mW4OxloYVl$P~A|S zJi#dId2A&j9UrXhk+-QI9ZKsWpW? z-xM8_+kQE@ylvCvU;*0H$e_IY@rjt;C_Qvw#NI1{cO>bhyyK=6wp>m(gw2I@KYP7q zDrBf-strgQ^!ru&oEMHCJ^ft^XH*_WGtFP6gOqjh=j`Vrx_vd`tx9Ic8(Kb3`UCG} zKhiGfZjms{KfR!|m;LR)?Bvd|UD|Ag;*8cUjsdri75+^4y?Fj@-)=Wx=3Z#%M(XcG zc8b415n7e4Z~%(E$U$;fDw8vLlc;EUD Dcoux? literal 0 HcmV?d00001 diff --git a/public_html/media/img/thumb-overlay-yt.png b/public_html/media/img/thumb-overlay-yt.png index c29d0d0049e3ca75a7973c41a3bc758aefa1029a..601a2b9b3baeeec304506e67ed1fd2a9b9e7239d 100644 GIT binary patch delta 1190 zcmV;X1X=sN49p9VlYa!kNklX=XrSEX%wI~Nhzi5yR|*K@5{R9Gk@JR>Yf1bXSm+Gu048S zr0)4lS6y{a04Sx=D5aF;-?m2|tgd@L)0Gt#OheU*>$3LffnV#M&vaph1=CQq;u>#{ z_CHnkd;lh`z2e$?u>G1`s;_nbAAl*Swu%Sp4u@a?lh*#|?r;3};pkn`yCg|wd^h7e z!2+hB{Sn^t<$uKwMzh&$Cdn%&Upbj1gMEX2Nz#3+`Q&6qAuDE!?=-J-0JxM

mlHza8d+&^%ClJsos*_b4a zHH|eFKUl6c!2d{f9pbL`=>3!b{x|ma_x6`kvT)VHRezdHa^PZ%LA!^LEZllFw#+ zHY-Vf>3{yEJ4tKH(3YVjDL<8;Yzcu0s;y$zEJCI>#}H;~PIF$y>L-b$gQ5w()J_NizE4=!;2Oe}4vNWZlTRBzflNXMRqS#hVtNGd#No zcMqN;SUI@h;DRKXy>|9m!2%|sT5-)u=8w%EOOmfne03s8e%txm&WVBfWaB3rleD&u zZXHdMYaYGk(In}5xa;9_g=KK%;L3?Bsso1(97@s}7#8;|6+Sbx3Y!iP$*fWK57&fodZA-U=9o9<4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dA=RH>Mu06Ly@iBS~Jl z;*~3E_r7*--Mw`xAsqeO=<5W`B2y1nSGB8}B)>fW%kxR{{lf1TCdrz;YxW8jP=5zg z4_D7AJ*One$bBRCCCSf(6vU)WfxO!_o~&GQV$rUy@WhD-*b*U9f=T zHVvEeon;E4^7Aslq|N-#+KeVxz@#-QT!IB0x0w!?U;$G$Q{fUUVA|9>T!IBmyLyF7 zuzn(FB1H0002spW;7p903)Y*u%M#UIiB#Gc7SN zEiyG!F)}(cG&(XkD=;!TFfcxvm(P=r1s5hWEio`HGBs2&GCDIfIx;vbFfuwYFi*!X Qa{vGU07*qoM6N<$g0xSgF#rGn diff --git a/src/Helpers/TextHelper.php b/src/Helpers/TextHelper.php index e07a0f53..30b212e1 100644 --- a/src/Helpers/TextHelper.php +++ b/src/Helpers/TextHelper.php @@ -346,7 +346,13 @@ class TextHelper 'image/jpeg' => 'jpg', 'image/gif' => 'gif', 'image/png' => 'png', - 'application/x-shockwave-flash' => 'swf']; + 'application/x-shockwave-flash' => 'swf', + 'video/mp4' => 'mp4', + 'video/webm' => 'webm', + 'video/ogg' => 'ogg', + 'application/ogg' => 'ogg', + 'video/x-flv' => 'flv', + 'video/3gpp' => '3gp']; return isset($mimeTypes[$mimeType]) ? $mimeTypes[$mimeType] : null; diff --git a/src/Models/SearchParsers/PostSearchParser.php b/src/Models/SearchParsers/PostSearchParser.php index 162bf06a..46edd9ae 100644 --- a/src/Models/SearchParsers/PostSearchParser.php +++ b/src/Models/SearchParsers/PostSearchParser.php @@ -192,6 +192,8 @@ class PostSearchParser extends AbstractSearchParser $type = PostType::Flash; elseif ($value == 'img') $type = PostType::Image; + elseif ($value == 'video' or in_array($value, ['mp4', 'webm', 'ogg', '3gp', 'ogg'])) + $type = PostType::Video; elseif ($value == 'yt' or $value == 'youtube') $type = PostType::Youtube; else diff --git a/src/Views/post-small.phtml b/src/Views/post-small.phtml index 59761bc4..d52faf15 100644 --- a/src/Views/post-small.phtml +++ b/src/Views/post-small.phtml @@ -4,7 +4,8 @@ CustomAssetViewDecorator::addStylesheet('post-small.css'); $classNames = [ 'post', - 'post-type-' . TextHelper::camelCaseToHumanCase(PostType::toString($this->context->post->type)) + 'post-type-' .(TextHelper::resolveMimeType($this->context->post->mimeType) ?: + TextHelper::camelCaseToHumanCase(PostType::toString($this->context->post->type))), ]; $masstag = (isset($this->context->source)