mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-11 23:54:10 +02:00
Add Monstra from HG Commit 683dcb70c4cc
This commit is contained in:
43
plugins/box/editor/editor.plugin.php
Normal file
43
plugins/box/editor/editor.plugin.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Editor plugin
|
||||
*
|
||||
* @package Monstra
|
||||
* @subpackage Plugins
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version 1.0.0
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
// Register plugin
|
||||
Plugin::register( __FILE__,
|
||||
__('Editor', 'editor'),
|
||||
__('Editor plugin', 'editor'),
|
||||
'1.0.0',
|
||||
'Awilum',
|
||||
'http://monstra.org/',
|
||||
null,
|
||||
'box');
|
||||
|
||||
// Add action
|
||||
Action::add('admin_editor', 'Editor::render', 10, array());
|
||||
|
||||
|
||||
/**
|
||||
* Editor class
|
||||
*/
|
||||
class Editor {
|
||||
|
||||
/**
|
||||
* Render editor
|
||||
*
|
||||
* @param string $val editor data
|
||||
*/
|
||||
public static function render($val = null) {
|
||||
echo ('<div id="editor_panel"></div><div><textarea id="editor_area" name="editor" style="width:100%; height:320px;">'.$val.'</textarea></div>');
|
||||
}
|
||||
|
||||
}
|
11
plugins/box/editor/install/editor.manifest.xml
Normal file
11
plugins/box/editor/install/editor.manifest.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root>
|
||||
<plugin_location>plugins/box/editor/editor.plugin.php</plugin_location>
|
||||
<plugin_status>active</plugin_status>
|
||||
<plugin_priority>1</plugin_priority>
|
||||
<plugin_name>Editor</plugin_name>
|
||||
<plugin_description>Editor plugin</plugin_description>
|
||||
<plugin_version>1.0.0</plugin_version>
|
||||
<plugin_author>Awilum</plugin_author>
|
||||
<plugin_author_uri>http://monstra.org/</plugin_author_uri>
|
||||
</root>
|
8
plugins/box/editor/languages/en.lang.php
Normal file
8
plugins/box/editor/languages/en.lang.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'Editor' => array(
|
||||
'Editor' => 'Editor',
|
||||
'Editor plugin' => 'Editor plugin',
|
||||
)
|
||||
);
|
8
plugins/box/editor/languages/ru.lang.php
Normal file
8
plugins/box/editor/languages/ru.lang.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'Editor' => array(
|
||||
'Editor' => 'Редактор',
|
||||
'Editor plugin' => 'Редактор плагин',
|
||||
)
|
||||
);
|
Reference in New Issue
Block a user