* @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">
<h3>
<?php
-$key = array_search($name, $model_type);
-if ($key !== false) {
- echo $linkSelect->get_i18n_type($key, $type);
+if (isset($box_title)) {
+ echo $box_title;
+} else {
+ $key = array_search($name, $model_type);
+ if ($key !== false) {
+ echo $linkSelect->get_i18n_type($key, $type);
+ }
}
echo $this->Html->tag('span',
);
?></h3>
+<?php if ((isset($showDescription) && !empty($showDescription)) && (isset($type[$key]['description']) && !empty($type[$key]['description']))): ?>
+<h4><?php echo $type[$key]['description'] ?></h4>
+<?php endif ?>
</div>
<div class="boxBody">
<?php if (!empty($links[$name])): ?>
);
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);
}
?>
-<td class=banner">
+<td class="banner">
<?php
if (!empty($link['Attachment'])) {
echo $this->element('link_banner', array(
));
}
?></td>
-<td class="linkTitle">
-<div class="linkUrl"><?php echo $link['Link']['url']; ?></div>
-<div class="infoBody">
-<?php
+<td class="linkInfo">
+<div class="linkTitle"><?php
//echo $link['Link']['not_found'];
echo $this->Html->link($title, $url, array(
- 'class' => 'linkBanner',
'target' => '_blank',
));
?></div>
-<div class="infoModified">
-<span><?php echo $this->Html->link($link['User']['name'], array('controller' => 'users', 'action' => 'view', $link['User']['id'])); ?></span>
-(<span><?php echo $time->niceshort($link['Link']['modified']); ?></span>)
-</div>
+<div class="linkUrl linkUrlSmall"><?php echo $link['Link']['url']; ?></div>
</td>
</tr>
<?php endforeach; ?>