View Full Version : Help with template re: "gallery by ..."
blulegend
17th of October 2006 (Tue), 18:32
I am having trouble forcing the "gallery by blah blah" to be on the next line after the thumbnails. If I show only 1 or 2 thumbs next to the exhibition, sometimes the owner link shows up on the same line as the thumbs and looks poorly displayed. Any thoughts? This is contained in a div and I can't get it to always be on it's own line.
Pekka
17th of October 2006 (Tue), 19:06
It needs an if satement and changing order of some br's, here is a fixed version (paragraph style, non UDM):
<?php
// XHTML exhibition template with vertically matched columns (v 1.1 by Pekka Saarinen 10/2006)
// parent table is in index page template
$s_exhibition_columns = "3";
$div = intval((100/$s_exhibition_columns));
if ($s_exhibition_columns >= $exhibitions_on_current_level) $s_exhibition_columns = $exhibitions_on_current_level;
$s_exhibition_columns = intval(ceil($exhibitions_on_current_level / $s_exhibition_columns));
if ($exhibition_counter == 0) {
print "<td valign=\"top\" style=\"width={$div}%;\">";
ob_start();
@include("./" . $exhibition_embedded_layout);
$ee_embedded_css .= ob_get_contents();
ob_end_clean();
} elseif ($exhibition_counter % $s_exhibition_columns == 0) {
print "</td><td valign=\"top\" style=\"width={$div}%;\">";
}
?>
<div class="ee_exhibition_plate">
<div class="ee_exhibition_name">
<h3 class="ee_css_header_medium">
<?php print $exhibition_name_html; ?>
</h3>
</div>
<div class="ee_exhibition_paragraph">
<div class="ee_exhibition_image">
<?php print $exhibition_thumbs_html; ?>
</div>
<div class="ee_css_paragraph_bold"><a href="list.php?exhibition=<?php print $linked_exhibition; ?>&ee_lang=<?php print $ee_lang; ?>" style="display: block">
<?php
if ($exhibition_owner_html != "") {
print "<br class=\"clear\" />";
print $exhibition_owner_html;
}
print "<br class=\"clear\" />";
?>
</a></div>
<div class="ee_css_paragraph"><a href="list.php?exhibition=<?php print $linked_exhibition; ?>&ee_lang=<?php print $ee_lang; ?>" style="display: block"><span class="ee_css_hyperlink">
<?php
print $exhibition_photocount_html;
if ($exhibition_countries_html != "") {
print "<br class=\"clear\" />";
print $exhibition_countries_html;
print "<br class=\"clear\" />";
}
?>
</span>
</a></div>
<div><p><a href="list.php?exhibition=<?php print $linked_exhibition; ?>&ee_lang=<?php print $ee_lang; ?>" style="display: block" class="ee_css_paragraph">
<?php print $exhibition_description_html; ?>
</a></p></div>
</div>
</div>
blulegend
17th of October 2006 (Tue), 19:43
OMG. Awesome support.
Ewdiller
5th of September 2007 (Wed), 15:36
how can this be done with udm?
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.