mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@439 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
87471eb693
commit
6c66636dc9
3 changed files with 16 additions and 3 deletions
|
|
@ -286,6 +286,12 @@
|
||||||
$plugin = $vars->plugin;
|
$plugin = $vars->plugin;
|
||||||
unset($vars->plugin);
|
unset($vars->plugin);
|
||||||
|
|
||||||
|
// className, style attribute를 구해 놓음
|
||||||
|
$className = $vars->class;
|
||||||
|
$style = $vars->style;
|
||||||
|
unset($vars->class);
|
||||||
|
unset($vars->style);
|
||||||
|
|
||||||
// 플러그인의 변수들을 세팅
|
// 플러그인의 변수들을 세팅
|
||||||
$vars_count = get_object_vars($vars);
|
$vars_count = get_object_vars($vars);
|
||||||
if($vars_count) {
|
if($vars_count) {
|
||||||
|
|
@ -300,7 +306,7 @@
|
||||||
if(!$args) $args = null;
|
if(!$args) $args = null;
|
||||||
|
|
||||||
// 플러그인 실행코드를 삽입
|
// 플러그인 실행코드를 삽입
|
||||||
return sprintf('<?php print PluginHandler::execute("%s", %s); ?>', $plugin, $args);
|
return sprintf('<div %s %s><?php print PluginHandler::execute("%s", %s); ?></div>', $className?'class="'.$className.'" ':'', $style?'style="'.$style.'" ':'',$plugin, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,6 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div plugin="newest_document" title="제목" order_target="list_order" order_type="desc" list_count="20" ></div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -72,6 +70,8 @@
|
||||||
<!--@end--><!--@end-->
|
<!--@end--><!--@end-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div plugin="newest_document" title="제목" order_target="list_order" order_type="desc" list_count="20" class="a" style="border:1px solid #AAAAAA;"></div>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
{$content}
|
{$content}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
|
|
||||||
class newest_document extends PluginHandler {
|
class newest_document extends PluginHandler {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 플러그인의 실행 부분
|
||||||
|
* ./plugins/플러그인/conf/info.xml에 선언한 extra_vars를 args로 받는다
|
||||||
|
**/
|
||||||
|
function proc($args) {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue