mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-02 22:45:02 +03:00
commit
8b2140fb15
|
@ -947,7 +947,9 @@ class Engine extends Object {
|
|||
if($aInfo[Engine::CI_INHERIT]){
|
||||
$sInheritClass = $aInfo[Engine::CI_INHERIT];
|
||||
$sParentClass = Engine::getInstance()->Plugin_GetParentInherit($sInheritClass);
|
||||
class_alias($sParentClass,$sClassName);
|
||||
if(!class_alias($sParentClass,$sClassName)){
|
||||
dump("(autoload $sParentClass) Can not load CLASS-file");
|
||||
}
|
||||
}elseif($aInfo[Engine::CI_CLASSPATH]){
|
||||
require_once $aInfo[Engine::CI_CLASSPATH];
|
||||
}elseif(!class_exists($sClassName)){
|
||||
|
|
|
@ -128,19 +128,16 @@ function func_generator($iLength=10) {
|
|||
/**
|
||||
* htmlspecialchars умеющая обрабатывать массивы
|
||||
*
|
||||
* @param unknown_type $data
|
||||
* @param mixed $data
|
||||
* @param int %walkIndex - represents the key/index of the array being recursively htmlspecialchars'ed
|
||||
* @return void
|
||||
*/
|
||||
function func_htmlspecialchars(&$data) {
|
||||
if (is_array($data)) {
|
||||
foreach ($data as $sKey => $value) {
|
||||
if (is_array($value)) {
|
||||
func_htmlspecialchars($data[$sKey]);
|
||||
} else {
|
||||
$data[$sKey]=htmlspecialchars($value);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
function func_htmlspecialchars(&$data, $walkIndex = null)
|
||||
{
|
||||
if(is_string($data)){
|
||||
$data = htmlspecialchars($data);
|
||||
}elseif(is_array($data)){
|
||||
array_walk($data, __FUNCTION__);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -402,7 +399,11 @@ if (!function_exists('array_intersect_key')) {
|
|||
|
||||
if (!function_exists('class_alias')) {
|
||||
function class_alias($original, $alias) {
|
||||
if(!class_exists($original)){
|
||||
return false;
|
||||
}
|
||||
eval('abstract class ' . $alias . ' extends ' . $original . ' {}');
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,12 @@
|
|||
border-left: 1px solid #c0cad5;
|
||||
border-right: 1px solid #c0cad5;
|
||||
}
|
||||
.markItUpHeader ul { overflow: visible; zoom: 1; }
|
||||
.markItUpHeader ul {
|
||||
overflow: visible;
|
||||
zoom: 1;
|
||||
display: inline-block;
|
||||
*display: inline; /* ie <= 7 */
|
||||
}
|
||||
.markItUpHeader ul li { list-style: none; float: left; position: relative; margin-right: 6px; }
|
||||
.markItUpHeader ul li: hover > ul{ display: block; }
|
||||
.markItUpHeader ul .markItUpDropMenu {
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
Function.prototype.bind = function(context) {
|
||||
var fn = this;
|
||||
if(jQuery.type(fn) != 'function'){
|
||||
throw new TypeError('Function.prototype.bind: call on non-function');
|
||||
};
|
||||
if(jQuery.type(context) == 'null'){
|
||||
throw new TypeError('Function.prototype.bind: cant be bound to null');
|
||||
};
|
||||
return function() {
|
||||
return fn.apply(context, arguments);
|
||||
};
|
||||
|
@ -8,7 +14,7 @@ String.prototype.tr = function(a,p) {
|
|||
var k;
|
||||
var p = typeof(p)=='string' ? p : '';
|
||||
var s = this;
|
||||
$.each(a,function(k){
|
||||
jQuery.each(a,function(k){
|
||||
var tk = p?p.split('/'):[];
|
||||
tk[tk.length] = k;
|
||||
var tp = tk.join('/');
|
||||
|
@ -425,7 +431,7 @@ ls = (function ($) {
|
|||
* Лог сообщений
|
||||
*/
|
||||
this.log = function() {
|
||||
if (window.console && window.console.log) {
|
||||
if (!$.browser.msie && window.console && window.console.log) {
|
||||
Function.prototype.bind.call(console.log, console).apply(console, arguments);
|
||||
} else {
|
||||
//alert(msg);
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<script type="text/javascript" src="{cfg name='path.root.engine_lib'}/external/tinymce-jq/tiny_mce.js"></script>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
|
@ -29,6 +30,7 @@
|
|||
extended_valid_elements : "embed[src|type|allowscriptaccess|allowfullscreen|width|height]",
|
||||
language : TINYMCE_LANG
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<script type="text/javascript" src="{cfg name='path.root.engine_lib'}/external/tinymce-jq/tiny_mce.js"></script>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
|
@ -29,6 +30,7 @@
|
|||
extended_valid_elements : "embed[src|type|allowscriptaccess|allowfullscreen|width|height]",
|
||||
language : TINYMCE_LANG
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "specific_textareas",
|
||||
editor_selector : "mceEditor",
|
||||
|
@ -36,6 +37,7 @@ tinyMCE.init({
|
|||
media_strict : false,
|
||||
language : TINYMCE_LANG
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
|
@ -34,6 +35,7 @@ tinyMCE.init({
|
|||
strikethrough : {inline : 's', exact : true}
|
||||
}
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
{literal}
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
|
@ -91,6 +92,7 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
.markItUp { width: 100%; }
|
||||
.markItUpEditor { width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; }
|
||||
.markItUpHeader { width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; height: 28px; }
|
||||
.markItUpHeader { width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; }
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
|
@ -46,6 +47,7 @@
|
|||
strikethrough : {inline : 's', exact : true}
|
||||
}
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{else}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
|
@ -35,6 +36,7 @@
|
|||
media_strict : false,
|
||||
language : TINYMCE_LANG
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
|
@ -34,6 +35,7 @@
|
|||
strikethrough : {inline : 's', exact : true}
|
||||
}
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{else}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
|
@ -35,6 +36,7 @@
|
|||
strikethrough : {inline : 's', exact : true}
|
||||
}
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{else}
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
{literal}
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function($){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
|
@ -96,6 +97,7 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{else}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
.markItUp { width: 100%; }
|
||||
.markItUpEditor { width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; }
|
||||
.markItUpHeader { width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; height: 28px; }
|
||||
.markItUpHeader { width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; }
|
||||
|
||||
.button {
|
||||
background: rgb(254,254,254);
|
||||
|
|
Loading…
Reference in a new issue