1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/3.0/modules/embedlinks/views/embedlinks_photo_block.html.php

219 lines
8.1 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=&quot;<?= url::abs_site("{$item->type}s/{$item->id}") ?>&quot;>Click Here</a>" onclick="this.focus(); this.select();" readonly></td>
</tr>
<tr>
<th><?= t("Thumbnail:") ?></th>
<td><input type="text" value="<a href=&quot;<?= url::abs_site("{$item->type}s/{$item->id}") ?>&quot;><img src=&quot;<?= $item->thumb_url(true) ?>&quot;></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=&quot;<?= url::abs_site("{$item->type}s/{$item->id}") ?>&quot;><img src=&quot;<?= $item->resize_url(true) ?>&quot;></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=&quot;<?= $item->file_url(true) ?>&quot;>Click Here</a>" onclick="this.focus(); this.select();" readonly></td>
</tr>
<tr>
<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>" onclick="this.focus(); this.select();" readonly></td>
</tr>
<? if ($item->is_photo()) { ?>
<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>" onclick="this.focus(); this.select();" readonly></td>
</tr>
<? } ?>
<? if ($item->is_movie()) { ?>
<?
$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=&quot;flowplayer&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; width=&quot;<?= $item->width ?>&quot; height=&quot;<?= $item->height ?>&quot;> <param name=&quot;movie&quot; value=&quot;<?= url::abs_file("lib/flowplayer.swf") ?>&quot; /><param name=&quot;flashvars&quot; value='config={&quot;clip&quot;:&quot;<?= $str_movie_path ?>&quot;}' /><embed type=&quot;application/x-shockwave-flash&quot; width=&quot;<?= $item->width ?>&quot; height=&quot;<?= $item->height ?>&quot; src=&quot;<?= url::abs_file("lib/flowplayer.swf") ?>&quot; flashvars='config={&quot;clip&quot;:&quot;<?= $str_movie_path ?>&quot;}'/></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=&quot;<?= $item->resize_url(true) ?>&quot;>Click Here</a>" onclick="this.focus(); this.select();" readonly></td>
</tr>
<tr>
<th><?= t("Thumbnail:") ?></th>
<td><input type="text" value="<a href=&quot;<?= $item->resize_url(true) ?>&quot;><img src=&quot;<?= $item->thumb_url(true) ?>&quot;></a>" onclick="this.focus(); this.select();" readonly></td>
</tr>
<tr>
<th><?= t("Image:") ?></th>
<td><input type="text" value="<img src=&quot;<?= $item->resize_url(true) ?>&quot;>" 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>
<? } ?>