mirror of
https://github.com/Oreolek/kangana.git
synced 2024-06-16 23:11:07 +03:00
subscription code
This commit is contained in:
parent
d9abab48ff
commit
f3879c6f81
|
@ -28,6 +28,14 @@ class View_Letter_Index extends View_Index {
|
|||
return $output;
|
||||
}
|
||||
|
||||
public function iframe_code()
|
||||
{
|
||||
return array(
|
||||
'text' => __('Subscription code'),
|
||||
'code' => '<iframe src="'.Route::url('default', array('controller' => 'Course', 'action' => 'subscribe', 'id' => $this->course_id), TRUE).'" width="100%" height="400"></iframe>',
|
||||
);
|
||||
}
|
||||
|
||||
public function link_new()
|
||||
{
|
||||
return HTML::anchor(Route::url('default', array('controller' => 'Letter', 'action' => 'create', 'id' => $this->course_id)), __('Add'), array('class' => 'link_new'));
|
||||
|
|
|
@ -64,5 +64,6 @@ return array(
|
|||
'The instant has been sent.' => 'Мгновенное было выслано.',
|
||||
'First letter' => 'Первое письмо',
|
||||
'Subject' => 'Тема',
|
||||
'Message body' => 'Тело письма'
|
||||
'Message body' => 'Тело письма',
|
||||
'Subscription code' => 'Код подписки'
|
||||
);
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{{#show_create}}
|
||||
{{{link_new}}}
|
||||
{{/show_create}}
|
||||
{{#iframe_code}}
|
||||
<p>{{text}}:<code>{{code}}</code></p>
|
||||
{{/iframe_code}}
|
||||
<div class="hyphenate">
|
||||
{{{content}}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue