HEX
Server: nginx/1.18.0
System: Linux vcwordpress 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/bharti-foundation.stgviitor.com/wp-content/plugins/lifeline-plugin/assets/js/tweets.js
(function ($) {
    "use strict";
    var lifeline = {
	count: 0,
	tweets: function (options, selector) {
	    options.action = 'lifeline_ajax';
	    options.subaction = 'twitter_callback';
	    $.ajax({
		url: lifeline_data.ajaxurl,
		type: 'POST',
		data: options,
		dataType: "json",
		success: function (res) {
		    var reply = res;
		    var html = '';
                if (options.template === 'blockquote') {
                    $.each(reply, function (k, element) {
                        if(element.user != undefined) {
                        var date = new Date(element.created_at);
                        html += '<div class="tweet position-relative overflow-hidden w-100"><i class="position-absolute fab fa-twitter"></i><div class="tweet-info">';html += '<a href="' + element.user.url + '">@' + element.user.name + '</a>';
                        html += element.text;
                        html += '</div></div>';
                        } else {
                        html += '<div class="tweeterror alert alert-danger">Invalid Twitter API Details</div>';
                        }
                });
            }
		    $(selector).html(html);
		}
	    });
	},
    };
    $.fn.tweets = function (options) {
	var settings = {
	    screen_name: 'wordpress',
	    count: 3,
	    template: 'blockquote'
	};
	options = $.extend(settings, options);
	lifeline.tweets(options, this);
    };
    function timeSince(date) {
	var seconds = Math.floor((new Date() - date) / 1000);
	var interval = Math.floor(seconds / 31536000);
	if (interval > 1) {
	    return interval + " years";
	}
	interval = Math.floor(seconds / 2592000);
	if (interval > 1) {
	    return interval + " months";
	}
	interval = Math.floor(seconds / 86400);
	if (interval > 1) {
	    return interval + " days";
	}
	interval = Math.floor(seconds / 3600);
	if (interval > 1) {
	    return interval + " hours";
	}
	interval = Math.floor(seconds / 60);
	if (interval > 1) {
	    return interval + " minutes";
	}
	return Math.floor(seconds) + " seconds";
    }
    function link_conversion(text) {
	var replaceText, replacedText, replacePattern1, replacePattern2;
	replacePattern1 = /(\b(https?):\/\/[-A-Z0-9+&amp;@#\/%?=~_|!:,.;]*[-A-Z0-9+&amp;@#\/%=~_|])/ig;
	replacedText = text.replace(replacePattern1, '</h3><a class="colored-link-1" title="$1" href="$1" target="_blank">$1</a>');
	replacePattern2 = /(^|[^\/])(www\.[\S]+(\b|$))/gim;
	replacedText = replacedText.replace(replacePattern2, '$1</h3><a class="colored-link-1" href="http://$2" target="_blank">$2</a>');
	return replacedText;
    }
    function link_conversion1(text) {
	var replaceText, replacedText, replacePattern1, replacePattern2;
	replacePattern1 = /(\b(https?):\/\/[-A-Z0-9+&amp;@#\/%?=~_|!:,.;]*[-A-Z0-9+&amp;@#\/%=~_|])/ig;
	replacedText = text.replace(replacePattern1, '<a class="primary-color" title="$1" href="$1" target="_blank">$1</a>');
	replacePattern2 = /(^|[^\/])(www\.[\S]+(\b|$))/gim;
	replacedText = replacedText.replace(replacePattern2, '$1<a class="primary-color" href="http://$2" target="_blank">$2</a>');
	return replacedText;
    }
})(jQuery);