201 lines
7.8 KiB
PHP
201 lines
7.8 KiB
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<style>
|
|
input[type="text"] {
|
|
width: 95%;
|
|
}
|
|
</style>
|
|
|
|
<? if (module::get_var("embedlinks", "HTMLCode")) { ?>
|
|
<h3 align="center"><?= t("HTML Links")?></h3>
|
|
<table class="g-embed-links">
|
|
<tbody>
|
|
<tr>
|
|
<th colspan="2"><?= t("Link To This Page:") ?></th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Text:") ?></th>
|
|
<td><input type="text" value="<a href="<?= url::abs_site("{$item->type}s/{$item->id}") ?>">Click Here</a>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Thumbnail:") ?></th>
|
|
<td><input type="text" value="<a href="<?= url::abs_site("{$item->type}s/{$item->id}") ?>"><img src="<?= $item->thumb_url(true) ?>"></a>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<? if ($item->is_photo()) { ?>
|
|
<tr>
|
|
<th><?= t("Resized:") ?></th>
|
|
<td><input type="text" value="<a href="<?= url::abs_site("{$item->type}s/{$item->id}") ?>"><img src="<?= $item->resize_url(true) ?>"></a>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
<? } ?>
|
|
|
|
<? if (access::can("view_full", $item)) { ?>
|
|
<tr>
|
|
<? if ($item->is_movie()) { ?>
|
|
<th colspan="2"><br/><?= t("Link To The Video File:") ?></th>
|
|
<? } else { ?>
|
|
<th colspan="2"><br/><?= t("Link To The Full Size Image:") ?></th>
|
|
<? }?>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Text:") ?></th>
|
|
<td><input type="text" value="<a href="<?= $item->file_url(true) ?>">Click Here</a>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Thumbnail:") ?></th>
|
|
<td><input type="text" value="<a href="<?= $item->file_url(true) ?>"><img src="<?= $item->thumb_url(true) ?>"></a>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<? if ($item->is_photo()) { ?>
|
|
<tr>
|
|
<th><?= t("Resized:") ?></th>
|
|
<td><input type="text" value="<a href="<?= $item->file_url(true) ?>"><img src="<?= $item->resize_url(true) ?>"></a>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
<? } ?>
|
|
|
|
<? if ($item->is_movie()) { ?>
|
|
<tr>
|
|
<th><?= t("Embed:") ?></th>
|
|
<td><input type="text" value="<object width="<?= $item->width ?>" height="<?= $item->height ?>" data="<?= url::abs_file("lib/flowplayer.swf") ?>" type="application/x-shockwave-flash"><param name="movie" value="<?= url::abs_file("lib/flowplayer.swf") ?>" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value='config={"plugins":{"pseudo":{"url":"flowplayer.h264streaming.swf"},"controls":{"backgroundColor":"#000000","backgroundGradient":"low"}},"clip":{"provider":"pseudo","url":"<?= $item->file_url(true) ?>"},"playlist":[{"provider":"pseudo","url":"<?= $item->file_url(true) ?>"}]}' /></object>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
<? } ?>
|
|
<? } ?>
|
|
|
|
<? if ($item->is_photo()) { ?>
|
|
<tr>
|
|
<th colspan="2"><br/><?= t("Link To The Resized Image:") ?></th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Text:") ?></th>
|
|
<td><input type="text" value="<a href="<?= $item->resize_url(true) ?>">Click Here</a>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Thumbnail:") ?></th>
|
|
<td><input type="text" value="<a href="<?= $item->resize_url(true) ?>"><img src="<?= $item->thumb_url(true) ?>"></a>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Image:") ?></th>
|
|
<td><input type="text" value="<img src="<?= $item->resize_url(true) ?>">" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
<? } ?>
|
|
</tbody>
|
|
</table>
|
|
<? } ?>
|
|
|
|
<? if (module::get_var("embedlinks", "BBCode")) { ?>
|
|
<h3 align="center"><?= t("BBCode Links")?></h3>
|
|
<table class="g-embed-links">
|
|
<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]" onclick="this.focus(); this.select();" 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]" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<? if ($item->is_photo()) { ?>
|
|
<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]" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
<? } ?>
|
|
|
|
<? if (access::can("view_full", $item)) { ?>
|
|
<tr>
|
|
<? if ($item->is_movie()) { ?>
|
|
<th colspan="2"><br/><?= t("Link To The Video File:") ?></th>
|
|
<? } else { ?>
|
|
<th colspan="2"><br/><?= t("Link To The Full Size Image:") ?></th>
|
|
<? }?>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Text:") ?></th>
|
|
<td><input type="text" value="[url=<?= $item->file_url(true) ?>]Click Here[/url]" onclick="this.focus(); this.select();" 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]" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<? if ($item->is_photo()) { ?>
|
|
<tr>
|
|
<th><?= t("Resized:") ?></th>
|
|
<td><input type="text" value="[url=<?= $item->file_url(true) ?>][img]<?= $item->resize_url(true) ?>[/img][/url]" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
<? } ?>
|
|
<? } ?>
|
|
|
|
<? if ($item->is_photo()) { ?>
|
|
<tr>
|
|
<th colspan="2"><br/><?= t("Link To The Resized Image:") ?></th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Text:") ?></th>
|
|
<td><input type="text" value="[url=<?= $item->resize_url(true) ?>]Click Here[/url]" onclick="this.focus(); this.select();" 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]" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Image:") ?></th>
|
|
<td><input type="text" value="[img]<?= $item->resize_url(true) ?>[/img]" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
<? } ?>
|
|
</tbody>
|
|
</table>
|
|
<? } ?>
|
|
|
|
<? if (module::get_var("embedlinks", "FullURL")) { ?>
|
|
<h3 align="center"><?= t("URLs")?></h3>
|
|
<table class="g-embed-links">
|
|
<tbody>
|
|
<tr>
|
|
<th><?= t("This Page:") ?></th>
|
|
<td><input type="text" value="<?= url::abs_site("{$item->type}s/{$item->id}") ?>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><?= t("Thumbnail:") ?></th>
|
|
<td><input type="text" value="<?= $item->thumb_url(true) ?>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
|
|
<? if ($item->is_photo()) { ?>
|
|
<tr>
|
|
<th><?= t("Resized:") ?></th>
|
|
<td><input type="text" value="<?= $item->resize_url(true) ?>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
<? } ?>
|
|
|
|
<? if (access::can("view_full", $item)) { ?>
|
|
<tr>
|
|
<? if ($item->is_movie()) { ?>
|
|
<th><?= t("Video File:") ?></th>
|
|
<? } else { ?>
|
|
<th><?= t("Full size:") ?></th>
|
|
<? } ?>
|
|
<td><input type="text" value="<?= $item->file_url(true) ?>" onclick="this.focus(); this.select();" readonly></td>
|
|
</tr>
|
|
<? } ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
<? } ?>
|