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

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

<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="<?=\DF\Url::content('pvl_square.png') ?>" />

<link rel="image_src" href="<?=\DF\Url::content('pvl_square.png') ?>" />
<link href="https://plus.google.com/+PonyvilleLiveGlobal" rel="publisher" />

<?php
$title_items = $this->headTitle()->getIterator();
$title = current($title_items);

if (!$this->layout()->subtitle && $this->layout()->show_subtitle)
    $this->layout()->subtitle = next($title_items);

$this->headTitle($this->config->application->name);

if (count($title_items) == 1)
{
    // $this->headTitle()->append('Bringing Pony People Together');
    $this->headTitle()->append('Live Pony Radio, Video, Podcasts, Convention Coverage & More');
}

if (DF_APPLICATION_ENV != "production")
    $this->headTitle()->prepend('('.ucfirst(DF_APPLICATION_ENV).')');

echo $this->headTitle()->setSeparator(" - ")->toString();

$this->headLink()
    ->appendStylesheet('//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css', 'all')
    ->appendStylesheet('//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', 'all')
    ->appendStylesheet(\DF\Url::content('common/jquery/fancybox/jquery.fancybox.css'), 'all')
    ->appendStylesheet(\DF\Url::content('common/bootstrap2_r2/df-ui-printable.css'), 'print')
    ->appendStylesheet('//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700', 'screen')
    ->appendStylesheet(\DF\Url::content('mid2013/style.css'), 'all')
    ->appendStylesheet(\DF\Url::content('mid2013/skin_'.$skin.'.css'));

if ($this->custom_styles)
{
    foreach($this->custom_styles as $stylesheet_url)
        $this->headLink()->appendStylesheet($stylesheet_url);
}

$this->headScript()
    ->prependFile(\DF\Url::cdn('jquery', '1.10.1'))
    ->appendFile(\DF\Url::content('common/jquery/fancybox/jquery.fancybox.pack.js'))
    ->appendFile(\DF\Url::content('common/bootstrap2_r2/bootstrap/js/bootstrap.min.js'))
    ->appendFile(\DF\Url::content('common/bootstrap2_r2/layout.js'))
    ->appendFile(\DF\Url::content('swfobject.js'))
    ->appendFile(\DF\Url::content('js/jquery.hammer-full.min.js'))
    ->appendFile(\DF\Url::content('global.js'));

if ($this->custom_scripts)
{
    foreach($this->custom_scripts as $script_url)
        $this->headScript()->appendFile($script_url);
}

echo $this->headMeta()."\n";
echo $this->headLink()."\n";
echo $this->headScript()."\n";
?>
<script>
var DF_ContentPath = '<?php echo \DF\Url::content(); ?>';
</script>
</head>
<body>
<!-- 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 -->

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

<div class="header">               
    <div class="container">
        <div class="logo">                                             
            <a href="<?=$this->route() ?>"><img id="logo-header" src="<?=\DF\Url::content('mid2013/logo_'.$skin.'.png') ?>" alt="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">
                    <?=$this->renderCommon('nav') ?>
                </div>
            </div>
        </div>
    </div>
</div>

<? if ($this->placeholder('content_top')->toString()): ?>
    <?=$this->placeholder('content_top')->toString() ?>
<? else: ?>
    <div id="secondary_header_stripe">&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">
                    <?
                    $breadcrumb = $this->breadcrumb()->render();
                    if ($breadcrumb):
                    ?>
                        <div id="breadcrumb">
                            <a href="<?=\DF\Url::baseUrl() ?>/"><?=$this->config->application->name ?></a> &raquo; <?=$breadcrumb ?>
                        </div>
                    <? endif; ?>

                    <? if (!$this->layout()->hide_title): ?>
                        <h1 class="title"><?=$title ?></h1>
                    <? endif; ?>
            
                    <? if ($this->layout()->tabs): ?>
                        <div id="content_tabs">
                            <?=$this->layout()->tabs ?>
                        </div>
                    <? endif; ?>

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

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

<div class="footer">
    <div class="container">
        <?=$this->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>
</body>
</html><commit_msg>Add Fancybox media helper.<commit_after><?php
header("Content-type: text/html; charset=utf-8");
echo $this->doctype();

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

<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="<?=\DF\Url::content('pvl_square.png') ?>" />

<link rel="image_src" href="<?=\DF\Url::content('pvl_square.png') ?>" />
<link href="https://plus.google.com/+PonyvilleLiveGlobal" rel="publisher" />

