I have found what i think was the file that made it work previously...its called
exhibit.horizontal_sized.php
anyone know if there is a new version for this or if it can be used with the new indexhibit?
here is the code
/**
* Horizontal Format
*
* Exhbition format
* Originally created for SharoneLifschitz.com
*
* @version 1.1
* @author Vaska
*/
$DO = new Horizontally;
$exhibit['dyn_js'] = "
function resizeit() { showHeight('document', $(window).height());
function showHeight(ele, h) {
$('.picture img').css( 'height', h -30 );
$('#img-container').css( 'height', h -30 );
}
var sum = 0;
$('.picture img').each(function()
{
sum += $(this).width() +21;
});
$('#img-container').width( sum );
}
$(window).resize(function() {
resizeit();
});
$(window).load(function(){
resizeit();
});
";
$exhibit['exhibit'] = $DO->createExhibit();
$exhibit['dyn_css'] = $DO->dynamicCSS();
class Horizontally
{
// PADDING AND TEXT WIDTH ADJUSTMENTS UP HERE!!!
var $picture_block_padding_right = 50;
var $text_width = 250;
var $text_padding_right = 75;
var $final_img_container = 0; // do not adjust this one
function createExhibit()
{
$OBJ =& get_instance();
global $rs;
$pages = $OBJ->db->fetchArray("SELECT *
FROM ".PX."media, ".PX."objects_prefs
WHERE media_ref_id = '$rs[id]'
AND obj_ref_type = 'exhibit'
AND obj_ref_type = media_obj_type
ORDER BY media_order ASC, media_id ASC");
if (!$pages) return $rs['content'];
$s = ''; $a = ''; $w = 0;
$this->final_img_container = ($rs['content'] != '') ? ($this->text_padding_right + $this->text_width) : 0;
foreach ($pages as $go)
{
$title = ($go['media_title'] == '') ? '' : "" . $go['media_title'] . "";
$title .= ($go['media_caption'] == '') ? '' : "" . $go['media_caption'] . "";
$temp_x = $go['media_x'] + $this->picture_block_padding_right;
$this->final_img_container += ($go['media_x'] + $this->picture_block_padding_right);
$a .= "n";
$a .= "n";
$a .= "n";
$a .= "$titlen";
$a .= "n";
$a .= "nn";
}
$s .= "n";
if ($rs['content'] != '') $s .= "" . $rs['content'] . "n";
$s .= $a;
$s .= "";
$s .= "n";
return $s;
}
function dynamicCSS()
{
return "#img-container { width:30000em; margin-top:0px; padding-top:0px; }
#img-container #text { float: left; width: " . ($this->text_width + $this->text_padding_right) . "px; }
#img-container #text p { width: " . $this->text_width . "px; }
#img-container .picture_holder { float: left; }
#img-container .picture img { padding-right:20px;}
#img-container .captioning .title { margin-top: 12px; font-weight: bold; }
#img-container .captioning .caption { }
";
}
}