F
F
fanov2020-04-20 18:34:56
1C-Bitrix
fanov, 2020-04-20 18:34:56

1s-bitrix - how to display such an infoblock?

Good day!
I'm stretching the layout on Bitrix
There is such a block - 5e9dc23e90390926939985.png
How to make just such an implementation, if the top and bottom were the same location - then it's understandable.
And so, when the first two have text on the left, the picture on the right, the next second on the right has text, pictures on the left.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
scottparker, 2020-04-20
@scottparker

check by index)

J
Jupiter Max, 2020-04-20
@vardoLP

$idx = 1;
while(//тут условие){
if( $idx % 2 == 1) { /* выводим нечетные статьи*/
// тут верстка
}else{ /* выводим четные */
// тут верстка
}
$idx++;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question