Your IP : 216.73.216.190


Current Path : /proc/1908984/root/proc/2603263/cwd/
Upload File :
Current File : //proc/1908984/root/proc/2603263/cwd/columns.tar

css/columns.css000064400000026141152350561600007535 0ustar00.yt-show-grid {
  margin-bottom: 20px;
}
.yt-show-grid h1{
  margin-bottom: 15px;
}
.yt-show-grid.show-grid {
	background-color: rgba(86,61,124,0.15);
  padding-bottom: 10px;
  padding-top: 10px;
}
.yt-show-grid .yt-col-xs-1,.yt-show-grid .yt-col-sm-1,.yt-show-grid .yt-col-md-1,.yt-show-grid .yt-col-lg-1{
	width: 7.333%;
	margin-left: 1%;
	float: left;
}
.yt-show-grid .yt-col-xs-1:first-child,.yt-show-grid .yt-col-sm-1:first-child,.yt-show-grid .yt-col-md-1:first-child,.yt-show-grid .yt-col-lg-1:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-2,.yt-show-grid .yt-col-sm-2,.yt-show-grid .yt-col-md-2,.yt-show-grid .yt-col-lg-2{
	width: 14.6666%;
	margin-left: 2%;
	float: left;
}
.yt-show-grid .yt-col-xs-2:first-child,.yt-show-grid .yt-col-sm-2:first-child,.yt-show-grid .yt-col-md-2:first-child,.yt-show-grid .yt-col-lg-2:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-3,.yt-show-grid .yt-col-sm-3,.yt-show-grid .yt-col-md-3,.yt-show-grid .yt-col-lg-3{
	width: 22.5%;
	margin-left: 3%;
	float: left;
}
.yt-show-grid .yt-col-xs-3:first-child,.yt-show-grid .yt-col-sm-3:first-child,.yt-show-grid .yt-col-md-3:first-child,.yt-show-grid .yt-col-lg-3:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-4,.yt-show-grid .yt-col-sm-4,.yt-show-grid .yt-col-md-4,.yt-show-grid .yt-col-lg-4{
	width: 32.5%;
	margin-left: 1%;
	float: left;
}
.yt-show-grid .yt-col-xs-4:first-child,.yt-show-grid .yt-col-sm-4:first-child,.yt-show-grid .yt-col-md-4:first-child,.yt-show-grid .yt-col-lg-4:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-5,.yt-show-grid .yt-col-sm-5,.yt-show-grid .yt-col-md-5,.yt-show-grid .yt-col-lg-5{
	width: 38.6666%;
	margin-left: 3%;
	float: left;
}
.yt-show-grid .yt-col-xs-5:first-child,.yt-show-grid .yt-col-sm-5:first-child,.yt-show-grid .yt-col-md-5:first-child,.yt-show-grid .yt-col-lg-5:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-6,.yt-show-grid .yt-col-sm-6,.yt-show-grid .yt-col-md-6,.yt-show-grid .yt-col-lg-6{
	width: 49%;
	margin-left: 1%;
	float: left;
}
.yt-show-grid .yt-col-xs-6:first-child,.yt-show-grid .yt-col-sm-6:first-child,.yt-show-grid .yt-col-md-6:first-child,.yt-show-grid .yt-col-lg-6:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-7,.yt-show-grid .yt-col-sm-7,.yt-show-grid .yt-col-md-7,.yt-show-grid .yt-col-lg-7{
	width: 55.333%;
	margin-left: 3%;
	float: left;
}
.yt-show-grid .yt-col-xs-7:first-child,.yt-show-grid .yt-col-sm-7:first-child,.yt-show-grid .yt-col-md-7:first-child,.yt-show-grid .yt-col-lg-7:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-8,.yt-show-grid .yt-col-sm-8,.yt-show-grid .yt-col-md-8,.yt-show-grid .yt-col-lg-8{
	width: 63.6666%;
	margin-left: 3%;
	float: left;
}
.yt-show-grid .yt-col-xs-8:first-child,.yt-show-grid .yt-col-sm-8:first-child,.yt-show-grid .yt-col-md-8:first-child,.yt-show-grid .yt-col-lg-8:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-9,.yt-show-grid .yt-col-sm-9,.yt-show-grid .yt-col-md-9,.yt-show-grid .yt-col-lg-9{
	width: 72%;
	margin-left: 3%;
	float: left;
}
.yt-show-grid .yt-col-xs-9:first-child,.yt-show-grid .yt-col-sm-9:first-child,.yt-show-grid .yt-col-md-9:first-child,.yt-show-grid .yt-col-lg-9:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-10,.yt-show-grid .yt-col-sm-10,.yt-show-grid .yt-col-md-10,.yt-show-grid .yt-col-lg-10{
	width: 80.333%;
	margin-left: 3%;
	float: left;
}
.yt-show-grid .yt-col-xs-10:first-child,.yt-show-grid .yt-col-sm-10:first-child,.yt-show-grid .yt-col-md-10:first-child,.yt-show-grid .yt-col-lg-10:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-11,.yt-show-grid .yt-col-sm-11,.yt-show-grid .yt-col-md-11,.yt-show-grid .yt-col-lg-11{
	width: 88.6666%;
	margin-left: 3%;
	float: left;
}
.yt-show-grid .yt-col-xs-11:first-child,.yt-show-grid .yt-col-sm-11:first-child,.yt-show-grid .yt-col-md-11:first-child,.yt-show-grid .yt-col-lg-11:first-child{
	margin-left: 0;
}
.yt-show-grid .yt-col-xs-12,.yt-show-grid .yt-col-sm-12,.yt-show-grid .yt-col-md-12,.yt-show-grid .yt-col-lg-12{
	width: 100%;
}


