edit file common/theme.php
Jadi seperti ini
PHP Code:
....
....
function theme_page($title, $content) {
$body = theme('logo');
$body .= theme('menu_top');
$body .= $content;
$body .= theme('footer');
if (DEBUG_MODE == 'ON') {
global $dabr_start, $api_time;
$time = microtime(1) - $dabr_start;
$body .= '<p>Processed in '.round($time, 4).' seconds ('.round($api_time / $time * 100).'% waiting for Twitter\'s API)</p>';
}
if ($title == 'Login') {
$title = 'mobile Twitter client';
$meta = '<meta name="description" content="another mobile Twitter client" />';
}
ob_start('ob_gzhandler');
header('Content-Type: text/html; charset=utf-8');
echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>',Mikarai,' / ',$title,'</title>
<base href="',BASE_URL,'" />
'.$meta.theme('css').'
<meta name="viewport" content="width=device-width; initial-scale=1.0;" />
<script type="text/javascript">'.file_get_contents('js/ga.js').'</script>
</head>
<body>', $body, '</body>
</html>';
exit();
}
......
......
......
......
function theme_google_analytics() {
global $GA_ACCOUNT;
if (!$GA_ACCOUNT) return '';
$googleAnalyticsImageUrl = googleAnalyticsGetImageUrl();
return "<img src='{$googleAnalyticsImageUrl}' />";
}
function theme_footer() {
$out = '<div class="menu"><center><a href="followers">Followers</a> | <a href="/friends">Friends</a> | <a href="/lists">Lists</a> | <a href="/trends">Trends</a> | <a href="/search">Search</a> | <a href="/profile">Profile</a> | <a href="/about">About</a> | <a href="/settings">Settings</a><center><center><p><p><b>© Mikarai</b>.</center><b></p></p></div>';
return $out;
}
?>
0 comments:
Post a Comment