Skip to content
Snippets Groups Projects
Commit d8485b2a authored by Claas Kazzer's avatar Claas Kazzer :speech_balloon: Committed by Frank Morgner
Browse files

refs #12359

* removes old col-classes from recordDriver cores in favour of media-body
parent d41d4af9
No related merge requests found
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
$preview = $this->record($this->driver)->getPreviews(); $preview = $this->record($this->driver)->getPreviews();
?> ?>
<? if ($QRCode || $cover || $preview): ?> <? if ($QRCode || $cover || $preview): ?>
<div class="col-sm-3 img-col"> <div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
<div class="gutter-l">
<? /* Display thumbnail if appropriate: */ ?> <? /* Display thumbnail if appropriate: */ ?>
<? if($cover): ?> <? if($cover): ?>
<?=$cover?> <?=$cover?>
...@@ -25,7 +24,6 @@ ...@@ -25,7 +24,6 @@
<br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/> <br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/>
</span> </span>
<? endif; ?> <? endif; ?>
</div>
<? // if you have a preview tab but want to move or remove the preview link <? // if you have a preview tab but want to move or remove the preview link
// from this area of the record view, this can be split into // from this area of the record view, this can be split into
...@@ -37,11 +35,10 @@ ...@@ -37,11 +35,10 @@
</div> </div>
<? endif; ?> <? endif; ?>
</div> </div>
<div class="col-sm-9 info-col">
<? else: ?>
<div class="col-sm-12">
<? endif; ?> <? endif; ?>
<div class="media-body">
<? /* finc: We want to get rid of trailing special chars in the title and limit its length to 100 chars */ ?>
<h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h3> <h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h3>
<? $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?> <? $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
...@@ -55,7 +52,7 @@ ...@@ -55,7 +52,7 @@
<? if ($this->userlist()->getMode() !== 'disabled'): ?> <? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Display the lists that this record is saved to */ ?> <? /* Display the lists that this record is saved to */ ?>
<div class="savedLists"> <div class="savedLists hidden alert alert-info">
<strong><?=$this->transEsc("Saved in")?>:</strong> <strong><?=$this->transEsc("Saved in")?>:</strong>
</div> </div>
<? endif; ?> <? endif; ?>
......
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
$preview = $this->record($this->driver)->getPreviews(); $preview = $this->record($this->driver)->getPreviews();
?> ?>
<? if ($QRCode || $cover || $preview): ?> <? if ($QRCode || $cover || $preview): ?>
<div class="col-sm-3 img-col"> <div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
<div class="gutter-l">
<? /* Display thumbnail if appropriate: */ ?> <? /* Display thumbnail if appropriate: */ ?>
<? if($cover): ?> <? if($cover): ?>
<?=$cover?> <?=$cover?>
...@@ -26,21 +25,19 @@ ...@@ -26,21 +25,19 @@
<br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/> <br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/>
</span> </span>
<? endif; ?> <? endif; ?>
</div>
<? // if you have a preview tab but want to move or remove the preview link <? // if you have a preview tab but want to move or remove the preview link
// from this area of the record view, this can be split into // from this area of the record view, this can be split into
// getPreviewData() (should stay here) and // getPreviewData() (should stay here) and
// getPreviewLink() (can go in your desired tab) ?> // getPreviewLink() (can go in your desired tab) ?>
<? if ($preview): ?> <? if ($preview): ?>
<div class="record-previews">
<?=$preview?> <?=$preview?>
</div>
<? endif; ?> <? endif; ?>
</div> </div>
<div class="col-sm-9 info-col">
<? else: ?>
<div class="col-sm-12">
<? endif; ?> <? endif; ?>
<div class="media-body">
<? /* For all finc-records; We want to get rid of trailing special chars in the title and limit its length to 100 chars */ ?> <? /* For all finc-records; We want to get rid of trailing special chars in the title and limit its length to 100 chars */ ?>
<h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h3> <h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h3>
...@@ -56,7 +53,7 @@ ...@@ -56,7 +53,7 @@
<? if ($this->userlist()->getMode() !== 'disabled'): ?> <? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Display the lists that this record is saved to */ ?> <? /* Display the lists that this record is saved to */ ?>
<div class="savedLists"> <div class="savedLists hidden alert alert-info">
<strong><?=$this->transEsc("Saved in")?>:</strong> <strong><?=$this->transEsc("Saved in")?>:</strong>
</div> </div>
<? endif; ?> <? endif; ?>
......
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
$preview = $this->record($this->driver)->getPreviews(); $preview = $this->record($this->driver)->getPreviews();
?> ?>
<? if ($QRCode || $cover || $preview): ?> <? if ($QRCode || $cover || $preview): ?>
<div class="col-sm-3 img-col"> <div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
<div class="gutter-l">
<? /* Display thumbnail if appropriate: */ ?> <? /* Display thumbnail if appropriate: */ ?>
<? if($cover): ?> <? if($cover): ?>
<?=$cover?> <?=$cover?>
...@@ -24,7 +23,6 @@ ...@@ -24,7 +23,6 @@
<br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/> <br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/>
</span> </span>
<? endif; ?> <? endif; ?>
</div>
<? // if you have a preview tab but want to move or remove the preview link <? // if you have a preview tab but want to move or remove the preview link
// from this area of the record view, this can be split into // from this area of the record view, this can be split into
...@@ -36,11 +34,10 @@ ...@@ -36,11 +34,10 @@
</div> </div>
<? endif; ?> <? endif; ?>
</div> </div>
<div class="col-sm-9 info-col">
<? else: ?>
<div class="col-sm-12">
<? endif; ?> <? endif; ?>
<div class="media-body">
<? /* finc: We want to get rid of trailing special chars in the title and limit its length to 100 chars */ ?>
<h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h3> <h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h3>
<? $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?> <? $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
...@@ -54,7 +51,7 @@ ...@@ -54,7 +51,7 @@
<? if ($this->userlist()->getMode() !== 'disabled'): ?> <? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Display the lists that this record is saved to */ ?> <? /* Display the lists that this record is saved to */ ?>
<div class="savedLists"> <div class="savedLists hidden alert alert-info">
<strong><?=$this->transEsc("Saved in")?>:</strong> <strong><?=$this->transEsc("Saved in")?>:</strong>
</div> </div>
<? endif; ?> <? endif; ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment