first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @var OnlineFiles $online_files
|
||||
*/
|
||||
|
||||
if ($type == "list")
|
||||
{
|
||||
echo st_link_to($online_files->getFilename(), '@appOnlineCodesBackend?action=download&id=' . $online_files->getId(), array(
|
||||
'target' => '_blank'
|
||||
));
|
||||
}
|
||||
else
|
||||
{
|
||||
echo input_file_tag('online_files[file]');
|
||||
if ($online_files->getFilename())
|
||||
{
|
||||
$link = st_link_to(__('Pobierz') . ' ' . $online_files->getFilename(), '@appOnlineCodesBackend?action=download&id=' . $online_files->getId(), array(
|
||||
'target' => '_blank'
|
||||
));
|
||||
|
||||
echo content_tag('p', $link, array('style' => 'margin-top: 10px'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo stPrice::round($online_files->getFilesize() / (1024 * 1024), 1) ?> MB
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
echo st_get_partial('stProduct/header', array('related_object' => $related_object, 'title' => $title, 'forward_parameters' => $forward_parameters));
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
echo st_get_partial('stProduct/edit_menu', array('related_object' => $related_object, 'forward_parameters' => $forward_parameters));
|
||||
Reference in New Issue
Block a user