<commit_before><?php
header("Content-type: text/html; charset=utf-8");

$skin = \PVL\Customization::get('theme');
$tz_info = \PVL\Timezone::getInfo();
?>
<!DOCTYPE html>
<html class="full_layout theme_<?=$skin ?>">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,requiresActiveX=true">

    <meta name="viewport" content="width=device-width">

    <meta name="keywords" content="Pony, Brony, Radio, Video, Podcast, Multimedia, Convention, Ponyville, Live, MLP, MLP:FiM" />
    <meta name="description" content="Equestria's newest Brony multimedia network, featuring 24/7 pony radio, videos, podcasts, convention coverage, and more." />
    <link rel="canonical" href="http://ponyvillelive.com" />

    <!-- Facebook and Other Social Sites -->
    <meta property="og:site_name" content="Ponyville Live!" />
    <meta property="og:url" content="http://ponyvillelive.com/" />
    <meta property="og:image" content="<?=$this->url->getStatic('pvl_square.png') ?>" />

    <link rel="image_src" href="<?=$this->url->getStatic('pvl_square.png') ?>" />
    <link href="https://plus.google.com/+PonyvilleLiveGlobal" rel="publisher" />

    <?php
    if ($title)
        $page_title = $title.' - '.$this->config->application->name;
    else
        $page_title = $this->config->application->name.' - Live Pony Radio, Video, Podcasts, Convention Coverage & More';

    $this->tag->setTitle($page_title);
    if (DF_APPLICATION_ENV != "production")
        $this->tag->prependTitle('('.ucfirst(DF_APPLICATION_ENV).') ');

    echo $this->tag->getTitle();

    // Set up CSS includes.
    $this->assets->collection('header_css')
        ->addCss('//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css', false)
        ->addCss('//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', false)
        ->addCss('//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700', false)
        ->addCss('//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css', false)
        ->addCss('compiled/style.css');

    // Establish custom CSS/JS collections in case they don't exist.
    $this->assets->collection('custom_css');
    $this->assets->collection('custom_js');

    // Output header CSS.
    $this->assets->outputCss('header_css');
    $this->assets->outputCss('custom_css');

    // Set up JS includes.
    $this->assets->collection('header_js')
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.compat.min.js', false);

    $this->assets->collection('footer_js')
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/helpers/jquery.fancybox-media.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/swfobject/2.2/swfobject.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.4/hammer.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js', false)
        ->addJs('js/layout.js')
        ->addJs('js/notify.js')
        ->addJs('js/global.js');

    $this->assets->outputJs('header_js');
    ?>
    <script>
        var DF_AppEnv = '<?=DF_APPLICATION_ENV ?>';
        var DF_BaseUrl = '<?php echo rtrim($this->url->get(''), '/'); ?>';
        var DF_ContentPath = '<?php echo $this->url->getStatic(''); ?>';

        var PVL_TimeZone = '<?=$e->escapeJs($tz_info['code']) ?>';
        var PVL_UtcOffset = <?=$tz_info['gmt_offset_hours'] ?>;
    </script>
</head>
<body>
<div class="top">
    <div class="container">
        <?php $this->viewHelper->renderCommon("usernav") ?>
    </div>
</div>

<div class="header">
    <div class="container">
        <div class="logo">
            <a href="<?=$this->url->get('') ?>"><img id="logo-header" src="<?=$this->url->getStatic('mid2013/logo_'.$skin.'.png') ?>" alt="Ponyville Live! Logo"></a>
        </div>

        <div class="navbar">
            <div class="navbar-inner">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="nav-collapse collapse">
                    <?php $this->viewHelper->renderCommon("nav") ?>
                </div>
            </div>
        </div>
    </div>
</div>


<? if ($content_top): ?>
    <?=$content_top ?>
<? else: ?>
    <div id="secondary_header_stripe" class="rich_header">&nbsp;</div>
<? endif; ?>

