Norėčiau paprašyti, kad kasnors man pakoreguotų theme.php, kad mano tinklapyje būtų facebook like mygtukas taip kaip php-fusion.co.uk
News apačioje php-fusion.co.uk yra va taip
O pas mane va taip
Tai aš norėčiau, kurnors dešinėj pusės to like mygtuko.
Mano theme.php
//News
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-news-left'></td>\n";
echo "<td class='capmain-news'><a href='news.php?readmore=".$info['news_id']."'><font size='4'>".$info['news_subject']."</font></a></td>\n";
echo "<td class='capmain-news-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='main-body-left'></td>\n";
echo "<td class='main-body-news-poster'>Parašė\n";
echo newsposter($info);
echo "</td>\n";
echo "<td class='main-body-right'></td>\n</tr>\n<tr>\n";
echo "<td class='main-body-left'></td>\n";
echo "<td class='main-body middle-border'>".$news."</br></br></td>\n";
echo "<td class='main-body-right'></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body-left'></td>\n";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "<td class='main-body-right'></td>\n";
echo "</tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='submain-left'></td>\n";
echo "<td class='submain'> </td>\n";
echo "<td class='submain-right'></td>\n";
echo "</tr>\n</table>\n";
}
Php-fusion.co.uk theme.php
function render_news($subject, $news, $info) {
global $settings;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='box box-caption' onclick=\"location='".BASEDIR."news.php?readmore=".$info['news_id']."'\" style='cursorointer;'>".$subject."</td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body'><div style='float:left;width:100%;'>".$info['cat_image'].$news."</div><div class='clear'></div><div style='float:right;font-size:9px;'>".newsposter($info)."</div></td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo "<div style='float:left;margin-top:3px;'>";
echo newsopts($info," ·" ).itemoptions("N",$info['news_id']);
echo " · </div>";
if (SHAREING) {
//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>";
//End share buttons
echo "</div>";
}
echo "</td>\n";
echo "</tr>\n";
echo "<tr><td style='height:2px;background-color:#ff0024;'></td>\n";
echo "</tr>\n</table>\n";
}
|