217 lines
7.5 KiB
Plaintext
217 lines
7.5 KiB
Plaintext
# This file is auto generated and contains a perl hash of
|
|
# your template globals for 'twitch' template set.
|
|
# Generated on: Sat Sep 16 12:38:20 2023
|
|
|
|
{
|
|
'ad_300x250' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<!--
|
|
Zone #108: 2023 - 300x250
|
|
Size #8: Medium Rectangle [300x250]
|
|
Automatic Refresh: 30 seconds
|
|
Secure (HTTPS): enabled
|
|
-->
|
|
<div data-tagid="avp_zid_108">
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
_avp.push({ tagid: \'avp_zid_108\', alias: \'/\', type: \'banner\', zid: 108, pid: 0, iframe: true, width: 300, height: 250, refresh: 30, refresh_limit: 60, inview: true, secure: true });
|
|
</script>
|
|
</div>',
|
|
'ad_300x600' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<!--
|
|
Zone #112: 2023 - 300x600
|
|
Size #27: Filmstrip (Half Page Ad) [300x600]
|
|
Automatic Refresh: 30 seconds
|
|
Secure (HTTPS): enabled
|
|
-->
|
|
<div data-tagid="avp_zid_112">
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
_avp.push({ tagid: \'avp_zid_112\', alias: \'/\', type: \'banner\', zid: 112, pid: 0, iframe: true, width: 300, height: 600, refresh: 30, refresh_limit: 60, inview: true, secure: true });
|
|
</script>
|
|
</div>
|
|
<!-- END ADVERTSERVE CODE -->',
|
|
'ad_728x90' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<!--
|
|
Zone #110: 2023 - 728x90
|
|
Size #19: Jumbo Banner [728x90]
|
|
Automatic Refresh: 30 seconds
|
|
Secure (HTTPS): enabled
|
|
-->
|
|
<div data-tagid="avp_zid_110">
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
_avp.push({ tagid: \'avp_zid_110\', alias: \'/\', type: \'banner\', zid: 110, pid: 0, iframe: true, width: 728, height: 90, refresh: 30, refresh_limit: 60, inview: true, secure: true });
|
|
</script>
|
|
</div>',
|
|
'ad_lr_300x250' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<!--
|
|
Zone #108: 2023 - 300x250
|
|
Size #8: Medium Rectangle [300x250]
|
|
Automatic Refresh: 30 seconds
|
|
Secure (HTTPS): enabled
|
|
-->
|
|
<div data-tagid="avp_zid_108">
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
_avp.push({ tagid: \'avp_zid_108\', alias: \'/\', type: \'banner\', zid: 108, pid: 0, iframe: true, width: 300, height: 250, refresh: 30, refresh_limit: 60, inview: true, secure: true });
|
|
</script>
|
|
</div>',
|
|
'ad_lr_300x600' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<!--
|
|
Zone #112: 2023 - 300x600
|
|
Size #27: Filmstrip (Half Page Ad) [300x600]
|
|
Automatic Refresh: 30 seconds
|
|
Secure (HTTPS): enabled
|
|
-->
|
|
<div data-tagid="avp_zid_112">
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
_avp.push({ tagid: \'avp_zid_112\', alias: \'/\', type: \'banner\', zid: 112, pid: 0, iframe: true, width: 300, height: 600, refresh: 30, refresh_limit: 60, inview: true, secure: true });
|
|
</script>
|
|
</div>
|
|
<!-- END ADVERTSERVE CODE -->',
|
|
'ad_lr_728x90' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<!--
|
|
Zone #110: 2023 - 728x90
|
|
Size #19: Jumbo Banner [728x90]
|
|
Automatic Refresh: 30 seconds
|
|
Secure (HTTPS): enabled
|
|
-->
|
|
<div data-tagid="avp_zid_110">
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
_avp.push({ tagid: \'avp_zid_110\', alias: \'/\', type: \'banner\', zid: 110, pid: 0, iframe: true, width: 728, height: 90, refresh: 30, refresh_limit: 60, inview: true, secure: true });
|
|
</script>
|
|
</div>',
|
|
'ad_lr_wallpaper' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<!--
|
|
Zone #106: 2023 - Wallpaper
|
|
Secure (HTTPS): enabled
|
|
-->
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
_avp.push({ alias: \'/\', type: \'wallpaper\', zid: 106, pid: 0, secure: \'true\' });
|
|
</script>
|
|
<!-- END ADVERTSERVE CODE -->',
|
|
'ad_wallpaper' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<!--
|
|
Zone #106: 2023 - Wallpaper
|
|
Secure (HTTPS): enabled
|
|
-->
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
_avp.push({ alias: \'/\', type: \'wallpaper\', zid: 106, pid: 0, secure: \'true\' });
|
|
</script>
|
|
<!-- END ADVERTSERVE CODE -->',
|
|
'advertserve_ajax' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
(function() {
|
|
var s = document.createElement(\'script\');
|
|
s.type = \'text/javascript\'; s.async = true; s.src = \'https://reach.slowtwitch.com/js/libcode3.js\';
|
|
var x = document.getElementsByTagName(\'script\')[0];
|
|
x.parentNode.insertBefore(s, x);
|
|
})();
|
|
</script>
|
|
<!-- END ADVERTSERVE CODE -->',
|
|
'cat_full_name' => 'Slowtwitch Forums',
|
|
'comscore' => '',
|
|
'current_year' => 'sub {
|
|
use POSIX qw(strftime);
|
|
my $now_string = strftime "%Y", localtime;
|
|
return $now_string;
|
|
}',
|
|
'encoding' => 'sub {
|
|
my $str = shift || return;
|
|
require Encode;
|
|
|
|
return Encode::encode("utf-8", $str);
|
|
}',
|
|
'ezoic' => '<script async src="//www.ezojs.com/ezoic/sa.min.js"></script>
|
|
<script>
|
|
window.ezstandalone = window.ezstandalone || {};
|
|
ezstandalone.cmd = ezstandalone.cmd || [];
|
|
ezstandalone.cmd.push(function() {
|
|
ezstandalone.define(103,104,105,106);
|
|
setTimeout(ezstandalone.enable(), 2000);
|
|
setTimeout(ezstandalone.display(), 2000);
|
|
});
|
|
</script>',
|
|
'ezoic_desktop_bottom' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<div data-tagid="avp_cid_4071">
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
if (!document.cookie || document.cookie.indexOf(\'AVPDCAP=\') == -1) {
|
|
_avp.push({ tagid: \'avp_cid_4071\', alias: \'/\', type: \'dynamic\', cid: 4071, pid: 0, secure: true });
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- END ADVERTSERVE CODE -->',
|
|
'ezoic_desktop_sidebar' => '<!-- Ezoic - sidebar_bottom - sidebar_bottom -->
|
|
<div id="ezoic-pub-ad-placeholder-103"></div>
|
|
<!-- End Ezoic - sidebar_bottom - sidebar_bottom -->',
|
|
'ezoic_mobile_thread' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<div data-tagid="avp_cid_4073">
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
if (!document.cookie || document.cookie.indexOf(\'AVPDCAP=\') == -1) {
|
|
_avp.push({ tagid: \'avp_cid_4073\', alias: \'/\', type: \'dynamic\', cid: 4073, pid: 0, secure: true });
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- END ADVERTSERVE CODE -->',
|
|
'ezoic_mobile_top' => '<!-- BEGIN ADVERTSERVE CODE -->
|
|
<div data-tagid="avp_cid_4072">
|
|
<script type="text/javascript">
|
|
var _avp = _avp || [];
|
|
if (!document.cookie || document.cookie.indexOf(\'AVPDCAP=\') == -1) {
|
|
_avp.push({ tagid: \'avp_cid_4072\', alias: \'/\', type: \'dynamic\', cid: 4072, pid: 0, secure: true });
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- END ADVERTSERVE CODE -->',
|
|
'google_tag_manager' => '<!-- Google tag (gtag.js) -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4JP2WEE0TF"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag(\'js\', new Date());
|
|
|
|
gtag(\'config\', \'G-4JP2WEE0TF\');
|
|
</script>
|
|
<!-- Google Tag Manager (noscript) -->
|
|
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=G-4JP2WEE0TF"
|
|
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
|
<!-- End Google Tag Manager (noscript) -->',
|
|
'new_messages' => 'sub {
|
|
return $DB->table(\'Message\')->select(\'COUNT(*)\', { to_user_id_fk => $USER->{user_id}, msg_status => 0 })->fetchrow;
|
|
}',
|
|
'quantcast' => '',
|
|
'registered_users' => 'sub { $DB->table(\'User\')->count }',
|
|
'site_title' => 'Slowtwitch.com',
|
|
'smilies' => 'sub {
|
|
# This is a list of all the smilies that are listed on the message/post compose
|
|
# page. Note that all these smilies should already be defined as markup tags.
|
|
my @smilies = qw{:) ;) :( :P cool blush angelic crazy mad shocked laugh :/ :| sly pirate ninja w00t huh whistle};
|
|
|
|
my @ret;
|
|
for (@smilies) {
|
|
next unless $CFG->{markup_tags}->{$_};
|
|
|
|
my $val = $CFG->{markup_tags}->{$_}->[0];
|
|
$val =~ s/<%image_url%>/$CFG->{image_url}/gi;
|
|
$val =~ s/<%cgi_root_url%>/$CFG->{cgi_root_url}/gi;
|
|
$val =~ s/<%gforum_cgi%>/$CFG->{gforum_cgi}/gi;
|
|
|
|
my ($src) = $val =~ /\bsrc="([^"]+)"/;
|
|
my ($alt) = $val =~ /\balt="([^"]+)"/;
|
|
|
|
push @ret, { tag => $_, url => $src, alt => $alt || ""};
|
|
}
|
|
|
|
return { smilies_loop => \@ret };
|
|
}'
|
|
};
|
|
|
|
# vim:syn=perl:ts=4:noet
|