get($cms_template_base_id . "r1", "repeat"); if ($c < 1) $c = 3; $c *= 3; $i = 0; for ($j = 1; $j < $c; $j += 3) { $_image = l($cms_template_document->get($cms_template_base_id . "r1.$j.i1", "image")); if (stre($_image)) continue; $image_alt = $image->data->get($_image, "name"); if ($image_alt === NULL) continue; $image_alt = l($image_alt); $image_url = translate_url($_image); list($image_width, $image_height) = getimagesize($image_url); $size = $image_width . "x" . $image_height; if ($image_width > $image_max_width) { $image_height = floor($image_height * $image_max_width / $image_width); $image_width = $image_max_width; }; if ($image_height > $image_max_height) { $image_width = floor($image_width * $image_max_height / $image_height); $image_height = $image_max_height; }; $text = l($cms_template_document->get($cms_template_base_id . "r1.$j.t1", "text")); echo("
" . "" . "
" . (stre($text) ? x($image_alt) : parse_text($text)) . "
"); if ($i > 0) echo("" . "◄" . ""); if (($j + 3) < $c) echo("" . "►" . ""); echo("
"); $buffer .= "" . image($image_url, NULL, 90, $image_alt, NULL, TRUE) . ""; $i++; }; ?>
3) echo("
" . "
" . $buffer . "
" . "
"); ?>