OSDN Git Service

Indexのbox表示レイアウトなど変更
[trpgtools-onweb/cake-frame.git] / app / plugins / links / views / elements / link_view.ctp
index f165c2d..477703c 100644 (file)
  * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
  * @link     http://trpgtools-onweb.sourceforge.jp/
  */
+
+if (!isset($length)) {
+       $length = 76;
+}
+
 ?>
 <div class="SimpleBox" id="Link_index">
-<div class="innerBox">
+<div class="innerBox smallInnerBox">
 <div class="box full">
 
 <div class="boxHeader">
@@ -29,7 +34,9 @@ $url = array(
 
 
 if (!empty($link['Link']['title'])) {
-       $title = $link['Link']['title'];
+       $title = $this->Text->truncate($link['Link']['title'], $length, array(
+               'html' => true,
+       ));
 } else {
        $title = __('No Title', true);
 }