Пример #1
0
<?php

echo cms::breadcrumbs(array('Filer' => cms::url('files'), 'Rediger fil' => cms::url('files/edit/' . $file->id), 'Billedredigering' => ''));
?>

<div class="page-header">
	<h1>Rediger billede</h1>
</div>

<div class="row-fluid">
	<div class="span8">
		<p>
			Træk på billedet for at beskære
		</p>
		<input type="hidden" data-orgimg="<?php 
echo url::site('files/' . $file->filename());
?>
" id="imgdata" value="" />
		<div id="image" data-fileid="<?php 
echo $file->id;
?>
">
			<img id="theimg" data-angle="0" src="<?php 
echo url::site('files/' . $file->filename());
?>
" />
		</div>
		<div class="text-right">
			<a href="#" class="btn hide btn-primary" id="crop-btn">Beskær</a>
		</div>
	</div>
Пример #2
0
<?php

echo cms::breadcrumbs(array('Filer' => cms::url('files'), 'Rediger fil' => ''));
?>


<div class="page-header">
	<h1>Rediger fil</h1>
</div>

<div class="row-fluid">
	<form action="<?php 
echo cms::url('files/edit/' . $file->id);
?>
" method="post">
		<div class="span2">	
<?php 
if ($file->is_image()) {
    echo '<a href="' . $file->get() . '" class="fancybox"><img src="' . $file->get(100, 100) . '" /></a>';
    echo '<div class="clearfix"></div>';
    //echo '<a href="'.cms::url('files/imgedit/'.$file->id).'" title="Rediger billede"><i class="icon-wrench"></i></a>';
} else {
    echo '<img src="' . $file->get_icon() . '" />';
}
?>

			<h4>Størrelse</h4>
<?php 
echo $file->size();
if ($file->is_image()) {
    echo '<h4>Dimentioner</h4>';