Что нового

Подскажите как сделать загрузку изображения в поной новости

Rahmukov

Участник
Регистрация
27 Дек 2025
Сообщения
40
Реакции
51
Здравствуйте. Подскажите как сделать загрузку изображения в поной новости.

Допустим создал дополнительное после с загрузкой изображения.

Мне нужно чтобы оно было и в самой новости не только на главной станице.
 
Вставляешь созданное доп.поле в fullstory.tpl
 
Код:
         [xfgiven_poster]
<div class="fullstory__poster skeleton center">
    <picture>
        <img src="[xfvalue_image_url_poster]" alt="{title}" />
    </picture>
</div>
[/xfgiven_poster]
Как пример, а там перепеши под свои доп поля
 
Код:
         [xfgiven_poster]
<div class="fullstory__poster skeleton center">
    <picture>
        <img src="[xfvalue_image_url_poster]" alt="{title}" />
    </picture>
</div>
[/xfgiven_poster]
Как пример, а там перепеши под свои доп поля
В какой именно области вставлять. После какой строки
 
А где вам нужно можете сразу после {title} блока, можешь скинуть full-story можем глянуть !
 
Последнее редактирование:
Тебе нужно просто вывести изображение в полной новости? Если да, скинь название шаблона либо ссылку на сайт в личку, подскажу где лучше разместить тег доп. поля.

Если нужно сделать кнопку скачивания изображения:
Код:
[xfgiven_poster]
<div class="poster-download">
    <a href="[xfvalue_image_url_poster]" download class="download-btn">Скачать постер</a>
</div>
[/xfgiven_poster]

Если просто вывести изображение, то уже как писали выше:
Код:
[xfgiven_poster]
<div class="fullstory__poster skeleton center">
    <picture>
        <img src="[xfvalue_image_url_poster]" alt="{title}" />
    </picture>
</div>
[/xfgiven_poster]
 
