diff --git a/themes/bootstrap3/templates/collection/view.phtml b/themes/bootstrap3/templates/collection/view.phtml index 44535875d6d7e5693fc8b124842df14c3ccff400..172d1956c212be5d6f12cec83c48f7798390a9b3 100644 --- a/themes/bootstrap3/templates/collection/view.phtml +++ b/themes/bootstrap3/templates/collection/view.phtml @@ -44,7 +44,9 @@ </ul> <? endif; ?> -<?=$this->record($this->driver)->getToolbar()?> +<div class="col-xs-12"> + <?=$this->record($this->driver)->getToolbar()?> +</div> <div class="<?=$this->layoutClass('mainbody') ?>"> <div class="record"> diff --git a/themes/bootstrap3/templates/record/view.phtml b/themes/bootstrap3/templates/record/view.phtml index 0d6d78c0b41a55f8a1b3363a3c091d277c367e11..5c71533a9ed1faf869179fa3f3d5ae2c736c80a5 100644 --- a/themes/bootstrap3/templates/record/view.phtml +++ b/themes/bootstrap3/templates/record/view.phtml @@ -38,7 +38,9 @@ </ul> <? endif; ?> -<?=$this->record($this->driver)->getToolbar()?> +<div class="col-xs-12"> + <?=$this->record($this->driver)->getToolbar()?> +</div> <div class="<?=$this->layoutClass('mainbody')?>"> <div class="record recordId source<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>" id="record"> diff --git a/themes/bootstrap3/templates/vudl/record.phtml b/themes/bootstrap3/templates/vudl/record.phtml index d4f34cc775fe7bb999ace896ab4b3a83fe55b7da..ac65c3558b735415a72300f084ef697916286323 100644 --- a/themes/bootstrap3/templates/vudl/record.phtml +++ b/themes/bootstrap3/templates/vudl/record.phtml @@ -35,93 +35,95 @@ } } ?> -<script> - var documentID = '<?=$this->id ?>'; - var initPage = $.parseJSON('<?=str_replace('\"', "\'", json_encode($this->outline['lists'][$this->initList][$this->initPage], JSON_HEX_APOS | JSON_HEX_AMP)) ?>'); +<div class="col-xs-12"> + <script> + var documentID = '<?=$this->id ?>'; + var initPage = $.parseJSON('<?=str_replace('\"', "\'", json_encode($this->outline['lists'][$this->initList][$this->initPage], JSON_HEX_APOS | JSON_HEX_AMP)) ?>'); - counts = $.parseJSON('<?=json_encode($this->outline['counts'], JSON_HEX_APOS | JSON_HEX_AMP) ?>'); - <? if(count($this->outline['lists'][$this->initList]) >= $this->outline['counts'][$this->initList]): ?> - loading_pages = false; - <? endif; ?> -</script> -<form class="form-horizontal text-center siblings-form" action="<?=$this->url('vudl-sibling') ?>" method="get"> - <input type="hidden" name="id" value="<?=$this->layout()->vudlID ?>"/> - <button class="btn btn-default" type="submit" name="prev_x" value="1" title="<?=$this->transEsc('Prev Item in Collection')?>">← <?=$this->transEsc('Prev Item')?></button> - <? $parents = array(); ?> - <? $parentKeys = array(); ?> - <? foreach($this->parents as $trail): ?> - <? if(is_array($trail)): ?> - <? end($trail); ?> + counts = $.parseJSON('<?=json_encode($this->outline['counts'], JSON_HEX_APOS | JSON_HEX_AMP) ?>'); + <? if(count($this->outline['lists'][$this->initList]) >= $this->outline['counts'][$this->initList]): ?> + loading_pages = false; <? endif; ?> - <? if(!in_array(key($trail), $parentKeys)): ?> - <? $uniqueParents[] = array( - 'id' => key($trail), - 'title' => current($trail) - ); ?> - <? $parentKeys[] = key($trail); ?> + </script> + <form class="form-horizontal text-center siblings-form" action="<?=$this->url('vudl-sibling') ?>" method="get"> + <input type="hidden" name="id" value="<?=$this->layout()->vudlID ?>"/> + <button class="btn btn-default" type="submit" name="prev_x" value="1" title="<?=$this->transEsc('Prev Item in Collection')?>">← <?=$this->transEsc('Prev Item')?></button> + <? $parents = array(); ?> + <? $parentKeys = array(); ?> + <? foreach($this->parents as $trail): ?> + <? if(is_array($trail)): ?> + <? end($trail); ?> + <? endif; ?> + <? if(!in_array(key($trail), $parentKeys)): ?> + <? $uniqueParents[] = array( + 'id' => key($trail), + 'title' => current($trail) + ); ?> + <? $parentKeys[] = key($trail); ?> + <? endif; ?> + <? endforeach; ?> + <? if(count($uniqueParents) > 1): ?> + <select class="form-control trail" name="trail"> + <? foreach($uniqueParents as $trail): ?> + <option value="<?=$trail['id'] ?>"><?=$trail['title'] ?></option> + <? endforeach; ?> + </select> + <? else: ?> + <input type="hidden" name="trail" value="<?=$uniqueParents[0]['id'] ?>"/> <? endif; ?> - <? endforeach; ?> - <? if(count($uniqueParents) > 1): ?> - <select class="form-control trail" name="trail"> - <? foreach($uniqueParents as $trail): ?> - <option value="<?=$trail['id'] ?>"><?=$trail['title'] ?></option> - <? endforeach; ?> - </select> - <? else: ?> - <input type="hidden" name="trail" value="<?=$uniqueParents[0]['id'] ?>"/> - <? endif; ?> - <button class="btn btn-default" type="submit" name="next_x" value="1" title="<?=$this->transEsc('Next Item in Collection')?>"><?=$this->transEsc('Next Item')?> →</button> -</form> -<div class="vudl"> - <div class="panel-group col-sm-3" id="side-nav"> - <div class="panel"> - <div class="panel-heading"> - <h4 class="panel-title"> - <a data-toggle="collapse" data-parent="#side-nav" id="side-nav-toggle"> - <i class="fa fa-caret-left"></i> - <i class="fa fa-caret-left"></i> - <i class="fa fa-caret-left"></i> - </a> - </h4> - </div> - </div> - <?=$this->context($this)->renderInContext('vudl/details.phtml', array())?> - <? foreach($this->outline['lists'] as $key=>$list): ?> + <button class="btn btn-default" type="submit" name="next_x" value="1" title="<?=$this->transEsc('Next Item in Collection')?>"><?=$this->transEsc('Next Item')?> →</button> + </form> + <div class="vudl row"> + <div class="panel-group col-sm-3" id="side-nav"> <div class="panel"> <div class="panel-heading"> <h4 class="panel-title"> - <a data-toggle="collapse" data-parent="#side-nav" href="#collapse<?=$key ?>"> - <?=$this->outline['names'][$key] ?> + <a data-toggle="collapse" data-parent="#side-nav" id="side-nav-toggle"> + <i class="fa fa-caret-left"></i> + <i class="fa fa-caret-left"></i> + <i class="fa fa-caret-left"></i> </a> </h4> </div> - <div id="collapse<?=$key ?>" class="panel-collapse collapse<? if($key==$this->initList): ?> in<? endif; ?>"> - <div class="panel-body item-list" id="list<?=$key ?>"> - <!-- PRE LOADING PLACEHOLDERS --> - <? for($i=0;$i<current(array_keys($list))-1;$i++): ?> - <a class="page-link unloaded" id="item<?=$i ?>" title="<?=$i ?>">Loading...</a> - <? endfor; ?> - <!-- LOADED ITEMS --> - <? foreach($list as $j=>$item): ?> - <a title="<?=$item['id'] ?>" onClick="ajaxGetView(<?=json_php_encode($item, true) ?>, this)" class="page-link active<?=$key == $this->initList && $j == $this->initPage ?' selected':''?>" id="item<?=$j?>"> - <? if(isset($item['thumbnail'])): ?> - <img src="<?=$item['thumbnail'] ?>" alt="<?=$item['label'] ?>"/><br/> - <? else: ?> - <i class="fa fa-file file-<?=$item['fulltype'] ?>"></i><br/> - <? endif; ?> - <?=$item['label'] ?> + </div> + <?=$this->context($this)->renderInContext('vudl/details.phtml', array())?> + <? foreach($this->outline['lists'] as $key=>$list): ?> + <div class="panel"> + <div class="panel-heading"> + <h4 class="panel-title"> + <a data-toggle="collapse" data-parent="#side-nav" href="#collapse<?=$key ?>"> + <?=$this->outline['names'][$key] ?> </a> - <? endforeach; ?> - <!-- POST LOADING PLACEHOLDERS --> - <? if(isset($this->outline['counts'][$key])): ?> - <? for($i=$this->initPage+count($list);$i<$this->outline['counts'][$key];$i++): ?> - <a class="page-link unloaded" id="item<?=($i) ?>" title="<?=$i ?>">Loading...</a> + </h4> + </div> + <div id="collapse<?=$key ?>" class="panel-collapse collapse<? if($key==$this->initList): ?> in<? endif; ?>"> + <div class="panel-body item-list" id="list<?=$key ?>"> + <!-- PRE LOADING PLACEHOLDERS --> + <? for($i=0;$i<current(array_keys($list))-1;$i++): ?> + <a class="page-link unloaded" id="item<?=$i ?>" title="<?=$i ?>">Loading...</a> <? endfor; ?> - <? endif; ?> + <!-- LOADED ITEMS --> + <? foreach($list as $j=>$item): ?> + <a title="<?=$item['id'] ?>" onClick="ajaxGetView(<?=json_php_encode($item, true) ?>, this)" class="page-link active<?=$key == $this->initList && $j == $this->initPage ?' selected':''?>" id="item<?=$j?>"> + <? if(isset($item['thumbnail'])): ?> + <img src="<?=$item['thumbnail'] ?>" alt="<?=$item['label'] ?>"/><br/> + <? else: ?> + <i class="fa fa-file file-<?=$item['fulltype'] ?>"></i><br/> + <? endif; ?> + <?=$item['label'] ?> + </a> + <? endforeach; ?> + <!-- POST LOADING PLACEHOLDERS --> + <? if(isset($this->outline['counts'][$key])): ?> + <? for($i=$this->initPage+count($list);$i<$this->outline['counts'][$key];$i++): ?> + <a class="page-link unloaded" id="item<?=($i) ?>" title="<?=$i ?>">Loading...</a> + <? endfor; ?> + <? endif; ?> + </div> </div> </div> - </div> - <? endforeach; ?> + <? endforeach; ?> + </div> + <div id="view" class="col-sm-9"></div> </div> - <div id="view" class="col-sm-9"></div> </div> \ No newline at end of file