PHP in templates
Posted: Thu Aug 17, 2017 8:24 am
Hi, please help!
I want to mix video and pictures thumbs on main page and try to run code
<?php
for($i=1;$i<20;$i++) {
if($a%2==0)
echo '<thumb content_type=movie num='.$i.'></thumb>';
else
echo '<thumb content_type=image num='.$i.'></thumb>';
}
?>
But it doesn't works Warning: Division by zero in /home/site/scj/includes/libs/tpl_functions.php on line 0
I want to mix video and pictures thumbs on main page and try to run code
<?php
for($i=1;$i<20;$i++) {
if($a%2==0)
echo '<thumb content_type=movie num='.$i.'></thumb>';
else
echo '<thumb content_type=image num='.$i.'></thumb>';
}
?>
But it doesn't works Warning: Division by zero in /home/site/scj/includes/libs/tpl_functions.php on line 0