mirror of
https://github.com/Oreolek/kangana.git
synced 2024-07-16 21:34:28 +03:00
30 lines
769 B
PHP
30 lines
769 B
PHP
<?php defined('SYSPATH') or die('No direct script access.');
|
|
|
|
/**
|
|
* E-mail letter view controller
|
|
**/
|
|
class View_Letter_View extends View {
|
|
public $_view = NULL;
|
|
public $_layout = 'email';
|
|
public $token = '';
|
|
public $subject = '';
|
|
public $id = NULL;
|
|
public $scripts = array();
|
|
|
|
public function stylesheet()
|
|
{
|
|
$url = Less::compile(APPPATH.'assets/stylesheets/main', 'screen', FALSE);
|
|
return file_get_contents(DOCROOT.$url[0]);
|
|
}
|
|
|
|
public function view_link()
|
|
{
|
|
return HTML::anchor(Route::url('default', array('controller' => 'Letter', 'action' => 'view', 'id' => $this->id), TRUE), _('Problems viewing this email? Click here.'));
|
|
}
|
|
|
|
public function get_content()
|
|
{
|
|
return Kostache::factory()->render($this->content);
|
|
}
|
|
}
|