2009-06-12 19:58:54 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-07-25 18:03:16 +00:00
|
|
|
<style>
|
|
|
|
input[type="text"] {
|
|
|
|
width: 95%;
|
|
|
|
}
|
|
|
|
</style>
|
2009-07-08 23:26:21 +00:00
|
|
|
|
|
|
|
<? if (module::get_var("embedlinks", "HTMLCode")) { ?>
|
2009-07-08 22:08:39 +00:00
|
|
|
<h3 align="center"><?= t("HTML Links")?></h3>
|
2009-10-12 21:00:07 +00:00
|
|
|
<table class="g-embed-links">
|
2009-06-12 19:58:54 +00:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th colspan="2"><?= t("Link To This Page:") ?></th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Text:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<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>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Thumbnail:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<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>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
|
|
|
|
2009-08-25 00:47:42 +00:00
|
|
|
<? if ($item->is_photo()) { ?>
|
2009-06-12 19:58:54 +00:00
|
|
|
<tr>
|
|
|
|
<th><?= t("Resized:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<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>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? } ?>
|
2009-06-12 19:58:54 +00:00
|
|
|
|
2009-07-08 21:09:42 +00:00
|
|
|
<? if (access::can("view_full", $item)) { ?>
|
2009-06-12 19:58:54 +00:00
|
|
|
<tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? 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>
|
|
|
|
<? }?>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Text:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="<a href="<?= $item->file_url(true) ?>">Click Here</a>" onclick="this.focus(); this.select();" readonly></td>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Thumbnail:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<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>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
|
|
|
|
<? if ($item->is_photo()) { ?>
|
2009-06-12 19:58:54 +00:00
|
|
|
<tr>
|
|
|
|
<th><?= t("Resized:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<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>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? } ?>
|
|
|
|
|
|
|
|
<? if ($item->is_movie()) { ?>
|
2011-08-05 05:43:35 +00:00
|
|
|
<?
|
|
|
|
$str_movie_path = $item->file_url(true);
|
|
|
|
if (module::is_active("videos")) {
|
|
|
|
$items_video = ORM::factory("items_video")
|
|
|
|
->where("item_id", "=", $item->id)
|
|
|
|
->find();
|
|
|
|
if ($items_video->loaded()) {
|
|
|
|
if (file_exists($item->resize_path() . ".flv")) {
|
|
|
|
$str_movie_path = str_replace("?m=", ".flv?m=", $item->resize_url(true));
|
|
|
|
} else {
|
|
|
|
$str_movie_path = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<? if ($str_movie_path != "") { ?>
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Embed:") ?></th>
|
|
|
|
<td><input type="text" value="<object id="flowplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="<?= $item->width ?>" height="<?= $item->height ?>"> <param name="movie" value="<?= url::abs_file("lib/flowplayer.swf") ?>" /><param name="flashvars" value='config={"clip":"<?= $str_movie_path ?>"}' /><embed type="application/x-shockwave-flash" width="<?= $item->width ?>" height="<?= $item->height ?>" src="<?= url::abs_file("lib/flowplayer.swf") ?>" flashvars='config={"clip":"<?= $str_movie_path ?>"}'/></object>" onclick="this.focus(); this.select();" readonly></td>
|
|
|
|
</tr>
|
|
|
|
<? } ?>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? } ?>
|
2009-07-08 22:08:39 +00:00
|
|
|
<? } ?>
|
2009-06-12 19:58:54 +00:00
|
|
|
|
2009-08-25 00:47:42 +00:00
|
|
|
<? if ($item->is_photo()) { ?>
|
2009-06-12 19:58:54 +00:00
|
|
|
<tr>
|
2009-07-08 23:26:21 +00:00
|
|
|
<th colspan="2"><br/><?= t("Link To The Resized Image:") ?></th>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Text:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="<a href="<?= $item->resize_url(true) ?>">Click Here</a>" onclick="this.focus(); this.select();" readonly></td>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Thumbnail:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<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>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Image:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="<img src="<?= $item->resize_url(true) ?>">" onclick="this.focus(); this.select();" readonly></td>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? } ?>
|
2009-06-12 19:58:54 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2009-07-08 23:26:21 +00:00
|
|
|
<? } ?>
|
2009-07-08 22:08:39 +00:00
|
|
|
|
2009-07-08 23:26:21 +00:00
|
|
|
<? if (module::get_var("embedlinks", "BBCode")) { ?>
|
2009-07-08 22:08:39 +00:00
|
|
|
<h3 align="center"><?= t("BBCode Links")?></h3>
|
2009-10-04 20:40:59 +00:00
|
|
|
<table class="g-embed-links">
|
2009-07-08 22:08:39 +00:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th colspan="2"><?= t("Link To This Page:") ?></th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Text:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="[url=<?= url::abs_site("{$item->type}s/{$item->id}") ?>]Click Here[/url]" onclick="this.focus(); this.select();" readonly></td>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Thumbnail:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<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>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
|
|
|
|
2009-08-25 00:47:42 +00:00
|
|
|
<? if ($item->is_photo()) { ?>
|
2009-07-08 22:08:39 +00:00
|
|
|
<tr>
|
|
|
|
<th><?= t("Resized:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<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>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? } ?>
|
|
|
|
|
2009-07-08 22:08:39 +00:00
|
|
|
<? if (access::can("view_full", $item)) { ?>
|
|
|
|
<tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? 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>
|
|
|
|
<? }?>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Text:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="[url=<?= $item->file_url(true) ?>]Click Here[/url]" onclick="this.focus(); this.select();" readonly></td>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Thumbnail:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="[url=<?= $item->file_url(true) ?>][img]<?= $item->thumb_url(true) ?>[/img][/url]" onclick="this.focus(); this.select();" readonly></td>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
|
|
|
|
2009-08-25 00:47:42 +00:00
|
|
|
<? if ($item->is_photo()) { ?>
|
2009-07-08 22:08:39 +00:00
|
|
|
<tr>
|
|
|
|
<th><?= t("Resized:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="[url=<?= $item->file_url(true) ?>][img]<?= $item->resize_url(true) ?>[/img][/url]" onclick="this.focus(); this.select();" readonly></td>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? } ?>
|
2009-07-08 22:08:39 +00:00
|
|
|
<? } ?>
|
2009-08-25 00:47:42 +00:00
|
|
|
|
|
|
|
<? if ($item->is_photo()) { ?>
|
2009-07-08 22:08:39 +00:00
|
|
|
<tr>
|
2009-07-08 23:26:21 +00:00
|
|
|
<th colspan="2"><br/><?= t("Link To The Resized Image:") ?></th>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Text:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="[url=<?= $item->resize_url(true) ?>]Click Here[/url]" onclick="this.focus(); this.select();" readonly></td>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Thumbnail:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="[url=<?= $item->resize_url(true) ?>][img]<?= $item->thumb_url(true) ?>[/img][/url]" onclick="this.focus(); this.select();" readonly></td>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th><?= t("Image:") ?></th>
|
2009-07-25 18:03:16 +00:00
|
|
|
<td><input type="text" value="[img]<?= $item->resize_url(true) ?>[/img]" onclick="this.focus(); this.select();" readonly></td>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? } ?>
|
2009-07-08 22:08:39 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2009-08-02 19:11:07 +00:00
|
|
|
<? } ?>
|
|
|
|
|
|
|
|
<? if (module::get_var("embedlinks", "FullURL")) { ?>
|
|
|
|
<h3 align="center"><?= t("URLs")?></h3>
|
2009-10-04 20:40:59 +00:00
|
|
|
<table class="g-embed-links">
|
2009-08-02 19:11:07 +00:00
|
|
|
<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>
|
|
|
|
|
2009-08-25 00:47:42 +00:00
|
|
|
<? if ($item->is_photo()) { ?>
|
2009-08-02 19:11:07 +00:00
|
|
|
<tr>
|
|
|
|
<th><?= t("Resized:") ?></th>
|
|
|
|
<td><input type="text" value="<?= $item->resize_url(true) ?>" onclick="this.focus(); this.select();" readonly></td>
|
|
|
|
</tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? } ?>
|
|
|
|
|
2009-08-02 19:11:07 +00:00
|
|
|
<? if (access::can("view_full", $item)) { ?>
|
|
|
|
<tr>
|
2009-08-25 00:47:42 +00:00
|
|
|
<? if ($item->is_movie()) { ?>
|
|
|
|
<th><?= t("Video File:") ?></th>
|
|
|
|
<? } else { ?>
|
|
|
|
<th><?= t("Full size:") ?></th>
|
|
|
|
<? } ?>
|
2009-08-02 19:11:07 +00:00
|
|
|
<td><input type="text" value="<?= $item->file_url(true) ?>" onclick="this.focus(); this.select();" readonly></td>
|
|
|
|
</tr>
|
|
|
|
<? } ?>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2011-08-04 18:46:35 +00:00
|
|
|
<? } ?>
|