set_borders ($outlineType='');
$h->set_title ($title);
$h->set_href_text($alt_text='');
$h->set_size ($objectWidth=0, $objectHeight=0);
$h->set_colors ($bgcolor, $hdcolor='', $ftcolor='');
$h->set_myclasshref ($myclasshref = '') {
$h->set_body ($body_text = '');
$h->set_bottom ($bottom_text = '', $bottom_url='');
$h->set_caption();
$return_str = $h->highslide_link($objectType, $so='');
/****************************************************************/
class pt_highslide {
// The six parts of the code
var $href_text = '';
var $header;
var $has_bottom=false;
var $bottom='';
var $has_caption=false;
var $caption='';
// The parameters
var $objectType;
var $ID;
var $outlineType = "outlineType: 'drop-shadow'";
// var $align= "position: 'center center'";
var $align= "align: 'center'";
var $objectWidth = 0;
var $objectHeight = 0;
var $objectLoadTime = "objectLoadTime: 'after'";
var $contentId;
var $bgcolor = '#FFF';
var $hdcolor;
var $ftcolor;
var $move_text = 'Move';
var $close_text = 'Close';
var $width = 0;
var $height = 0;
var $img_url;
var $thumb_url = '';
var $link_url;
var $src_url = '';
var $title = '';
var $alt_text = '';
var $main_div;
var $body='';
var $padding = 'padding: 0;';
var $myclass = 'highslide';
/****************************************************************/
/* Constructor
/****************************************************************/
function pt_highslide ( $main_url,
$thumb_url,
$main_text = '',
$src_url = ''
) {
$this->ID = 'a'.mt_rand(0,10000);
$this->img_url = $main_url;
$this->link_url = $main_url;
$this->thumb_url = $thumb_url;
$this->src_url = $src_url;
$this->title = $main_text;
$this->alt_text = $main_text;
}
/****************************************************************/
/* This chooses the border type and set the close/move text
/****************************************************************/
function set_borders ($outlineType='')
{
if ($outlineType != '') $this->outlineType = "outlineType: '".$outlineType."'";
if ($outlineType == 'windows') {
$this->move_text = '';
$this->move_text .= '
';
$this->move_text = '';
$this->close_text = '';
$this->close_text .= '
';
}
else {
$this->close_text = 'Move';
$this->move_text = 'Close';
}
}
/****************************************************************/
/* This sets the title
/****************************************************************/
function set_title ($title)
{
$this->title = $title;
}
/****************************************************************/
/* This sets the size of the frame
/****************************************************************/
function set_html_size ($width=0, $height=0)
{
$this->width = $width;
$this->height = $height;
}
/****************************************************************/
/* this sets the display part, wether a thumbnail or a text
/****************************************************************/
function set_href_text ($alt_text='', $add_tags='') {
if ($alt_text == '') $alt_text = __('Click to enlarge: ', 'post-thumb').$this->title;
if ($this->thumb_url=='')
$this->href_text = $alt_text;
else
{
if ($this->width == 0) $tag_width = ''; else $tag_width = ' width="'.$this->width.'"';
if ($this->height == 0) $tag_height = ''; else $tag_height = ' height="'.$this->height.'"';
$this->href_text = "\n\t".'';
}
$this->href_text .= "\n".'';
}
/****************************************************************/
/* This sets the size of the frame
/****************************************************************/
function set_size ($objectWidth=0, $objectHeight=0) {
$this->objectWidth = $objectWidth;
$this->objectHeight = $objectHeight;
}
/****************************************************************/
/* This sets the colors of the frame
/****************************************************************/
function set_colors ($bgcolor, $hdcolor='', $ftcolor='')
{
$this->bgcolor = $bgcolor;
if ($hdcolor=='') $this->hdcolor= $bgcolor; else $this->hdcolor=$hdcolor;
if ($ftcolor=='') $this->ftcolor= $bgcolor; else $this->ftcolor=$ftcolor;
}
/****************************************************************/
/* This sets the content of the frame.
/****************************************************************/
function set_body ($body_text = '') {
$this->has_body = true;
$this->body = $body_text;
}
/****************************************************************/
/* This sets the bottom part of the frame
/****************************************************************/
function set_bottom ($bottom_text = '', $bottom_url = '') {
$this->has_bottom = true;
$this->bottom = "\n\t".'