mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-10 04:03:01 +09:00
issue 2662 trash, widget, session, trackback, spamfilter, tag
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12260 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e1a22ca6f0
commit
5219a360c6
31 changed files with 3465 additions and 3173 deletions
|
|
@ -1,78 +1,79 @@
|
|||
<?php
|
||||
/**
|
||||
* @class widgetAdminView
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief admin view class for widget modules
|
||||
**/
|
||||
/**
|
||||
* @class widgetAdminView
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief admin view class for widget modules
|
||||
*/
|
||||
class widgetAdminView extends widget
|
||||
{
|
||||
/**
|
||||
* @brief Initialization
|
||||
*/
|
||||
function init()
|
||||
{
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
}
|
||||
|
||||
class widgetAdminView extends widget {
|
||||
/**
|
||||
* @brief Showing a list of widgets
|
||||
*/
|
||||
function dispWidgetAdminDownloadedList()
|
||||
{
|
||||
// Set widget list
|
||||
$oWidgetModel = &getModel('widget');
|
||||
$widget_list = $oWidgetModel->getDownloadedWidgetList();
|
||||
|
||||
/**
|
||||
* @brief Initialization
|
||||
**/
|
||||
function init() {
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
}
|
||||
$security = new Security($widget_list);
|
||||
$widget_list = $security->encodeHTML('..', '..author..');
|
||||
|
||||
/**
|
||||
* @brief Showing a list of widgets
|
||||
**/
|
||||
function dispWidgetAdminDownloadedList() {
|
||||
// Set widget list
|
||||
$oWidgetModel = &getModel('widget');
|
||||
$widget_list = $oWidgetModel->getDownloadedWidgetList();
|
||||
|
||||
$security = new Security($widget_list);
|
||||
$widget_list = $security->encodeHTML('..', '..author..');
|
||||
|
||||
foreach($widget_list as $no => $widget)
|
||||
{
|
||||
$widget_list[$no]->description = nl2br(trim($widget->description));
|
||||
}
|
||||
|
||||
Context::set('widget_list', $widget_list);
|
||||
Context::set('tCount', count($widget_list));
|
||||
|
||||
$this->setTemplateFile('downloaded_widget_list');
|
||||
}
|
||||
|
||||
function dispWidgetAdminGenerateCode()
|
||||
foreach($widget_list as $no => $widget)
|
||||
{
|
||||
$oView = &getView('widget');
|
||||
Context::set('in_admin', true);
|
||||
$this->setTemplateFile('widget_generate_code');
|
||||
return $oView->dispWidgetGenerateCode();
|
||||
$widget_list[$no]->description = nl2br(trim($widget->description));
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief For information on direct entry widget popup kkuhim
|
||||
**/
|
||||
function dispWidgetAdminAddContent() {
|
||||
$module_srl = Context::get('module_srl');
|
||||
if(!$module_srl) return $this->stop("msg_invalid_request");
|
||||
Context::set('widget_list', $widget_list);
|
||||
Context::set('tCount', count($widget_list));
|
||||
|
||||
$document_srl = Context::get('document_srl');
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
Context::set('oDocument', $oDocument);
|
||||
$this->setTemplateFile('downloaded_widget_list');
|
||||
}
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$columnList = array('module_srl', 'mid');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl, $columnList);
|
||||
Context::set('module_info', $module_info);
|
||||
// Editors settings of the module by calling getEditor
|
||||
$oEditorModel = &getModel('editor');
|
||||
$editor = $oEditorModel->getModuleEditor('document',$module_srl, $module_srl,'module_srl','content');
|
||||
Context::set('editor', $editor);
|
||||
function dispWidgetAdminGenerateCode()
|
||||
{
|
||||
$oView = &getView('widget');
|
||||
Context::set('in_admin', true);
|
||||
$this->setTemplateFile('widget_generate_code');
|
||||
return $oView->dispWidgetGenerateCode();
|
||||
}
|
||||
|
||||
$security = new Security();
|
||||
$security->encodeHTML('member_config..');
|
||||
/**
|
||||
* @brief For information on direct entry widget popup kkuhim
|
||||
*/
|
||||
function dispWidgetAdminAddContent()
|
||||
{
|
||||
$module_srl = Context::get('module_srl');
|
||||
if(!$module_srl) return $this->stop("msg_invalid_request");
|
||||
|
||||
$this->setLayoutPath('./common/tpl');
|
||||
$this->setLayoutFile("default_layout");
|
||||
$this->setTemplateFile('add_content_widget');
|
||||
$document_srl = Context::get('document_srl');
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
Context::set('oDocument', $oDocument);
|
||||
|
||||
}
|
||||
$oModuleModel = &getModel('module');
|
||||
$columnList = array('module_srl', 'mid');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl, $columnList);
|
||||
Context::set('module_info', $module_info);
|
||||
// Editors settings of the module by calling getEditor
|
||||
$oEditorModel = &getModel('editor');
|
||||
$editor = $oEditorModel->getModuleEditor('document',$module_srl, $module_srl,'module_srl','content');
|
||||
Context::set('editor', $editor);
|
||||
|
||||
}
|
||||
?>
|
||||
$security = new Security();
|
||||
$security->encodeHTML('member_config..');
|
||||
|
||||
$this->setLayoutPath('./common/tpl');
|
||||
$this->setLayoutFile("default_layout");
|
||||
$this->setTemplateFile('add_content_widget');
|
||||
}
|
||||
}
|
||||
/* End of file widget.admin.view.php */
|
||||
/* Location: ./modules/widget/widget.admin.view.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue