Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
  • entries
    3
  • comments
    2
  • views
    32,898

Увеличение миниатюр в IP.Content 2.3.x

Sign in to follow this  
Атаман

44 views

demo.png

 

Заходим в АЦ

1) Ip.Content

2) Шаблоны статей

3) Выбираем 1 из 3х (Front Page (Blog Format), Front Page (Single Column), Front Page (1x2x2 Layout)

 

За основу был взят. Front Page (1x2x2 Layout)

 

В самом вверху добавляем:

 

{parse template="include_lightbox" group="global" params=""}
{parse template="include_highlighter" group="global" params="1"}

 

Ищем:

<img src='{$data['records'][0]['article_image']}' class='photo left ipsPad' {parse resize_image="$data['records'][0]['article_image']" maxwidth="225"} alt='' />

 

Меняем:

<a href="{$data['records'][0]['article_image']}" rel="lightbox"><img src='{$data['records'][0]['article_image']}' class='photo left ipsPad' {parse resize_image="$data['records'][0]['article_image']" maxwidth="225"} alt='' /></a>

 

Ищем:

<if test="$data['records'][0]['article_image']">
                                       <img src='{$data['records'][0]['article_image']}' class='photo left ipsPad' {parse resize_image="$data['records'][0]['article_image']" maxwidth="225"} alt='' />
                               </if>

 

Меняем:

<if test="$data['records'][0]['article_image']">
                                       <a href="{$data['records'][0]['article_image']}" rel="lightbox"><img src='{$data['records'][0]['article_image']}' class='photo left ipsPad' {parse resize_image="$data['records'][0]['article_image']" maxwidth="225"} alt='' /></a>
                               </if>

Sign in to follow this  


1 Comment


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...