29 $tpl_path = $this->component_path.
'tpl';
30 $tpl_file =
'popup.html';
35 return $oTemplate->compile($tpl_path, $tpl_file);
46 $gallery_info =
new stdClass();
47 $gallery_info->srl = rand(111111, 999999);
48 $gallery_info->border_thickness = (int)$xml_obj->attrs->border_thickness;
49 $gallery_info->gallery_style = $xml_obj->attrs->gallery_style;
50 $color_preg =
"/^([a-fA-F0-9]{6})/";
51 $gallery_info->border_color = preg_replace($color_preg,
"#$1",$xml_obj->attrs->border_color);
52 $gallery_info->bg_color = preg_replace($color_preg,
"#$1",$xml_obj->attrs->bg_color);
53 $gallery_info->gallery_align = $xml_obj->attrs->gallery_align;
55 if(!in_array($gallery_info->gallery_align, array(
'left',
'center',
'right'))) {
56 $gallery_info->gallery_align =
'center';
59 $images_list = $xml_obj->attrs->images_list;
60 $images_list = preg_replace(
'/\.(gif|jpe?g|png) /i',
".\\1\n", $images_list);
61 $images_list = explode(
"\n", trim($images_list));
62 $gallery_info->images_list = preg_grep(
"/^[a-z0-9\/]+\.(gif|jpe?g|png)+$/i", $images_list);
68 for($i=0;$i<count($gallery_info->images_list);$i++)
70 $output[] = sprintf(
'<img src="%s" alt="" />', $gallery_info->images_list[$i]);
73 return implode(
'<br />',
$output);
76 preg_match_all(
'/(width|height)([^[:digit:]]+)([0-9]+)/i',$xml_obj->attrs->style,$matches);
77 $gallery_info->width = trim($matches[3][0]);
78 if(!$gallery_info->width) $gallery_info->width = 400;
82 $tpl_path = $this->component_path.
'tpl';
85 if($gallery_info->gallery_style ==
"list") $tpl_file =
'list_gallery.html';
86 else $tpl_file =
'slide_gallery.html';
89 return $oTemplate->compile($tpl_path, $tpl_file);
transHTML($xml_obj)
Editor of the components separately if you use a unique code to the html code for a method to change...
__construct($editor_sequence, $component_path)
editor_sequence and components out of the path
set($key, $val, $set_to_get_vars=0)
Making images uploaded to the image gallery.
getPopupContent()
popup window to display in popup window request is to add content