: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
var WPMLCore = WPMLCore || {};
WPMLCore.Tooltip = function (element) {
this.content = this.trigger.html(this.trigger.html()).text();
this.margin_left = '-54px';
this.content = this.decodeEntities(this.trigger.data('content'));
if (this.trigger.data('edge')) {
this.edge = this.trigger.data('edge');
if (this.trigger.data('align')) {
this.align = this.trigger.data('align');
if (this.trigger.data('margin_left')) {
this.margin_left = this.trigger.data('margin_left');
this.trigger.click(jQuery.proxy(this.onTriggerClick, this));
WPMLCore.Tooltip.prototype = {
if (this.trigger.length && this.content) {
this.trigger.addClass('js-wpml-active-tooltip');
pointerClass: 'js-wpml-tooltip',
show: jQuery.proxy(this.onShow, this),
onShow: function (event, t) {
t.pointer.css('marginLeft', this.margin_left);
onClose: function (event, t) {
t.pointer.css('marginLeft', '0');
onTriggerClick: function (e) {
buttons: function (event, t) {
var button = jQuery('<a class="close" href="#"> </a>');
return button.bind('click.pointer', function (e) {
t.element.pointer('close');
decodeEntities: function (encodedString) {
var textArea = document.createElement('textarea');
textArea.innerHTML = encodedString;
WPMLCore.initializeTooltips = function() {
var tooltips = jQuery('.js-wpml-tooltip-open'), tooltip = {};
tooltips.each(function (index, element) {
tooltip = new WPMLCore.Tooltip(jQuery(element));
jQuery(document).ready(function () {
WPMLCore.initializeTooltips();