Added BBCode support.
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
This commit is contained in:
parent
130ba28b95
commit
4ea305bb1e
@ -2,7 +2,7 @@
|
|||||||
<table class="gMetadata">
|
<table class="gMetadata">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2"><?= t("Link To This Page:") ?></th>
|
<th colspan="2"><?= t("HTML Links:") ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
@ -16,3 +16,21 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</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>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||||
|
|
||||||
|
<h3 align="center"><?= t("HTML Links")?></h3>
|
||||||
<table class="gMetadata">
|
<table class="gMetadata">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
@ -34,12 +36,12 @@
|
|||||||
<th><?= t("Thumbnail:") ?></th>
|
<th><?= t("Thumbnail:") ?></th>
|
||||||
<td><input type="text" value="<a href="<?= $item->file_url(true) ?>"><img src="<?= $item->thumb_url(true) ?>"></a>" readonly></td>
|
<td><input type="text" value="<a href="<?= $item->file_url(true) ?>"><img src="<?= $item->thumb_url(true) ?>"></a>" readonly></td>
|
||||||
</tr>
|
</tr>
|
||||||
<? } ?>
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= t("Resized:") ?></th>
|
<th><?= t("Resized:") ?></th>
|
||||||
<td><input type="text" value="<a href="<?= $item->file_url(true) ?>"><img src="<?= $item->resize_url(true) ?>"></a>" readonly></td>
|
<td><input type="text" value="<a href="<?= $item->file_url(true) ?>"><img src="<?= $item->resize_url(true) ?>"></a>" readonly></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<? } ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2"><br/><?= t("Link To Resized Image:") ?></th>
|
<th colspan="2"><br/><?= t("Link To Resized Image:") ?></th>
|
||||||
@ -62,3 +64,69 @@
|
|||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</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>
|
||||||
|
Reference in New Issue
Block a user