위젯, 애드온, 레이아웃 xml에 내용 없을때, 가능하면 자연스럽게 보이도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5259 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-01-07 02:51:31 +00:00
parent 505fc9f625
commit b46dc7c52b
6 changed files with 26 additions and 20 deletions

View file

@ -3,28 +3,30 @@
</div>
<div id="popBody">
<table cellspacing="0" class="adminTable">
<tr>
<th scope="row"><div>{$lang->title}</div></th>
<td>{$addon_info->title} ver. {$addon_info->version}</td>
</tr>
<!--@if($addon_info->author)-->
<tr>
<th scope="row"><div>{$lang->author}</div></th>
<td>
<!--@foreach($addon_info->author as $author)-->
{$author->name} (<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a>, <a href="mailto:{$author->email_address}">{$author->email_address}</a>)<br />
{$author->name} <!--@if($author->homepage || $author->email_address)-->(<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a><!--@end--><!--@if($author->homepage && $author->email_address)-->, <!--@end--><!--@if($author->email_address)--><a href="mailto:{$author->email_address}">{$author->email_address}</a><!--@end-->)<!--@end--><br />
<!--@endforeach-->
</td>
</tr>
</tr><!--@end-->
<!--@if($addon_info->homepage)-->
<tr>
<th scope="row"><div>{$lang->homepage}</div></th>
<td><a href="{$addon_info->homepage}" onclick="window.open(this.href);return false;">{$addon_info->homepage}</a></td>
</tr>
</tr><!--@end-->
<tr>
<th scope="row"><div>{$lang->regdate}</div></th>
<td>{zdate($addon_info->date, 'Y-m-d')}</td>
</tr>
<!--@if($addon_info->license || $addon_info->license_link)-->
<tr>
<th scope="row"><div>{$lang->addon_license}</div></th>
<td>
@ -33,11 +35,12 @@
<p><a href="{$addon_info->license_link}" onclick="window.close(); return false;">{$addon_info->license_link}</a></p>
<!--@end-->
</td>
</tr>
</tr><!--@end-->
<!--@if($addon_info->description)-->
<tr>
<th scope="row"><div>{$lang->description}</div></th>
<td>{nl2br(trim($addon_info->description))}</td>
</tr>
</tr><!--@end-->
</table>
</div>

View file

@ -28,7 +28,7 @@
<td class="number center">{$val->version}</td>
<td class="center nowrap">
<!--@foreach($val->author as $author)-->
<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->name}</a>
<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;"><!--@end-->{$author->name}<!--@if($author->homepage)--></a><!--@end-->
<!--@endforeach-->
</td>
<td class="number center">{$val->menu_count}</td>

View file

@ -12,18 +12,20 @@
<th scope="row"><div>{$lang->author}</div></th>
<td>
<!--@foreach($layout_info->author as $author)-->
{$author->name} (<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a>, <a href="mailto:{$author->email_address}">{$author->email_address}</a>)<br />
{$author->name} <!--@if($author->homepage || $author->email_address)-->(<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a><!--@end--><!--@if($author->homepage && $author->email_address)-->, <!--@end--><!--@if($author->email_address)--><a href="mailto:{$author->email_address}">{$author->email_address}</a><!--@end-->)<!--@end--><br />
<!--@endforeach-->
</td>
</tr>
<!--@if($layout_info->homepage)-->
<tr class="row2">
<th scope="row"><div>{$lang->homepage}</div></th>
<td><a href="{$layout_info->author->homepage}" onclick="window.open(this.href);return false;">{$layout_info->homepage}</a>&nbsp;</td>
</tr>
<td><a href="{$layout_info->author->homepage}" onclick="window.open(this.href);return false;">{$layout_info->homepage}</a></td>
</tr><!--@end-->
<tr>
<th scope="row"><div>{$lang->regdate}</div></th>
<td>{zdate($layout_info->date, 'Y-m-d')}</td>
</tr>
<!--@if($layout_info->license || $layout_info->license_link)-->
<tr class="row2">
<th scope="row"><div>{$lang->layout_license}</div></th>
<td>
@ -33,11 +35,12 @@
<!--@end-->
&nbsp;
</td>
</tr>
</tr><!--@end-->
<!--@if($layout_info->description)-->
<tr>
<th scope="row"><div>{$lang->description}</div></th>
<td>{nl2br(trim($layout_info->description))}</td>
</tr>
</tr><!--@end-->
</table>
</div>

View file

@ -1,4 +1,4 @@
<script type="text/javascript">
<script type="text/javascript">//<![CDATA[
alert("{$lang->success_updated}");
top.location.href = top.location.href;
</script>
//]]></script>

View file

@ -27,7 +27,7 @@
<td class="number center">{$val->version}</td>
<td class="nowrap">
<!--@foreach($val->author as $author)-->
<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->name}</a>
<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;"><!--@end-->{$author->name}<!--@if($author->homepage)--></a><!--@end-->
<!--@endforeach-->
</td>
<td class="date nowrap center">{zdate($val->date, 'Y-m-d')}</td>
@ -36,7 +36,7 @@
</tr>
<tr>
<td colspan="5" class="left">
{nl2br(trim($val->description))}
{nl2br(trim($val->description))}&nbsp;
</td>
</tr>
<!--@end-->

View file

@ -12,7 +12,7 @@
<th scope="row"><div>{$lang->author}</div></th>
<td>
<!--@foreach($widget_info->author as $author)-->
{$author->name} (<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a>, <a href="mailto:{$author->email_address}">{$author->email_address}</a>)<br />
{$author->name} <!--@if($author->homepage || $author->email_address)-->(<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a><!--@end--><!--@if($author->homepage && $author->email_address)-->, <!--@end--><!--@if($author->email_address)--><a href="mailto:{$author->email_address}">{$author->email_address}</a><!--@end-->)<!--@end--><br />
<!--@endforeach-->
</td>
</tr>
@ -35,12 +35,12 @@
<p><a href="{$widget_info->license_link}" onclick="window.close(); return false;">{$widget_info->license_link}</a></p>
<!--@end-->
</td>
</tr>
<!--@end-->
</tr><!--@end-->
<!--@if($widget_info->description)-->
<tr>
<th scope="row"><div>{$lang->description}</div></th>
<td>{nl2br(trim($widget_info->description))}</td>
</tr>
</tr><!--@end-->
</table>
</div>