| @@ 23-34 (lines=12) @@ | ||
| 20 | * Pop-up layout details(conf/info.xml) |
|
| 21 | * @return void |
|
| 22 | */ |
|
| 23 | function dispLayoutInfo() |
|
| 24 | { |
|
| 25 | // Get the layout information |
|
| 26 | $oLayoutModel = getModel('layout'); |
|
| 27 | $layout_info = $oLayoutModel->getLayoutInfo(Context::get('selected_layout')); |
|
| 28 | if(!$layout_info) exit(); |
|
| 29 | Context::set('layout_info', $layout_info); |
|
| 30 | // Set the layout to be pop-up |
|
| 31 | $this->setLayoutFile('popup_layout'); |
|
| 32 | // Set a template file |
|
| 33 | $this->setTemplateFile('layout_detail_info'); |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * Preview a layout with module. |
|
| @@ 21-33 (lines=13) @@ | ||
| 18 | /** |
|
| 19 | * @brief Details of the widget (conf/info.xml) a pop-out |
|
| 20 | */ |
|
| 21 | function dispWidgetInfo() |
|
| 22 | { |
|
| 23 | // If people have skin widget widget output as a function of the skin More Details |
|
| 24 | if(Context::get('skin')) return $this->dispWidgetSkinInfo(); |
|
| 25 | // Wanted widget is selected information |
|
| 26 | $oWidgetModel = getModel('widget'); |
|
| 27 | $widget_info = $oWidgetModel->getWidgetInfo(Context::get('selected_widget')); |
|
| 28 | Context::set('widget_info', $widget_info); |
|
| 29 | // Specifies the widget to pop up |
|
| 30 | $this->setLayoutFile('popup_layout'); |
|
| 31 | // Set a template file |
|
| 32 | $this->setTemplateFile('widget_detail_info'); |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @brief Widget details of the skin (skin.xml) a pop-out |
|