PageRenderTime 25ms CodeModel.GetById 17ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/halogy/application/modules/images/views/admin/browser.php

https://bitbucket.org/haloweb/halogy-1.0/
PHP | 69 lines | 57 code | 12 blank | 0 comment | 3 complexity | 465142aff6e3fa9ea42e5f0f48c7ad48 MD5 | raw file
 1<a class="halogycms_close" href="#"><img title="Close" src="<?php echo $this->config->item('staticPath'); ?>/images/btn_close.png"/></a>
 2<a href="/admin/images/" class="halogycms_button halogycms_confirm" target="_top">Manage Images</a>
 3<div style="clear:both;"></div>
 4
 5<div id="halogycms_scroll">
 6
 7<?php if (@$folders): ?>
 8
 9	<?php foreach ($folders as $folder): ?>
10		<?php if ($folder['images']): ?>	
11			<ul>
12				<li class="halogycms_title"><a href="#" class="halogycms_togglefolder"><strong><?php echo $folder['folderName']; ?></strong></a></li>
13			</ul>
14		
15			<ul>
16				<?php foreach ($folder['images'] as $image):
17					$imageData = $this->uploads->load_image($image['imageRef']);
18					$imagePath = $imageData['src'];
19					$imageData = $this->uploads->load_image($image['imageRef'], true);				
20					$imageThumbPath = $imageData['src'];
21				?>
22					<li class="fixed">
23						<div class="halogycms_thumb">
24							<a href="#" class="halogycms_insertimage" title="<?php echo $image['imageRef']; ?>"><?php echo ($thumb = display_image($imageThumbPath, $image['imageName'], 50)) ? $thumb : display_image($imagePath, $image['imageName'], 50); ?></a>
25						</div>
26						<div class="halogycms_description">
27							<a href="#" class="halogycms_insertimage" title="<?php echo $image['imageRef']; ?>"><?php echo $image['imageRef']; ?></a>
28						</div>	
29					</li>
30				<?php endforeach; ?>
31					
32			</ul>
33		<?php endif; ?>
34	<?php endforeach; ?>
35
36	<ul>
37		<li class="halogycms_title"><a href="#" class="halogycms_togglefolder"><strong>Other Images</strong></a></li>
38	</ul>
39
40<?php endif; ?>
41
42<?php if ($images): ?>
43
44	<ul>
45		<?php foreach ($images as $image):
46			$imageData = $this->uploads->load_image($image['imageRef']);
47			$imagePath = $imageData['src'];
48			$imageData = $this->uploads->load_image($image['imageRef'], true);				
49			$imageThumbPath = $imageData['src'];
50		?>
51			<li class="fixed">
52				<div class="halogycms_thumb">
53					<a href="#" class="halogycms_insertimage" title="<?php echo $image['imageRef']; ?>"><?php echo ($thumb = display_image($imageThumbPath, $image['imageName'], 50)) ? $thumb : display_image($imagePath, $image['imageName'], 50); ?></a>
54				</div>
55				<div class="halogycms_description">
56					<a href="#" class="halogycms_insertimage" title="<?php echo $image['imageRef']; ?>"><?php echo $image['imageRef']; ?></a>
57				</div>	
58			</li>
59		<?php endforeach; ?>
60			
61	</ul>
62	
63<?php else: ?>
64
65	<p class="clear">You haven't uploaded any images yet.</p>
66
67<?php endif; ?>
68
69</div>