<td class="sr-page__list__item_img">
<? if( isset($v['img_s']) AND ! empty($v['img_s']) ): ?>
<span class="rel inlblk">
<h3>Test _1</h3>
<a title="<?= $v['title'] ?>" href="<?= $v['link'] ?>" class="thumb stack rel inlblk">
<img alt="<?= $v['title'] ?>" src="<?= $v['img_s'] ?>" class="rel br2 zi3 shadow" />
<? if( $v['imgs'] > 1 ): ?>
<span class="abs border b2 shadow"> </span>
<span class="abs border r2 shadow"> </span>
<? endif; ?>
</a>
</span>
<? else: ?>
<h3>Test</h3>
<img class="rel br2 zi3 shadow" src="def-m.png" alt="Алиса">
<? endif; ?>
</td>
<? else: ?>
<img class="rel br2 zi3 shadow" src="def-m.png" alt="Алиса">
<td class="sr-page__list__item_img">
<? if( $v['imgs'] ): ?>
<span class="rel inlblk">
<a title="<?= $v['title'] ?>" href="<?= $v['link'] ?>" class="thumb stack rel inlblk">
<img alt="<?= $v['title'] ?>" src="<?= $v['img_s'] ?>" class="rel br2 zi3 shadow" />
<? if( $v['imgs'] > 1 ): ?>
<span class="abs border b2 shadow"> </span>
<span class="abs border r2 shadow"> </span>
<? endif; ?>
</a>
</span>
<? else: ?>
<img class="rel br2 zi3 shadow" src="def-m.png" alt="Алиса">
<? endif; ?>
</td>
*{
margin: 0;
padding: 0;
}