simpleadmingallerytext.phtml 1.28 KB
<?php
$params = $this->getRequest()->getParams();
//D::ulli('Test sg.phtml',1);		
?>





<?php $NcTextsForCustomer = Mage::helper('anc_text/ncmodel')->getNcTextsForAlbum($params['id']); ?>

<ul class="gallery AncGalleryTexts">
	<?php if ($params['id'] > 0): ?>
		<?php foreach ($NcTextsForCustomer as $nctext): ?>
			<?php $url= Mage::helper("adminhtml")->getUrl("text/adminhtml_text/edit/",array('id'=>$nctext['entity_id'])); ?>
			<?php $NcTextPath = Mage::helper('anc_text/nctext')->getNcTextPath($nctext['entity_id'], 'relative', 'original'); ?>
			<?php $nctext_title = Mage::helper('anc_text/nctext')->getNcTextMetaDataAsHtml($nctext['entity_id']); ?>
			<a data-site="<?php echo $this->getUrl('anctext/customer/showNcTextForm', array('id' => $nctext['entity_id'])) ?>" class="anctext-showNcTextForm" rel="prettyPhoto[pp_gal2]" href="<?php echo $url ?>" title="<?php echo $nctext_title; ?>">
				<!--<img height="50" src="<?php // echo DS.$NcTextPath  ?>" class="anc-text-draggable" id="<?php // echo $nctext['entity_id']  ?>" />-->
				<!--<div title="<?php // echo $nctext_title; ?>"><?php //  echo $nctext['name'].' '; ?></div>-->
				<span title="<?php echo $nctext_title; ?>"><?php echo $nctext['name'] . ' '; ?>  </span>

			</a>
			<span> &nbsp;</span>
		<?php endforeach; ?>
	<?php endif; ?>
</ul>