1
0

Added BBCode support.

Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
This commit is contained in:
rWatcher 2009-07-09 06:08:39 +08:00 committed by Tim Almdal
parent 130ba28b95
commit 4ea305bb1e
2 changed files with 88 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<table class="gMetadata">
<tbody>
<tr>
<th colspan="2"><?= t("Link To This Page:") ?></th>
<th colspan="2"><?= t("HTML Links:") ?></th>
</tr>
<tr>
@ -16,3 +16,21 @@
</tr>
</tbody>
</table>
<table class="gMetadata">
<tbody>
<tr>
<th colspan="2"><?= t("BBCode Links:") ?></th>
</tr>
<tr>
<th><?= t("Text:") ?></th>
<td><textarea rows="2" cols="6" height="5" readonly>[url=<?= url::abs_site("{$item->type}s/{$item->id}") ?>]Click Here[/url]</textarea></td>
</tr>
<tr>
<th><?= t("Thumbnail:") ?></th>
<td><textarea rows="2" cols="6" height="5" readonly>[url=<?= url::abs_site("{$item->type}s/{$item->id}") ?>][img]<?= $item->thumb_url(true) ?>[/img][/url]</textarea></td>
</tr>
</tbody>
</table>

View File

@ -1,4 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<h3 align="center"><?= t("HTML Links")?></h3>
<table class="gMetadata">
<tbody>
<tr>
@ -34,12 +36,12 @@
<th><?= t("Thumbnail:") ?></th>
<td><input type="text" value="<a href=&quot;<?= $item->file_url(true) ?>&quot;><img src=&quot;<?= $item->thumb_url(true) ?>&quot;></a>" readonly></td>
</tr>
<? } ?>
<tr>
<th><?= t("Resized:") ?></th>
<td><input type="text" value="<a href=&quot;<?= $item->file_url(true) ?>&quot;><img src=&quot;<?= $item->resize_url(true) ?>&quot;></a>" readonly></td>
</tr>
<? } ?>
<tr>
<th colspan="2"><br/><?= t("Link To Resized Image:") ?></th>
@ -62,3 +64,69 @@
</tbody>
</table>
<h3 align="center"><?= t("BBCode Links")?></h3>
<table class="gMetadata">
<tbody>
<tr>
<th colspan="2"><?= t("Link To This Page:") ?></th>
</tr>
<tr>
<th><?= t("Text:") ?></th>
<td><input type="text" value="[url=<?= url::abs_site("{$item->type}s/{$item->id}") ?>]Click Here[/url]" readonly></td>
</tr>
<tr>
<th><?= t("Thumbnail:") ?></th>
<td><input type="text" value="[url=<?= url::abs_site("{$item->type}s/{$item->id}") ?>][img]<?= $item->thumb_url(true) ?>[/img][/url]" readonly></td>
</tr>
<tr>
<th><?= t("Resized:") ?></th>
<td><input type="text" value="[url=<?= url::abs_site("{$item->type}s/{$item->id}") ?>][img]<?= $item->resize_url(true) ?>[/img][/url]" readonly></td>
</tr>
<? if (access::can("view_full", $item)) { ?>
<tr>
<th colspan="2"><br/><?= t("Link To Fullsize Image:") ?></th>
</tr>
<tr>
<th><?= t("Text:") ?></th>
<td><input type="text" value="[url=<?= $item->file_url(true) ?>]Click Here[/url]" readonly></td>
</tr>
<tr>
<th><?= t("Thumbnail:") ?></th>
<td><input type="text" value="[url=<?= $item->file_url(true) ?>][img]<?= $item->thumb_url(true) ?>[/img][/url]" readonly></td>
</tr>
<tr>
<th><?= t("Resized:") ?></th>
<td><input type="text" value="[url=<?= $item->file_url(true) ?>][img]<?= $item->resize_url(true) ?>[/img][/url]" readonly></td>
</tr>
<? } ?>
<tr>
<th colspan="2"><br/><?= t("Link To Resized Image:") ?></th>
</tr>
<tr>
<th><?= t("Text:") ?></th>
<td><input type="text" value="[url=<?= $item->resize_url(true) ?>]Click Here[/url]" readonly></td>
</tr>
<tr>
<th><?= t("Thumbnail:") ?></th>
<td><input type="text" value="[url=<?= $item->resize_url(true) ?>][img]<?= $item->thumb_url(true) ?>[/img][/url]" readonly></td>
</tr>
<tr>
<th><?= t("Image:") ?></th>
<td><input type="text" value="[img]<?= $item->resize_url(true) ?>[/img]" readonly></td>
</tr>
</tbody>
</table>