mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
#312 oEmbed API를 활용해 글 본문의 URL을 embed 코드로 변환하는 애드온 추가.
- jQuery oEmbed API Wrapper : https://github.com/starfishmod/jquery-oembed-all
This commit is contained in:
parent
9c76b509d9
commit
191d77480f
5 changed files with 1437 additions and 0 deletions
15
addons/oembed/oembed.addon.php
Normal file
15
addons/oembed/oembed.addon.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/* Copyright (C) NAVER <http://www.navercorp.com> */
|
||||
|
||||
if(!defined('__XE__'))
|
||||
{
|
||||
exit();
|
||||
}
|
||||
|
||||
if($called_position == 'after_module_proc' && Context::getResponseMethod() == 'HTML')
|
||||
{
|
||||
Context::loadFile(array('./addons/oembed/jquery.oembed.js', 'body', '', null), true);
|
||||
Context::loadFile(array('./addons/oembed/oembed.js', 'body', '', null), true);
|
||||
}
|
||||
|
||||
/* End of file */
|
||||
Loading…
Add table
Add a link
Reference in a new issue