OSDN Git Service

「wikiメイン」ウィジェット更新。
authornaoki hirata <naoki@magic3.org>
Tue, 1 Sep 2015 01:18:05 +0000 (10:18 +0900)
committernaoki hirata <naoki@magic3.org>
Tue, 1 Sep 2015 01:18:05 +0000 (10:18 +0900)
widgets/wiki_main/include/container/wiki_mainWidgetContainer.php

index 9d36c3d..8743fc9 100644 (file)
@@ -525,16 +525,15 @@ class wiki_mainWidgetContainer extends BaseWidgetContainer
                if (! isset($image[$key])) { $button = 'IMAGE NOT FOUND'; return $button; }
 
                // テンプレートタイプに合わせて出力を変更
+               // Lightbox回避用のクラス付加
                $templateType = $gEnvManager->getCurrentTemplateType();
                if ($templateType == M3_TEMPLATE_BOOTSTRAP_30){         // Bootstrap型テンプレートの場合
                        $button = '<a href="' . $link[$key] . '">' .
-                               '<img src="' . IMAGE_DIR . $image[$key] . '" width="' . $width . '" height="' . $height . '" ' .
-                                       'alt="' . $lang[$key] . '" title="' . $lang[$key] . '" rel="tooltip" data-toggle="tooltip" />' .
+                               '<img src="' . IMAGE_DIR . $image[$key] . '" class="no-lightbox" width="' . $width . '" height="' . $height . '" alt="' . $lang[$key] . '" title="' . $lang[$key] . '" rel="tooltip" data-toggle="tooltip" />' .
                                '</a>';
                } else {
                        $button = '<a href="' . $link[$key] . '">' .
-                               '<img src="' . IMAGE_DIR . $image[$key] . '" width="' . $width . '" height="' . $height . '" ' .
-                                       'alt="' . $lang[$key] . '" title="' . $lang[$key] . '" />' .
+                               '<img src="' . IMAGE_DIR . $image[$key] . '" class="no-lightbox" width="' . $width . '" height="' . $height . '" alt="' . $lang[$key] . '" title="' . $lang[$key] . '" />' .
                                '</a>';
                }
                return $button;