customer_galleries.phtml 1.32 KB
<?php 
/**
 * @input $this->getIfGalleryCategory()
 * @input $this->getSelectorIdDropzoneOwn()
 */
?>

<div class="anctext-customer_galleries anc-menu-box">
	<div class="anctext-customer_galleries-header anc-menu-box-header">Texte</div>
	<div id="accordion" class="anc-menu-box-content">
		<?php if($this->getIfGalleryCategory()): ?>
			<h3 class="anctext-gallerie-header anc-menu-box-content-subheader">Vorlagen</h3>
			<div class="anc-menu-box-content-subcontent">
				  <?php echo $this->getLayout()
								  ->getBlockSingleton('anc_text/galleriesmanager')
								  ->setTemplate('anc/text/customer_galleriescategory.phtml')
								  ->setSelectorIdDropzoneCategory()
								  ->toHtml(); ?>	
			</div>
		<?php endif; ?>
		<h3 class="anctext-gallerie-header anc-menu-box-content-subheader">Eigene Texte</h3>
		<div class="anc-menu-box-content-subcontent">
			  <?php echo $this->getLayout()
							  ->getBlockSingleton('anc_text/galleriesmanager')
							  ->setTemplate('anc/text/customer_galleriesown.phtml')
							  ->setSelectorIdDropzoneOwn($this->getSelectorIdDropzoneOwn())
							  ->toHtml(); ?>
		</div>
	</div>
	<script type="text/javascript">
		jQuery(document).ready(function($) {
			Anc_Text_Type.customerGallerysimplePrettyPhoto();
		}); 		
		jQuery(function() {
		  jQuery( "#accordion" ).accordion();
		});		
	</script>
</div>