fix #2142 onclick이 사용된 새 창 열기를 target 속성으로 변경

- 통합검색 모듈 misol_town 스킨도 마찬가지로 수정
This commit is contained in:
bnu 2017-09-08 15:21:14 +09:00 committed by Kijin Sung
parent 1bf96e646e
commit 3ee3d63cb7
32 changed files with 48 additions and 49 deletions

View file

@ -101,7 +101,7 @@ class image_link extends EditorHandler
if($link_url)
{
if($open_window =='Y') $code = sprintf('<a href="%s" onclick="window.open(this.href);return false;">%s</a>', $link_url, $code);
if($open_window =='Y') $code = sprintf('<a href="%s" target="_blank" rel="noopener">%s</a>', $link_url, $code);
else $code = sprintf('<a href="%s" >%s</a>', $link_url, $code);
}
return $code;

View file

@ -22,7 +22,7 @@
<label class="x_control-label">{$lang->component_author}</label>
<div class="x_controls">
<!--@foreach($component->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} (<a href="{$author->homepage}" target="_blank" rel="noopener">{$author->homepage}</a>, <a href="mailto:{$author->email_address}">{$author->email_address}</a>)<br />
<!--@endforeach-->
</div>
</div>

View file

@ -6,13 +6,13 @@
<h2>{$lang->component_author}</h2>
<ul>
<li loop="$component->author => $author">
{$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-->
{$author->name} <!--@if($author->homepage || $author->email_address)-->(<!--@if($author->homepage)--><a href="{$author->homepage}" target="_blank">{$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-->
</li>
</ul>
</div>
<div cond="$component->homepage">
<h2>{$lang->homepage}</h2>
<p><a href="{$component->homepage}" onclick="window.open(this.href);return false;">{$component->homepage}</a></p>
<p><a href="{$component->homepage}" target="_blank">{$component->homepage}</a></p>
</div>
<div>
<h2>{$lang->component_version}</h2>
@ -26,7 +26,7 @@
<h2>{$lang->component_license}</h2>
<p>
{nl2br(trim($component->license))}
<a href="{$component->license_link}" cond="$component->license_link" onclick="window.open(this.href);return false;">{$component->license_link}</a>
<a href="{$component->license_link}" cond="$component->license_link" target="_blank">{$component->license_link}</a>
</p>
</div>
<div cond="$component->description">