Server IP : 213.176.29.180  /  Your IP : 3.139.87.151
Web Server : Apache
System : Linux 213.176.29.180.hostiran.name 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
User : webtaragh ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/webtaragh/public_html/whmcs/templates/six/../six/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/webtaragh/public_html/whmcs/templates/six/../six/twitterfeed.tpl
<a class="twitter-timeline" href="https://twitter.com/{$twitterusername}" data-height="600" data-chrome="noheader nofooter" data-dnt="true">Tweets by {$twitterusername}</a>

<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

{literal}
    <script>
        var observerConfig = { attributes: true, childList: true, subtree: true },
            observerTwitterWidget = new MutationObserver(removeRetweets),
            elementsWaitTimeout = null;

        function removeRetweets() {
            jQuery('#twitter-widget-0')
                .contents()
                .find('.timeline-Tweet--isRetweet')
                .parent('li')
                .remove();
        }

        function addTwitterWidgetObserverWhenNodeAvailable() {
            if (elementsWaitTimeout) {
                clearTimeout(elementsWaitTimeout);
            }

            var targetTwitterWidget = document.getElementById('twitter-widget-0');

            if (!targetTwitterWidget) {
                elementsWaitTimeout = window.setTimeout(addTwitterWidgetObserverWhenNodeAvailable, 500);
                return;
            }

            var targetTimelineTweets = targetTwitterWidget
                .contentWindow
                .document
                .getElementsByClassName('timeline-TweetList')[0];

            if (!targetTimelineTweets) {
                elementsWaitTimeout = window.setTimeout(addTwitterWidgetObserverWhenNodeAvailable, 500);
                return;
            }

            jQuery('#twitter-widget-0')
                .contents()
                .find('head')
                .append("<style>.timeline-Tweet-text {font-size: 18px !important; line-height: 25px !important; margin-bottom: 0px !important;}</style>");

            removeRetweets();

            observerTwitterWidget.observe(targetTimelineTweets, observerConfig);
        }

        addTwitterWidgetObserverWhenNodeAvailable();
    </script>
{/literal}

<p>
    {$LANG.twitterfollowus} @<a href="https://twitter.com/{$twitterusername}" target="_blank">{$twitterusername}</a> {$LANG.twitterfollowuswhy}
</p>