File size: 4.29Kb
<?php
header('Cache-Control: max-age=259200');
$property = array();
preg_match_all('/<img[^>]+>/i', get_post($res_post['id'], 'content'), $property);
echo '<?xml version="1.0" encoding="utf-8"?>' .
"\n" . '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">' .
"\n" . '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="id">' .
"\n" . '<head>' .
"\n" . '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>' .
"\n" . '<meta http-equiv="X-UA-Compatible" content="IE=edge"/>' .
"\n" . '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes"/>' .
"\n" . '<meta name="HandheldFriendly" content="true"/>' .
"\n" . '<meta name="MobileOptimized" content="width"/>' .
"\n" . '<meta content="yes" name="apple-mobile-web-app-capable"/>' .
(get_post($res_post['id'], 'description') ? "\n" . '<meta name="description" content="' . strip_tags(get_post($res_post['id'], 'description')) . '" />' : (get_setting('metadescription') ? "\n" . '<meta name="description" content="' . get_setting('metadescription') . '" />' : '')) .
(get_setting('metakeyword') ? "\n" . '<meta name="keywords" content="' . get_setting('metakeyword') . '" />' : '') .
"\n" . '<meta name="generator" content="Amefcmx" />';
if (strpos($ua, "facebookexternalhit/") !== false || strpos($ua, "Facebot") !== false
) echo (!empty($property[0][0]) ? "\n" . '<meta property="og:image" content="' . get_img($res_post['content']) . '"/>' : "\n" . '<meta property="og:image" content="' . get_setting('blogurl') . '/property.png"/>');
echo "\n" . '<link rel="alternate" type="application/rss+xml" title="RSS News - ' . get_setting('blogname') . '" href="' . get_setting('blogurl') . '/rss.xml" />' .
"\n" . '<link rel="stylesheet" href="' . get_setting('blogurl') . '/themes/' . get_setting('theme') . '/theme.css" type="text/css" />' .
"\n" . '<link rel="shortcut icon" href="' . get_setting('blogurl') . '/favicon.ico" type="image/x-icon" />' .
"\n" . '<link rel="canonical" href="' . get_setting('blogurl') . $_SERVER['REQUEST_URI'] . '" />' .
"\n" . '<title>' . ($title ? $title : get_setting('blogname')) . '</title>' .
"\n" . '</head>' .
"\n" . '<body>' .
"\n" . '<div class="header"><a href="' . get_setting('blogurl') . '"><h2>' . get_setting('blogname') . '</h2></a><br />' .
get_setting('blogdescription');
echo '<table class="topnav"><tr><td class="' . (isset ($home) ? 'on' : 'off') . '"><a title="Home" href="' . get_setting('blogurl') . '"><img src="' . get_setting('blogurl') . '/images/home.png" alt="Home"/></a></td>';
echo '<td class="' . (strpos($_SERVER['PHP_SELF'], 'category/') ? 'on' : 'off') . '"><a title="Kategori" href="' . get_setting('blogurl') . '/category"><img src="' . get_setting('blogurl') . '/images/category.png" alt="Category"/></a></td>';
if (!get_setting('norecentcomment')) {
echo '<td class="' . (strpos($_SERVER['PHP_SELF'], 'comment/') ? 'on' : 'off') . '"><a title="Komentar terbaru" href="' . get_setting('blogurl') . '/comment"><img src="' . get_setting('blogurl') . '/images/comments.png" alt="Komentar terbaru"/></a></td>';
}
if (!get_setting('noprofile')) {
echo '<td class="' . (strpos($_SERVER['PHP_SELF'], 'about/') ? 'on' : 'off') . '"><a title="Tentang penulis" href="' . get_setting('blogurl') . '/about"><img src="' . get_setting('blogurl') . '/images/user.png" alt="Tentang penulis"/></a></td>';
}
echo '<td class="off"><a title="Rss Feed" href="' . get_setting('blogurl') . '/rss.xml"><img src="' . get_setting('blogurl') . '/images/feed.png" alt="Feed"/></a></td>';
echo '</tr></table>';
echo '</div>' .
'<div class="search"><form action="' . get_setting('blogurl') . '" method="get">' .
'<table style="width:100%;">' .
'<tr><td valign="middle"><input type="text" value="" name="s" style="width:100%;"/></td>' .
'<td style="width:30px;"><input type="submit" value="Cari"/></td></tr>' .
'</table></form></div><div class="container">';
if ($isadmin && !isset($_GET['readcomment'])) {
$ncek = mysql_num_rows(mysql_query("select * from comment where isread='0'"));
if ($ncek)
show_notif('<a href ="' . get_setting('blogurl') . '/admin-panel?readcomment">Anda memiliki ' . $ncek . ' komentar baru.</a>');
}
?>