26 $script =
'<script src="./modules/layout/tpl/js/layout_modify.js"></script>';
28 $html = $oTemplate->compile($this->module_path.
'tpl/',
'layout_info_view');
30 preg_match_all(
'/<!--#JSPLUGIN:(.*)-->/', $html, $m);
33 foreach($pluginList as $plugin)
41 foreach($info->jsList as $js)
43 $script .= sprintf(
'<script src="%s"></script>', $js);
45 foreach($info->cssList as $css)
47 $csss .= sprintf(
'<link rel="stylesheet" href="%s" />', $css);
51 $this->
add(
'html', $csss . $script . $html);
55 return $this->
get(
'html');
65 $layout_info = $oLayoutModel->getLayout(
$layout_srl);
70 return $this->
stop(
'msg_invalid_request');
75 $menu_list = $oMenuAdminModel->getMenus();
79 $security->encodeHTML(
'menu_list..');
81 $security =
new Security($layout_info);
82 $layout_info = $security->encodeHTML(
'.',
'author..',
'extra_var..');
84 $layout_info->description = nl2br(trim($layout_info->description));
85 if(!is_object($layout_info->extra_var))
87 $layout_info->extra_var =
new StdClass();
90 foreach($layout_info->extra_var as $var_name => $val)
92 if(isset($layout_info->{$var_name}->description))
94 $layout_info->{$var_name}->description = nl2br(trim($val->description));
106 $layout_info = $oLayoutModel->getLayout(
$layout_srl);
110 return $this->dispLayoutAdminInstalledList();
114 if($oLayoutModel->useDefaultLayout($layout_info->layout_srl))
116 $layout_file = $oLayoutModel->getDefaultLayoutHtml($layout_info->layout);
117 $layout_css_file = $oLayoutModel->getDefaultLayoutCss($layout_info->layout);
121 $layout_file = $oLayoutModel->getUserLayoutHtml($layout_info->layout_srl);
122 $layout_css_file = $oLayoutModel->getUserLayoutCss($layout_info->layout_srl);
124 if(!file_exists($layout_file)) $layout_file = $layout_info->path .
'layout.html';
125 if(!file_exists($layout_css_file)) $layout_css_file = $layout_info->path .
'layout.css';
128 if(file_exists($layout_css_file))
138 $layout_image_list = $oLayoutModel->getUserLayoutImageList($layout_info->layout_srl);
141 $layout_image_path = $oLayoutModel->getUserLayoutImagePath($layout_info->layout_srl);
145 $widget_list = $oWidgetModel->getDownloadedWidgetList();
148 $security =
new Security($layout_info);
149 $layout_info = $security->encodeHTML(
'.',
'.author..');
154 $security->encodeHTML(
'layout_list..');
155 $security->encodeHTML(
'layout_list..author..');
158 $security->encodeHTML(
'layout_code_css',
'layout_code',
'widget_list..title');
160 $script =
'<script src="./modules/layout/tpl/js/layout_admin_set_html.js"></script>';
162 $html = $oTemplate->compile($this->module_path.
'tpl/',
'layout_html_css_view');
164 $this->add(
'html', $script.$html);
172 $layoutSrl = $this->getSiteDefaultLayout($type, $siteSrl);
175 $layoutInfo = $oLayoutModel->getLayoutRawData($layoutSrl, array(
'title'));
177 $this->add(
'layout_srl', $layoutSrl);
178 $this->add(
'title', $layoutInfo->title);
183 $target = ($viewType ==
'M') ?
'mlayout_srl' :
'layout_srl';
184 $designInfoFile = sprintf(
_XE_PATH_ .
'files/site_design/design_%s.php', $siteSrl);
193 $layout_info = $oModel->getLayout(
$designInfo->{$target});
getSiteDefaultLayout($viewType= 'P', $siteSrl=0)
set($key, $val, $set_to_get_vars=0)
getLayoutAdminSiteDefaultLayout()
getLayoutAdminSetHTMLCSS()
setLayoutAdminSetInfoView()
getLayoutAdminSetInfoView()
getAdminModel($module_name)
getJavascriptPluginInfo($pluginName)