Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
echo "
<script type='text/javascript'>
svejo_url='$article_id';
svejo_bgcolor='FFFFFF';
svejo_skin='standard';
svejo_theme='standard';
</script>
<script src='http://svejo.net/javascripts/svejo_button.js' type='text/javascript'></script>";
?>
svilkaa каза:Редактирай си theme.php на темата. Там сложи бутоните. Ако незнаеш как - да си съдържанието на следните две функции: render_news и render_article.
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='middle'><tr><td><table width='100%' border='0' cellspacing='1' cellpadding='3' class='bgcolor3'><tr><th><h2>$subject</h2></th></tr><tr><td class='bgcolor1'>$news<table width='100%' border='0' cellspacing='2' cellpadding='0'><tr><td width='1' height='1'></td></tr></table></td></tr><tr><td class='bgcolor1'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%' align='left'>".newsposter($info)."</td><td width='50%' align='right'>".openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id'])."</td></tr></table></td></tr></table></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='middle'><tr><td><table width='100%' border='0' cellspacing='1' cellpadding='3' class='bgcolor2'><tr><th><h2>$subject</h2></th></tr><tr><td class='bgcolor1'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<table width='100%' border='0' cellspacing='2' cellpadding='0'><tr><td width='1' height='1'></td></tr></table></td></tr><tr><td class='bgcolor1'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%' align='left'>".articleposter($info)."</td><td width='50%' align='right'>".openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id'])."</td></tr></table></td></tr></table></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='middle'><tr><td><table width='100%' border='0' cellspacing='1' cellpadding='3' class='bgcolor3'><tr><th><h2>$subject</h2></th></tr><tr><td class='bgcolor1'>$news
<script type='text/javascript'>
svejo_url='$news_id';
svejo_bgcolor='FFFFFF';
svejo_skin='standard';
svejo_theme='standard';
</script>
<script src='http://svejo.net/javascripts/svejo_button.js' type='text/javascript'></script>
<table width='100%' border='0' cellspacing='2' cellpadding='0'><tr><td width='1' height='1'></td></tr></table></td></tr><tr><td class='bgcolor1'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%' align='left'>".newsposter($info)."</td><td width='50%' align='right'>".openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id'])."</td></tr></table></td></tr></table></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='middle'><tr><td><table width='100%' border='0' cellspacing='1' cellpadding='3' class='bgcolor2'><tr><th><h2>$subject</h2></th></tr><tr><td class='bgcolor1'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<script type='text/javascript'>
svejo_url='$article_id';
svejo_bgcolor='FFFFFF';
svejo_skin='standard';
svejo_theme='standard';
</script>
<script src='http://svejo.net/javascripts/svejo_button.js' type='text/javascript'></script>
<table width='100%' border='0' cellspacing='2' cellpadding='0'><tr><td width='1' height='1'></td></tr></table></td></tr><tr><td class='bgcolor1'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%' align='left'>".articleposter($info)."</td><td width='50%' align='right'>".openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id'])."</td></tr></table></td></tr></table></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='middle'>
<tr>
<td>
<table width='100%' border='0' cellspacing='1' cellpadding='3' class='bgcolor3'>
<tr>
<th><h2>$subject</h2></th>
</tr>
<tr>
<td class='bgcolor1'>
$news
<table width='100%' border='0' cellspacing='2' cellpadding='0'>
<tr>
<td width='1' height='1'></td>
</tr>
</table>
</td>
</tr>
//споделяне
<tr>
<td>
Сподели:<br />
<a href='http://www.facebook.com/share.php?u=http://сайт/".FUSION_SELF."?readmore=".$info['news_id']."'><img src='".THEME."/icons/facebook.png' style='border: 0; vertical-align: middle;' alt='facebook' title='Сподели във Facebook'></a>
<a href='http://svejo.net/story/submit_by_url?url=http://сайт/".FUSION_SELF."?readmore=".$info['news_id']."'><img src='".THEME."/icons/svejo.png' style='border: 0; vertical-align: middle;' alt='svejo' title='Добави в Свежо'></a>
</td>
</tr>
//споделяне
<tr>
<td class='bgcolor1'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='50%' align='left'>".newsposter($info)."</td>
<td width='50%' align='right'>
".openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id'])."</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='middle'>
<tr>
<td>
<table width='100%' border='0' cellspacing='1' cellpadding='3' class='bgcolor2'>
<tr>
<th><h2>$subject</h2></th>
</tr>
<tr>
<td class='bgcolor1'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<table width='100%' border='0' cellspacing='2' cellpadding='0'>
<tr>
<td width='1' height='1'>
</td>
</tr>
</table>
</td>
</tr>
//споделяне
<tr>
<td>
Сподели:<br />
<a href='http://www.facebook.com/share.php?u=http://сайт/".FUSION_SELF."?article_id=".$info['article_id']."'><img src='".THEME."/icons/facebook.png' style='border: 0; vertical-align: middle;' alt='facebook' title='Сподели във Facebook'></a>
<a href='http://svejo.net/story/submit_by_url?url=http://сайт/".FUSION_SELF."?article_id=".$info['article_id']."'><img src='".THEME."/icons/svejo.png' style='border: 0; vertical-align: middle;' alt='svejo' title='Добави в Свежо'></a>
</td>
</tr>
//споделяне
<tr>
<td class='bgcolor1'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='50%' align='left'>".articleposter($info)."</td>
<td width='50%' align='right'>
".openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id'])."</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n";
//spodelqne
<tr>
<td>
Сподели:<br />
<a href='http://www.facebook.com/share.php?u=http://***/".FUSION_SELF."?readmore=".$info['news_id']."'><img src='".THEME."/icons/facebook.png' style='border: 0; vertical-align: middle;' alt='facebook' title='Сподели във Facebook'></a>
<a href='http://svejo.net/story/submit_by_url?url=http://***/".FUSION_SELF."?readmore=".$info['news_id']."'><img src='".THEME."/icons/svejo.png' style='border: 0; vertical-align: middle;' alt='svejo' title='Добави в Свежо'></a>
</td>
</tr>
//spodelqne
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
<tr>
<td>
Сподели:<br />
<a href='http://www.facebook.com/share.php?u=http://***/".FUSION_SELF."?article_id=".$info['article_id']."'><img src='".THEME."/icons/facebook.png' style='border: 0; vertical-align: middle;' alt='facebook' title='Сподели във Facebook'></a>
<a href='http://svejo.net/story/submit_by_url?url=http://***/".FUSION_SELF."?article_id=".$info['article_id']."'><img src='".THEME."/icons/svejo.png' style='border: 0; vertical-align: middle;' alt='svejo' title='Добави в Свежо'></a>
</td>
</tr>
}