<div id="body-wrapper">
    <div id="body" class="container">
        <div id="page_wrapper">
            <div id="page">
                <?
                if (\DF\Flash::hasMessages()):
                    $messages = \DF\Flash::getMessages();
                    foreach($messages as $message):
                        ?>
                        <div class="content-top-alert alert alert-<?=$message['color'] ?>" data-alert="alert">
                            <a class="close" data-dismiss="alert" href="#">×</a>
                            <?=$message['message'] ?>
                        </div>
                    <?
                    endforeach;
                endif;
                ?>

                <div id="content_wrapper">
                    <div id="content">
                        <? if (!$hide_title): ?>
                            <h1 class="title"><?=$title ?></h1>
                        <? endif; ?>

                        <? if ($tabs): ?>
                            <div id="content_tabs">
                                <?=$tabs ?>
                            </div>
                        <? endif; ?>

                        <? if ($subtitle): ?>
                            <h2 class="title"><?=$subtitle ?></h2>
                        <? endif; ?>

                        <? if ($manual): ?>
                            <?php echo $this->getContent(); ?>
                        <? else: ?>
                            <div class="row-fluid">
                                <div class="span12">
                                    <div class="content_inner">
                                        <?php echo $this->getContent(); ?>
                                    </div>
                                </div>
                            </div>
                        <? endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="footer">
    <div class="container">
        <?=$this->viewHelper->renderCommon('footer') ?>
    </div>
</div>

<div class="copyright">
    <div class="container">
        <p>MLP is copyright &copy; Hasbro. All creations are &copy; to their respective artists. All songs are property of their respective artists.<br>
            Copyright &copy; 2012-<?=date('Y') ?> <a href="http://www.bravelyblue.com/" target="_blank">Bravely Blue Media LLC</a> and Ponyville Live! All rights reserved.</p>
    </div>
</div>

<?
echo $this->assets->outputJs('footer_js');
echo $this->assets->outputJs('custom_js');
?>

<!-- Google Universal Analytics -->
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', '<?=$this->config->application->analytics_code ?>', 'ponyvillelive.com');
    ga('send', 'pageview');
</script>
<!-- End Google Universal Analytics -->
</body>
</html><commit_msg>Implement enhanced link attribution for GA.<commit_after><?php
header("Content-type: text/html; charset=utf-8");

$skin = \PVL\Customization::get('theme');
$tz_info = \PVL\Timezone::getInfo();
?>
<!DOCTYPE html>
<html class="full_layout theme_<?=$skin ?>">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,requiresActiveX=true">

    <meta name="viewport" content="width=device-width">

    <meta name="keywords" content="Pony, Brony, Radio, Video, Podcast, Multimedia, Convention, Ponyville, Live, MLP, MLP:FiM" />
    <meta name="description" content="Equestria's newest Brony multimedia network, featuring 24/7 pony radio, videos, podcasts, convention coverage, and more." />
    <link rel="canonical" href="http://ponyvillelive.com" />

    <!-- Facebook and Other Social Sites -->
    <meta property="og:site_name" content="Ponyville Live!" />
    <meta property="og:url" content="http://ponyvillelive.com/" />
    <meta property="og:image" content="<?=$this->url->getStatic('pvl_square.png') ?>" />

    <link rel="image_src" href="<?=$this->url->getStatic('pvl_square.png') ?>" />
    <link href="https://plus.google.com/+PonyvilleLiveGlobal" rel="publisher" />

    <?php
    if ($title)
        $page_title = $title.' - '.$this->config->application->name;
    else
        $page_title = $this->config->application->name.' - Live Pony Radio, Video, Podcasts, Convention Coverage & More';

    $this->tag->setTitle($page_title);
    if (DF_APPLICATION_ENV != "production")
        $this->tag->prependTitle('('.ucfirst(DF_APPLICATION_ENV).') ');

    echo $this->tag->getTitle();

    // Set up CSS includes.
    $this->assets->collection('header_css')
        ->addCss('//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css', false)
        ->addCss('//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', false)
        ->addCss('//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700', false)
        ->addCss('//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css', false)
        ->addCss('compiled/style.css');

    // Establish custom CSS/JS collections in case they don't exist.
    $this->assets->collection('custom_css');
    $this->assets->collection('custom_js');

    // Output header CSS.
    $this->assets->outputCss('header_css');
    $this->assets->outputCss('custom_css');

    // Set up JS includes.
    $this->assets->collection('header_js')
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.compat.min.js', false);

    $this->assets->collection('footer_js')
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/helpers/jquery.fancybox-media.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/swfobject/2.2/swfobject.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.4/hammer.min.js', false)
        ->addJs('//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js', false)
        ->addJs('js/layout.js')
        ->addJs('js/notify.js')
        ->addJs('js/global.js');

    $this->assets->outputJs('header_js');
    ?>
    <script>
        var DF_AppEnv = '<?=DF_APPLICATION_ENV ?>';
        var DF_BaseUrl = '<?php echo rtrim($this->url->get(''), '/'); ?>';
        var DF_ContentPath = '<?php echo $this->url->getStatic(''); ?>';

        var PVL_TimeZone = '<?=$e->escapeJs($tz_info['code']) ?>';
        var PVL_UtcOffset = <?=$tz_info['gmt_offset_hours'] ?>;
    </script>
