--- ref.inc.php 2005-12-30 12:00:28.000000000 +0900 +++ ref.inc.php 2005-12-30 12:11:10.000000000 +0900 @@ -24,6 +24,9 @@ // Text wrapping define('PLUGIN_REF_WRAP_TABLE', FALSE); // TRUE, FALSE +// サムネール画像への参照をデフォルトで有効にするか無効にするか +define('PLUGIN_REF_THUMB', FALSE); // TRUE, FALSE + // URL指定時に画像サイズを取得するか define('PLUGIN_REF_URL_GET_IMAGE_SIZE', FALSE); // FALSE, TRUE @@ -122,6 +125,7 @@ 'nolink' => FALSE, // 元ファイルへのリンクを張らない 'noimg' => FALSE, // 画像を展開しない 'zoom' => FALSE, // 縦横比を保持する + 'thumb' => FALSE, // サムネイルを使う 'nothumb'=> FALSE, // サムネイルを使わない '_size' => FALSE, // サイズ指定あり '_w' => 0, // 幅 @@ -269,7 +273,7 @@ // URI for in-line image output if (! PLUGIN_REF_DIRECT_ACCESS) { - if ($params['nothumb']) { + if ($params['nothumb'] || (! PLUGIN_REF_THUMB && ! $params['thumb'])) { // With ref plugin (faster than attach) $url = $script . '?plugin=ref' . '&page=' . rawurlencode($page) . '&src=' . rawurlencode($name); // Show its filename at the last @@ -343,7 +347,7 @@ } if ($width && $height) $info = "width=\"$width\" height=\"$height\" "; - if (! $params['nothumb'] && ! is_url($name)) { + if (($params['thumb'] || (! $params['nothumb'] && PLUGIN_REF_THUMB)) && ! is_url($name)) { if ($width) { $url .= '&width=' . $width; }