Hardcoded "Tweet this" button to be inline with page title

This commit is contained in:
mattbk
2015-03-08 11:21:08 -05:00
parent 35c36807fa
commit 610c20b15c

View File

@ -121,7 +121,7 @@
<?php print render($page['slideshow']); ?> <?php print render($page['slideshow']); ?>
hello
<?php print render($page['front_welcome']); ?> <?php print render($page['front_welcome']); ?>
<?php if ($page['top_first'] || $page['top_second'] || $page['top_third']): ?> <?php if ($page['top_first'] || $page['top_second'] || $page['top_third']): ?>
@ -154,7 +154,8 @@ hello
<section id="post-content" role="main"> <section id="post-content" role="main">
<?php print $messages; ?> <?php print $messages; ?>
<?php print render($title_prefix); ?> <?php print render($title_prefix); ?>
<?php if ($title): ?><h1 class="page-title"><?php print $title; ?></h1><?php endif; ?> <?php if ($title): ?><h1 class="page-title"><?php print $title; ?> <a href="https://twitter.com/share" class="twitter-share-button" data-via="nplainsathletes">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></h1><?php endif; ?>
<?php print render($title_suffix); ?> <?php print render($title_suffix); ?>
<?php if (!empty($tabs['#primary'])): ?><div class="tabs-wrapper"><?php print render($tabs); ?></div><?php endif; ?> <?php if (!empty($tabs['#primary'])): ?><div class="tabs-wrapper"><?php print render($tabs); ?></div><?php endif; ?>
<?php print render($page['help']); ?> <?php print render($page['help']); ?>