| Server IP : 52.25.153.185 / Your IP : 216.73.217.131 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-35-cloud-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/testify/scripts/ |
Upload File : |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 319);
/******/ })
/************************************************************************/
/******/ ({
/***/ 138:
/*!*************************************!*\
!*** ./js/src/frontend-readmore.js ***!
\*************************************/
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
;
(function ($, window, document) {
'use strict';
var globalText = '';
$.fn.testifyReadmore = function () {
this.each(function () {
var pThis = $(this),
limit = pThis.data('readmore-limit'),
$body = pThis.find('.testimonial-body');
if ($body.text().length <= limit) {
pThis.removeClass('testify-body-hide');
return;
}
var bodyOriginal = $body.html(),
bodyTruncated = pThis.testifyTruncate(pThis.find('.testimonial-body'), limit).text;
bodyTruncated = pThis.testifyPreventCutWords(bodyTruncated);
pThis.find('.testimonial-body').empty();
pThis.find('.testimonial-body').prepend('<div class="testify-body-full">' + bodyOriginal + '</div>');
pThis.find('.testimonial-body').prepend('<div class="testify-body-truncated testify-body-show">' + bodyTruncated + '</div>');
setTimeout(function () {
applyReadmore(pThis);
}, 250);
});
};
function applyReadmore(obj) {
var id = obj.attr('id'),
morelink = obj.data('readmore-morelink'),
lesslink = obj.data('readmore-lesslink'),
font = obj.data('readmore-font'),
fontSize = obj.data('readmore-font-size'),
color = obj.data('readmore-color'),
letterSpacing = obj.data('readmore-letter-spacing'),
useIcon = obj.data('readmore-use-icon'),
readmoreIcon = obj.data('readmore-icon'),
readmoreIconColor = obj.data('readmore-icon-color'),
readmoreIconPlacement = obj.data('readmore-icon-placement'),
readlessIcon = obj.data('readmore-less-icon'),
readlessIconColor = obj.data('readmore-less-icon-color'),
readlessIconPlacement = obj.data('readmore-less-icon-placement'),
limit = obj.data('readmore-limit'),
blockCSS = '<style id="' + id + '-readmore-style">';
useIcon = 'off' === useIcon ? false : true;
if (font) {
blockCSS += '#' + id + ' .testify-link { ' + font + fontSize + color + letterSpacing + ' } ';
}
if (useIcon) {
blockCSS += '#' + id + ' .testify-link-readmore' + readmoreIconPlacement + ' { ' + readmoreIcon + readmoreIconColor + ' }';
blockCSS += '#' + id + ' .testify-link-readless' + readlessIconPlacement + ' { ' + readlessIcon + readlessIconColor + ' }';
}
blockCSS += '</style>';
$('#' + id + '-readmore-style').remove();
if (font || useIcon) {
$(blockCSS).appendTo("head");
}
obj.removeClass('testify-body-hide');
obj.find('.testify-body-full').readmore({
speed: 100,
collapsedHeight: 1,
selector: ".testify-body-full",
moreLink: '<a href="#" class="testify-link testify-link-readmore"><span class="testify-link-readmore-text">' + morelink + '</span> </a>',
lessLink: '<a href="#" class="testify-link testify-link-readless"><span class="testify-link-readless-text">' + lesslink + '</span> </a>',
beforeToggle: function beforeToggle(trigger, elem, expanded) {
if (!expanded) {
elem.toggleClass('testify-body-hidden testify-body-show');
}
elem.parent().find('.testify-body-truncated').toggleClass('testify-body-hide testify-body-show');
},
afterToggle: function afterToggle(trigger, elem, expanded) {
if (!expanded) {
elem.toggleClass('testify-body-hidden testify-body-show');
}
}
});
obj.find('.testify-body-full').addClass('testify-body-hidden');
}
$.fn.testifyTruncate = function ($text, reqCount) {
var grabText = '',
readyString = '',
missCount = reqCount,
bodyContent = $text.contents(),
preventCutWords = 0;
bodyContent.each(function (index) {
switch (this.nodeType) {
case Node.TEXT_NODE:
var str = this.data;
var readyString = $.trim(str.substr(0, missCount));
grabText += readyString; // Don't count spaces
str = str.replace(/\s+/g, '');
if (str !== '') {
missCount -= Math.min(this.data.length, missCount);
}
break;
case Node.ELEMENT_NODE:
// Explore current child:
var $child = $(this);
var childPart = $child.testifyTruncate($child, missCount);
grabText += childPart.text;
missCount -= childPart.count;
break;
}
if (missCount === 0) {
// We got text enough, stop looping.
return false;
}
});
return {
text: // Wrap text using current elem tag.
$text[0].outerHTML.match(/^<[^>]+>/m)[0] + grabText + '</' + $text[0].localName + '>',
count: reqCount - missCount
};
};
$.fn.testifyPreventCutWords = function (elem) {
var bodyContent = $(elem).contents(),
contentLength = bodyContent.length,
preventCutWords = 0,
elemContent,
elemContentHtml,
bodyParsed = '',
cuttedWordsRemoved;
bodyContent.each(function (index) {
elemContent = $(this);
if (elemContent.is(':last-child')) {
elemContentHtml = elemContent.html();
preventCutWords = Math.min(elemContentHtml.length, elemContentHtml.lastIndexOf(" "));
if (preventCutWords > 1) {
cuttedWordsRemoved = elemContentHtml.substr(0, preventCutWords);
elemContent.html(cuttedWordsRemoved);
}
elemContent.append('…');
}
bodyParsed += elemContent[0].textContent;
});
return bodyParsed;
};
/*$(window).load(function() {
if ( $('.testify-readmore').length ) {
$(this).testifyReadmore();
};
});*/
})(jQuery, window, document);
/***/ }),
/***/ 319:
/*!**************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** multi ./includes/alpha-color-picker/alpha-color-picker.css ./includes/fields/PositionAbsolute/style.css ./includes/fields/ValueMapper/style.css ./includes/modules/Testify/style.css ./includes/modules/TestifyCarouselParent/style.css ./js/src/frontend-readmore.js ./js/src/frontend.js ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************/
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! /Users/annamini/Local Sites/photographylicensetest/app/public/wp-content/plugins/projects/testify/includes/alpha-color-picker/alpha-color-picker.css */320);
__webpack_require__(/*! /Users/annamini/Local Sites/photographylicensetest/app/public/wp-content/plugins/projects/testify/includes/fields/PositionAbsolute/style.css */82);
__webpack_require__(/*! /Users/annamini/Local Sites/photographylicensetest/app/public/wp-content/plugins/projects/testify/includes/fields/ValueMapper/style.css */81);
__webpack_require__(/*! /Users/annamini/Local Sites/photographylicensetest/app/public/wp-content/plugins/projects/testify/includes/modules/Testify/style.css */50);
__webpack_require__(/*! /Users/annamini/Local Sites/photographylicensetest/app/public/wp-content/plugins/projects/testify/includes/modules/TestifyCarouselParent/style.css */321);
__webpack_require__(/*! /Users/annamini/Local Sites/photographylicensetest/app/public/wp-content/plugins/projects/testify/js/src/frontend-readmore.js */138);
module.exports = __webpack_require__(/*! /Users/annamini/Local Sites/photographylicensetest/app/public/wp-content/plugins/projects/testify/js/src/frontend.js */322);
/***/ }),
/***/ 320:
/*!************************************************************!*\
!*** ./includes/alpha-color-picker/alpha-color-picker.css ***!
\************************************************************/
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 321:
/*!**********************************************************!*\
!*** ./includes/modules/TestifyCarouselParent/style.css ***!
\**********************************************************/
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 322:
/*!****************************!*\
!*** ./js/src/frontend.js ***!
\****************************/
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
// This script is loaded both on the frontend page and in the Visual Builder.
jQuery(function ($) {
__webpack_require__(/*! ./frontend-readmore.js */ 138);
$(document).ready(function () {
if (window.location.href.indexOf("et_fb") > -1 || window.location.href === 'about:blank') {// We are in the visual builder
} else {
// We are not in the visual builder
// Initialize the Testify Slider - the VB call of this function is done from the React .JSX file
$(".testify-testimonials").each(function () {
var testifyModuleNode = $(this);
var testifyId = testifyModuleNode.attr('data-testify-id');
var testifyNavtype = testifyModuleNode.attr('data-testify-navtype');
var testifyResponsiveCss = JSON.parse(testifyModuleNode.attr('data-testify-responsive-css'));
var testifyAtts = JSON.parse(testifyModuleNode.attr('data-testify-atts'));
var testifyOptionsDefaults = JSON.parse(testifyModuleNode.attr('data-testify-options-defaults'));
var testifyCss = JSON.parse(testifyModuleNode.attr('data-testify-css'));
window.testifyInitializeSlider(testifyId, testifyNavtype, testifyResponsiveCss, testifyAtts, testifyOptionsDefaults, testifyCss);
});
}
});
});
window.testifyInitializeSlider = function (testifyId, testifyNavtype, testifyResponsiveCss, testifyAtts, testifyOptionsDefaults, testifyCss) {
var handleResize = function handleResize() {
var testifyResponsiveCssDefaultKeyValue = Object.entries(testifyResponsiveCss['default']);
testifyResponsiveCssDefaultKeyValue.forEach(function (entry) {
var cssSel = entry[0];
var cssRules = entry[1];
cssSel = cssSel === '.testify-testimonials' ? '' : ' ' + cssSel;
jQuery('#' + testifyId + cssSel).css(cssRules);
});
var docWidth = jQuery(document).width();
var testifyResponsiveCssKeyValue = Object.entries(testifyResponsiveCss);
testifyResponsiveCssKeyValue.forEach(function (entry) {
var breakpoint = entry[0];
var breakpointCSS = entry[1];
if (breakpoint !== 'default' && docWidth > breakpoint) {
// redid default breakpoint check successfully
breakpointCSSKeyValue = Object.entries(breakpointCSS);
breakpointCSSKeyValue.forEach(function (entryInner) {
var cssSel = entryInner[0];
var cssRules = entryInner[1];
cssSel = cssSel === '.testify-testimonials' ? '' : ' ' + cssSel;
jQuery('#' + testifyId + cssSel).css(cssRules);
});
}
});
};
jQuery(window).on('resize', handleResize); // Style variable determinations:
if (testifyAtts['transition_type'] !== '' && testifyAtts['transition_type'] !== null) {
var transitionType = testifyAtts['transition_type'];
} else {
var transitionType = testifyOptionsDefaults['transition_type'];
}
if (testifyAtts['transition_duration'] !== '' && testifyAtts['transition_duration'] !== null) {
var transitionDuration = testifyAtts['transition_duration'];
} else {
var transitionDuration = testifyOptionsDefaults['transition_duration'];
}
if (testifyAtts['autoplay_duration'] !== '' && testifyAtts['autoplay_duration'] !== null) {
var autoplayDuration = testifyAtts['autoplay_duration'];
} else {
var autoplayDuration = testifyOptionsDefaults['autoplay_duration'];
}
switch (testifyNavtype) {
case 'thumbnails':
var navType = 'thumbnails';
break;
case 'dots':
var navType = true;
break;
default:
var navType = false;
}
if (testifyNavtype === 'thumbnails') {
var controlsContainer = '#' + testifyId + ' .controls';
} else {
controlsContainer = '';
}
if (testifyAtts.nav_arrows && testifyAtts.nav_arrows !== false) {
var navArrows = testifyAtts.nav_arrows && testifyAtts.nav_arrows !== 'false' ? true : false;
} else {
var navArrows = testifyOptionsDefaults.nav_arrows ? true : false;
}
jQuery('#' + testifyId).flexslider({
animation: transitionType,
animationSpeed: Number(transitionDuration),
slideshowSpeed: Number(autoplayDuration),
slideshow: autoplayDuration > 0,
controlNav: navType,
controlsContainer: controlsContainer,
directionNav: navArrows,
pauseOnHover: true,
namespace: 'testify-flex-',
/*smoothHeight: true,*/
start: function start(slider) {
testifyCssKeyValue = Object.entries(testifyCss);
testifyCssKeyValue.forEach(function (entry) {
var cssSel = entry[0];
var cssRules = entry[1];
cssSel = cssSel === '.testify-testimonials' ? '' : ' ' + cssSel;
jQuery('#' + testifyId + cssSel).css(cssRules);
});
jQuery('.testify-flex-control-thumbs li').addClass(function (i) {
return 'testify-flex-slide-thumb-' + (i + 1);
});
jQuery('.testify-flex-control-thumbs li img').addClass(function (i) {
return 'testimonial-image';
});
handleResize();
jQuery(slider).find('.testify-flex-direction-nav').appendTo(slider.find('.slides-container'));
jQuery(slider).css('visibility', 'visible');
}
}).on('mouseover', '.testify-flex-control-thumbs img', function () {
var target = jQuery(this);
setTimeout(function () {
if (target.is(':hover')) target.click();
}, 500);
}).find('.testify-readmore').testifyReadmore();
};
/***/ }),
/***/ 50:
/*!********************************************!*\
!*** ./includes/modules/Testify/style.css ***!
\********************************************/
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 81:
/*!***********************************************!*\
!*** ./includes/fields/ValueMapper/style.css ***!
\***********************************************/
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 82:
/*!****************************************************!*\
!*** ./includes/fields/PositionAbsolute/style.css ***!
\****************************************************/
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ })
/******/ });