1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 18:30:20 +02:00

Add Monstra from HG Commit 683dcb70c4cc

This commit is contained in:
Awilum
2012-09-25 19:09:50 +03:00
parent d2db42b2bb
commit 4a5fea5f5b
251 changed files with 35026 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<root>
<plugin_location>plugins/markitup/markitup.plugin.php</plugin_location>
<plugin_status>active</plugin_status>
<plugin_priority>15</plugin_priority>
<plugin_name>MarkItUp!</plugin_name>
<plugin_description>MarkItUp! universal markup jQuery editor</plugin_description>
<plugin_version>1.0.0</plugin_version>
<plugin_author>Awilum</plugin_author>
<plugin_author_uri>http://monstra.org/</plugin_author_uri>
</root>

View File

@@ -0,0 +1,58 @@
<?php
/**
* MarkItUp! plugin
*
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012 Romanenko Sergey / Awilum
* @version 1.0.0
*
*/
// Register plugin
Plugin::register( __FILE__,
__('MarkItUp!', 'markitup'),
__('MarkItUp! universal markup jQuery editor', 'markitup'),
'1.0.0',
'Awilum',
'http://monstra.org/',
null);
// Add hooks
Action::add('admin_header', 'MarkItUp::headers');
class MarkItUp {
/**
* Set editor headers
*/
public static function headers() {
echo ('
<!-- markItUp! -->
<script type="text/javascript" src="'.Option::get('siteurl').'plugins/markitup/markitup/jquery.markitup.js"></script>
<!-- markItUp! toolbar settings -->
<script type="text/javascript" src="'.Option::get('siteurl').'plugins/markitup/markitup/sets/html/set.js"></script>
<!-- markItUp! skin -->
<link rel="stylesheet" type="text/css" href="'.Option::get('siteurl').'plugins/markitup/markitup/skins/simple/style.css" />
<!-- markItUp! toolbar skin -->
<link rel="stylesheet" type="text/css" href="'.Option::get('siteurl').'plugins/markitup/markitup/sets/html/style.css" />
');
echo ('
<script type="text/javascript">
<!--
$(document).ready(function() {
$("#editor_area").markItUp(mySettings);
});
-->
</script>
');
}
}

View File

@@ -0,0 +1,2 @@
Options -Indexes
Allow from all

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

View File

@@ -0,0 +1,77 @@
// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// Html tags
// http://en.wikipedia.org/wiki/html
// ----------------------------------------------------------------------------
// Basic set. Feel free to add more tags
// ----------------------------------------------------------------------------
mySettings = {
onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>\n'},
onTab: {keepDefault:false, openWith:' '},
markupSet: [
{name:'Heading 1', key:'1', openWith:'<h1(!( class="[![Class]!]")!)>', closeWith:'</h1>', placeHolder:'Your title here...' },
{name:'Heading 2', key:'2', openWith:'<h2(!( class="[![Class]!]")!)>', closeWith:'</h2>', placeHolder:'Your title here...' },
{name:'Heading 3', key:'3', openWith:'<h3(!( class="[![Class]!]")!)>', closeWith:'</h3>', placeHolder:'Your title here...' },
{name:'Heading 4', key:'4', openWith:'<h4(!( class="[![Class]!]")!)>', closeWith:'</h4>', placeHolder:'Your title here...' },
{name:'Heading 5', key:'5', openWith:'<h5(!( class="[![Class]!]")!)>', closeWith:'</h5>', placeHolder:'Your title here...' },
{name:'Heading 6', key:'6', openWith:'<h6(!( class="[![Class]!]")!)>', closeWith:'</h6>', placeHolder:'Your title here...' },
{name:'Paragraph', openWith:'<p(!( class="[![Class]!]")!)>', closeWith:'</p>' },
{separator:'---------------' },
{name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
{name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
{name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
{separator:'---------------' },
{name:'Ul', openWith:'<ul>\n', closeWith:'</ul>\n' },
{name:'Ol', openWith:'<ol>\n', closeWith:'</ol>\n' },
{name:'Li', openWith:'<li>', closeWith:'</li>' },
{separator:'---------------' },
{name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
{name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
{name:'Colors', className:'palette', dropMenu: [
{name:'Yellow', replaceWith:'#FCE94F', className:"col1-1" },
{name:'Yellow', replaceWith:'#EDD400', className:"col1-2" },
{name:'Yellow', replaceWith:'#C4A000', className:"col1-3" },
{name:'Orange', replaceWith:'#FCAF3E', className:"col2-1" },
{name:'Orange', replaceWith:'#F57900', className:"col2-2" },
{name:'Orange', replaceWith:'#CE5C00', className:"col2-3" },
{name:'Brown', replaceWith:'#E9B96E', className:"col3-1" },
{name:'Brown', replaceWith:'#C17D11', className:"col3-2" },
{name:'Brown', replaceWith:'#8F5902', className:"col3-3" },
{name:'Green', replaceWith:'#8AE234', className:"col4-1" },
{name:'Green', replaceWith:'#73D216', className:"col4-2" },
{name:'Green', replaceWith:'#4E9A06', className:"col4-3" },
{name:'Blue', replaceWith:'#729FCF', className:"col5-1" },
{name:'Blue', replaceWith:'#3465A4', className:"col5-2" },
{name:'Blue', replaceWith:'#204A87', className:"col5-3" },
{name:'Purple', replaceWith:'#AD7FA8', className:"col6-1" },
{name:'Purple', replaceWith:'#75507B', className:"col6-2" },
{name:'Purple', replaceWith:'#5C3566', className:"col6-3" },
{name:'Red', replaceWith:'#EF2929', className:"col7-1" },
{name:'Red', replaceWith:'#CC0000', className:"col7-2" },
{name:'Red', replaceWith:'#A40000', className:"col7-3" },
{name:'Gray', replaceWith:'#FFFFFF', className:"col8-1" },
{name:'Gray', replaceWith:'#D3D7CF', className:"col8-2" },
{name:'Gray', replaceWith:'#BABDB6', className:"col8-3" },
{name:'Gray', replaceWith:'#888A85', className:"col9-1" },
{name:'Gray', replaceWith:'#555753', className:"col9-2" },
{name:'Gray', replaceWith:'#000000', className:"col9-3" }
]
},
{separator:'---------------' },
{name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
{name:'Preview', className:'preview', call:'preview' }
]
}

View File

@@ -0,0 +1,174 @@
/* -------------------------------------------------------------------
// markItUp!
// By Jay Salvat - http://markitup.jaysalvat.com/
// ------------------------------------------------------------------*/
.markItUp .markItUpButton1 a {
background-image:url(images/h1.png);
}
.markItUp .markItUpButton2 a {
background-image:url(images/h2.png);
}
.markItUp .markItUpButton3 a {
background-image:url(images/h3.png);
}
.markItUp .markItUpButton4 a {
background-image:url(images/h4.png);
}
.markItUp .markItUpButton5 a {
background-image:url(images/h5.png);
}
.markItUp .markItUpButton6 a {
background-image:url(images/h6.png);
}
.markItUp .markItUpButton7 a {
background-image:url(images/paragraph.png);
}
.markItUp .markItUpButton8 a {
background-image:url(images/bold.png);
}
.markItUp .markItUpButton9 a {
background-image:url(images/italic.png);
}
.markItUp .markItUpButton10 a {
background-image:url(images/stroke.png);
}
.markItUp .markItUpButton11 a {
background-image:url(images/list-bullet.png);
}
.markItUp .markItUpButton12 a {
background-image:url(images/list-numeric.png);
}
.markItUp .markItUpButton13 a {
background-image:url(images/list-item.png);
}
.markItUp .markItUpButton14 a {
background-image:url(images/picture.png);
}
.markItUp .markItUpButton15 a {
background-image:url(images/link.png);
}
.markItUp .markItUpButton16 a {
background-image:url(images/colors.png);
}
.markItUp .clean a {
background-image:url(images/clean.png);
}
.markItUp .preview a {
background-image:url(images/preview.png);
}
.markItUp .palette a {
background-image:url(images/colors.png);
}
.markItUp .palette ul {
width:81px;
padding:1px;
}
.markItUp .palette li {
border:1px solid white;
width:25px; height:25px;
overflow:hidden;
padding:0px; margin:0px;
float:left;
}
.markItUp .palette ul a {
width:25px; height:25px;
}
.markItUp .palette ul a:hover {
background-color:none;
}
.markItUp .palette .col1-1 a {
background:#FCE94F;
}
.markItUp .palette .col1-2 a {
background:#EDD400;
}
.markItUp .palette .col1-3 a {
background:#C4A000;
}
.markItUp .palette .col2-1 a {
background:#FCAF3E;
}
.markItUp .palette .col2-2 a {
background:#F57900;
}
.markItUp .palette .col2-3 a {
background:#CE5C00;
}
.markItUp .palette .col3-1 a {
background:#E9B96E;
}
.markItUp .palette .col3-2 a {
background:#C17D11;
}
.markItUp .palette .col3-3 a {
background:#8F5902;
}
.markItUp .palette .col4-1 a {
background:#8AE234;
}
.markItUp .palette .col4-2 a {
background:#73D216;
}
.markItUp .palette .col4-3 a {
background:#4E9A06;
}
.markItUp .palette .col5-1 a {
background:#729FCF;
}
.markItUp .palette .col5-2 a {
background:#3465A4;
}
.markItUp .palette .col5-3 a {
background:#204A87;
}
.markItUp .palette .col6-1 a {
background:#AD7FA8;
}
.markItUp .palette .col6-2 a {
background:#75507B;
}
.markItUp .palette .col6-3 a {
background:#5C3566;
}
.markItUp .palette .col7-1 a {
background:#EF2929;
}
.markItUp .palette .col7-2 a {
background:#CC0000;
}
.markItUp .palette .col7-3 a {
background:#A40000;
}
.markItUp .palette .col8-1 a {
background:#FFFFFF;
}
.markItUp .palette .col8-2 a {
background:#D3D7CF;
}
.markItUp .palette .col8-3 a {
background:#BABDB6;
}
.markItUp .palette .col9-1 a {
background:#888A85;
}
.markItUp .palette .col9-2 a {
background:#555753;
}
.markItUp .palette .col9-3 a {
background:#000000;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B

View File

@@ -0,0 +1,119 @@
/* -------------------------------------------------------------------
// markItUp! Universal MarkUp Engine, JQuery plugin
// By Jay Salvat - http://markitup.jaysalvat.com/
// ------------------------------------------------------------------*/
.markItUp * {
margin:0px; padding:0px;
outline:none;
}
.markItUp a:link,
.markItUp a:visited {
color:#000;
text-decoration:none;
}
.markItUp {
width:100%;
margin:5px 0 5px 0;
}
.markItUpContainer {
font:11px Verdana, Arial, Helvetica, sans-serif;
}
.markItUpEditor {
font:12px 'Courier New', Courier, monospace;
padding:5px;
width:100%;
height:320px;
clear:both;
line-height:18px;
overflow:auto;
}
.markItUpPreviewFrame {
overflow:auto;
background-color:#FFF;
width:99.9%;
height:300px;
margin:5px 0;
border:1px solid #ccc;
}
.markItUpFooter {
width:100%;
}
.markItUpResizeHandle {
overflow:hidden;
width:22px; height:5px;
margin-left:auto;
margin-right:auto;
background-image:url(images/handle.png);
cursor:n-resize;
}
/***************************************************************************************/
/* first row of buttons */
.markItUpHeader ul li {
list-style:none;
float:left;
position:relative;
}
.markItUpHeader ul li:hover > ul{
display:block;
}
.markItUpHeader ul .markItUpDropMenu {
background:transparent url(images/menu.png) no-repeat 115% 50%;
margin-right:5px;
}
.markItUpHeader ul .markItUpDropMenu li {
margin-right:0px;
}
/* next rows of buttons */
.markItUpHeader ul ul {
display:none;
position:absolute;
top:18px; left:0px;
background:#FFF;
border:1px solid #000;
}
.markItUpHeader ul ul li {
float:none;
border-bottom:1px solid #000;
}
.markItUpHeader ul ul .markItUpDropMenu {
background:#FFF url(images/submenu.png) no-repeat 100% 50%;
}
.markItUpHeader ul .markItUpSeparator {
margin:0 10px;
width:1px;
height:16px;
overflow:hidden;
background-color:#CCC;
}
.markItUpHeader ul ul .markItUpSeparator {
width:auto; height:1px;
margin:0px;
}
/* next rows of buttons */
.markItUpHeader ul ul ul {
position:absolute;
top:-1px; left:150px;
}
.markItUpHeader ul ul ul li {
float:none;
}
.markItUpHeader ul a {
display:block;
width:16px; height:16px;
text-indent:-10000px;
background-repeat:no-repeat;
padding:3px;
margin:0px;
}
.markItUpHeader ul ul a {
display:block;
padding-left:0px;
text-indent:0;
width:120px;
padding:5px 5px 5px 25px;
background-position:2px 50%;
}
.markItUpHeader ul ul a:hover {
color:#FFF;
background-color:#000;
}

View File

@@ -0,0 +1,2 @@
/* preview style examples */
body { background-color:#fff; font:100% "Helvetica Neue", Helvetica, Arial, sans-serif; }

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>markItUp! preview template</title>
<link rel="stylesheet" type="text/css" href="~/templates/preview.css" />
</head>
<body>
<!-- content -->
</body>
</html>