@media (min-width: 768px) {
	.yt-col-sm-1, .yt-col-sm-2, .yt-col-sm-3, .yt-col-sm-4, .yt-col-sm-5, .yt-col-sm-6, .yt-col-sm-7, .yt-col-sm-8, .yt-col-sm-9, .yt-col-sm-10, .yt-col-sm-11, .yt-col-sm-12 {
	    float: left;
	  }
	.yt-show-grid .yt-col-sm-1{
		width: 7.333%;
		margin-left: 1%;
	}
	.yt-show-grid .yt-col-sm-1:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-2{
		width: 14.6666%;
		margin-left: 2%;
	}
	.yt-show-grid .yt-col-sm-2:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-3{
		width: 22.5%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-sm-3:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-4{
		width: 32.5%;
		margin-left: 1%;
	}
	.yt-show-grid .yt-col-sm-4:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-5{
		width: 38.6666%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-sm-5:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-6{
		width: 49%;
		margin-left: 1%;
	}
	.yt-show-grid .yt-col-sm-6:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-7{
		width: 55.333%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-sm-7:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-8{
		width: 63.6666%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-sm-8:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-9{
		width: 72%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-sm-9:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-10{
		width: 80.333%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-sm-10:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-11{
		width: 88.6666%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-sm-11:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-sm-12{
		width: 100%;
	}
	.yt-show-grid .yt-col-sm-offset-12 {
	    margin-left: 100%;
	  }
	.yt-show-grid .yt-col-sm-offset-11 {
	    margin-left: 91.66666667%;
	  }
	.yt-show-grid .yt-col-sm-offset-10 {
	    margin-left: 83.33333333%;
	  }
	.yt-show-grid .yt-col-sm-offset-9 {
	    margin-left: 75%;
	  }
	.yt-show-grid .yt-col-sm-offset-8 {
	    margin-left: 66.66666667%;
	  }
	.yt-show-grid .yt-col-sm-offset-7 {
	    margin-left: 58.33333333%;
	  }
	.yt-show-grid .yt-col-sm-offset-6 {
	    margin-left: 50%;
	  }
	.yt-show-grid .yt-col-sm-offset-5 {
	    margin-left: 41.66666667%;
	  }
	.yt-show-grid .yt-col-sm-offset-4 {
	    margin-left: 33.33333333%;
	  }
	.yt-show-grid .yt-col-sm-offset-3 {
	    margin-left: 25%;
	  }
	.yt-show-grid .yt-col-sm-offset-2 {
	    margin-left: 16.66666667%;
	  }
	.yt-show-grid .yt-col-sm-offset-1 {
	    margin-left: 8.33333333%;
	  }
	.yt-show-grid .yt-col-sm-offset-0 {
	    margin-left: 0;
	  }
}

@media (min-width: 992px) {
  	.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    float: left;
  	}
  	.yt-show-grid .yt-col-md-1{
		width: 7.333%;
		margin-left: 1%;
	}
	.yt-show-grid .yt-col-md-1:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-2{
		width: 14.6666%;
		margin-left: 2%;
	}
	.yt-show-grid .yt-col-md-2:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-3{
		width: 22.5%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-md-3:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-4{
		width: 32.5%;
		margin-left: 1%;
	}
	.yt-show-grid .yt-col-md-4:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-5{
		width: 38.6666%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-md-5:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-6{
		width: 49%;
		margin-left: 1%;
	}
	.yt-show-grid .yt-col-md-6:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-7{
		width: 55.333%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-md-7:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-8{
		width: 63.6666%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-md-8:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-9{
		width: 72%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-md-9:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-10{
		width: 80.333%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-md-10:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-11{
		width: 88.6666%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-md-11:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-md-12{
		width: 100%;
	}
	.yt-show-grid .yt-col-md-offset-12 {
	    margin-left: 100%;
	}
	.yt-show-grid .yt-col-md-offset-11 {
	    margin-left: 91.66666667%;
	}
	.yt-show-grid .yt-col-md-offset-10 {
	    margin-left: 83.33333333%;
	}
	.yt-show-grid .yt-col-md-offset-9 {
	    margin-left: 75%;
	}
	.yt-show-grid .yt-col-md-offset-8 {
	    margin-left: 66.66666667%;
	}
	.yt-show-grid .yt-col-md-offset-7 {
	    margin-left: 58.33333333%;
	}
	.yt-show-grid .yt-col-md-offset-6 {
	    margin-left: 50%;
	}
	.yt-show-grid .yt-col-md-offset-5 {
	    margin-left: 41.66666667%;
	}
	.yt-show-grid .yt-col-md-offset-4 {
	    margin-left: 33.33333333%;
	}
	.yt-show-grid .yt-col-md-offset-3 {
	    margin-left: 25%;
	}
	.yt-show-grid .yt-col-md-offset-2 {
	    margin-left: 16.66666667%;
	}
	.yt-show-grid .yt-col-md-offset-1 {
	    margin-left: 8.33333333%;
	}
	.yt-show-grid .yt-col-md-offset-0 {
	    margin-left: 0;
	}
}

@media (min-width: 1200px) {
	.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
	    float: left;
	  }
	.yt-show-grid .yt-col-lg-1{
		width: 7.333%;
		margin-left: 1%;
	}
	.yt-show-grid .yt-col-lg-1:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-2{
		width: 14.6666%;
		margin-left: 2%;
		float: left;
	}
	.yt-show-grid .yt-col-lg-2:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-3{
		width: 22.5%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-lg-3:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-4{
		width: 32.5%;
		margin-left: 1%;
	}
	.yt-show-grid .yt-col-lg-4:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-5{
		width: 38.6666%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-lg-5:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-6{
		width: 49%;
		margin-left: 1%;
	}
	.yt-show-grid .yt-col-lg-6:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-7{
		width: 55.333%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-lg-7:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-8{
		width: 63.6666%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-lg-8:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-9{
		width: 72%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-lg-9:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-10{
		width: 80.333%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-lg-10:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-11{
		width: 88.6666%;
		margin-left: 3%;
	}
	.yt-show-grid .yt-col-lg-11:first-child{
		margin-left: 0;
	}
	.yt-show-grid .yt-col-lg-12{
		width: 100%;
	}
}
css/index.html000064400000000054152350561600007333 0ustar00<html><body bgcolor="#FFFFFF"></body></html>js/index.html000064400000000032152350561600007153 0ustar00<html><body></body></html>config.php000064400000001653152350561600006532 0ustar00<?php

/**
 * @copyright     Copyright (c) 2009-2021 Ryan Demmer. All rights reserved
 * @license       GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * JCE is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses
 */
class WFColumnsPluginConfig
{
    public static function getConfig(&$settings)
    {
        $wf = WFApplication::getInstance();

        $settings['columns_framework']  = $wf->getParam('columns.framework', '', '');
        $settings['columns_stack']      = $wf->getParam('columns.stack', 'medium', 'medium');
        $settings['columns_gap']        = $wf->getParam('columns.gap', 'medium', 'medium');
        $settings['columns_layout']     = $wf->getParam('columns.layout', '', '');
    }
}shortcode.php000064400000001162152350561600007252 0ustar00<?php 
/*
* @package   YouTech Shortcodes
* @author    YouTech Company http://smartaddons.com/
* @copyright Copyright (C) 2015 YouTech Company
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
function columnsYTShortcode($atts, $content = null ){
	global $grid;
	extract(ytshortcode_atts(array(
		"grid" => 'no'
	), $atts));
	JHtml::stylesheet(JUri::base()."plugins/system/ytshortcodes/shortcodes/columns/css/columns.css");
	return '<div class="yt-clearfix yt-show-grid">' . parse_shortcode(str_replace(array("<br/>", "<br>", "<br />"), " ", $content)) . '</div>';
}
?>css/content.css000064400000001250152355236600007525 0ustar00@import url(../../../../../../../plugins/system/jce/css/content.css);.wf-column-empty{position:relative}.wf-column-empty::after{content:"...";box-sizing:border-box;display:flex;justify-content:center;align-items:center;color:rgba(0,0,0,.3);font-family:apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;font-size:16px;font-weight:700;pointer-events:none;position:absolute;top:0;left:0;height:100%;width:100%}.mceVisualBlocks .wf-column,.wf-column{position:relative}.wf-column-empty[data-mce-empty]::after{content:attr(data-mce-empty)}.wf-column{border:1px dashed #787679;border-color:var(--mce-guidelines);padding:2px}columns.xml000064400000003307152355236600006760 0ustar00<?xml version="1.0" ?>
<extension version="2.5" type="plugin" group="jce" method="upgrade">
	<name>JCE - Columns</name>
	<version>1.0.0</version>
	<creationDate>May 2019</creationDate>
	<author>Ryan Demmer</author>
	<authorEmail>info@joomlacontenteditor.net</authorEmail>
	<authorUrl>https://www.joomlacontenteditor.net/</authorUrl>
	<copyright>Copyright (C) 2006 - 2020 Ryan Demmer. All rights reserved</copyright>
	<license>GNU/GPL Version 2 - http://www.gnu.org/licenses/gpl-2.0.html</license>
	<description>Flex Columns for JCE</description>
	<icon>columns</icon>
	<files></files>
	<fields name="columns">
		<fieldset name="config">
			<field name="framework" type="list" default="" label="WF_COLUMNS_FRAMEWORK" description="WF_COLUMNS_FRAMEWORK_DESC">
				<option value="">WF_COLUMNS_FRAMEWORK_GENERIC</option>
				<option value="uikit">WF_COLUMNS_FRAMEWORK_YOOTHEME</option>
				<option value="bootstrap">WF_COLUMNS_FRAMEWORK_BOOTSTRAP</option>
			</field>
			<field name="stack" type="list" default="medium" label="WF_COLUMNS_STACK" description="WF_COLUMNS_STACK_DESC">
				<option value="">WF_COLUMNS_STACK_NONE</option>
				<option value="small">WF_COLUMNS_STACK_SMALL</option>
				<option value="medium">WF_COLUMNS_STACK_MEDIUM</option>
				<option value="large">WF_COLUMNS_STACK_LARGE</option>
			</field>
			<field name="gap" type="list" default="medium" label="WF_COLUMNS_GAP" description="WF_COLUMNS_GAP_DESC">
				<option value="">WF_COLUMNS_GAP_NONE</option>
				<option value="small">WF_COLUMNS_GAP_SMALL</option>
				<option value="medium">WF_COLUMNS_GAP_MEDIUM</option>
				<option value="large">WF_COLUMNS_GAP_LARGE</option>
			</field>
		</fieldset>
	</fields>
	<languages></languages>
	<help></help>
</extension>
editor_plugin.js000064400000053670152355236600007770 0ustar00/* jce - 2.9.21 | 2022-03-30 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
!function(){function partition(array,maxrows){for(var size=array.length,columns=Math.ceil(size/maxrows),fullrows=size-(columns-1)*maxrows,result=[],i=0;i<maxrows;++i){var n=array.splice(0,i<fullrows?columns:columns-1);result.push(n)}return result}function flattenObjectToArray(obj){var values=[];return each(obj,function(value,key){return!value||(!!tinymce.is(value,"function")||(tinymce.is(value,"object")&&(value=flattenObjectToArray(value)),"string"==typeof value&&(value=value.split(" ")),void(values=values.concat(value))))}),values}function fixDragSelection(editor){function cleanup(force){editor.getBody().style.webkitUserSelect="",(force||hasSelection)&&(dom.removeClass(dom.select("div.wf-column.mceSelected"),"mceSelected"),hasSelection=!1),selected=[]}function isColumnInContainer(container,column){return!(!container||!column)&&container===dom.getParent(column,".wf-columns")}var resizing,dragging,startColumn,startContainer,lastMouseOverTarget,hasSelection,dom=editor.dom,selected=[];editor.onSetContent.add(function(){cleanup(!0)}),editor.onKeyUp.add(function(){cleanup()}),editor.onMouseDown.add(function(ed,e){2!=e.button&&(cleanup(),startColumn=dom.getParent(e.target,".wf-column"),startContainer=dom.getParent(startColumn,".wf-columns"),selected.push(startColumn))}),dom.bind(editor.getDoc(),"mouseover",function(e){var sel,currentColumn,target=e.target;if(!resizing&&!dragging&&target!==lastMouseOverTarget&&(lastMouseOverTarget=target,startContainer&&startColumn)){if(currentColumn=dom.getParent(target,".wf-column"),isColumnInContainer(startContainer,currentColumn)||(currentColumn=dom.getParent(startContainer,".wf-column")),startColumn===currentColumn&&!hasSelection)return;if(isColumnInContainer(startContainer,currentColumn)){e.preventDefault(),editor.getBody().style.webkitUserSelect="none",selected.push(currentColumn),dom.removeClass(dom.select(".wf-column"),"mceSelected"),dom.addClass(selected,"mceSelected"),hasSelection=!0,sel=editor.selection.getSel();try{sel.removeAllRanges?sel.removeAllRanges():sel.empty()}catch(ex){}}}}),editor.onMouseUp.add(function(){function setPoint(node,start){var walker=new TreeWalker(node,node);do{if(3==node.nodeType)return void(start?rng.setStart(node,0):rng.setEnd(node,node.nodeValue.length));if("BR"==node.nodeName)return void(start?rng.setStartBefore(node):rng.setEndBefore(node))}while(node=start?walker.next():walker.prev())}var rng,selectedColumns,walker,node,lastNode,sel=editor.selection;if(startColumn){if(selectedColumns=dom.select("div.wf-column.mceSelected"),selectedColumns.length>0){var parent=dom.getParent(selectedColumns[0],".wf-columns");rng=dom.createRng(),node=selectedColumns[0],rng.setStartBefore(node),rng.setEndAfter(node),setPoint(node,1),walker=new TreeWalker(node,parent);do if("DIV"==node.nodeName){if(!dom.hasClass(node,"mceSelected"))break;lastNode=node}while(node=walker.next());setPoint(lastNode),sel.setRng(rng)}selected=[],editor.nodeChanged(),startColumn=startContainer=lastMouseOverTarget=null}})}function uikit(){function apply(elm){var classes=elm.getAttribute("class"),suffix=[],layout="";DOM.addClass(elm,"uk-flex");var suffixMap=function(val){var map={small:"@s",medium:"@m",large:"@l",xlarge:"@xl"};return map[val]||""};if(classes.indexOf("wf-columns-stack-")!==-1){var stack=/wf-columns-stack-(small|medium|large|xlarge)/.exec(classes)[1];suffix=["-"+stack,suffixMap(stack)],DOM.addClass(elm,"uk-flex-wrap")}if(classes.indexOf("wf-columns-layout-")!==-1)if(layout=/wf-columns-layout-([0-9-]+|auto)/.exec(classes)[1],"auto"===layout)DOM.addClass(DOM.select(".wf-column",elm),"uk-flex-auto uk-flex-item-auto");else{var weight=layout.charAt(0),cls="";each(suffix,function(sfx){cls+=" "+mapLayout(layout)+sfx}),cls=tinymce.trim(cls),parseInt(weight,10)>1?DOM.addClass(DOM.select(".wf-column:first-child",elm),cls):"1-2-1"===layout?DOM.addClass(DOM.select(".wf-column:nth(2)",elm),cls):DOM.addClass(DOM.select(".wf-column:last-child",elm),cls)}var gap="medium";classes.indexOf("wf-columns-gap-")!==-1&&(gap=/wf-columns-gap-(small|medium|large|none)/.exec(classes)[1]),DOM.addClass(elm,"uk-flex-gap-"+gap),each(suffix,function(sfx){DOM.addClass(elm,"uk-child-width-expand"+sfx)})}function remove(elm){if(DOM.hasClass(elm,"uk-flex")){var suffixMap=function(val){var map={"@s":"small","@m":"medium","@l":"large","@xl":"xlarge"};return map[val]||""},classes=elm.getAttribute("class");if(classes.indexOf("uk-child-width-expand@")!==-1){var stack=/uk-child-width-expand(@s|@m|@l|@xl)/.exec(classes);if(stack){var suffix=suffixMap(stack[1]);suffix&&DOM.addClass(elm,"wf-columns-stack-"+suffix),DOM.removeClass(elm,stack[0])}DOM.removeClass(elm,"uk-flex-wrap")}if(classes.indexOf("uk-flex-gap-")!==-1){var gap=/uk-flex-gap-(none|small|medium|large)/.exec(classes)[1];gap&&(DOM.addClass(elm,"wf-columns-gap-"+gap),DOM.removeClass(elm,"uk-flex-gap-"+gap))}var nodes=tinymce.grep(elm.childNodes,function(node){if("DIV"===node.nodeName)return node}),layout="wf-columns-layout-auto";each(nodes,function(node,i){var cls=node.getAttribute("class");if(cls&&cls.indexOf("uk-width-")!==-1){var rx=/uk-width-([0-9-]+)(?:@s|@m|@l|@xl|-small|-medium|-large|-xlarge)/g,match=rx.exec(cls),values=[];if(match&&(values=mapLayout("uk-width-"+match[1])),each(cls.match(rx),function(str){DOM.removeClass(node,str)}),!values.length)return!0;layout=0===i?"wf-columns-layout-"+values[0]:i===nodes.length-1?"wf-columns-layout-"+values[values.length-1]:"wf-columns-layout-"+values[1]}DOM.removeClass(node,"uk-flex-auto"),DOM.removeClass(node,"uk-flex-item-auto")}),DOM.removeClass(elm,"uk-flex"),DOM.addClass(elm,layout)}}var mapLayout=function(str){var cls;switch(str){case"1-2":case"2-1":cls="uk-width-2-3";break;case"1-3":case"3-1":cls="uk-width-3-4";break;case"2-1-1":case"1-2-2":case"1-2-1":cls="uk-width-1-2";break;case"4-1":case"1-4":cls="uk-width-1-5";break;case"2-1-1-1":case"1-1-1-2":cls="uk-width-2-5";break;case"2-3":case"1-1-3":case"3-1-1":cls="uk-width-3-5";break;case"uk-width-2-3":cls=["2-1","1-2"];break;case"uk-width-3-4":cls=["3-1","1-3"];break;case"uk-width-1-2":cls=["2-1-1","1-2-1","1-2-2"];break;case"uk-width-1-5":cls=["4-1","1-4"];break;case"uk-width-2-5":cls=["2-1-1-1","1-1-1-2"];break;case"uk-width-3-5":cls=["2-3","1-1-3","3-1-1"]}return cls};return{apply:apply,remove:remove}}function bootstrap(){function apply(elm){var classes=elm.getAttribute("class"),suffix="",layout="";DOM.addClass(elm,"row");var suffixMap=function(val){var map={small:"-sm",medium:"-md",large:"-lg",xlarge:"-xl"};return map[val]||""};if(classes.indexOf("wf-columns-stack-")!==-1){var stack=/wf-columns-stack-(small|medium|large|xlarge)/.exec(classes)[1];suffix=suffixMap(stack),DOM.addClass(DOM.select(".wf-column",elm),"col"+suffix)}if(classes.indexOf("wf-columns-layout-")!==-1)if(layout=/wf-columns-layout-([0-9-]+|auto)/.exec(classes)[1],"auto"===layout)DOM.addClass(DOM.select(".wf-column",elm),"col"+suffix);else{var pos=layout.charAt(0),cls="col"+suffix+"-"+mapLayout(layout);parseInt(pos,10)>1?DOM.addClass(DOM.select(".wf-column:first-child",elm),cls):"1-2-1"===layout?DOM.addClass(DOM.select(".wf-column:nth(2)",elm),cls):1===parseInt(pos,10)&&DOM.addClass(DOM.select(".wf-column:last-child",elm),cls)}if(classes.indexOf("wf-columns-gap-")!==-1){var gap=/wf-columns-gap-(small|medium|large|none)/.exec(classes)[1];suffix=suffixMap(gap)||"-none",DOM.addClass(elm,"flex-gap"+suffix)}}function remove(elm){if(DOM.hasClass(elm,"row")){var classes=elm.getAttribute("class"),stack="",layout="wf-columns-layout-auto",nodes=DOM.select('div[class*="col"]',elm),suffixMap=function(val){var map={sm:"small",md:"medium",lg:"large",xl:"xlarge"};return map[val]||""};if(each(nodes,function(node,i){var cls=node.getAttribute("class");if(cls&&cls.indexOf("col-")!==-1){var match,values=[];if(each(cls.split(" "),function(val){val.indexOf("col-")!==-1&&(DOM.removeClass(node,val),match=/col-(sm|md|lg|xl)(-[0-9])?/.exec(val))}),match){values=mapLayout(match[0]);var suffix=suffixMap(match[1]);suffix&&(stack="wf-columns-stack-"+suffix),values&&(layout=0===i?"wf-columns-layout-"+values[0]:i===nodes.length-1?"wf-columns-layout-"+values[values.length-1]:"wf-columns-layout-"+values[1])}}DOM.removeClass(node,"col")}),classes.indexOf("flex-gap-")!==-1){var gap=/flex-gap-(none|sm|md|lg)?/.exec(classes)[1];if(gap&&"md"!==gap){var suffix=suffixMap(gap)||"none";DOM.addClass(elm,"wf-columns-gap-"+suffix),DOM.removeClass(elm,"uk-flex-gap-"+gap)}}DOM.removeClass(elm,"row"),DOM.addClass(elm,layout),DOM.addClass(elm,stack)}}var mapLayout=function(str){var cls;switch(str){case"1-2":case"2-1":cls="8";break;case"1-3":case"3-1":cls="9";break;case"2-1-1":case"1-2-2":case"1-2-1":cls="6";break;case"col-sm-8":case"col-md-8":case"col-lg-8":case"col-xl-8":cls=["2-1","1-2"];break;case"col-sm-9":case"col-md-9":case"col-lg-9":case"col-xl-9":cls=["3-1","1-3"];break;case"col-sm-6":case"col-md-6":case"col-lg-6":case"col-xl-6":cls=["2-1-1","1-2-1","1-2-2"]}return cls};return{apply:apply,remove:remove}}function isColumn(elm){return elm&&"DIV"==elm.nodeName&&elm.className.indexOf("wf-column")!==-1}function removeColumn(editor){var node=getColumnNode(editor);if(node){for(var child,parent=editor.dom.getParent(node,".wf-columns");child=node.firstChild;)if(editor.dom.isEmpty(child)&&1===child.nodeType)editor.dom.remove(child);else{var num=parent.childNodes.length,idx=editor.dom.nodeIndex(node)+1;idx<=Math.ceil(num/2)?editor.dom.insertBefore(child,parent):editor.dom.insertAfter(child,parent)}editor.dom.remove(node);var cols=editor.dom.select(".wf-column",parent);if(cols.length){var col=cols[cols.length-1];col&&(editor.selection.select(col.firstChild),editor.selection.collapse(1))}else editor.dom.remove(parent,1);editor.nodeChanged()}editor.undoManager.add()}function padColumn(editor,column){var childBlock=(editor.settings.force_p_newlines?"p":"")||editor.settings.forced_root_block,columnContent=editor.dom.doc.createTextNode(" ");childBlock&&(columnContent=editor.dom.create(childBlock),tinymce.isIE||(columnContent.innerHTML="&nbsp;")),editor.dom.add(column,columnContent)}function createColumn(editor){var col=editor.dom.create("div",{class:"wf-column","data-mce-column":1});return padColumn(editor,col),col}function addColumn(editor,node,parentCol){var node=getColumnNode(editor,node),col=createColumn(editor);node?editor.dom.insertAfter(col,node):(editor.formatter.apply("column"),col=editor.dom.get("__tmp"),col&&(col.parentNode.insertBefore(parentCol,col),parentCol.appendChild(col),editor.dom.setAttrib(col,"id",""))),col.childNodes&&(editor.selection.select(col.firstChild),editor.selection.collapse(1),editor.nodeChanged())}function getColumnNode(editor,node){return node=node||editor.selection.getNode(),node===editor.getBody()?null:isColumn(node)?node:editor.dom.getParent(node,".wf-column")}function getSelectedBlocks(editor){var blocks=editor.selection.getSelectedBlocks(),nodes=tinymce.map(blocks,function(node){return"LI"===node.nodeName?node.parentNode:node});return nodes}function insertColumn(editor,data){var parentCol,node=getColumnNode(editor),cls=["wf-columns"],stack=data.stack,align=data.align,num=data.columns,layout=data.layout||"auto",gap=data.gap;if(stack&&cls.push("wf-columns-stack-"+stack),align&&cls.push("wf-columns-align-"+align),gap&&"medium"!==gap&&cls.push("wf-columns-gap-"+gap),cls.push("wf-columns-layout-"+layout),data.classes&&(cls=cls.concat(data.classes.split(" "))),node){parentCol=editor.dom.getParent(node,".wf-columns"),editor.dom.setAttrib(parentCol,"class",tinymce.trim(cls.join(" ")));var cols=editor.dom.select(".wf-column",parentCol),lastNode=cols[cols.length-1];num=Math.max(num-cols.length,0)}else{var lastNode,nodes=getSelectedBlocks(editor);nodes.length&&(lastNode=nodes[nodes.length-1]);var parentCol,columns=[],newCol=editor.dom.create("div",{class:"wf-column","data-mce-column":1});if(num<nodes.length){for(var groups=partition(nodes,num),i=0;i<groups.length;i++){var group=groups[i];editor.dom.wrap(group,newCol,!0),columns.push(group[0].parentNode)}num=0}else each(nodes,function(node){if(num--,isColumn(node)||isColumn(node.parentNode))return parentCol||(parentCol=editor.dom.getParent(node,".wf-columns")),node=editor.dom.getParent(node,".wf-column"),node&&columns.push(node),editor.dom.empty(parentCol),!0;if(editor.dom.isEmpty(node)){var elementRule=editor.schema.getElementRule(node.nodeName.toLowerCase());elementRule&&elementRule.paddEmpty&&(node.innerHTML="&nbsp;")}editor.dom.wrap(node,newCol),columns.push(node.parentNode)});parentCol?each(columns,function(column){parentCol.appendChild(column)}):(parentCol=editor.dom.create("div",{class:cls.join(" "),"data-mce-column":1}),editor.dom.wrap(columns,parentCol,!0))}if(num>0)for(;num--;)addColumn(editor,lastNode,parentCol);editor.undoManager.add(),editor.nodeChanged()}var DOM=tinymce.DOM,each=tinymce.each,VK=tinymce.VK,Event=tinymce.dom.Event,TreeWalker=tinymce.dom.TreeWalker,styleMap={uikit:{classes:["uk-flex","uk-child-width-expand","uk-flex-wrap","uk-child-width-expand@s","uk-child-width-expand@m","uk-child-width-expand@l","uk-child-width-expand@xl","uk-child-width-expand-small","uk-child-width-expand-medium","uk-child-width-expand-large","uk-child-width-expand-xlarge","uk-flex-auto","uk-flex-item-auto","uk-width-2-3","uk-width-3-4","uk-width-1-2"]},bootstrap:{classes:["row","col","col-sm","col-md","col-lg","col-xl","flex-gap-sm","flex-gap-md","flex-gap-lg","flex-gap-none"]}},mappedClasses=flattenObjectToArray(styleMap);tinymce.create("tinymce.plugins.Columns",{init:function(editor,url){function onSetContent(editor,o){var columns=editor.dom.select("[data-wf-columns], .wf-columns",o.content);each(columns,function(column){editor.dom.addClass(column,"wf-columns"),framework&&editor.dom.addClass(column,"wf-columns-"+framework),each(column.childNodes,function(node){return"DIV"!==node.nodeName||void editor.dom.addClass(node,"wf-column")}),(new uikit).remove(column),(new bootstrap).remove(column),each(mappedClasses,function(name){editor.dom.removeClass(column,name)})})}this.editor=editor,this.url=url;var framework=editor.getParam("columns_framework","");editor.onPreProcess.add(function(editor,o){var nodes=editor.dom.select(".wf-columns",o.node);each(nodes,function(elm){if(elm.setAttribute("data-wf-columns",1),elm.removeAttribute("data-mce-column"),each(editor.dom.select(".wf-column",elm),function(node){node.removeAttribute("data-mce-column")}),!framework)return!0;"uikit"===framework&&(new uikit).apply(elm),"bootstrap"===framework&&(new bootstrap).apply(elm);var classes=elm.getAttribute("class");each(classes.split(" "),function(val){val.indexOf("wf-columns")!==-1&&editor.dom.removeClass(elm,val)}),editor.dom.removeClass(editor.dom.select(".wf-column",elm),"wf-column")})}),editor.onSetContent.add(onSetContent),editor.addButton("columns_add",{title:"columns.add",onclick:function(){var node=editor.selection.getNode();addColumn(editor,node)}}),editor.addButton("columns_delete",{title:"columns.delete",onclick:function(){var node=editor.selection.getNode();removeColumn(editor,node)}}),editor.onPreInit.add(function(ed){editor.selection.onGetContent.add(function(sel,o){if(!o.contextual)return!0;var container=editor.dom.create("body",{},o.content),columns=editor.dom.select(".wf-column",container);if(columns.length){var node=editor.selection.getNode(),parent=editor.dom.getParent(node,"div[data-wf-columns]");parent&&(editor.dom.wrap(columns,editor.dom.clone(parent),!0),o.content=sel.serializer.serialize(container,o))}})}),editor.onInit.add(function(){editor.settings.compress.css||editor.dom.loadCSS(url+"/css/content.css"),editor.selection.onSetContent.add(onSetContent),editor.onKeyDown.addToTop(function(editor,e){if(e.keyCode===VK.BACKSPACE||e.keyCode===VK.DELETE){if(e.ctrlKey&&e.keyCode===VK.DELETE)return void(getColumnNode(editor)&&(removeColumn(editor),e.preventDefault(),e.stopPropagation()));var selectedColumns=editor.dom.select("div.wf-column.mceSelected",editor.getBody());selectedColumns.length&&(e.preventDefault(),e.stopPropagation(),each(selectedColumns,function(node){editor.dom.empty(node),node.innerHTML="",padColumn(editor,node),editor.selection.select(node.firstChild,!0),editor.selection.collapse(!0)}))}}),editor.formatter.register("column",{block:"div",classes:"wf-column",attributes:{id:"__tmp","data-mce-column":"1"},wrapper:!0}),editor.theme&&editor.theme.onResolveName&&editor.theme.onResolveName.add(function(theme,o){var n=o.node;n&&(editor.dom.hasClass(n,"wf-columns")&&(o.name="columns"),editor.dom.hasClass(n,"wf-column")&&(o.name="column"))}),fixDragSelection(editor)}),editor.onNodeChange.add(function(ed,cm,n,co){"DIV"!==n.nodeName&&(n=ed.dom.getParent(n,"DIV"));var state=isColumn(n);if(state&&0===n.childNodes.length&&n.previousSibling){var col=n.previousSibling.lastChild;col&&ed.dom.remove(n)&&(editor.selection.select(col),editor.selection.collapse(0))}cm.setActive("columns",state),cm.setDisabled("columns_add",!state),cm.setDisabled("columns_delete",!state)})},createControl:function(n,cm){function createMenuGrid(cols,rows){var html="";html+='<div class="mceToolbarRow">',html+='   <div class="mceToolbarItem">',html+='       <table role="presentation" class="mceTableSplitMenu"><tbody>';for(var i=0;i<rows;i++){html+="<tr>";for(var x=0;x<cols;x++)html+='<td><a href="#"></a></td>';html+="</tr>"}return html+="       </tbody></table>",html+="   </div>",html+="</div>"}function menuGridMouseOver(e){var el=e.target;"TD"!==el.nodeName&&(el=el.parentNode);var tbody=DOM.getParent(el,"tbody");if(tbody){var i,z,rows=tbody.childNodes,row=el.parentNode,x=tinymce.inArray(row.childNodes,el),y=tinymce.inArray(rows,row);if(!(x<0||y<0))for(i=0;i<rows.length;i++){var cells=rows[i].childNodes;for(z=0;z<cells.length;z++)z>x||i>y?DOM.removeClass(cells[z],"selected"):DOM.addClass(cells[z],"selected")}}}function menuGridClick(e){var el=e.target;"TD"!==el.nodeName&&(el=el.parentNode);var table=DOM.getParent(el,"table"),cls=["wf-columns"],stack=ed.getParam("columns_stack","medium");stack&&cls.push("wf-columns-stack-"+stack);var align=ed.getParam("columns_align","");align&&cls.push("wf-columns-align-"+align);var gap=ed.getParam("columns_gap","small");gap&&"small"!==gap&&cls.push("wf-columns-gap-"+gap);for(var html='<div class="'+cls.join(" ")+'">',rows=tinymce.grep(DOM.select("tr",table),function(row){return DOM.select("td.selected",row).length}),block=ed.settings.forced_root_block||"",y=0;y<rows.length;y++)for(var cols=DOM.select("td.selected",rows[y]).length,x=0;x<cols;x++)html+='<div class="wf-column">',html+=block?ed.dom.createHTML(block,{},"&nbsp;"):'<br data-mce-bogus="1" />',html+="</div>";return html+="</div>",ed.undoManager.add(),ed.execCommand("mceInsertRawHTML",!1,html),Event.cancel(e),!1}function updateColumnValue(val,num){columnsNum.setDisabled(!1),val&&val.indexOf("-")!==-1?(num=val.split("-").length,columnsNum.value(num)):columnsNum.value(num)}var self=this,ed=self.editor;if("columns"==n){var num=1,form=cm.createForm("columns_form"),columnsNum=cm.createTextBox("columns_num",{label:ed.getLang("columns.columns","Columns"),name:"columns",subtype:"number",attributes:{step:1,min:1},value:num,onchange:function(){num=columnsNum.value()}});form.add(columnsNum);var layoutList=cm.createListBox("columns_layout",{label:ed.getLang("columns.layout","Layout"),onselect:function(val){updateColumnValue(val,columnsNum.value())},name:"layout",max_height:"auto"}),layoutValues=["","2-1","1-2","3-1","1-3","2-1-1","1-2-1","1-1-2"];each(layoutValues,function(val){var key;key=val?ed.getLang("columns.layout_"+val,val):ed.getLang("columns.layout_auto","Auto"),layoutList.add(key,val,{icon:"columns_layout_"+val.replace(/-/g,"_")})});var stackList=cm.createListBox("columns_stack",{label:ed.getLang("columns.stack","Stack Width"),onselect:function(v){},name:"stack",max_height:"auto"});each(["","small","medium","large","xlarge"],function(val){var key;key=val?ed.getLang("columns.stack_"+val,val):ed.getLang("columns.stack_none","None"),stackList.add(key,val)});var gapList=cm.createListBox("columns_gap",{label:ed.getLang("columns.gap","Gap Size"),onselect:function(v){},name:"gap",max_height:"auto"});each(["none","small","medium","large"],function(val){var key=ed.getLang("columns.stack_"+val,val);gapList.add(key,val)});var stylesList=cm.createStylesBox("columns_class",{label:ed.getLang("columns.class","Classes"),onselect:function(v){},name:"classes"});form.add(stackList),form.add(gapList),form.add(layoutList),form.add(stylesList);var ctrl=cm.createSplitButton("columns",{title:"columns.desc",onclick:function(){ed.windowManager.open({title:ed.getLang("columns.desc","Create Columns"),items:[form],size:"mce-modal-landscape-small",open:function(){var nodes=getSelectedBlocks(ed),stack=ed.getParam("columns_stack","medium"),gap=ed.getParam("columns_gap","medium"),num=ed.getParam("columns_num",1),layout=ed.getParam("columns_layout","");if(nodes.length){num=nodes.length;var col=ed.dom.getParent(nodes[0],".wf-columns");if(col){var cols=ed.dom.select(".wf-column",col),cls=col.getAttribute("class");cols.length&&(num=cols.length),cls&&cls.indexOf("wf-columns-stack-")!==-1&&(stack=/wf-columns-stack-(small|medium|large|xlarge)/.exec(col.className)[1]),cls&&cls.indexOf("wf-columns-gap-")!==-1&&(gap=/wf-columns-gap-(none|small|medium|large)/.exec(col.className)[1]),cls&&cls.indexOf("wf-columns-layout-")!==-1&&(layout=/wf-columns-layout-([0-9-]+|auto)/.exec(cls)[1],"auto"===layout&&(layout="")),cls=cls.replace(/wf-([a-z0-9-]+)/g,"").trim(),DOM.setHTML(this.id+"_insert",ed.getLang("update","Update"))}}stackList.value(stack),gapList.value(gap),layoutList.value(layout),stylesList.value(cls),updateColumnValue(layout,num)},buttons:[{title:ed.getLang("common.cancel","Cancel"),id:"cancel"},{title:ed.getLang("common.insert","Insert"),id:"insert",onsubmit:function(e){var data=form.submit();Event.cancel(e),insertColumn(ed,data)},classes:"primary",autofocus:!0}]})},class:"mce_columns"});return ctrl.onRenderMenu.add(function(c,m){var sb=m.add({onmouseover:menuGridMouseOver,onclick:function(e){sb.setSelected(!1),menuGridClick(e)},html:createMenuGrid(5,1),class:"mceColumns"});m.onShowMenu.add(function(){(n=DOM.get(sb.id))&&DOM.removeClass(DOM.select(".mceTableSplitMenu td",n),"selected")})}),ctrl}}}),tinymce.PluginManager.add("columns",tinymce.plugins.Columns)}();index.html000064400000000054152355236600006547 0ustar00<html><body bgcolor="#FFFFFF"></body></html>