Exemplo n.º 1
0
angular.extend(window.appConfig.fb, {
    isTab:      !!(/^app_runner/).test(window.name),
    isCanvas:   !!(/^iframe_canvas/).test(window.name),
    isMobile:   !!(/^fbforiphone/).test(window.navigator.userAgent),
    useMobile:  false,
    detectFan:  false,
    onInit:     function(angular){angular.bootstrap(document.documentElement, ['app']);}
});
(window.app || (window.app = angular.module('app', window.appModules()))).constant('config', window.appConfig);
</script>

<?php 
//H::copyData();
?>
<!-- build:js /js/bin/app.min.js -->
<script type="text/javascript" src="/js/lib/analytics.js"></script>
<script type="text/javascript" src="/js/lib/application.js"></script>
<script type="text/javascript" src="/js/lib/video.js"></script>
<script type="text/javascript" src="/js/lib/facebook.js"></script>

<script type="text/javascript" src="/js/controllers.js"></script>
<script type="text/javascript" src="/js/instance.js"></script>
<script type="text/javascript" src="/js/metrics.js"></script>
<script type="text/javascript" src="/js/services.js"></script>
<!-- endbuild -->
<?php 
H::vars()->fb->debug && H::debug();
?>

<script>typeof(window['fbAsyncInit'])=='undefined'&&window.appConfig.fb.onInit(angular);</script>
</html>
Exemplo n.º 2
0
<?php

use Application\H;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head>
	<?php 
echo H::og($openGraphTags);
?>
    <meta property="fb:app_id" content="<?php 
echo H::vars()->fb->appId;
?>
" />
    <meta property="og:url" content="<?php 
echo H::vars()->fb->canvasUrl;
?>
" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="Tide+ ValenTide: Give a free bottle of Tide+ to someone special." />
    <meta property="og:description" content="Give that special someone more of what they love: the gift of clean. Just guess your friend's favorite Tide+, and if they match it, they could get a free 10 oz bottle, while supplies last." />
    <meta property="og:image" content="<?php 
echo H::u('img/ValenTide_Post_1200x627_itsBack.jpg');
?>
">
<script> top.location.href = '<?php 
echo $redirectUrl;
?>
'; </script>
</head></html>