                                                                                                                                                                                
                                                                                                                                                                                
admin-modules-modal.min.js                                                                          0000444                 00000002110 15242066674 0011520 0                                                                                                    ustar 00                                                                                                                                                                                                                                                       document.addEventListener('DOMContentLoaded',function(){'use strict';var b,a=document.querySelectorAll('.js-module-insert'),c=document.querySelectorAll('.js-position-insert');for(b=0;a.length>b;b++)a[b].addEventListener('click',function(d){d.preventDefault();var e=d.target.getAttribute('data-module'),f=d.target.getAttribute('data-editor');window.parent.Joomla&&window.parent.Joomla.editors&&window.parent.Joomla.editors.instances&&window.parent.Joomla.editors.instances.hasOwnProperty(f)?window.parent.Joomla.editors.instances[f].replaceSelection('{loadmoduleid '+e+'}'):window.parent.jInsertEditorText('{loadmoduleid '+e+'}',f),window.parent.jModalClose()});for(b=0;c.length>b;b++)c[b].addEventListener('click',function(d){d.preventDefault();var e=d.target.getAttribute('data-position'),f=d.target.getAttribute('data-editor');window.Joomla&&window.Joomla.editors&&Joomla.editors.instances&&Joomla.editors.instances.hasOwnProperty(f)?Joomla.editors.instances[f].replaceSelection('{loadposition '+e+'}'):window.parent.jInsertEditorText('{loadposition '+e+'}',f),window.parent.jModalClose()})});
                                                                                                                                                                                                                                                                                                                                                                                                                                                        admin-modules-modal.js                                                                              0000444                 00000003561 15242066674 0010751 0                                                                                                    ustar 00                                                                                                                                                                                                                                                       /**
 * @copyright  (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

document.addEventListener('DOMContentLoaded', function() {
	"use strict";

	/** Get the elements **/
	var modulesLinks = document.querySelectorAll('.js-module-insert'), i,
		positionsLinks = document.querySelectorAll('.js-position-insert');

	/** Assign listener for click event (for single module id insertion) **/
	for (i= 0; modulesLinks.length > i; i++) {
		modulesLinks[i].addEventListener('click', function(event) {
			event.preventDefault();
			var modid = event.target.getAttribute('data-module'),
				editor = event.target.getAttribute('data-editor');

			/** Use the API, if editor supports it **/
			if (window.parent.Joomla && window.parent.Joomla.editors && window.parent.Joomla.editors.instances && window.parent.Joomla.editors.instances.hasOwnProperty(editor)) {
				window.parent.Joomla.editors.instances[editor].replaceSelection("{loadmoduleid " + modid + "}")
			} else {
				window.parent.jInsertEditorText("{loadmoduleid " + modid + "}", editor);
			}

			window.parent.jModalClose();
		});
	}

	/** Assign listener for click event (for position insertion) **/
	for (i= 0; positionsLinks.length > i; i++) {
		positionsLinks[i].addEventListener('click', function(event) {
			event.preventDefault();
			var position = event.target.getAttribute('data-position'),
				editor = event.target.getAttribute('data-editor');

			/** Use the API, if editor supports it **/
			if (window.Joomla && window.Joomla.editors && Joomla.editors.instances && Joomla.editors.instances.hasOwnProperty(editor)) {
				Joomla.editors.instances[editor].replaceSelection("{loadposition " + position + "}")
			} else {
				window.parent.jInsertEditorText("{loadposition " + position + "}", editor);
			}

			window.parent.jModalClose();
		});
	}

});
                                                                                                                                               resize.js                                                                                           0000705                 00000005742 15242100755 0006412 0                                                                                                    ustar 00                                                                                                                                                                                                                                                       /**
 * ------------------------------------------------------------------------
 * resizeImage Plugin
 * ------------------------------------------------------------------------
 * Copyright (C) 2012-2013 SUNLAND Co., JSC. All Rights Reserved.
 * license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: Sonle
 * Email: sonlv@templaza.com
 * Websites: http://www.templaza.com
 * ------------------------------------------------------------------------
 */


(function($,window){
    'use strict';
    window.TzPortfolioPlusArticlesResizeImage = function (obj,wstage,hstage){
        var widthStage;
        var heightStage ;
        var widthImage;
        var heightImage;
        if(Object.keys(obj).length > 1) {
            obj.each(function (i, el) {
                heightStage = jQuery(this).height();
                widthStage = jQuery(this).width();
                if(wstage){
                    widthStage  = wstage;
                }
                if(hstage){
                    heightStage  = hstage;
                }
                var img_url = jQuery(this).find('img').attr('src');
                var image = new Image();
                image.src = img_url;

                widthImage = image.naturalWidth;
                heightImage = image.naturalHeight;
                var tzimg = new resizeImage(widthImage, heightImage, widthStage, heightStage);
                jQuery(this).find('img').css({top: tzimg.top, left: tzimg.left, width: tzimg.width, height: tzimg.height});
            });
        }else{
            heightStage = obj.height();
            widthStage = obj.width();
            var img_url = obj.find('img').attr('src');
            var image = new Image();
            image.src = img_url;

            if(wstage){
                widthStage  = wstage;
            }
            if(hstage){
                heightStage  = hstage;
            }

            widthImage = image.naturalWidth;
            heightImage = image.naturalHeight;
            // console.log('widthImage='+widthImage+'heightImage='+heightImage+'heightStage='+heightStage);
            var tzimg = new resizeImage(widthImage, heightImage, widthStage, heightStage);
            obj.find('img').css({top: tzimg.top, left: tzimg.left, width: tzimg.width, height: tzimg.height});
        }
    };

    var resizeImage = function (widthImage, heightImage, widthStage, heightStage) {

        var escImageX = widthStage / widthImage;
        var escImageY = heightStage / heightImage;

        var escalaImage = (escImageX > escImageY) ? escImageX : escImageY;

        var widthV = widthImage * escalaImage;
        var heightV = heightImage * escalaImage;
        var posImageY = 0;
        var posImageX = 0;

        if (heightV > heightStage) {
            posImageY = (heightStage - heightV) / 2;
        }

        if (widthV > widthStage) {
            posImageX = (widthStage - widthV) / 2;
        }
        return { top: posImageY, left: posImageX, width: widthV, height: heightV };
    };
})(jQuery, window);                              index.html                                                                                          0000705                 00000000036 15242100755 0006537 0                                                                                                    ustar 00                                                                                                                                                                                                                                                       <!DOCTYPE html><title></title>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  