<?php
$title_items = $this->headTitle()->getIterator();
$title = current($title_items);

if (!$this->layout()->subtitle && $this->layout()->show_subtitle)
    $this->layout()->subtitle = next($title_items);

$this->headTitle($this->config->application->name);

if (count($title_items) == 1)
{
    // $this->headTitle()->append('Bringing Pony People Together');
    $this->headTitle()->append('Live Pony Radio, Video, Podcasts, Convention Coverage & More');
}

if (DF_APPLICATION_ENV != "production")
    $this->headTitle()->prepend('('.ucfirst(DF_APPLICATION_ENV).')');

echo $this->headTitle()->setSeparator(" - ")->toString();

$this->headLink()
    ->appendStylesheet('//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css', 'all')
    ->appendStylesheet('//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', 'all')
    ->appendStylesheet(\DF\Url::content('common/jquery/fancybox/jquery.fancybox.css'), 'all')
    ->appendStylesheet(\DF\Url::content('common/bootstrap2_r2/df-ui-printable.css'), 'print')
    ->appendStylesheet('//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700', 'screen')
    ->appendStylesheet(\DF\Url::content('mid2013/style.css'), 'all')
    ->appendStylesheet(\DF\Url::content('mid2013/skin_'.$skin.'.css'));

if ($this->custom_styles)
{
    foreach($this->custom_styles as $stylesheet_url)
        $this->headLink()->appendStylesheet($stylesheet_url);
}

$this->headScript()
    ->prependFile(\DF\Url::cdn('jquery', '1.10.1'))
    ->appendFile(\DF\Url::content('common/jquery/fancybox/jquery.fancybox.pack.js'))
    ->appendFile(\DF\Url::content('common/jquery/fancybox/helpers/jquery.fancybox-media.js'))
    ->appendFile(\DF\Url::content('common/bootstrap2_r2/bootstrap/js/bootstrap.min.js'))
    ->appendFile(\DF\Url::content('common/bootstrap2_r2/layout.js'))
    ->appendFile(\DF\Url::content('swfobject.js'))
    ->appendFile(\DF\Url::content('js/jquery.hammer-full.min.js'))
    ->appendFile(\DF\Url::content('global.js'));

if ($this->custom_scripts)
{
    foreach($this->custom_scripts as $script_url)
        $this->headScript()->appendFile($script_url);
}

echo $this->headMeta()."\n";
echo $this->headLink()."\n";
echo $this->headScript()."\n";
?>
<script>
var DF_ContentPath = '<?php echo \DF\Url::content(); ?>';
</script>
</head>
<body>
<!-- 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 -->

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

<div class="header">               
    <div class="container">
        <div class="logo">                                             
            <a href="<?=$this->route() ?>"><img id="logo-header" src="<?=\DF\Url::content('mid2013/logo_'.$skin.'.png') ?>" alt="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">
                    <?=$this->renderCommon('nav') ?>
                </div>
            </div>
        </div>
    </div>
</div>

<? if ($this->placeholder('content_top')->toString()): ?>
    <?=$this->placeholder('content_top')->toString() ?>
<? else: ?>
    <div id="secondary_header_stripe">&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">
                    <?
                    $breadcrumb = $this->breadcrumb()->render();
                    if ($breadcrumb):
                    ?>
                        <div id="breadcrumb">
                            <a href="<?=\DF\Url::baseUrl() ?>/"><?=$this->config->application->name ?></a> &raquo; <?=$breadcrumb ?>
                        </div>
                    <? endif; ?>

                    <? if (!$this->layout()->hide_title): ?>
                        <h1 class="title"><?=$title ?></h1>
                    <? endif; ?>
            
                    <? if ($this->layout()->tabs): ?>
                        <div id="content_tabs">
                            <?=$this->layout()->tabs ?>
                        </div>
                    <? endif; ?>

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

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

<div class="footer">
    <div class="container">
        <?=$this->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>
</body>
</html>
{'fraction_non_alphanumeric': 0.20024829298572316, 'fraction_numerical': 0.0064556176288019865, 'mean_word_length': 2.095292987512008, 'pattern_counts': {'":': 0, '<': 275, '<?xml version=': 0, '>': 438, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5771007', 'n_tokens_mistral': 5026, 'n_tokens_neox': 4759, 'n_words': 733}