</head>
<body>
<div class="top">
    <div class="container">
        <?php $this->viewHelper->renderCommon("usernav") ?>
    </div>
</div>

<div class="header">
    <div class="container">
        <div class="logo">
            <a href="<?=$this->url->get('') ?>"><img id="logo-header" src="<?=$this->url->getStatic('mid2013/logo_'.$skin.'.png') ?>" alt="Ponyville Live! Logo"></a>
        </div>

        <div class="navbar">
            <div class="navbar-inner">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="nav-collapse collapse">
                    <?php $this->viewHelper->renderCommon("nav") ?>
                </div>
            </div>
        </div>
    </div>
</div>


<? if ($content_top): ?>
    <?=$content_top ?>
<? else: ?>
    <div id="secondary_header_stripe" class="rich_header">&nbsp;</div>
<? endif; ?>

<div id="body-wrapper">
    <div id="body" class="container">
        <div id="page_wrapper">
            <div id="page">
                <?
                if (\DF\Flash::hasMessages()):
                    $messages = \DF\Flash::getMessages();
                    foreach($messages as $message):
                        ?>
                        <div class="content-top-alert alert alert-<?=$message['color'] ?>" data-alert="alert">
                            <a class="close" data-dismiss="alert" href="#">×</a>
                            <?=$message['message'] ?>
                        </div>
                    <?
                    endforeach;
                endif;
                ?>

                <div id="content_wrapper">
                    <div id="content">
                        <? if (!$hide_title): ?>
                            <h1 class="title"><?=$title ?></h1>
                        <? endif; ?>

                        <? if ($tabs): ?>
                            <div id="content_tabs">
                                <?=$tabs ?>
                            </div>
                        <? endif; ?>

                        <? if ($subtitle): ?>
                            <h2 class="title"><?=$subtitle ?></h2>
                        <? endif; ?>

                        <? if ($manual): ?>
                            <?php echo $this->getContent(); ?>
                        <? else: ?>
                            <div class="row-fluid">
                                <div class="span12">
                                    <div class="content_inner">
                                        <?php echo $this->getContent(); ?>
                                    </div>
                                </div>
                            </div>
                        <? endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="footer">
    <div class="container">
        <?=$this->viewHelper->renderCommon('footer') ?>
    </div>
</div>

<div class="copyright">
    <div class="container">
        <p>MLP is copyright &copy; Hasbro. All creations are &copy; to their respective artists. All songs are property of their respective artists.<br>
            Copyright &copy; 2012-<?=date('Y') ?> <a href="http://www.bravelyblue.com/" target="_blank">Bravely Blue Media LLC</a> and Ponyville Live! All rights reserved.</p>
    </div>
</div>

<?
echo $this->assets->outputJs('footer_js');
echo $this->assets->outputJs('custom_js');
?>

<!-- Google Universal Analytics -->
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', '<?=$this->config->application->analytics_code ?>', 'ponyvillelive.com');
    ga('require', 'linkid', 'linkid.js');
    ga('send', 'pageview');
</script>
<!-- End Google Universal Analytics -->
</body>
</html>
{'fraction_non_alphanumeric': 0.196509009009009, 'fraction_numerical': 0.0075075075075075074, 'mean_word_length': 2.114163257354374, 'pattern_counts': {'":': 0, '<': 273, '<?xml version=': 0, '>': 417, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5182468', 'n_tokens_mistral': 5188, 'n_tokens_neox': 4914, 'n_words': 781}