add support for moodpic sources and revamp moodpic integration a little bit
This commit is contained in:
parent
41f3ee0349
commit
5cb60679e0
37 changed files with 271 additions and 292 deletions
|
|
@ -1,9 +1,5 @@
|
|||
<div class="moodpic">
|
||||
<?php if(!is_null($seminary) && array_key_exists($seminaryMoodpicIndex, $seminary) && !is_null($seminary[$seminaryMoodpicIndex])) : ?>
|
||||
<img src="<?=$linker->link(array('media','seminarymoodpic',$seminary['url'],$agentName))?>">
|
||||
<?php elseif(!is_null($seminary) && !is_null($seminary['seminarymedia_id'])) : ?>
|
||||
<img src="<?=$linker->link(array('media','seminarymoodpic',$seminary['url']))?>">
|
||||
<?php else : ?>
|
||||
<img src="<?=$linker->link(array('grafics','questlab.jpg'))?>" />
|
||||
<?php endif ?>
|
||||
<div>
|
||||
<img src="<?=$linker->link(array('grafics','questlab.jpg'))?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
20
views/html/moodpic/questgroup.tpl
Normal file
20
views/html/moodpic/questgroup.tpl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<div class="moodpic">
|
||||
<div>
|
||||
<?php if(!is_null($medium)) : ?>
|
||||
<img src="<?=$medium['url']?>" <?php if(!empty($medium['title'])) : ?>title="<?=$medium['title']?>"<?php endif ?> <?php if(!empty($medium['description'])) : ?>alt="<?=$medium['description']?>"<?php endif ?>/>
|
||||
<?php if(!empty($medium['sourcelabel']) || !empty($medium['sourceurl'])) : ?>
|
||||
<?php $label = (!empty($medium['sourcelabel'])) ? $medium['sourcelabel'] : substr($medium['sourceurl'], 0, 30).'…'; ?>
|
||||
<span class="source">
|
||||
<?=_('Image source')?>:
|
||||
<?php if(!empty($medium['sourceurl'])): ?>
|
||||
<a href="<?=$medium['sourceurl']?>" target="_blank"><?=$label?></a>
|
||||
<?php else : ?>
|
||||
<?=$label?>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php else : ?>
|
||||
<img src="<?=$linker->link(array('grafics','questlab.jpg'))?>" />
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
20
views/html/moodpic/seminary.tpl
Normal file
20
views/html/moodpic/seminary.tpl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<div class="moodpic">
|
||||
<div>
|
||||
<?php if(!is_null($medium)) : ?>
|
||||
<img src="<?=$medium['url']?>" <?php if(!empty($medium['title'])) : ?>title="<?=$medium['title']?>"<?php endif ?> <?php if(!empty($medium['description'])) : ?>alt="<?=$medium['description']?>"<?php endif ?>/>
|
||||
<?php if(!empty($medium['sourcelabel']) || !empty($medium['sourceurl'])) : ?>
|
||||
<?php $label = (!empty($medium['sourcelabel'])) ? $medium['sourcelabel'] : substr($medium['sourceurl'], 0, 30).'…'; ?>
|
||||
<span class="source">
|
||||
<?=_('Image source')?>:
|
||||
<?php if(!empty($medium['sourceurl'])): ?>
|
||||
<a href="<?=$medium['sourceurl']?>" target="_blank"><?=$label?></a>
|
||||
<?php else : ?>
|
||||
<?=$label?>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php else : ?>
|
||||
<img src="<?=$linker->link(array('grafics','questlab.jpg'))?>" />
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($seminary['seminarymedia_id'])) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminarymoodpic',$seminary['url']))?>" />
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<ul class="breadcrumbs">
|
||||
<li><a href="<?=$linker->link(array('seminaries',$seminary['url']))?>"><?=$seminary['title']?></a></li>
|
||||
<li><i class="fa fa-chevron-right fa-fw"></i><?=_('Questgroups')?></li>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($picture)) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$picture['url']))?>" />
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<?php if(!is_null($questgroup['hierarchy'])) : ?>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($picture)) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$picture['url']))?>" />
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<h1><?=_('Edit Questgroup')?></h1>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($picture)) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$picture['url']))?>" />
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<h1><?=_('Edit Questgroup texts')?></h1>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($picture)) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$picture['url']))?>" />
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<?php if(!is_null($questgroup['hierarchy'])) : ?>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($picture)) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$picture['url']))?>" />
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<?php if(!is_null($questgroup['hierarchy'])) : ?>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($picture)) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$picture['url']))?>" />
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<?php if(!is_null($questgroup['hierarchy'])) : ?>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($questgroup['picture'])) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$questgroup['picture']['url']))?>" />
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<h1><?=_('Create Quest')?></h1>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($questgroup['picture'])) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$questgroup['picture']['url']))?>" />
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<h1><?=_('Delete Quest')?></h1>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($questgroup['picture'])) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$questgroup['picture']['url']))?>" />
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<h1><?=_('Edit Quest')?></h1>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($questgroup['picture'])) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$questgroup['picture']['url']))?>" />
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<h1><?=_('Edit Quest task')?></h1>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($questgroup['picture'])) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$questgroup['picture']['url']))?>" />
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<h1><?=_('Edit Quest texts')?></h1>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($questgroup['picture'])) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$questgroup['picture']['url']))?>" />
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
<h1><?=$quest['title']?></h1>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($questgroup['picture'])) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$questgroup['picture']['url']))?>" />
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
<h1><?=$quest['title']?></h1>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
<?php if(!is_null($questgroup['picture'])) : ?>
|
||||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$questgroup['picture']['url']))?>" />
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?=$moodpic?>
|
||||
<?php endif ?>
|
||||
<?=$questgroupshierarchypath?>
|
||||
<h1><?=$quest['title']?> (<?=_('Submissions')?>)</h1>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('grafics','questlab.jpg'))?>" />
|
||||
</div>
|
||||
<?=$moodpic?>
|
||||
<ul class="breadcrumbs">
|
||||
<li><a href="<?=$linker->link('index',1)?>"><?=_('Seminaries')?></a></li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
<div class="moodpic">
|
||||
<img src="<?=$linker->link(array('grafics','questlab.jpg'))?>" />
|
||||
</div>
|
||||
<?=$moodpic?>
|
||||
<h1><?=_('Seminaries')?></h1>
|
||||
<?php if(count(array_intersect(array('admin','moderator'),\hhu\z\controllers\IntermediateController::$user['roles'])) > 0) : ?>
|
||||
<nav class="admin">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue