27 lines
835 B
PHP
27 lines
835 B
PHP
<?php namespace Project\Controllers;
|
||
USE Cookie,URL;
|
||
class Home extends Controller{
|
||
|
||
public function main(){
|
||
Cookie::insert('returnlink', '/');
|
||
|
||
Masterpage::meta
|
||
([
|
||
'name:description' => setting('description'),
|
||
'name:keywords' => setting('keywords')
|
||
]);
|
||
|
||
Masterpage::title('Pisi GNU/Linux - Özgürlük Şimdi Başladı...');
|
||
Masterpage::description(setting('description'));
|
||
Masterpage::keywords(setting('keywords'));
|
||
|
||
define('TITLE','Pisi GNU/Linux - Özgürlük Şimdi Başladı...');
|
||
define('LINK',URL::base());
|
||
define('DESC','Pisi GNU/Linux - Özgürlük Şimdi Başladı...');
|
||
define('IMG','http://pisilinux.og/upload/pisilinux_pisi.png');
|
||
|
||
// Son 3 blog yazısını ana sayfaya aktar
|
||
$allBlogs = contentListAdmin(LANG);
|
||
view::blogList(array_slice((array)$allBlogs, 0, 3));
|
||
}
|
||
} |