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/videos/views/videos_tree_dialog.html.php

54 lines
1.8 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<? // rWatcher Edit: This file used to be server_add_tree_dialog.html.php, server_add has been replaced with videos ?>
<script type="text/javascript">
var GET_CHILDREN_URL = "<?= url::site("videos/children?path=__PATH__") ?>";
var START_URL = "<?= url::site("videos/start?item_id={$item->id}&csrf=$csrf") ?>";
</script>
<div id="g-videos">
<h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => html::purify($item->title))) ?></h1>
<p id="g-description"><?= t("Photos will be added to album:") ?></p>
<ul class="g-breadcrumbs">
<? $i = 0 ?>
<? foreach ($item->parents() as $parent): ?>
<li<? if ($i == 0) print " class=\"g-first\"" ?>> <?= html::purify($parent->title) ?> </li>
<? $i++ ?>
<? endforeach ?>
<li class="g-active"> <?= html::purify($item->title) ?> </li>
</ul>
<ul id="g-videos-tree" class="g-checkbox-tree">
<?= $tree ?>
</ul>
<div id="g-videos-progress" style="display: none">
<div class="g-progress-bar"></div>
<div id="g-status"></div>
</div>
<span>
<button id="g-videos-add-button" class="ui-state-default ui-state-disabled ui-corner-all"
disabled="disabled">
<?= t("Add") ?>
</button>
<button id="g-videos-pause-button" class="ui-state-default ui-corner-all" style="display:none">
<?= t("Pause") ?>
</button>
<button id="g-videos-continue-button" class="ui-state-default ui-corner-all" style="display:none">
<?= t("Continue") ?>
</button>
<button id="g-videos-close-button" class="ui-state-default ui-corner-all">
<?= t("Close") ?>
</button>
</span>
<script type="text/javascript">
$("#g-videos").ready(function() {
$("#g-videos").gallery_videos();
});
</script>
</div>