<!DOCTYPE html>
<!--[if lt IE 7 ]><html lang="en" class="no-js ie6"><![endif]-->
<!--[if IE 7 ]><html lang="en" class="no-js ie7"><![endif]-->
<!--[if IE 8 ]><html lang="en" class="no-js ie8"><![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en" class="no-js"><!--<![endif]-->
<head>
<link rel="dns-prefetch" href="//s3.amazonaws.com">
<link rel="dns-prefetch" href="//www.google-analytics.com">
<title><?php echo (isset($title)) ? $title : 'Gig Salad'; ?></title>
<?php
if (isset($responsive_page) and $responsive_page)
{
echo " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n";
}
?>
<meta name="author" content="Gig Salad, LLC">
<?php
if (isset($meta_tags))
{
foreach ($meta_tags as $name => $content)
{
if (is_array($content))
{
foreach ($content as $value)
{
echo " <meta name=\"{$name}\" content=\"{$value}\">\n";
}
}
else
{
echo " <meta name=\"{$name}\" content=\"{$content}\">\n";
}
}
}
if (isset($og_meta_tags))
{
foreach ($og_meta_tags as $property => $content)
{
if (is_array($content))
{
foreach ($content as $item)
{
echo " <meta property=\"{$property}\" content=\"{$item}\">\n";
}
}
else
{
echo " <meta property=\"{$property}\" content=\"{$content}\">\n";
}
}
}
if (isset($canonical))
{
echo " <link rel=\"canonical\" href=\"{$canonical}\">\n";
}
// Touch icon for iOS 2.0+ and Android 2.1+
echo " <link rel=\"apple-touch-icon-precomposed\" href=\"/favicon-152.png\">\n";
// IE 10 Metro tile icon (Metro equivalent of apple-touch-icon)
echo " <meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n";
echo " <meta name=\"msapplication-TileImage\" content=\"/favicon-144.png\">\n";
// Google plus page integration
echo " <link rel=\"publisher\" href=\"https://plus.google.com/102023464976869992116\">\n";
if (isset($external_stylesheet))
{
foreach ($external_stylesheet as $css)
{
echo " <link rel=\"stylesheet\" href=\"{$css}\">\n";
}
}
// Primary site stylesheet
if (IS_LOCAL)
{
echo " <link rel=\"stylesheet\" href=\"/css/gigsalad." . GS_CSS_REVISION . ".css\">\n";
}
else
{
echo " <link rel=\"stylesheet\" href=\"/css/gigsalad.min." . GS_CSS_REVISION . ".css\">\n";
}
// Secondary stylesheets
if (isset($stylesheet))
{
foreach ($stylesheet as $css)
{
echo " <link rel=\"stylesheet\" href=\"/css/{$css}\">\n";
}
}
// Respond.js for adding media query support to old IE versions
?>
<!--[if lte IE 8]>
<script src="/js/respond.min.js"></script>
<![endif]-->
<script>var baseurl = '/'<?php if (isset($baseurl_https)) echo ", baseurl_https='{$baseurl_https}'"; ?>;</script>
<?php
// Include 'js_data' which is an array of arbitrary data we encode as JSON and expose as a global javascript object called 'GS'.
// This gives us a way to put data on-page which is then available to stand alone .js files we load elsewhere/separately.
if (isset($js_data))
{
echo " <script>var GS = " . json_encode($js_data) . ";</script>\n";
}
if (isset($head_javascript))
{
foreach ($head_javascript as $scriptname)
{
echo " <script src=\"/js/{$scriptname}\"></script>\n";
}
}
if (empty($async_javascript))
{
// Include the CDN version of Raven-JS when HeadJS isn't needed (no async javascript)
echo " <script src=\"//d3nslu0hdya83q.cloudfront.net/dist/1.0/raven.min.js\"></script>\n";
}
else
{
// Include the minified version of Raven-JS + HeadJS when HeadJS is needed
if (IS_LOCAL)
{
echo " <script src=\"/js/gigsalad-head.concat." . GS_HEAD_JS_REVISION . ".js\"></script>\n";
}
else
{
echo " <script src=\"/js/gigsalad-head.min." . GS_HEAD_JS_REVISION . ".js\"></script>\n";
}
// Each parameter to head.js is a JSON object, like so:
// <script>head.js({jquery: '/js/vendor/jquery-1.9.1.min.js'}, {gigsalad: '/js/gigsalad.min.1.js'});</script>
// Everything loaded in a single head.js call is executed in order, so to accomplish executing separate scripts or sets of scripts out of order
// we need to make multiple calls to head.js();
foreach ($async_javascript as $script_set)
{
$scripts_json = array();
foreach ($script_set as $script_name => $script_path)
{
$scripts_json[] = '{' . $script_name . ':"' . $script_path . '"}';
}
$scripts[] = implode(', ', $scripts_json);
}
foreach ($scripts as $script_src)
{
echo " <script>head.js({$script_src});</script>\n";
}
}
// Include the configuration for Raven-JS.
// We may be interested in the following configuration variables for ignoring certain dubious errors:
// http://raven-js.readthedocs.org/en/latest/tips/index.html
?>
<script>
var sentry_options = {
ignoreUrls: [
/graph\.facebook\.com/i,
/connect\.facebook\.net\/en_US\/all\.js/i,
/extensions\//i,
/^chrome:\/\//i,
]
};
<?php
if (IS_LOCAL)
{
// Remove Sentry for local testing
echo " Raven.config('https://92ff01ee2a2c4ed9b4a4a8fc5cd45b59@app.getsentry.com/15325', sentry_options).install();\n";
}
else
{
echo " Raven.config('https://e1afa74185c34289bf64d9c400e6f33d@app.getsentry.com/15121', sentry_options).install();\n";
}
?>
</script>
<?php
if (isset($header_tags))
{
foreach ($header_tags as $tag)
{
echo $tag;
}
}
?>
</head>
<?php
$class = '';
if (isset($responsive_page) and $responsive_page)
{
if (isset($body_class))
{
$body_class .= ' responsive';
}
else
{
$body_class = 'responsive';
}
}
if (isset($body_class))
{
$class = ' class="' . $body_class . '"';
}
?>
<body id="gigsalad"<?php echo $class; ?>>
<?php
if (isset($responsive_page) and $responsive_page)
{
?>
<div class="off-canvas-wrap">
<div class="inner-wrap" role="main">
<?php
if (isset($sidebar_view) and $sidebar_view)
{
$this->load->view($sidebar_view);
}
}
?>
<!--[if lt IE 9]>
<p class="upgradebrowser">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<?php
if ($header_view !== false)
{
$this->load->view($header_view);
}
if ($body_view !== false)
{
$this->load->view($body_view);
}
if ($menus_view !== false)
{
$this->load->view($menus_view);
}
if ($footer_view !== false)
{
$this->load->view($footer_view);
}
if (isset($responsive_page) and $responsive_page)
{
?>
<a class="exit-off-canvas"></a>
</div>
</div>
<?php
}
if (isset($javascript))
{
echo "\n";
foreach ($javascript as $scriptname)
{
echo "<script src=\"/js/{$scriptname}\"></script>\n";
}
}
if (isset($external_javascript))
{
echo "\n";
foreach ($external_javascript as $scriptname)
{
echo "<script src=\"{$scriptname}\"></script>\n";
}
}
if (isset($inline_javascript))
{
echo "\n";
foreach ($inline_javascript as $script_view)
{
$this->load->view('inline_js/' . $script_view);
}
}
// Now include 3rd party javascript for widgets, plugins, etc using stand-alone snippets.
// We don't load these with head.js because we want them to execute outside the scope of head.js,
// which would enforce execution in order if we did. For these scripts, in-order execution does not matter.
if (isset($analytics) and $analytics)
{
// Optimized asynchronous Google analytics snippet.
// Documentation: http://mathiasbynens.be/notes/async-analytics-snippet
?>
<script>
var _gaq=[['_setAccount', 'UA-2207203-1'],['_setDomainName','.gigsalad.com'],['_trackPageview']];
(function(d){var g=d.createElement('script'),s=d.scripts[0];g.src='//stats.g.doubleclick.net/dc.js';s.parentNode.insertBefore(g,s)}(document))
<?php
if (isset($analytics_nobounce) and $analytics_nobounce)
{
echo " _gaq.push(['_trackEvent', 'bouncecheck', 'External page']);\n";
}
?>
</script>
<?php
}
if (isset($facebook_widgets) and $facebook_widgets)
{
// Combine with markup similar to:
// <div class="fb-like" data-href="http://www.gigsalad.com/" data-send="false" data-width="450" data-show-faces="true"></div>
// Documentation: https://developers.facebook.com/docs/reference/plugins/like/
?>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=140650345980432";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<?php
}
if (isset($twitter_widgets) and $twitter_widgets)
{
// Combine with markup similar to:
// <a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>
// Documentation: https://twitter.com/about/resources/buttons#tweet
?>
<script>
!function(d,s,id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (!d.getElementById(id)) {
js = d.createElement(s); js.id = id;
js.src = "//platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
}}(document, 'script', 'twitter-wjs');
</script>
<?php
}
if (isset($plusone_widgets) and $plusone_widgets)
{
// Combine with markup similar to:
// <div class="g-plusone" data-size="medium"></div>
// Documentation: https://developers.google.com/+/web/+1button/
?>
<script>
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<?php
}
if (isset($addthis_widgets) and $addthis_widgets)
{
?>
<script>
head.js({addthis:"http://s7.addthis.com/js/250/addthis_widget.js#async=1#pubid=stevete#username=stevete"});
head.ready("addthis", function() {
var addthis_config = {"data_track_clickback": true};
addthis.init();
});
</script>
<?php
}
if (!isset($no_retargeting_js))
{
?>
<script>
var google_conversion_id = 1056072116;
var google_conversion_label = "ArNwCNym2gQQtMPJ9wM";
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
</script>
<div style="display:none">
<script src="//www.googleadservices.com/pagead/conversion.js"></script>
</div>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1056072116/?value=0&label=ArNwCNym2gQQtMPJ9wM&guid=ON&script=0"/>
</div>
</noscript>
<script>
delete google_conversion_id;
delete google_conversion_label;
delete google_custom_params;
delete google_remarketing_only;
</script>
<?php
}
// Google Conversion Tracking
if (!empty($google_conversion))
{
?>
<script>
var google_conversion_id = 1056072116;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "<?php echo $google_conversion['label']; ?>";
var google_conversion_value = <?php echo $google_conversion['value']; ?>;
</script>
<script src="//www.googleadservices.com/pagead/conversion.js"></script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1056072116/?value=<?php echo $google_conversion['value']; ?>&label=<?php echo $google_conversion['label']; ?>&guid=ON&script=0"/>
</div>
</noscript>
<?php
}
//Bing Conversion Tracking
if (!empty($bing_conversion))
{
?>
<script> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script>
<script id="mstag_tops" src="//flex.atdmt.com/mstag/site/5f83e28f-ace3-4a9e-8597-84b1c42f015b/mstag.js"></script>
<script> mstag.loadTag("analytics", {dedup:"1",domainId:"2348120",type:"1",revenue:"<?php echo $bing_conversion['revenue']; ?>",actionid:"<?php echo $bing_conversion['action']; ?>"})</script>
<noscript><iframe src="//flex.atdmt.com/mstag/tag/5f83e28f-ace3-4a9e-8597-84b1c42f015b/analytics.html?dedup=1&domainId=2348120&type=1&revenue=<?php echo $bing_conversion['revenue']; ?>&actionid=<?php echo $bing_conversion['action']; ?>" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"></iframe></noscript>
<?php
}
?>
<?php
if (!empty($debug) and $debug)
{
echo "<!-- Page generated in {elapsed_time} seconds using {memory_usage} memory. -->\n";
}
?>
</body>
</html>
preferences:
44.73 ms | 402 KiB | 5 Q