This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Beggining of your file */ | |
use Application\View\Helper\TextShortener; | |
public function getViewHelperConfig() | |
{ | |
return array( | |
'factories' => array( | |
'TextShortener' => function($sm) { | |
$locator = $sm->getServiceLocator(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $style = 'width: '.$this->getData('width').'px; height:'.$this->getData('height').'px; margin:-'.ceil(($this->getData('height')+4)/2).'px 0 0 -'.ceil(($this->getData('width')+4)/2) .'px;'; ?> | |
<div class="lightbox" id="lightbox" style="<?php echo $style ?> <?php echo ($this->getData('display')=='show') ? ' display:block;' : ' display:none;' ?>" ?> | |
<a href="<?php echo $this->getData('bannerUrl'); ?>"> | |
<img src="<?php echo $this->getData('imgUrl'); ?>"> | |
</a> | |
<div class="lightbox-close" onclick="closeLightBox()">X</div> | |
</div> | |
<div class="lightbox-shadow" id="lightboxShadow" onclick="closeLightBox()" style="<?php echo ($this->getData('display')=='show') ? ' display:block;' : ' display:none;' ?>"></div> | |
<script type="text/javascript"> | |
function closeLightBox() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.lightbox-shadow | |
{ | |
position:fixed; | |
z-index: 10; | |
top:0; | |
left:0; | |
bottom:0; | |
right:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { | |
ActivatedRouteSnapshot, | |
CanActivate, | |
Router, | |
RouterStateSnapshot, | |
} from '@angular/router'; | |
import { Observable } from 'rxjs'; | |
import { map } from 'rxjs/operators'; |