The swipe shall set you free (#461)

* The swipe shall set you free

PhotoSwipe addon is added by misol (MinSoo Kim).

* Rename addon and bug fix.

이름을 더 단순하게 붙이고, 해시 주소를 통해 이미지를 바로 접근할 수 없었던 문제를 수정.

* 아주 작은 코드 수정

그럴거 같진 않지만, 주석이 끝났다고 인식할 수도 있을 것 같은 부분 변경.
This commit is contained in:
MinSoo Kim 2016-04-27 00:36:24 +09:00
parent 81b5230c9c
commit 11c648939b
12 changed files with 5624 additions and 0 deletions

View file

@ -0,0 +1,28 @@
<?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" && !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 */