init
This commit is contained in:
commit
db400e4a38
2750 changed files with 440400 additions and 0 deletions
57
help_FR/include/staff/templates/queue-subnavigation.tmpl.php
Normal file
57
help_FR/include/staff/templates/queue-subnavigation.tmpl.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
// Calling conventions
|
||||
// $q - <CustomQueue> object for this navigation entry
|
||||
// $children - <Array<CustomQueue>> all direct children of this queue
|
||||
$queue = $q;
|
||||
$hasChildren = $children && (count($children) > 0);
|
||||
$selected = $_REQUEST['queue'] == $q->getId();
|
||||
global $thisstaff;
|
||||
?>
|
||||
<!-- SubQ class: only if top level Q has subQ -->
|
||||
<li <?php if ($hasChildren) echo 'class="subQ"'; ?>>
|
||||
|
||||
<span class="<?php if ($thisstaff->isAdmin() || $q->isPrivate()) echo 'personalQmenu'; ?>
|
||||
pull-right newItemQ queue-count"
|
||||
data-queue-id="<?php echo $q->id; ?>"><span class="faded-more">-</span>
|
||||
</span>
|
||||
|
||||
<a class="truncate <?php if ($selected) echo ' active'; ?>" href="<?php echo $queue->getHref();
|
||||
?>" title="<?php echo Format::htmlchars($q->getName()); ?>">
|
||||
<?php
|
||||
echo Format::htmlchars($q->getName()); ?>
|
||||
<?php
|
||||
if ($hasChildren) { ?>
|
||||
<i class="icon-caret-down"></i>
|
||||
<?php } ?>
|
||||
</a>
|
||||
|
||||
<?php
|
||||
$closure_include = function($q, $children) {
|
||||
global $thisstaff, $ost, $cfg;
|
||||
include __FILE__;
|
||||
};
|
||||
if ($hasChildren) { ?>
|
||||
<ul class="subMenuQ">
|
||||
<?php
|
||||
foreach ($children as $_) {
|
||||
list($q, $childz) = $_;
|
||||
if (!$q->isPrivate())
|
||||
$closure_include($q, $childz);
|
||||
}
|
||||
|
||||
// Include personal sub-queues
|
||||
$first_child = true;
|
||||
foreach ($children as $_) {
|
||||
list($q, $childz) = $_;
|
||||
if ($q->isPrivate()) {
|
||||
if ($first_child) {
|
||||
$first_child = false;
|
||||
echo '<li class="personalQ"></li>';
|
||||
}
|
||||
$closure_include($q, $childz);
|
||||
}
|
||||
} ?>
|
||||
</ul>
|
||||
<?php
|
||||
} ?>
|
||||
</li>
|
||||
Loading…
Add table
Add a link
Reference in a new issue