Don't use the same metadata on every page
This commit is contained in:
parent
69b0eaa8ad
commit
56a94903f5
2 changed files with 20 additions and 11 deletions
|
@ -52,7 +52,8 @@ class FrontController
|
|||
$response,
|
||||
'head.tpl',
|
||||
array(
|
||||
'class'=>'index'
|
||||
'class'=>'index',
|
||||
'description'=>'Easily download videos from Youtube, Dailymotion, Vimeo and other websites.'
|
||||
)
|
||||
);
|
||||
$container->view->render(
|
||||
|
@ -84,7 +85,10 @@ class FrontController
|
|||
$response,
|
||||
'head.tpl',
|
||||
array(
|
||||
'class'=>'extractors'
|
||||
'class'=>'extractors',
|
||||
'title'=>'Supported websites',
|
||||
'description'
|
||||
=>'List of all supported websites from which Alltube Download can extract video or audio files'
|
||||
)
|
||||
);
|
||||
$container->view->render($response, 'header.tpl');
|
||||
|
@ -206,7 +210,9 @@ class FrontController
|
|||
$response,
|
||||
'head.tpl',
|
||||
array(
|
||||
'class'=>'video'
|
||||
'class'=>'video',
|
||||
'title'=>$video->title,
|
||||
'description'=>'Download "'.$video->title.'" from '.$video->extractor_key
|
||||
)
|
||||
);
|
||||
$container->view->render(
|
||||
|
@ -228,7 +234,8 @@ class FrontController
|
|||
$response,
|
||||
'head.tpl',
|
||||
array(
|
||||
'class'=>'video'
|
||||
'class'=>'video',
|
||||
'title'=>'Error'
|
||||
)
|
||||
);
|
||||
$container->view->render(
|
||||
|
@ -239,7 +246,7 @@ class FrontController
|
|||
)
|
||||
);
|
||||
$container->view->render($response, 'footer.tpl');
|
||||
return $response;
|
||||
return $response->withStatus(500);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue