From 1347bb2be27360c799d327f12ab60347ee991cb9 Mon Sep 17 00:00:00 2001 From: lalka2016 <99399973+lalka2016@users.noreply.github.com> Date: Sat, 8 Jul 2023 19:36:52 +0300 Subject: [PATCH 1/2] Mobile theme: fixes --- res/menu_icons.png | Bin 5270 -> 5335 bytes res/note.png | Bin 0 -> 228 bytes res/ovk_attach.png | Bin 3047 -> 3617 bytes res/podrobnee.js | 80 +++++++++++++-- res/youtube_video.png | Bin 0 -> 1924 bytes stylesheet.css | 181 ++++++++++++++++++++++++---------- tpl/@layout.xml | 6 ++ tpl/Group/Edit.xml | 120 ++++++++++++++++++++++ tpl/Group/EditBackdrop.xml | 32 ++++++ tpl/Group/Followers.xml | 53 ++++++++++ tpl/Group/View.xml | 79 ++++++++++++--- tpl/Notes/Create.xml | 58 +++++++++++ tpl/Notes/Edit.xml | 48 +++++++++ tpl/Notes/List.xml | 107 ++++++++++++++++++++ tpl/Notes/PreView.xml | 37 +++++++ tpl/Notes/View.xml | 79 +++++++++++++++ tpl/Search/Index.xml | 129 +++++++++++++++++++++--- tpl/Topics/Board.xml | 56 +++++++++++ tpl/Topics/Create.xml | 73 ++++++++++++++ tpl/Topics/Edit.xml | 55 +++++++++++ tpl/Topics/Topic.xml | 29 ++++++ tpl/User/View.xml | 69 ++++++++++++- tpl/components/attachment.xml | 19 +++- tpl/components/comment.xml | 2 +- tpl/components/post.xml | 119 +++++++++++----------- tpl/components/textArea.xml | 13 ++- tpl/components/video.xml | 41 ++++++++ 27 files changed, 1327 insertions(+), 158 deletions(-) create mode 100644 res/note.png create mode 100644 res/youtube_video.png create mode 100644 tpl/Group/Edit.xml create mode 100644 tpl/Group/EditBackdrop.xml create mode 100644 tpl/Group/Followers.xml create mode 100644 tpl/Notes/Create.xml create mode 100644 tpl/Notes/Edit.xml create mode 100644 tpl/Notes/List.xml create mode 100644 tpl/Notes/PreView.xml create mode 100644 tpl/Notes/View.xml create mode 100644 tpl/Topics/Board.xml create mode 100644 tpl/Topics/Create.xml create mode 100644 tpl/Topics/Edit.xml create mode 100644 tpl/Topics/Topic.xml create mode 100644 tpl/components/video.xml diff --git a/res/menu_icons.png b/res/menu_icons.png index 6faf986fe90926231920104741dd1da5abd7f7c5..b798a89d3a41669575fb54dc48eee4473c062751 100755 GIT binary patch delta 4622 zcmV+p67lVpDc32G7YdsQ1^@s6G3Gl2ks&C5!TS$E?HcqG4-e6aa74m`uN zgCt-YqAUT(W&9YTA^|9st{S320#G6WC88<_R_UA^lP4}g31dlrMiYP< z5{q;y0x;9NMqyD%CVAr25$mtVbjcKqK}90OG)jfNSPvzVu>^+Xxkb---hd(VyjPr% zWUh)`7I8`z1dE<03x*QOR4uNMJeMOOf2Qe*n;PE+S0QXx!lHY;gm%Uwv7#PgX|C%9 zVM@XXpDVFC6ASmzfmI_Usr@{Eqlw~_@Zi!;LWJk-S~XFrbQy>!mqO0RFO*=2q(o4S z63M&}fJM<(8j_59YPh51XWemE$sHsYNR~_fCP@(2nV~#+p5$GUH%oYvmr9-}IY#nw zNfk;Y`$>+IJW#TyBrLAil0f*B=GOpnBx_4v&<2ZmhGgm@yg?^JxV7YeI&CnI(&zeL zcP!ygl7F|sJaQ!KNUqrii@35o7Lg-)h~&C$u!!v>PiupDD~+$dLe)J#6neoGJNr8!V$l@=M8)60ZgQ zmE_PiIE)erc%S6&ZLo)6cSwHR28WR&xv^w7$$KShaU#NVBs7?hm)wXGCB!6~OHhZt zAvsy{0EyQ&F#%1xb%ulzc7o*I5*J27gGh5uKfznxN>U5jue~K-lDtuJJxLEna+G8r zNljCd11-e9lcNJGf9pD-Nk@Z3j+Tr@j)YbgOUaNS=U$Rc+TfCdB;=ueLO%2J+u$mABtPtqIs8U~f13&L6gxOF%N-04* z$8<~II>8W)aUepNb6n$|LF7nwmV8#iz$XW;aS!(v;gK-fI;9OZ_?=`&33?Yom~#g1 z<(Vuz67s+XLqCv{1O{UouS-J10bwelY4I50a<-TT9toDY-P>S;TS$|E1{8lv!u*NB zvO)u^oOWn~DRL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bEmY%G-~15q5P zaAf*K$<{qIoJ3ABw=oNS{Rv%of|4TfVjbAT*h&i8J^eXj7b+`O?XY&gUIcFYRqW$M zgn~^IQ~Ix2^sT)`kX@i!qpeT?*w7dS4!>@SD!SPBB?PQve2Y0ycw=CvV*hqH* zPg~(3_S$B$W-|S%^JpnpgIMlKo_}DZ-b>dTUlmc zfC(BV4Cu_55u$HDqkAcUCjzNQxhQ&j0JHQQYM-RTKKjk4pbxRF$(h}5yb!uKHy4xM zY>-ESFE$VKIw>R6n`8enBiac%A2#juFWlFg4f04RIalc6*hm8bna)%c_kZvb;a+#V z2%Q%L*q$NIBf-JKzHx zAM&Z^jNy?m8$?RHJ!YgWQZX5Jq6og_m+mjbj( zeDEj`o9kW-2@_;nVLi;$H+mEWfTcP(B7IB|G(}t2QMOT;a8+b|DW=37bv>C48fxm< zNu1fB&^?h-#izPylRFX{0kV@<5*>f80zidKFq9Jh*)SwHL=i1T6lUtlz&-TyE{0Mv zs_1p(32I5MuLzihNT7S@$eL?8lB$f)5dd8a2d6G(^<)%gB%?4R8HFkmH67UrG+i5N zp%JOl|L{CrmCwfQr;}^zV@< z71UyKpAR#B`Kf;dQxpp?c2!)H)W<1dki$4}ciq%@dg#bz>m@HJ zoM#xYvhx*3yb)MkFxfaPCJBdaHx&V{KIBn6)DD65h!MmK5F&s3xv>6( zz_7`DBE|y-pZF0|>F_kb&cgl#7zfM^CB$USR!kDV5tWP*gJlA*&h1s&R!SK3a2{tS z#_bW!{AAbnMd-AaEcq2bzP~a}BOb1q00000NkvXXu0mjfsgz1% diff --git a/res/note.png b/res/note.png new file mode 100644 index 0000000000000000000000000000000000000000..c9e3efdb8dabd9b7403338dd973cbbe0b00d15e4 GIT binary patch literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^PCy*Q!3-p?$9!@GQjEnx?oJHr&dIz4a#+$GeSv}- z`?>!lvI6;R0X`wF%hs$1GEePx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D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H@e>!xZP5i}869f22ON^hCfUi~O_R1%7B;X?OzpQC) z{}_2+SN=YYuQ0NC_{iI3`M7c`(m36A&z&GCE%QBo4W55AWf69X>;m|j?)Qirmg#==M5t&EI_ zgP)XuTTsEn`T*G2-0`v~M*?oqfj7C~18)mDd}~Z%yA}C=Z@CCtG_8w;54DLu%=eos z;NMeu4(mgV>ptj<_)+A`L4b>JH+j;nk}&!lKl*jXiAJE0o4X5lBK>$-r0%SUG4l&D z==uSC;6#i8a=>sFkk23Wr!l&G0!lNCUO?Y&~J(h5r)wj9$ z^FfjCi6R1bt9esKj`3CSaAYY?d4|k#6%pGyCZ2xGS5U_uQw6 z>)AFN_}mc(%eE>$T@=V08^6b`$l3vyRyZmQO=xu%iXUN-yxTZC(85MR4hHW>xu4I_ z7_W+Nx(^AlQQuMe_-Y-jX_<~hTkK0&gjDz`eSlsIm^<6J`|E8cB-+7eA@k6n^KEQL zM*DL&CpQ$$KwB=2ih{_nzjfgoXHhpa3L-0T&sJm_TbF}iw{CaiTDHcvd zONDPNo`~i-3*v^bXa|unHzZ86bruBLpS!APQEfHOVMI3>Ulc^feXU1)MnPoV*?ouc z(7kqV#9=(#Ec11f?O{A+{D{MND)3Vu#)C?I+c+!GNlB0+ + ${tr('your_comment')}: +
+ + + + `) + + repSubmit.onclick = () => { + text = document.querySelector("#uRepostMsgInput_"+postId).value; + type = "wall"; + + let xhr = new XMLHttpRequest() + xhr.open("POST", "/wall"+postId+"/repost?hash="+encodeURIComponent(hash), true); + xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); + xhr.onload = (function() { + if(xhr.responseText.indexOf("wall_owner") === -1) { + el.innerHTML = "can't repost" + } else { + let jsonR = JSON.parse(xhr.responseText); + location.href = "/wall" + jsonR.wall_owner + } + }); + + xhr.send('text='+encodeURI(text) + '&type='+type); + } + } else { + document.getElementById("post"+postId+"_actions").innerHTML = "" + } +} + +if(document.querySelector("#_noteDelete") != null) { + document.querySelector("#_noteDelete").addEventListener("click", (e) => { + let link = e.currentTarget.href + let hash = document.querySelector("meta[name=csrf]").getAttribute("value") + let id = e.currentTarget.dataset.id + + let xhr = new XMLHttpRequest() + xhr.open("POST", link) + xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); + + xhr.onload = () => { + location.href = "/notes"+id + } + + xhr.send('hash='+encodeURIComponent(hash)); + + e.preventDefault() + }) +} \ No newline at end of file diff --git a/res/youtube_video.png b/res/youtube_video.png new file mode 100644 index 0000000000000000000000000000000000000000..e080d89e72c30571e5f39ec2eb9864f95152e875 GIT binary patch literal 1924 zcmV-~2YdL5P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D2N_93K~#8N?VW8* zQ&$*(K`0**1{<*9vNnKDFxw=ISy-kNkraVZ1S3->n*C7{4Z&XqH8DnGVjyaQA2CKo z!bjMQsZd#ANM#U^;LyQitNDne%Dg7`R+>ij}YeVxTZnV}z z(^Qt>iopS)etv!rbvoSxdi}D8&;gu`84PaO3in<_+h!??%%<1?&OQE6NM_PwDuhgJ z8IB=})@DM;I)mXDjQ8GD2uoLvgQP7zrb0~H3~n*rdnN%HOb9ZV5M(eR$Y4T{!Gs`# z2|)%bAyTQ-UnY|U&`YNTm5|WTP@mG$($wPO;?I12eaY^#(}6B!Eddk?#m6^p+(^&N z%zU4Qod&dHNKjCa@5z%VJ!x3*pc3Ng>1lR?>FVn05*HV@;`;UL8M}Ay zc8c9-R6>XVOTc*Ib>P4OSxrq%;>wjPeP~#apiNnph>VQK zH>*Dn%+Orra(RSCquG>`lOv{K-hoO8q@XvRIr;nh`y4xVY{TWtm*Yc1LcD31HwYqS zSwbq6hN#u*jD7p|eK_Cx1|xzMLRh+VsYiZ({ugz1bsJZ&Ui}sgqXw0b#Y}q_LqtSG z@Rci9(vKcJ`iV#+Lj6yO>ciP{^$oJ!cI?;@4O8SV*RNk6NWTYS$%KOm z`5(xc%a$!$A~hO~A~iMjJsP$fsD!-9_Pf0a4i5G^d-m+cOP4Nv4%1~18n!v8Zh#{O z(ZxU}9f^sF;f;-ro1&wm{b<;xu#~k(Mn^{<7Zw)Y?Ck8+(U47HLKeu}+}yM3>gt~O z`1q@^vLB>jn}bS-NF+k}^vJz?_eQd_vsHO{c|YrPx_RGqWeZRV!FIAYF){Jv)TvXg zFm9;Z+uO-|uIvs=Sr&Ny{JBeWbMsvgp*(&1^j&hz71(-+!@J1P(9rmvJ$uwSIXSJ+ zo~B{WKqbVHTPHI!Gf&IP$~t8-Sxs$i?FbEX4og`;S6A0ydV2cRLx&Fi3S!J&xyLn5 zEo5wLY~t|Y!y1J`(b(75_n3wq3MwI7eZ}Azpi-%N$(o|Hv{XyOC_p8IY~<0V-RSS{ z|7-j9?br71-Fs_%e0-LM(cm;GYjSe(NpW#;8%$+?Xl-pBrD1dkUI3ls7cP*WnR7afvl@v+@-1yT z46#`3#g|P$TLTl7Z%B=*hd8SYQ&11;&Il8N3?>8_Ob9ZV5M(eR$Y4T{!Gs`#2|)%E zf(#}E8B7Q=m=I(zA;>Tl!n?;V1%&b5n+oCNd)N$%7+=$2D#R&|Op$P()@DNP(3-(L zztGxD$So)=ZE?>ylnz7FM2J?aB@ZiqXSiZ;$oFvXXK35S?D2n{PWQkMfTmOYW*`EZ zK*lxN)?=EoUQiCD$ zAcef_aSfCxDC9NVB%N96RgC!|i$1c>Aj=9elkG4aGZ?6GarqYjpZXjgxHxkF0000< KMNUMnLSTY#B8(OQ literal 0 HcmV?d00001 diff --git a/stylesheet.css b/stylesheet.css index 1cd6edf..36fb5bb 100755 --- a/stylesheet.css +++ b/stylesheet.css @@ -50,7 +50,7 @@ input, button { -webkit-appearance: button;} background-color: #f7f7f7; margin: 0 auto; font-family: tahoma, verdana, arial, sans-serif; - max-width: 580px; + max-width: 580px; } .app_layer{ @@ -137,7 +137,7 @@ input, button { -webkit-appearance: button;} margin: 0.5em -12px; } -.button, .fileInput, input[type=submit], input[type=reset] { +.button, .fileInput, input[type=submit], input[type=button], input[type=reset] { display: inline-block; border: none; border-radius: 3px; @@ -357,15 +357,15 @@ input, button { -webkit-appearance: button;} outline: none; cursor: pointer; vertical-align: middle; - margin-top: 0%; + margin-top: 0%; } .formInput > input[type=checkbox]{ - background-image: url("data:image/gif;base64,R0lGODlhDwA4ALMAAP//////AP8A//8AAAD//wD/AAAA/wAAADtZd8XKzuHh4crKysHBwba2tv///wAAACH5BAEAAA4ALAAAAAAPADgAAASzcMlJqVsg653X5SDgYeE2luaHdup6rmKLvq5c0rMdjlUvXb6eDoRAkFBF4yqZOBKLi2aJSUNomE1VEoCNkRLJYiLB+oLF5LJmjBinnOO0BncDBi2NvH6/dzQUgIGCgA1+g4cKhX+IgoqMjYaPhJGSjpKJlI+WlZmMm5qdiIp8pHl+paShh0WLj0mtiEywg0kMCbOBTAyUCLlolkkKWJiLZ8PEgGxogZtsY5CwcYOfnqeofREAOw=="); + background-image: url("data:image/gif;base64,R0lGODlhDwA4ALMAAP//////AP8A//8AAAD//wD/AAAA/wAAADtZd8XKzuHh4crKysHBwba2tv///wAAACH5BAEAAA4ALAAAAAAPADgAAASzcMlJqVsg653X5SDgYeE2luaHdup6rmKLvq5c0rMdjlUvXb6eDoRAkFBF4yqZOBKLi2aJSUNomE1VEoCNkRLJYiLB+oLF5LJmjBinnOO0BncDBi2NvH6/dzQUgIGCgA1+g4cKhX+IgoqMjYaPhJGSjpKJlI+WlZmMm5qdiIp8pHl+paShh0WLj0mtiEywg0kMCbOBTAyUCLlolkkKWJiLZ8PEgGxogZtsY5CwcYOfnqeofREAOw=="); } .formInput > input[type=radio]{ - background-image: url("/themepack/mobile_ovk/0.0.1.0/resource/radio.png"); + background-image: url("/themepack/mobile_ovk/0.0.1.0/resource/radio.png"); } .formInput > input[type=checkbox]:hover, .formInput > input[type=radio]:hover { @@ -443,6 +443,12 @@ input, button { -webkit-appearance: button;} color: #9a6d6d; } +.alert.yellow { + border-color:#D4BC4C; + background-color:#F9F6E7; +} + + .alert.inline { background-color: #fff; text-align: center; @@ -451,8 +457,8 @@ input, button { -webkit-appearance: button;} .tabs { margin-top: 11px; padding-bottom: 11px; - overflow-x: scroll; - white-space: nowrap; + overflow-x: scroll; + white-space: nowrap; } .tabs > .selector > .tab-select { @@ -758,24 +764,24 @@ img.rounded, .post > .author > .ava { /* папапепе гемабоди) */ .navigation { - pointer-events:none !important; - position: fixed; - width: 866px; - } - .app, - h2 { - min-width:864px; - max-width:45%; - border-right:none; - border-bottom:0px solid #dee5eb - } - .menuovk { - background:#fff; - width:288px !important; - display:block !important; - top: 48px; - position: absolute; - } + pointer-events:none !important; + position: fixed; + width: 866px; + } + .app, + h2 { + min-width:864px; + max-width:45%; + border-right:none; + border-bottom:0px solid #dee5eb + } + .menuovk { + background:#fff; + width:288px !important; + display:block !important; + top: 48px; + position: absolute; + } .profile_menu_arrow{ position: inherit; @@ -792,7 +798,7 @@ img.rounded, .post > .author > .ava { z-index:1337; right: 0; top: 0; - pointer-events: all !important; + pointer-events: all !important; } .head_now{ @@ -862,9 +868,9 @@ img.rounded, .post > .author > .ava { .menunameava .pr_ovk_page .status { color: #797979; font-size: 14px; - overflow: hidden; - max-width:200px; - text-overflow: ellipsis; + overflow: hidden; + max-width:200px; + text-overflow: ellipsis; } /* Подписывайтесь на мой YouTube: youtube.com/DanielM */ @@ -1047,7 +1053,7 @@ img.rounded, .post > .author > .ava { .content_post { padding: 12px; padding-top: 2px; - background: #fff; + background: #fff; } .post { margin-top: 10px; @@ -1119,19 +1125,19 @@ img.rounded, .post > .author > .ava { margin-top: 19px; font-weight: bold; margin-left: 5px; - text-overflow:ellipsis; - white-space:nowrap; - overflow:hidden; - max-width: 55%; + text-overflow:ellipsis; + white-space:nowrap; + overflow:hidden; + max-width: 55%; } .video_desc{ - text-overflow:ellipsis; - white-space:nowrap; - overflow:hidden; - max-width: 55%; - display: block; - max-height: 75px; + text-overflow:ellipsis; + white-space:nowrap; + overflow:hidden; + max-width: 55%; + display: block; + max-height: 75px; } .profile_link_form { @@ -1506,6 +1512,10 @@ h4 { background-position: 0px -332px; } +#notfg{ + background-position: 0px -392px; +} + .element.prmenu.gray a { font-size: 16px; font-weight: normal; @@ -1735,7 +1745,7 @@ input[type~="search"]{ background: #fff; } -.attach_menu_ph{ +.attach_menu_ph { text-align:left; background-color: transparent; display: block; @@ -1750,6 +1760,19 @@ input[type~="search"]{ padding: 0px; } +.attach_menu_video { + background-color: transparent; + display: block; + float: right; + position: inherit; + background-image: url('/themepack/mobile_ovk/0.0.1.0/resource/ovk_attach.png'); + width: 32px; + height: 32px; + background-position: -350px 50%; + background-repeat: no-repeat; + margin: -12px 0px 0px 0px; + padding: 0px; +} .avatar-list-item { padding: 4px 0; @@ -1864,7 +1887,7 @@ input[type~="search"]{ font-weight: bold; border: 1px solid #d7cf9e; border-bottom: 0; - font-size: 14px; + font-size: 14px; } #faqcontent { @@ -1872,19 +1895,19 @@ input[type~="search"]{ margin: 0 5px 10px; padding: 5px 5px 5px 10px; border: 1px solid #ddd; - font-size: 12px; + font-size: 12px; } .s_text{ - font-size: 14px; - margin: 3px; + font-size: 14px; + margin: 3px; } .s_post-author{ - font-size: 14px; + font-size: 14px; } .knowledgeBaseArticle{ - padding: 5px; + padding: 5px; } .alert.fake { @@ -1902,7 +1925,7 @@ input[type~="search"]{ padding: 8px; transition: .1s filter ease-in; border: 1px solid #e3e3e3; - margin-bottom: 10px; + margin-bottom: 10px; } .poll-embed { @@ -1916,8 +1939,8 @@ input[type~="search"]{ .poll-meta .nobold { font-style: oblique; - font-size: 12px; - color: gray; + font-size: 12px; + color: gray; } .poll-result-barspace { @@ -1967,7 +1990,7 @@ a.poll-retract-vote { } label, .poll > input[type=checkbox]{ - background-color: transparent; + background-color: transparent; border: none; border-radius: 0; -moz-appearance: none; @@ -1977,11 +2000,11 @@ label, .poll > input[type=checkbox]{ outline: none; cursor: pointer; vertical-align: middle; - margin-top: 0%; + margin-top: 0%; } .poll-option{ - padding: 5px; + padding: 5px; } .completeness-gauge { @@ -2018,6 +2041,19 @@ label, .poll > input[type=checkbox]{ margin-left: 5px; } +.youtube_video_block { + margin-bottom: 10px; + position: relative; +} + +.youtube_button { + z-index: 555; + position: absolute; + margin: auto; + position: absolute; + top: 0; left: 0; bottom: 0; right: 0; +} + /* IE 10+ styles only for necrobrowsers */ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { .navigation { @@ -2048,3 +2084,42 @@ label, .poll > input[type=checkbox]{ margin-top: 45px; } } + +.note_attachment { + background-color: #E6E6E6; + margin-bottom: 5px; + padding-top: 5px; + padding-bottom: 5px; + display: flex; +} + +.note_icon { + max-width: 30px; + margin-left: 10px; +} + +.note_name { + margin-left: 5px; + color: #636466; + font-family: tahoma, verdana, arial, sans-serif; +} + +.note_attachment:hover { + background-color: #ecebeb; +} + +.note_attachment:active { + background-color: #cecece; +} + +.mobile_repost { + background:#E6E6E6; + color: #636466; + font-size: 18px; + width: 300px; + padding: 5px; +} + +.note_title a { + font-size: 20px; +} \ No newline at end of file diff --git a/tpl/@layout.xml b/tpl/@layout.xml index 4282aff..046b5a3 100755 --- a/tpl/@layout.xml +++ b/tpl/@layout.xml @@ -14,6 +14,9 @@ + + {script "js/l10n.js"} + {ifset headIncludes}{include headIncludes}{/ifset} @@ -85,6 +88,9 @@
  • {_mobile_videos}
  • +
  • +
    {_mobile_notes}
    +
  • diff --git a/tpl/Group/Edit.xml b/tpl/Group/Edit.xml new file mode 100644 index 0000000..dfe3c94 --- /dev/null +++ b/tpl/Group/Edit.xml @@ -0,0 +1,120 @@ +{extends "../@layout.xml"} +{block title}{_edit_group}{/block} + +{block titleHeader} + {$club->getName()} » {_edit_group} +{/block} + +{block body} + + +
    +

    {_main_information}

    +
    + +
    + {_name}: + +
    +
    + {_description}: + +
    +
    + {_page_address}: + +
    +
    + {_website}: + +
    +
    + {_avatar}: + +
    +
    +
    + {_wall}:
    +
    {_group_allow_post_for_everyone}
    +
    {_group_hide_from_global_feed}
    +
    +
    + {_discussions}:
    +
    {_everyone_can_create_topics}
    +
    {_display_list_of_topics_above_wall}
    +
    +
    + {_group_administrators_list}:
    + {var $areAllAdminsHidden = $club->getManagersCount(true) == 0} +
    {_group_display_only_creator}
    +
    {_group_display_all_administrators}
    +
    {_group_dont_display_administrators_list}

    +
    + +
    + + + + + + {_delete_group} + +
    + +
    + + + + + + + + + + + + +
    +
    +{/block} diff --git a/tpl/Group/EditBackdrop.xml b/tpl/Group/EditBackdrop.xml new file mode 100644 index 0000000..52de044 --- /dev/null +++ b/tpl/Group/EditBackdrop.xml @@ -0,0 +1,32 @@ +{extends "../@layout.xml"} +{var $backdrops = $club->getBackDropPictureURLs()} + +{block title}{$club->getName()} | {_backdrop}{/block} + +{block titleHeader} +{$club->getName()} » {_backdrop} +{/block} + +{block body} + + +
    + can't +
    +{/block} diff --git a/tpl/Group/Followers.xml b/tpl/Group/Followers.xml new file mode 100644 index 0000000..7032576 --- /dev/null +++ b/tpl/Group/Followers.xml @@ -0,0 +1,53 @@ +{extends "../@listView.xml"} +{var $Manager = openvk\Web\Models\Entities\Manager::class} +{var $iterator = $onlyShowManagers ? $managers : $followers} +{var $count = $paginatorConf->count} +{var $page = $paginatorConf->page} +{var $perPage = 6} + +{block title}{_followers} {$club->getCanonicalName()}{/block} + +{block titleHeader} + {$club->getCanonicalName()} + » {_followers} + {_all_followers} + {_only_administrators} +{/block} + +{* BEGIN ELEMENTS DESCRIPTION *} + +{block tabs} + {if $club->canBeModifiedBy($thisUser)} + + + + {/if} +{/block} + +{block link|strip|stripHtml} + /id{$x instanceof $Manager ? $x->getUserId() : $x->getId()} +{/block} + +{block preview} + {$x instanceof $Manager ? $x->getUser()->getCanonicalName() : $x->getCanonicalName()} +{/block} + +{block name} + {$x instanceof $Manager ? $x->getUser()->getCanonicalName() : $x->getCanonicalName()} +{/block} + +{block description} + +{/block} \ No newline at end of file diff --git a/tpl/Group/View.xml b/tpl/Group/View.xml index 5541f92..8b25402 100755 --- a/tpl/Group/View.xml +++ b/tpl/Group/View.xml @@ -44,6 +44,7 @@ {/block} {block body} + {if method_exists($club, "isDeleted") && $club->isDeleted()}
    @@ -56,6 +57,52 @@
    + {ifset $thisUser} + {if method_exists($club, "isDeleted") && $club->isDeleted() && $thisUser->getId() == $club->getOwner()->getId() && !$club->isBanned()} +
    + + +
    + {/if} + + {if $club->getSubscriptionStatus($thisUser) == false} + {else} +
    + + + + +
    + {/if} + {/ifset} + + {if !$club->isBanned()} +

    {_group_was_deleted}

    + {else} +

    {_group_was_blocked}

    +

    {_ban_reason_g}: {$club->getBanReason()}

    + {/if} +
    + + + {else} + +
    +
    +
    +
    + +
    + +
    +

    {$club->getName()}

    +
    +
    + + {if isset($thisUser) && $club->canBeModifiedBy($thisUser)} + + {/if} + {ifset $thisUser} {if $club->getSubscriptionStatus($thisUser) == false}
    @@ -101,19 +148,19 @@
    -->
    -
    +
    {_information}
    -
    +
    - - + + - - + + - - -
    Описаниe:
    {_description}: {$club->getDescription()}
    Сайт:
    {_website}: {$club->getWebsite()} @@ -132,16 +179,22 @@ {presenter "openvk!Wall->wallEmbedded", -$club->getId()} - + {/if} + {/block} diff --git a/tpl/Notes/Create.xml b/tpl/Notes/Create.xml new file mode 100644 index 0000000..3e0b78c --- /dev/null +++ b/tpl/Notes/Create.xml @@ -0,0 +1,58 @@ +{extends "../@layout.xml"} + +{block title}{_create_note}{/block} + +{block titleHeader} + {_create_note} +{/block} + +{block body} + + +

    + +
    + +

    Кое-что из (X)HTML поддерживается.

    + + + + {_note_preview} + + + {script "js/node_modules/monaco-editor/min/vs/loader.js"} + {script "js/node_modules/requirejs/bin/r.js"} + +{/block} diff --git a/tpl/Notes/Edit.xml b/tpl/Notes/Edit.xml new file mode 100644 index 0000000..7e66ae7 --- /dev/null +++ b/tpl/Notes/Edit.xml @@ -0,0 +1,48 @@ +{extends "../@layout.xml"} + +{block title}{_edit_note}{/block} + +{block titleHeader} + {var $author = $note->getOwner()} + {$author->getCanonicalName()} + » + {_notes} + » + {$note->getName()} +{/block} + +{block body} +
    + +

    + +
    + +

    Кое-что из (X)HTML поддерживается.

    + + + + +
    + + {script "js/node_modules/monaco-editor/min/vs/loader.js"} + {script "js/node_modules/requirejs/bin/r.js"} + +{/block} diff --git a/tpl/Notes/List.xml b/tpl/Notes/List.xml new file mode 100644 index 0000000..56955b1 --- /dev/null +++ b/tpl/Notes/List.xml @@ -0,0 +1,107 @@ +{extends "../@layout.xml"} +{var $iterator = iterator_to_array($notes)} +{var $page = $paginatorConf->page} + +{block title}{_notes}{/block} + +{block titleHeader} + {if isset($thisUser) && $thisUser->getId() == $owner->getId()} + {_my_notes} + {else} + + {$owner->getCanonicalName()} + » + {_notes} + {/if} +{/block} + +{block actions} + +{/block} + +{* BEGIN ELEMENTS DESCRIPTION *} + +{block body} + + +
    +
    +
    + {tr("notes_list", $count)} + + + + + + +
    +
    +
    + {var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)} + {if sizeof($data) > 0} + +
    +
    +
    + + +
    +
    + {$dat->getText(750)|noescape} +
    + +
    +
    + + {else} + {if isset($thisUser) && $thisUser->getId() == $owner->getId()} + +

    {_welcome}

    {_notes_start_screen}
    + + {else} + {ifset customErrorMessage} + {include ../customErrorMessage} + {else} + {include ../components/nothing.xml} + {/ifset} + {/if} + {/if} +
    +{/block} \ No newline at end of file diff --git a/tpl/Notes/PreView.xml b/tpl/Notes/PreView.xml new file mode 100644 index 0000000..4f80214 --- /dev/null +++ b/tpl/Notes/PreView.xml @@ -0,0 +1,37 @@ +{extends "../@layout.xml"} + +{block title} + {$title} +{/block} + +{block header} + {$title} +{/block} + +{block content} + + + {$html|noescape} +{/block} diff --git a/tpl/Notes/View.xml b/tpl/Notes/View.xml new file mode 100644 index 0000000..5bba736 --- /dev/null +++ b/tpl/Notes/View.xml @@ -0,0 +1,79 @@ +{extends "../@layout.xml"} + +{block title}{$note->getName()}{/block} + +{block titleHeader} + {var $author = $note->getOwner()} + {$author->getCanonicalName()} + » + {_notes} + » + {$note->getName()} +{/block} + +{block body} + {var $author = $note->getOwner()} + + + + + +
    + {include "../components/comments.xml", + comments => $comments, + count => $cCount, + page => $cPage, + model => "notes", + parent => $note, + showTitle => false} +
    +{/block} \ No newline at end of file diff --git a/tpl/Search/Index.xml b/tpl/Search/Index.xml index d6e31e8..45f9fda 100755 --- a/tpl/Search/Index.xml +++ b/tpl/Search/Index.xml @@ -1,4 +1,4 @@ -{extends "../@listView.xml"} +{extends "../@layout.xml"} {block title} {if $type === "users"} @@ -8,8 +8,8 @@ {/if} {/block} -{block header} - +{block titleHeader} + {_header_search} {/block} @@ -19,18 +19,35 @@ {block tabs} - -
    - - {_groups} - + -
    +
    @@ -39,6 +56,92 @@
    {/block} +{block body} + {include tabs} +

    + {tr("results", $count)} +

    +
    + + {var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)} +
    + {if sizeof($data) > 0} + {if $type == "users" || $type == "groups" || $type == "apps"} +
    + + + + + + + + +
    + + {include preview, x => $dat} + + + {ifset infotable} + {include infotable, x => $dat} + {else} + + + {include name, x => $dat} + + +
    + {include description, x => $dat} + {/ifset} +
    +
    + {elseif $type == "posts"} +
    + {if $dat->getTargetWall() < 0 && $dat->getWallOwner()->isHideFromGlobalFeedEnabled()} + {_dont_need_to_see_post} + {else} + {include "../components/post.xml", post => $dat, commentSection => true, onWallOf => true} + {/if} +
    + {elseif $type == "comments"} +
    + {if $dat->getTarget()->isDeleted()} + {_dont_need_to_see_comment} + {else} + {include "../components/comment.xml", comment => $dat, linkW => true} + {/if} +
    + {elseif $type == "videos"} + {foreach $data as $dat} +
    + {if $dat->getOwner()->isDeleted()} + {_dont_need_to_see_video} + {else} + {include "../components/video.xml", video => $dat} + {/if} +
    + {/foreach} + {elseif $type == "audios"} + хуй + {/if} + {include "../components/paginator.xml", conf => (object) [ + "page" => $page, + "count" => $count, + "amount" => sizeof($data), + "perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE, + "atBottom" => false, + ]} + {else} + {ifset customErrorMessage} + {include customErrorMessage} + {else} + {include "../components/nothing.xml"} + {/ifset} + {/if} +
    +{/block} + {block link|strip|stripHtml} {$x->getURL()} {/block} diff --git a/tpl/Topics/Board.xml b/tpl/Topics/Board.xml new file mode 100644 index 0000000..26870c5 --- /dev/null +++ b/tpl/Topics/Board.xml @@ -0,0 +1,56 @@ +{extends "../@listView.xml"} +{var $iterator = iterator_to_array($topics)} +{var $page = $paginatorConf->page} + +{block title}{_discussions} {$club->getCanonicalName()}{/block} + +{block titleHeader} + {$club->getCanonicalName()} » {_discussions} + + +{/block} + +{block tabs} +

    + {tr("results", $count)} +

    +{/block} + +{block actions} + +{/block} + +{* BEGIN ELEMENTS DESCRIPTION *} + +{block link|strip|stripHtml} + /topic{$x->getPrettyId()} +{/block} + +{block preview} + +{/block} + +{block name} + {$x->getTitle()} +
    +{/block} + +{block description} +
    + {tr("messages", $x->getCommentsCount())} +
    + {var $lastComment = $x->getLastComment()} +
    +
    + + + +
    +
    + {$lastComment->getOwner()->getCanonicalName()} +
    {_replied} {$lastComment->getPublicationTime()}
    +
    +
    +{/block} diff --git a/tpl/Topics/Create.xml b/tpl/Topics/Create.xml new file mode 100644 index 0000000..84b17f2 --- /dev/null +++ b/tpl/Topics/Create.xml @@ -0,0 +1,73 @@ +{extends "../@layout.xml"} +{block title}{_new_topic}{/block} + +{block titleHeader} + {$club->getCanonicalName()} + » + {_discussions} + » + {_new_topic} +{/block} + +{block body} + + + + + + + + + + + + + + + + +
    + {_title} + + +
    + {_text} + + +
    + +
    +
    + + +
    +
    +
    + + + + +
    + + + + + + + {if $graffiti} + {script "js/node_modules/react/dist/react-with-addons.min.js"} + {script "js/node_modules/react-dom/dist/react-dom.min.js"} + {script "js/vnd_literallycanvas.js"} + {css "js/node_modules/literallycanvas/lib/css/literallycanvas.css"} + {/if} +{/block} diff --git a/tpl/Topics/Edit.xml b/tpl/Topics/Edit.xml new file mode 100644 index 0000000..3036d5a --- /dev/null +++ b/tpl/Topics/Edit.xml @@ -0,0 +1,55 @@ +{extends "../@layout.xml"} +{block title}{_edit_topic} "{$topic->getTitle()}"{/block} + +{block titleHeader} + {$club->getCanonicalName()} + » + {_discussions} + » + {_edit_topic} +{/block} + +{block body} +
    + {$topic->getTitle()} +
    + {$topic->getOwner()->getCanonicalName()} +
    + +
    + + + + + + + + + + + + + + + +
    + {_title} + + +
    + {_topic_settings} + + {if $topic->getClub()->canBeModifiedBy($thisUser)} + {_pin_topic}
    + {/if} + {_close_topic} +
    + {_delete_topic} + + + +
    + + +
    +{/block} diff --git a/tpl/Topics/Topic.xml b/tpl/Topics/Topic.xml new file mode 100644 index 0000000..e83e239 --- /dev/null +++ b/tpl/Topics/Topic.xml @@ -0,0 +1,29 @@ +{extends "../@layout.xml"} +{block title}{_view_topic} "{$topic->getTitle()}"{/block} + +{block titleHeader} + {$club->getCanonicalName()} + » + {_discussions} + » + {_view_topic} + + +{/block} + +{block body} +
    + {$topic->getTitle()} +
    + {$topic->getOwner()->getCanonicalName()} +
    + {_created} {$topic->getPublicationTime()} +
    +
    +
    +

    {tr("topic_messages_count", $count)}

    + {include "../components/comments.xml", comments => $comments, count => $count, page => $page, model => "topics", club => $club, readOnly => $topic->isClosed(), showTitle => false, parent => $topic} +
    +{/block} diff --git a/tpl/User/View.xml b/tpl/User/View.xml index 3cdd812..fe121fd 100755 --- a/tpl/User/View.xml +++ b/tpl/User/View.xml @@ -48,11 +48,72 @@ {block body} {if !$user->isBanned()} - {if !$user->getPrivacyPermission('page.read', $thisUser ?? NULL)} -
    - {_forbidden}
    - {_forbidden_comment} + {if method_exists($user, "canBeViewedBy") && !$user->canBeViewedBy($thisUser ?? NULL)} +
    {strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}
    +
    +
    +
    +
    + {$user->getCanonicalName()} +
    + +
    +

    {$user->getFullName()}

    + + {if !is_null($user->getStatus())} + {$user->getStatus()} + {/if} +
    + + {if $user->isOnline()} + {_online} + {else} + {_was_online} {$user->getOnline()} + {/if} + +
    +
    +
    + {ifset $thisUser} + {var subStatus = $user->getSubscriptionStatus($thisUser)} + {if $subStatus === 0} +
    + + + + +
    + {elseif $subStatus === 1} +
    + + + + +
    + {elseif $subStatus === 2} +
    + + + + +
    + {/if} + {/ifset} +
    + {var $m = $user->isFemale() ? "f" : "m"} + {tr("limited_access_to_page_$m", $user->getFirstName())}
    + + {if isset($thisUser)} + {if $subStatus != 2} + {_you_can_add} + {tr("add_to_friends_$m")} + {/if} + {/if} +
    +
    + {else}
    {strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}
    diff --git a/tpl/components/attachment.xml b/tpl/components/attachment.xml index cbf2c33..365530f 100755 --- a/tpl/components/attachment.xml +++ b/tpl/components/attachment.xml @@ -10,7 +10,17 @@ {/if} {elseif $attachment instanceof \openvk\Web\Models\Entities\Video} - + {if $attachment->getType() === 0} + + {else} + {* Не будем загружать страницу плеером ютуба *} + +
    + + +
    +
    + {/if} {elseif $attachment instanceof \openvk\Web\Models\Entities\Post} {php $GLOBALS["_nesAttGloCou"] = (isset($GLOBALS["_nesAttGloCou"]) ? $GLOBALS["_nesAttGloCou"] : 0) + 1} {if $GLOBALS["_nesAttGloCou"] > 2} @@ -18,6 +28,13 @@ {else} {include "post.xml", post => $attachment, compact => true} {/if} +{elseif $attachment instanceof \openvk\Web\Models\Entities\Note} + +
    + + {_note} "{$attachment->getName()}" +
    +
    {elseif $attachment instanceof \openvk\Web\Models\Entities\Poll} {presenter "openvk!Poll->view", $attachment->getId()} {else} diff --git a/tpl/components/comment.xml b/tpl/components/comment.xml index 7f4ba55..9974d07 100755 --- a/tpl/components/comment.xml +++ b/tpl/components/comment.xml @@ -52,7 +52,7 @@
    {$author->getCanonicalName()}
    - +
    {$comment->getText()|noescape} diff --git a/tpl/components/post.xml b/tpl/components/post.xml index c2bb3f6..6e20bd6 100755 --- a/tpl/components/post.xml +++ b/tpl/components/post.xml @@ -1,73 +1,70 @@ {var author = $post->getOwner()} -
    -
    - -
    - {$author->getCanonicalName()}
    - -
    -
    - -
    -

    {$post->getText()|noescape}

    -
    +
    +
    + +
    + {$author->getCanonicalName()}
    + +
    +
    + +
    +

    {$post->getText()|noescape}

    +
    -
    -
    -
    - {include "attachment.xml", attachment => $attachment} -
    -
    -
    +
    +
    +
    + {include "attachment.xml", attachment => $attachment} +
    +
    +
    -
    - - - -
    +
    + + - {if !($forceNoCommentsLink ?? false)} - - {if $post->getCommentsCount() > 0} - {$post->getCommentsCount()} - {else} - 0 - {/if} - - {/if} - - {if !($forceNoShareLink ?? false)} - - {/if} +
    -
    + {if !($forceNoCommentsLink ?? false)} + + {if $post->getCommentsCount() > 0} + {$post->getCommentsCount()} + {else} + 0 + {/if} + + {/if} + {if true} + - {if (isset($thisUser))} -
    +
    - {if !($forceNoLike ?? false)} - {var liked = $post->hasLikeFrom($thisUser)} - - - - {/if} +
    + {/if} -
    - {/if} +
    + {if (isset($thisUser))} +
    + {if !($forceNoLike ?? false)} + {var liked = $post->hasLikeFrom($thisUser)} + + -
    + + {/if} + +
    + {/if} +
    +
    diff --git a/tpl/components/textArea.xml b/tpl/components/textArea.xml index 37fce0c..a555199 100755 --- a/tpl/components/textArea.xml +++ b/tpl/components/textArea.xml @@ -5,14 +5,21 @@
    - +
    + + +
    +
    -
    -
    +
    + + +
    +
    diff --git a/tpl/components/video.xml b/tpl/components/video.xml new file mode 100644 index 0000000..dbf7fc7 --- /dev/null +++ b/tpl/components/video.xml @@ -0,0 +1,41 @@ +{if $video->canBeViewedBy($thisUser ?? NULL)} + + + + + + + + +
    +
    + + + +
    +
    + {ifset infotable} + {include infotable, x => $dat} + {else} + + + {$video->getName()} + + +
    +

    + {$video->getDescription() ?? ""} +

    + {_video_uploaded} {$video->getPublicationTime()}
    + +

    + {_view_video} + {if $video->getCommentsCount() > 0}| {_comments} ({$video->getCommentsCount()}){/if} +

    + {/ifset} +
    + +{else} + {_no_access_abstract} +{/if} \ No newline at end of file From 5019cfbc881cc434add14b59b9a1536948e84785 Mon Sep 17 00:00:00 2001 From: lalka2016 <99399973+lalka2016@users.noreply.github.com> Date: Wed, 16 Aug 2023 15:19:12 +0300 Subject: [PATCH 2/2] something --- tpl/Group/Edit.xml | 33 ------------------- tpl/Group/View.xml | 44 ------------------------- tpl/Notes/List.xml | 40 +---------------------- tpl/Search/Index.xml | 16 +++------ tpl/User/View.xml | 70 ---------------------------------------- tpl/components/video.xml | 8 +---- 6 files changed, 6 insertions(+), 205 deletions(-) diff --git a/tpl/Group/Edit.xml b/tpl/Group/Edit.xml index dfe3c94..6944a43 100644 --- a/tpl/Group/Edit.xml +++ b/tpl/Group/Edit.xml @@ -71,39 +71,6 @@
    {_group_dont_display_administrators_list}

    -
    - -
    - - - {_delete_group} - -
    -
    diff --git a/tpl/Group/View.xml b/tpl/Group/View.xml index 8b25402..8449572 100755 --- a/tpl/Group/View.xml +++ b/tpl/Group/View.xml @@ -44,49 +44,6 @@ {/block} {block body} - {if method_exists($club, "isDeleted") && $club->isDeleted()} -
    -
    -
    -
    - -
    - -
    -

    {$club->getName()}

    -
    -
    - - {ifset $thisUser} - {if method_exists($club, "isDeleted") && $club->isDeleted() && $thisUser->getId() == $club->getOwner()->getId() && !$club->isBanned()} -
    - - -
    - {/if} - - {if $club->getSubscriptionStatus($thisUser) == false} - {else} -
    - - - - -
    - {/if} - {/ifset} - - {if !$club->isBanned()} -

    {_group_was_deleted}

    - {else} -

    {_group_was_blocked}

    -

    {_ban_reason_g}: {$club->getBanReason()}

    - {/if} -
    -
    - - {else} -
    @@ -195,6 +152,5 @@ {presenter "openvk!Wall->wallEmbedded", -$club->getId()}
    - {/if} {/block} diff --git a/tpl/Notes/List.xml b/tpl/Notes/List.xml index 56955b1..1e18367 100644 --- a/tpl/Notes/List.xml +++ b/tpl/Notes/List.xml @@ -22,36 +22,10 @@ {* BEGIN ELEMENTS DESCRIPTION *} {block body} -
    - {tr("notes_list", $count)} @@ -59,34 +33,22 @@
    -
    {var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)} {if sizeof($data) > 0}
    -
    +
    diff --git a/tpl/Search/Index.xml b/tpl/Search/Index.xml index 45f9fda..a1d4516 100755 --- a/tpl/Search/Index.xml +++ b/tpl/Search/Index.xml @@ -99,31 +99,23 @@ {elseif $type == "posts"}
    {if $dat->getTargetWall() < 0 && $dat->getWallOwner()->isHideFromGlobalFeedEnabled()} - {_dont_need_to_see_post} + brbrevht {else} {include "../components/post.xml", post => $dat, commentSection => true, onWallOf => true} {/if}
    {elseif $type == "comments"}
    - {if $dat->getTarget()->isDeleted()} - {_dont_need_to_see_comment} - {else} - {include "../components/comment.xml", comment => $dat, linkW => true} - {/if} + {include "../components/comment.xml", comment => $dat, linkW => true}
    {elseif $type == "videos"} {foreach $data as $dat}
    - {if $dat->getOwner()->isDeleted()} - {_dont_need_to_see_video} - {else} - {include "../components/video.xml", video => $dat} - {/if} + {include "../components/video.xml", video => $dat}
    {/foreach} {elseif $type == "audios"} - хуй + privet {/if} {include "../components/paginator.xml", conf => (object) [ "page" => $page, diff --git a/tpl/User/View.xml b/tpl/User/View.xml index fe121fd..7043136 100755 --- a/tpl/User/View.xml +++ b/tpl/User/View.xml @@ -48,74 +48,6 @@ {block body} {if !$user->isBanned()} - {if method_exists($user, "canBeViewedBy") && !$user->canBeViewedBy($thisUser ?? NULL)} -
    {strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}
    -
    -
    -
    -
    - {$user->getCanonicalName()} -
    - -
    -

    {$user->getFullName()}

    - - {if !is_null($user->getStatus())} - {$user->getStatus()} - {/if} -
    - - {if $user->isOnline()} - {_online} - {else} - {_was_online} {$user->getOnline()} - {/if} - -
    -
    -
    - {ifset $thisUser} - {var subStatus = $user->getSubscriptionStatus($thisUser)} - {if $subStatus === 0} -
    - - - - -
    - {elseif $subStatus === 1} -
    - - - - -
    - {elseif $subStatus === 2} -
    - - - - -
    - {/if} - {/ifset} -
    - {var $m = $user->isFemale() ? "f" : "m"} - {tr("limited_access_to_page_$m", $user->getFirstName())}
    - - {if isset($thisUser)} - {if $subStatus != 2} - {_you_can_add} - {tr("add_to_friends_$m")} - {/if} - {/if} -
    -
    -
    - - {else} -
    {strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}
    @@ -455,8 +387,6 @@ {presenter "openvk!Wall->wallEmbedded", $user->getId()}
    - {/if} - {else} {* isBanned() *} {include "banned.xml"} {/if} diff --git a/tpl/components/video.xml b/tpl/components/video.xml index dbf7fc7..752191a 100644 --- a/tpl/components/video.xml +++ b/tpl/components/video.xml @@ -1,5 +1,3 @@ -{if $video->canBeViewedBy($thisUser ?? NULL)} - @@ -34,8 +32,4 @@ -
    - -{else} - {_no_access_abstract} -{/if} \ No newline at end of file +
    \ No newline at end of file