summaryrefslogtreecommitdiff
path: root/views/layout.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2014-12-24 16:44:44 -0800
committerAaron Parecki <aaron@parecki.com>2014-12-24 16:44:44 -0800
commit2cd148c792a47fea18d760b723d23569ae52d390 (patch)
treecbd2d277d7c56be7042fc7765ea7a3c26c4cd1f8 /views/layout.php
parent3f090eeb306dec5041d3c2c3b6baa3434f31802b (diff)
Support for "likes" and adding "settings" page
* Supports a bookmarklet to create "like" posts. * Beginning a "settings" page to connect silo profiles for POSSEing likes to twitter, facebook and instagram
Diffstat (limited to 'views/layout.php')
-rw-r--r--views/layout.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/layout.php b/views/layout.php
index 531dec9..0c78aa7 100644
--- a/views/layout.php
+++ b/views/layout.php
@@ -31,6 +31,12 @@
</head>
<body role="document">
+<?php
+if(property_exists($this, 'include_facebook')) {
+ echo partial('partials/fb-script');
+}
+?>
+
<script type="text/javascript">
var _gaq = _gaq || [];
@@ -65,7 +71,7 @@
<ul class="nav navbar-nav navbar-right">
<? if(session('me')) { ?>
<li><a href="/add-to-home?start">Add to Home Screen</a></li>
- <li><span class="navbar-text"><?= preg_replace('/https?:\/\//','',session('me')) ?></span></li>
+ <li><a href="/settings"><?= preg_replace(array('/https?:\/\//','/\/$/'),'',session('me')) ?></a></li>
<li><a href="/signout">Sign Out</a></li>
<? } else if(property_exists($this, 'authorizing')) { ?>
<li class="navbar-text"><?= $this->authorizing ?></li>