Untitled
unknown
plain_text
2 years ago
2.3 kB
3
Indexable
<xf:macro name="otoyenile" arg-kullanici="{$kullanici}"> <xf:if is="!$xf.options.xgtIstatistikOtoyenileme.ziyaretciler"> <xf:if is="$xf.visitor.user_id"> <xf:macro name="sadecekullanici" arg-kullanici="{$kullanici}"/> </xf:if> <xf:elseif is="$xf.options.xgtIstatistikOtoyenileme.ziyaretciler" /> <xf:macro name="sadecekullanici" arg-kullanici="{$kullanici}"/> </xf:if> <xf:macro name="sadecekullanici" arg-kullanici="!"> <xf:js> !function($, window, document){ "use strict"; XF.ForumIstatistikEkle = XF.extend(XF.Inserter, { __backup: { 'onLoad': '_onLoad' }, onLoad: function(data){ this._onLoad(data); if (!data.html){ return; } }, }); XF.ForumIstatistikTikla = XF.Event.newHandler({ eventNameSpace: 'ForumIstatistikTikla', options: $.extend(true, {}, XF._baseInserterOptions), inserter: null, init: function(){ this.inserter = new XF.ForumIstatistikEkle(this.$target, this.options); }, click: function(e){ this.inserter.onEvent(e); } }); var refreshDelay = {$xf.options.xgtIstatistikOtoyenileme.otoyenilemezamani}; var autoRefreshInterval; $(function() { checkAutoRefresh(); }); var checkAutoRefresh = function(){ resetAutoRefreshTimer(); } var clearAutoRefreshTimer = function(){ if (autoRefreshInterval){ clearInterval(autoRefreshInterval); } } var resetAutoRefreshTimer = function(){ clearAutoRefreshTimer(); autoRefreshInterval = setInterval(refresh, refreshDelay * 1000); } var refresh = function(){ var $tabs = $('.istatistik-blogu .tabs').first(); var handler = XF.Element.getHandler($tabs, 'tabs'); var aktifPanelIndex, $aktifPanel; $.each(handler.$panes, function(index, el) { var $el = $(el); if ($el.hasClass('is-active')) { aktifPanelIndex = index; $aktifPanel = $el; return; } }); $aktifPanel.data('href', $aktifPanel.data('href-initial')); handler.activateTab(aktifPanelIndex); }; XF.Click.register('forum-istatistik', 'XF.ForumIstatistikTikla'); } (jQuery, window, document); </xf:js> </xf:macro> </xf:macro>
Editor is loading...