rhymix/addons/photoswipe/photoswipe.addon.php
conory cfa151b8c2 Context 변수 html_footer 충돌 문제 수정
관리자 페이지에서는 photoswipe 꺼두기
시스템 설정의 redirect_url 조정
2016-05-04 20:18:46 +09:00

28 lines
1.1 KiB
PHP

<?php
/* Copyright (C) misol and Rhymix contributors */
if(!defined('RX_VERSION'))
{
exit();
}
/**
* @file rx_photoswipe.addon.php
* @author MinSoo Kim <misol.kr@gmail.com>
* @brief Add-on to highlight an activated image.
*/
if($called_position == 'after_module_proc' && Context::getResponseMethod() == "HTML" && Context::get('module') != 'admin' && !isCrawler())
{
Context::loadFile(array('./addons/photoswipe/PhotoSwipe/photoswipe.css', '', '', null), true);
Context::loadFile(array('./addons/photoswipe/PhotoSwipe/default-skin/default-skin.css', '', '', null), true);
Context::loadFile(array('./addons/photoswipe/PhotoSwipe/photoswipe.js', 'body', '', null), true);
Context::loadFile(array('./addons/photoswipe/PhotoSwipe/photoswipe-ui-default.js', 'body', '', null), true);
Context::loadFile(array('./addons/photoswipe/rx_photoswipe.js', 'body', '', null), true);
$footer = FileHandler::readFile('./addons/photoswipe/PhotoSwipe/pswp.html');
Context::addHtmlFooter($footer);
}
/* End of file photoswipe.addon.php */
/* Location: ./addons/photoswipe/photoswipe.addon.php */