discourse-legacysite-perl/site/articles/local/globals.txt
2024-06-17 22:42:14 +10:00

199 lines
6.8 KiB
Plaintext

{
'ad_300x250' => '<!-- BEGIN ADVERTSERVE CODE -->
<!--
Zone #107: 2023 - 300x250 - Roadblock
Size #8: Medium Rectangle [300x250]
Automatic Refresh: 30 seconds
Secure (HTTPS): enabled
-->
<div data-tagid="avp_zid_107">
<script type="text/javascript">
var _avp = _avp || [];
_avp.push({ tagid: \'avp_zid_107\', alias: \'/\', type: \'banner\', zid: 107, pid: 0, iframe: true, width: 300, height: 250, refresh: 30, refresh_limit: 60, inview: true, secure: true });
</script>
</div>
<!-- END ADVERTSERVE CODE -->',
'ad_300x250_1' => '<!-- BEGIN ADVERTSERVE CODE -->
<!--
Zone #107: 2023 - 300x250 - Roadblock
Size #8: Medium Rectangle [300x250]
Automatic Refresh: 30 seconds
Secure (HTTPS): enabled
-->
<div data-tagid="avp_zid_107">
<script type="text/javascript">
var _avp = _avp || [];
_avp.push({ tagid: \'avp_zid_107\', alias: \'/\', type: \'banner\', zid: 107, pid: 0, iframe: true, width: 300, height: 250, refresh: 30, refresh_limit: 60, inview: true, secure: true });
</script>
</div>
<!-- END ADVERTSERVE CODE -->',
'ad_300x250_noroadblocks' => '<!-- BEGIN ADVERTSERVE CODE -->
<!--
Zone #107: 2023 - 300x250 - Roadblock
Size #8: Medium Rectangle [300x250]
Automatic Refresh: 30 seconds
Secure (HTTPS): enabled
-->
<div data-tagid="avp_zid_107">
<script type="text/javascript">
var _avp = _avp || [];
_avp.push({ tagid: \'avp_zid_107\', alias: \'/\', type: \'banner\', zid: 107, pid: 0, iframe: true, width: 300, height: 250, refresh: 30, refresh_limit: 60, inview: true, secure: true });
</script>
</div>
<!-- END ADVERTSERVE CODE -->',
'ad_300x250_roadblocks' => '<!-- BEGIN ADVERTSERVE CODE -->
<!--
Zone #107: 2023 - 300x250 - Roadblock
Size #8: Medium Rectangle [300x250]
Automatic Refresh: 30 seconds
Secure (HTTPS): enabled
-->
<div data-tagid="avp_zid_107">
<script type="text/javascript">
var _avp = _avp || [];
_avp.push({ tagid: \'avp_zid_107\', alias: \'/\', type: \'banner\', zid: 107, pid: 0, iframe: true, width: 300, height: 250, refresh: 30, refresh_limit: 60, inview: true, secure: true });
</script>
</div>
<!-- END ADVERTSERVE CODE -->',
'ad_300x600' => '<!-- BEGIN ADVERTSERVE CODE -->
<!--
Zone #111: 2023 - 300x600 - Roadblock
Size #27: Filmstrip (Half Page Ad) [300x600]
Automatic Refresh: 30 seconds
Secure (HTTPS): enabled
-->
<div data-tagid="avp_zid_111">
<script type="text/javascript">
var _avp = _avp || [];
_avp.push({ tagid: \'avp_zid_111\', alias: \'/\', type: \'banner\', zid: 111, 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 #109: 2023 - 728x90 - Roadblock
Size #19: Jumbo Banner [728x90]
Automatic Refresh: 30 seconds
Secure (HTTPS): enabled
-->
<div data-tagid="avp_zid_109">
<script type="text/javascript">
var _avp = _avp || [];
_avp.push({ tagid: \'avp_zid_109\', alias: \'/\', type: \'banner\', zid: 109, pid: 0, iframe: true, width: 728, height: 90, refresh: 30, refresh_limit: 60, inview: true, secure: true });
</script>
</div>
<!-- END ADVERTSERVE CODE -->',
'ad_728x90_roadblocks' => '<!-- BEGIN ADVERTSERVE CODE -->
<!--
Zone #109: 2023 - 728x90 - Roadblock
Size #19: Jumbo Banner [728x90]
Automatic Refresh: 30 seconds
Secure (HTTPS): enabled
-->
<div data-tagid="avp_zid_109">
<script type="text/javascript">
var _avp = _avp || [];
_avp.push({ tagid: \'avp_zid_109\', alias: \'/\', type: \'banner\', zid: 109, pid: 0, iframe: true, width: 728, height: 90, refresh: 30, refresh_limit: 60, inview: true, secure: true });
</script>
</div>
<!-- END ADVERTSERVE CODE -->',
'ad_970x250' => '<!-- BEGIN ADVERTSERVE CODE -->
<!--
Zone #113: 2023 - 970x250 - Roadblock
Size #30: Billboard [970x250]
Automatic Refresh: 30 seconds
Secure (HTTPS): enabled
-->
<div data-tagid="avp_zid_113">
<script type="text/javascript">
var _avp = _avp || [];
_avp.push({ tagid: \'avp_zid_113\', alias: \'/\', type: \'banner\', zid: 113, pid: 0, iframe: true, width: 970, height: 250, refresh: 30, refresh_limit: 60, inview: true, secure: true });
</script>
</div>
<!-- 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 -->',
'calendar_url' => 'https://www.slowtwitch.com/calendar',
'comscore' => '',
'current_year' => 'sub {
use POSIX qw(strftime);
my $now_string = strftime "%Y", localtime;
return $now_string;
}',
'exclusive_ad_test' => 'sub {
my $regex_match = $ID =~ /7629/;
return $regex_match;
}',
'forum_url' => 'sub {
return \'https://forum.slowtwitch.com\';
}',
'get_image_context' => 'sub {
my $index = shift || return;
my $tags = GT::Template->tags;
return { description => $tags->{"Image$index" . "_description"} || \'\', paragraph => $tags->{"Paragraph$index"} || \'\' };
}',
'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) -->',
'is_old_article' => 'sub {
my $date = shift;
require GT::Date;
return GT::Date::date_is_greater($date, \'2016-08-03\') ? 0 : 1;
}',
'old_detailed_url' => 'sub {
my $url = shift || return;
$url =~ s,^https://,http://,;
return { http_detailed_url => $url };
}',
'quantcast' => '',
'shorten_it' => 'sub {
my $str = shift || return;
my $length = shift || 160;
$str =~ s/<(?:[^>\'"]*|([\'"]).*?\1)*>//gs;
if ($length > 0 and length $str > $length) {
$str = substr($str,0,$length);
$str =~ s/\s+\w+$//g;
$str .= " ...";
}
return $str;
}',
'site_description' => 'Online triathlon magazine with product reviews, a bike fit guide, training tips, and several regular columnists. The editor is Dan Empfield, the founder of Quintana Roo.',
'site_keywords' => 'triathlon, swim, bike, run, ironman, 70.3, ITU, Olympic, USAT, slowtwitch',
'static_url' => 'sub {
return $CFG->{build_static_url};
}'
};
# vim:syn=perl:ts=4:noet