if (!isset($_REQUEST['xml']))
{
$layers = $context['template_layers'];
$context['template_layers'] = array();
foreach ($layers as $layer)
{
$context['template_layers'][] = $layer;
if ($layer == 'body' || $layer == 'main')
$context['template_layers'][] = 'Readability';
}
}/*This is where Readability button will be*/
function template_Readability_above()
{
echo'
<div class="rdbWrapper" data-show-read="1" data-show-send-to-kindle="1" data-show-print="0" data-show-email="0" data-orientation="0" data-version="1"></div><script type="text/javascript">(function() {var s = document.getElementsByTagName("script")[0],rdb = document.createElement("script"); rdb.type = "text/javascript"; rdb.async = true; rdb.src = document.location.protocol + "//www.readability.com/embed.js"; s.parentNode.insertBefore(rdb, s); })();</script>';
}
function template_Readability_below(){/*or here to show at the bottom*/}
/*End Readability button*/How exactly are you trying to add more social buttons?
if (!isset($_REQUEST['xml']))
{
$layers = $context['template_layers'];
$context['template_layers'] = array();
foreach ($layers as $layer)
{
$context['template_layers'][] = $layer;
if ($layer == 'body' || $layer == 'main')
$context['template_layers'][] = 'Readability';
$context['template_layers'][] = 'Facebook';
$context['template_layers'][] = 'Twitter';
}
}if (!isset($_REQUEST['xml']))
{
$layers = $context['template_layers'];
$context['template_layers'] = array();
foreach ($layers as $layer)
{
$context['template_layers'][] = $layer;
if ($layer == 'body' || $layer == 'main')
{
$context['template_layers'][] = 'Readability';
$context['template_layers'][] = 'Facebook';
$context['template_layers'][] = 'Twitter';
}
}
}
/*This is where GPlus button will be*/
function template_GPlus_above()
{
echo'
<g:plusone size="medium" annotation="inline"></g:plusone>';
}
function template_GPlus_below(){/*or here to show at the bottom*/}
/*End GPlus button*/
/*This is where Readability button will be*/
function template_Readability_above()
{
echo'
<div class="rdbWrapper" data-show-read="1" data-show-send-to-kindle="1" data-show-print="0" data-show-email="0" data-orientation="0" data-version="1"></div><script type="text/javascript">(function() {var s = document.getElementsByTagName("script")[0],rdb = document.createElement("script"); rdb.type = "text/javascript"; rdb.async = true; rdb.src = document.location.protocol + "//www.readability.com/embed.js"; s.parentNode.insertBefore(rdb, s); })();</script>';
}
function template_Readability_below(){/*or here to show at the bottom*/}
/*End Readability button*/
/*This is where Facebook button will be*/
function template_Facebook_above(){/*or here to show at the bottom*/}
function template_Facebook_below(){/*or here to show at the bottom*/}
/*End Facebook button*/
/*This is where Twitter button will be*/
function template_Twitter_above()
{
echo'
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="iapplecafe">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>';
}
function template_Twitter_below(){/*or here to show at the bottom*/}
/*End Twitter button*/Code looks fine to me.
What exactly does that service provide?
Ah, the joys of clients that dispense with the look and feel an admin or themer has so carefully constructed...
Clean & readable?
Okay.. So, is 'Readability' a fancy new word for 'RSS/Atom feed'?Quote from ~DS~ on November 19th, 2011, 11:38 PM Clean & readable?
Curious. I wonder what it uses to determine the 'main' content - I note it only has the first post in there.
| 1. | Maybe tomorrow I'll take another look, eh. |
Yeah, their choice of font is pretty crappy, as is the lack of ability (that I could find readily) to handle multiple languages.
Might be worth having a chat with them about it, really, in case it can be done another way.