Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pakoreguokit theme.php

Parašė Skirmantas.· 2011 Lap. 26 19:11:03
#2

Tigi aiškiai matos Php-fusion.co.uk theme faile kodai:

//Share Buttons
 
echo "<div style='float:left;'>";
 
//FB Like button
 
echo "<div style='float:left;'>";
 
echo "<div id='FbCont".$info['news_id']."'>
 
<script type='text/javascript'>
 
<!--//--><![CDATA[//><!--
 
var fb = document.createElement('fb:like'); 
 
fb.setAttribute('href','".$settings['siteurl']."news.php?readmore=".$info['news_id']."'); 
 
fb.setAttribute('layout','button_count');
 
fb.setAttribute('show_faces','true');
 
fb.setAttribute('width','1');
 
document.getElementById('FbCont".$info['news_id']."').appendChild(fb);
 
//--><!]]>
 
</script>
 
</div>";
 
echo "</div>";
 
 
 
//Twitter
 
echo "<div style='float:left;'>";
 
echo "<script type='text/javascript'>
 
//<![CDATA[
 
(function() {
 
    document.write('<a href=\"http://twitter.com/share\" class=\"twitter-share-button\" data-count=\"horizontal\" data-url=\"".$settings['siteurl']."news.php?readmore=".$info['news_id']."\" data-text=\"".$info['news_subject']."\" data-via=\"PHPFusion\">Tweet</a>');
 
    var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
 
    s.type = 'text/javascript';
 
    s.async = true;
 
    s1.parentNode.insertBefore(s, s1);
 
})();
 
//]]>
 
</script>";
 
echo "</div>";
 
 
 
//Google+
 
echo "<div style='float:left;'>";
 
echo "<div class='g-plusone' id='gplusone".$info['news_id']."'></div> 
 
<script type='text/javascript'> 
 
var Validplus=document.getElementById('gplusone".$info['news_id']."'); 
 
Validplus.setAttribute('data-size','medium'); 
 
Validplus.setAttribute('data-count','true'); 
 
Validplus.setAttribute('data-href','".$settings['siteurl']."news.php?readmore=".$info['news_id']."'); 
 
</script>";
 
echo "</div>";