Код:
<article class="full_content_width mx-auto wow animate__animated animate__fadeIn">
<div class="card shortstory px-3 pt-3 mb-3 px-lg-5">
<div class="shortstory_header d-flex justify-content-between mt-2 mb-1">
<div>
<span>
[profile]<img src="{foto}" alt="{login}" class="rounded-circle me-2" width="20" height="20">[/profile]
</span>
<span class="d_none_mb fw-bold">[profile] <span class="me-4">{login}</span> [/profile]</span>
<span class="d_none_mb me-4">{link-category}</span>
<span class="text-muted short-story_date">[day-news]{date=F, d}[/day-news]</span>
[edit-date]
<span class="text-muted ms-4" data-bs-toggle="tooltip" data-bs-placement="top" title="Пост отредактирован">
<svg xmlns="http://www.w3.org/2000/svg" cursor="pointer" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="bevel">
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/>
</svg>
</span>
[/edit-date]
[fixed]
<span class="text-muted ms-4" data-bs-toggle="tooltip" data-bs-placement="top" title="Пост закреплён">
<svg xmlns="http://www.w3.org/2000/svg" cursor="pointer" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>
</svg>
</span>
[/fixed]
</div>
<div class="d-flex justify-content-start">
<div class="me-3" data-bs-toggle="tooltip" data-bs-placement="top" title="Все статьи {login}">
<a href="/user/{login}/news/" target="blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="8.5" cy="7" r="4"></circle>
<line x1="20" y1="8" x2="20" y2="14"></line>
<line x1="23" y1="11" x2="17" y2="11"></line>
</svg>
</a>
</div>
[not-group=1,2,3]
[complaint]
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" data-bs-toggle="tooltip" data-bs-placement="top" title="Жалоба на пост" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
[/complaint]
[/not-group]
[edit]
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
[/edit]
</div>
</div>
<h2 class="fw-bold mt-2">
{title}
[xfgiven_verification]
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="18" height="18" class=" ms-1 mb-1" viewBox="0 0 555.000000 555.000000"
preserveAspectRatio="xMidYMid meet" data-bs-toggle="tooltip" data-bs-placement="top" title="Пост от редакции">
<g transform="translate(0.000000,555.000000) scale(0.100000,-0.100000)"
fill="#0d6efd" stroke="none">
<path d="M2700 5394 c-65 -27 -130 -68 -243 -157 -166 -130 -215 -162 -272
-182 -61 -20 -91 -19 -311 11 -283 39 -361 29 -459 -57 -50 -45 -78 -95 -161
-300 -40 -98 -82 -195 -94 -214 -36 -59 -98 -102 -214 -150 -61 -26 -160 -67
-221 -92 -90 -38 -119 -55 -160 -97 -105 -107 -113 -152 -74 -455 18 -144 28
-250 24 -275 -12 -72 -40 -120 -171 -292 -166 -219 -176 -237 -182 -334 -7
-119 8 -152 165 -356 208 -271 208 -271 168 -562 -39 -288 -36 -342 25 -434
53 -79 110 -113 390 -224 130 -52 151 -64 201 -114 59 -58 52 -45 194 -386 49
-119 92 -176 157 -214 97 -55 131 -57 375 -25 242 31 324 30 394 -6 35 -17
104 -68 264 -191 6 -5 33 -26 62 -48 102 -80 206 -105 308 -75 72 20 73 21
278 178 97 75 189 137 218 148 67 26 144 24 373 -7 115 -16 211 -24 240 -20
97 11 204 84 247 168 11 21 49 110 85 199 85 211 110 255 166 299 26 21 97 58
157 84 61 25 159 66 218 91 128 53 181 97 220 181 38 83 39 140 8 374 -30 227
-29 293 5 361 13 24 81 120 152 213 158 205 173 233 173 341 0 108 -21 148
-180 355 -71 91 -137 185 -148 209 -31 69 -31 147 -3 357 31 229 32 278 7 344
-38 101 -124 174 -263 224 -227 83 -311 125 -373 189 -42 44 -58 73 -104 187
-106 267 -125 304 -183 362 -72 71 -137 91 -263 84 -55 -3 -149 -12 -210 -21
-297 -41 -292 -43 -540 145 -230 175 -245 183 -349 187 -45 1 -88 0 -96 -3z
m1206 -1665 c62 -30 123 -90 154 -154 19 -38 26 -71 28 -133 4 -74 1 -89 -24
-140 -22 -46 -175 -247 -218 -287 -6 -5 -27 -30 -46 -55 -19 -25 -37 -47 -40
-50 -3 -3 -77 -93 -165 -200 -87 -107 -161 -197 -164 -200 -4 -3 -24 -27 -46
-55 -22 -27 -118 -144 -213 -260 -96 -115 -201 -244 -235 -285 -157 -190 -180
-213 -244 -246 -51 -25 -69 -29 -143 -29 -130 1 -166 24 -375 243 -93 97 -266
278 -385 402 -258 267 -263 274 -291 336 -31 68 -31 189 -1 257 82 182 305
251 472 146 25 -16 159 -148 298 -294 140 -146 257 -265 261 -265 12 0 65 59
218 246 274 335 680 828 740 899 101 120 176 158 299 151 46 -3 88 -12 120
-27z"/>
</g>
</svg>
[/xfgiven_verification]
</h2>
<div class="cover">
{full-story}
</div>
[tags]
<div class="fullstory_tags mt-3">
{tags}
</div>
[/tags]
[poll]
<div class="my-2">{poll}</div>
[/poll]
<div class=" mb-2">
<div class="d-flex justify-content-between mb-2 mt-3">
<div type="button" data-bs-toggle="tooltip" data-bs-html="true" title="[rating-type-2]Нравится [/rating-type-2][rating-type-3]Общий рейтинг[/rating-type-3]"> <span class="fs-6 smile">😀</span> <span class="fs-8 text-muted">{rating}</span> </div>
<div class="fs-8 text-muted">
<span class="me-2">
<span class="d_add_mb text-muted me-1" >
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="bevel">
<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>
</svg>
</span>
<span class="d_none_mb"> [declination={comments-num}]Комментари|й|я|ев[/declination]:</span> {comments-num}
</span>
<span class="">
<span class="d_add_mb text-muted me-1" >
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="bevel">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</span>
<span class="d_none_mb">[declination={views}]Просмотр|а|ов[/declination]:</span> {views}
</span>
</div>
</div>
<div class="row gx-2 border-top">
[rating-type-2]
<div class="col short_footer_item">
[rating-plus]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>
</svg>
<span class="fs-8 d_none_mb">нравится</span>
</div>
[/rating-plus]
</div>
[/rating-type-2]
[rating-type-3]
<div class="col short_footer_item">
[rating-plus]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>
</svg>
<span class="fs-8">{likes}</span>
</div>
[/rating-plus]
</div>
<div class="col short_footer_item">
[rating-minus]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="bevel">
<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>
</svg>
<span class="fs-8">{dislikes}</span>
</div>
[/rating-minus]
</div>
[/rating-type-3]
<div class="col short_footer_item">
[com-link]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>
</svg>
<span class="fs-8 d_none_mb">обсудить</span>
</div>
[/com-link]
</div>
[not-group=5]
<div class="col short_footer_item">
[add-favorites]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
<span class="fs-8 d_none_mb">закладки</span>
</div>
[/add-favorites]
[del-favorites]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="#000000" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
<span class="fs-8 d_none_mb">закладки</span>
</div>
[/del-favorites]
</div>
[/not-group]
</div>
</div>
</div>
<div class="card">
<div class="card-body pt-4 mb-3 px-lg-5">
<div class="d-flex justify-content-between mx-3">
<h4 class="fw-bold fs-5">{comments-num} [declination={comments-num}]комментари|й|я|ев[/declination]</h4>
[comments-subscribe]
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-bs-toggle="tooltip" data-bs-placement="left" title="Подписка на комментарии">
<path d="M22 17H2a3 3 0 0 0 3-3V9a7 7 0 0 1 14 0v5a3 3 0 0 0 3 3zm-8.27 4a2 2 0 0 1-3.46 0"></path>
</svg>
[/comments-subscribe]
</div>
<ul class="nav nav-pills mt-4 border-bottom">
<li class="nav-item" >
<button class="nav-link active">Последние</button>
</li>
<li class="nav-item" >
<button class="nav-link" type="button" data-bs-toggle="collapse" data-bs-target="#collapsecomments" aria-expanded="false" aria-controls="collapsecomments">Написать</button>
</li>
</ul>
<div class="collapse" id="collapsecomments">
{addcomments}
</div>
<div class="mt-4 comments">{comments}</div>
</div>
[not-comments]<div class="d-flex justify-content-center mb-5 text-muted">Комментариев нет</div>[/not-comments]
</div>
</article>
 
