29 $tpl_path = $this->component_path.
'tpl';
30 $tpl_file =
'popup.html';
35 return $oTemplate->compile($tpl_path, $tpl_file);
46 $src = $xml_obj->attrs->src;
47 $width = $xml_obj->attrs->width;
48 $height = $xml_obj->attrs->height;
49 $align = $xml_obj->attrs->align;
50 $alt = $xml_obj->attrs->alt;
51 $title = $xml_obj->attrs->title;
52 $border = (int)$xml_obj->attrs->border;
53 $link_url = $xml_obj->attrs->link_url;
54 $open_window = $xml_obj->attrs->open_window;
55 $style = $xml_obj->attrs->style;
56 $margin = (
int)$xml_obj->attrs->margin;
58 $src = str_replace(array(
'&',
'"'), array(
'&',
'&qout;'), $src);
59 $src = str_replace(
'&',
'&', $src);
62 $sslPort = $sslPort !=
'443' ?
':'.$sslPort :
'';
65 $temp_src = explode(
'/', $src);
67 else if(substr($src , 0, 1)==
'/')
69 if($_SERVER[
'HTTPS']==
'on') {
70 $http_src =
'https://';
71 $src = $http_src.$_SERVER[
'HTTP_HOST'].$sslPort.$src;
73 $http_src =
'http://';
74 $src = $http_src.$_SERVER[
'HTTP_HOST'].$src;
80 $attr_output = array();
81 $attr_output = array(
"src=\"".$src.
"\"");
82 $attr_output[] =
"alt=\"".$alt.
"\"";
86 $attr_output[] =
"title=\"".$title.
"\"";
90 $style = trim(preg_replace(
'/margin[a-z\-]*[ ]*:[ ]*[0-9 a-z]+(;| )/i',
'', $style)).
';';
91 $style = str_replace(
';;',
';',$style);
92 if($style ==
';') $style =
'';
93 $style .=
' margin:'.$margin.
'px;';
95 if($align) $attr_output[] =
"align=\"".$align.
"\"";
96 if($width) $attr_output[] =
'width="'.$width.
'"';
97 if($height) $attr_output[] =
'height="'.$height.
'"';
100 $style = trim(preg_replace(
'/border[a-z\-]*[ ]*:[ ]*[0-9 a-z]+(;| )/i',
'', $style)).
';';
101 $style = str_replace(
';;',
';',$style);
102 if($style ==
';') $style =
'';
103 $style .=
' border-style: solid; border-width:'.$border.
'px;';
106 $code = sprintf(
"<img %s style=\"%s\" />", implode(
' ',$attr_output), $style);
110 if($open_window ==
'Y') $code = sprintf(
'<a href="%s" target="_blank" rel="noopener">%s</a>', $link_url, $code);
111 else $code = sprintf(
'<a href="%s" >%s</a>', $link_url, $code);
__construct($editor_sequence, $component_path)
editor_sequence and components out of the path
getPopupContent()
popup window to display in popup window request is to add content
set($key, $val, $set_to_get_vars=0)
Add an image, or to modify the properties of components.
transHTML($xml_obj)
Editor of the components separately if you use a unique code to the html code for a method to change...
getRequestUri($ssl_mode=FOLLOW_REQUEST_SSL, $domain=null)