Что-то у меня всё съехало
 

Вложения

  • Снимок экрана 2026-03-16 180053.png
    Снимок экрана 2026-03-16 180053.png
    230.3 КБ · Просмотры: 21
Код:
<article class="full_content_width mx-auto wow animate__animated animate__fadeIn">
<div class="card shortstory px-3 pt-3 mb-3 px-lg-5">
<div class="shortstory_header d-flex justify-content-between mt-2 mb-1">
<div>
<span>
[profile]<img src="{foto}" alt="{login}" class="rounded-circle me-2" width="20" height="20">[/profile]
</span>
<span class="d_none_mb fw-bold">[profile] <span class="me-4">{login}</span> [/profile]</span>
<span class="d_none_mb me-4">{link-category}</span>
<span class="text-muted short-story_date">[day-news]{date=F, d}[/day-news]</span>
[edit-date]
<span class="text-muted ms-4" data-bs-toggle="tooltip" data-bs-placement="top" title="Пост отредактирован">
<svg xmlns="http://www.w3.org/2000/svg" cursor="pointer" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="bevel">
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/>
</svg>
</span>
[/edit-date]
[fixed]
<span class="text-muted ms-4" data-bs-toggle="tooltip" data-bs-placement="top" title="Пост закреплён">
<svg xmlns="http://www.w3.org/2000/svg" cursor="pointer" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>
</svg>
</span>
[/fixed]
</div>
<div class="d-flex justify-content-start">
<div class="me-3" data-bs-toggle="tooltip" data-bs-placement="top" title="Все статьи {login}">
<a href="/user/{login}/news/" target="blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="8.5" cy="7" r="4"></circle>
<line x1="20" y1="8" x2="20" y2="14"></line>
<line x1="23" y1="11" x2="17" y2="11"></line>
</svg>
</a>
</div>
[not-group=1,2,3]
[complaint]
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" data-bs-toggle="tooltip" data-bs-placement="top" title="Жалоба на пост" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
[/complaint]
[/not-group]
[edit]
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
[/edit]
</div>
</div>
<h2 class="fw-bold mt-2">
{title}
  [xfgiven_verification]
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="18" height="18" class=" ms-1 mb-1" viewBox="0 0 555.000000 555.000000"
preserveAspectRatio="xMidYMid meet" data-bs-toggle="tooltip" data-bs-placement="top" title="Пост от редакции">
<g transform="translate(0.000000,555.000000) scale(0.100000,-0.100000)"
fill="#0d6efd" stroke="none">
<path d="M2700 5394 c-65 -27 -130 -68 -243 -157 -166 -130 -215 -162 -272
-182 -61 -20 -91 -19 -311 11 -283 39 -361 29 -459 -57 -50 -45 -78 -95 -161
-300 -40 -98 -82 -195 -94 -214 -36 -59 -98 -102 -214 -150 -61 -26 -160 -67
-221 -92 -90 -38 -119 -55 -160 -97 -105 -107 -113 -152 -74 -455 18 -144 28
-250 24 -275 -12 -72 -40 -120 -171 -292 -166 -219 -176 -237 -182 -334 -7
-119 8 -152 165 -356 208 -271 208 -271 168 -562 -39 -288 -36 -342 25 -434
53 -79 110 -113 390 -224 130 -52 151 -64 201 -114 59 -58 52 -45 194 -386 49
-119 92 -176 157 -214 97 -55 131 -57 375 -25 242 31 324 30 394 -6 35 -17
104 -68 264 -191 6 -5 33 -26 62 -48 102 -80 206 -105 308 -75 72 20 73 21
278 178 97 75 189 137 218 148 67 26 144 24 373 -7 115 -16 211 -24 240 -20
97 11 204 84 247 168 11 21 49 110 85 199 85 211 110 255 166 299 26 21 97 58
157 84 61 25 159 66 218 91 128 53 181 97 220 181 38 83 39 140 8 374 -30 227
-29 293 5 361 13 24 81 120 152 213 158 205 173 233 173 341 0 108 -21 148
-180 355 -71 91 -137 185 -148 209 -31 69 -31 147 -3 357 31 229 32 278 7 344
-38 101 -124 174 -263 224 -227 83 -311 125 -373 189 -42 44 -58 73 -104 187
-106 267 -125 304 -183 362 -72 71 -137 91 -263 84 -55 -3 -149 -12 -210 -21
-297 -41 -292 -43 -540 145 -230 175 -245 183 -349 187 -45 1 -88 0 -96 -3z
m1206 -1665 c62 -30 123 -90 154 -154 19 -38 26 -71 28 -133 4 -74 1 -89 -24
-140 -22 -46 -175 -247 -218 -287 -6 -5 -27 -30 -46 -55 -19 -25 -37 -47 -40
-50 -3 -3 -77 -93 -165 -200 -87 -107 -161 -197 -164 -200 -4 -3 -24 -27 -46
-55 -22 -27 -118 -144 -213 -260 -96 -115 -201 -244 -235 -285 -157 -190 -180
-213 -244 -246 -51 -25 -69 -29 -143 -29 -130 1 -166 24 -375 243 -93 97 -266
278 -385 402 -258 267 -263 274 -291 336 -31 68 -31 189 -1 257 82 182 305
251 472 146 25 -16 159 -148 298 -294 140 -146 257 -265 261 -265 12 0 65 59
218 246 274 335 680 828 740 899 101 120 176 158 299 151 46 -3 88 -12 120
-27z"/>
</g>
</svg>
[/xfgiven_verification]
</h2>
<div class="cover">
  [xfgiven_poster]
<div class="fullstory__poster skeleton center">
    <picture>
        <img src="[xfvalue_image_url_poster]" alt="{title}" />
    </picture>
</div>
[/xfgiven_poster]
{full-story}
</div>
[tags]
<div class="fullstory_tags mt-3">
{tags}
</div>
[/tags]
[poll]
<div class="my-2">{poll}</div>
[/poll]
<div class=" mb-2">
<div class="d-flex justify-content-between mb-2 mt-3">
<div type="button" data-bs-toggle="tooltip" data-bs-html="true" title="[rating-type-2]Нравится [/rating-type-2][rating-type-3]Общий рейтинг[/rating-type-3]"> <span class="fs-6 smile">😀</span> <span class="fs-8 text-muted">{rating}</span> </div>
<div class="fs-8 text-muted">
<span class="me-2">
<span class="d_add_mb text-muted me-1" >
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="bevel">
<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>
</svg>
</span>
<span class="d_none_mb"> [declination={comments-num}]Комментари|й|я|ев[/declination]:</span> {comments-num}
</span>
<span class="">
<span class="d_add_mb text-muted me-1" >
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="bevel">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</span>
<span class="d_none_mb">[declination={views}]Просмотр|а|ов[/declination]:</span> {views}
</span>
</div>
</div>
<div class="row gx-2 border-top">
[rating-type-2]
<div class="col short_footer_item">
[rating-plus]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>
</svg>
<span class="fs-8 d_none_mb">нравится</span>
</div>
[/rating-plus]
</div>
[/rating-type-2]
[rating-type-3]
<div class="col short_footer_item">
[rating-plus]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>
</svg>
<span class="fs-8">{likes}</span>
</div>
[/rating-plus]
</div>
<div class="col short_footer_item">
[rating-minus]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="bevel">
<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>
</svg>
<span class="fs-8">{dislikes}</span>
</div>
[/rating-minus]
</div>
[/rating-type-3]
<div class="col short_footer_item">
[com-link]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>
</svg>
<span class="fs-8 d_none_mb">обсудить</span>
</div>
[/com-link]
</div>
[not-group=5]
<div class="col short_footer_item">
[add-favorites]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
<span class="fs-8 d_none_mb">закладки</span>
</div>
[/add-favorites]
[del-favorites]
<div class="d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2 sf_item_icon" width="16" height="16" viewBox="0 0 24 24" fill="#000000" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
<span class="fs-8 d_none_mb">закладки</span>
</div>
[/del-favorites]
</div>
[/not-group]
</div>
</div>
</div>
<div class="card">
<div class="card-body pt-4 mb-3 px-lg-5">
<div class="d-flex justify-content-between mx-3">
<h4 class="fw-bold fs-5">{comments-num} [declination={comments-num}]комментари|й|я|ев[/declination]</h4>
[comments-subscribe]
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-bs-toggle="tooltip" data-bs-placement="left" title="Подписка на комментарии">
<path d="M22 17H2a3 3 0 0 0 3-3V9a7 7 0 0 1 14 0v5a3 3 0 0 0 3 3zm-8.27 4a2 2 0 0 1-3.46 0"></path>
</svg>
[/comments-subscribe]
</div>
<ul class="nav nav-pills mt-4 border-bottom">
<li class="nav-item" >
<button class="nav-link active">Последние</button>
</li>
<li class="nav-item" >
<button class="nav-link" type="button" data-bs-toggle="collapse" data-bs-target="#collapsecomments" aria-expanded="false" aria-controls="collapsecomments">Написать</button>
</li>
</ul>
<div class="collapse" id="collapsecomments">
{addcomments}
</div>
<div class="mt-4 comments">{comments}</div>
</div>
[not-comments]<div class="d-flex justify-content-center mb-5 text-muted">Комментариев нет</div>[/not-comments]
</div>
</article>
 
Замените полностью на ваш fullstory
А если откровенно не берети шаблоны этого разработчика они только для професионалов. Он к сожелению на сколько оптимизрует и минимизирует код в шаблоне и в стилях, что его очень тяжело настраевать!
 
Замените полностью на ваш fullstory
А если откровенно не берети шаблоны этого разработчика они только для професионалов. Он к сожелению на сколько оптимизрует и минимизирует код в шаблоне и в стилях, что его очень тяжело настраевать!
ничего подобного. Вот ВАШ код не структирированный и читать его не удобно, в шаблоне же fullstory всё в порядке2026-03-17_13-52-51.png
 
Три раза перечитал но так и не понял ваш комментарий. Какой код ?
В каком фуллстори все в порядке ?
 
Шаблон andrea, код автора шаблона нормальный. Всё нормально форматировано в отличие от кода выше, который был предложен тс на замену...
Три раза перечитал но так и не понял ваш комментарий. Какой код ?
В каком фуллстори все в порядке ?
 
Вы точно смотрели предложенный код автора и тот что дали (я дал) на замену ?
На замену я дал тот же код шаблона полной новости от ТС только добавил вывод доп поля. Больше никаких манипуляций или корректировок там не было.
 
Вы точно смотрели предложенный код автора и тот что дали (я дал) на замену ?
Сорян... Пост с его кодом пролистал (форум тупит что почти не всегда с первого раза страница открывается, то белая страница, то заглушка что сайт не может быть загружен).

Видимо он кривой рип использует или сам код шаблона привёл в такой ужасный вид.
 
Сорян... Пост с его кодом пролистал (форум тупит что почти не всегда с первого раза страница открывается, то белая страница, то заглушка что сайт не может быть загружен).

Видимо он кривой рип использует или сам код шаблона привёл в такой ужасный вид.
Это не Рип а оригинал. И код который я скинул не трогал все как было.
 
Верх