mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 21:26:37 +00:00
Update "default convention" images to not look terrible.
This commit is contained in:
parent
7080f18c84
commit
86cf9321a0
|
@ -66,27 +66,9 @@ class Convention extends \DF\Doctrine\Entity
|
|||
/** @Column(name="image_url", type="string", length=200, nullable=true) */
|
||||
protected $image_url;
|
||||
|
||||
public function getImageUrl()
|
||||
{
|
||||
if ($this->image_url)
|
||||
return $this->image_url;
|
||||
else
|
||||
return self::DEFAULT_IMAGE_FULL;
|
||||
}
|
||||
|
||||
/** @Column(name="thumbnail_url", type="string", length=200, nullable=true) */
|
||||
protected $thumbnail_url;
|
||||
|
||||
public function getThumbnailUrl()
|
||||
{
|
||||
if ($this->thumbnail_url)
|
||||
return $this->thumbnail_url;
|
||||
elseif ($this->image_url)
|
||||
return $this->image_url;
|
||||
else
|
||||
return self::DEFAULT_IMAGE_THUMB;
|
||||
}
|
||||
|
||||
public function setImageUrl($new_url_full)
|
||||
{
|
||||
if ($new_url_full)
|
||||
|
|
|
@ -5,15 +5,17 @@ $this->headLink()
|
|||
->appendStylesheet(\DF\Url::content('mid2013/convention.css'), 'all')
|
||||
?>
|
||||
|
||||
<? $this->placeholder('content_top')->captureStart(); ?>
|
||||
<div id="convention_header">
|
||||
<div class="container">
|
||||
<div class="item">
|
||||
<img src="<?=\DF\Url::content($this->convention->getImageUrl()) ?>" alt="Convention Thumbnail">
|
||||
<? if ($this->convention->image_url): ?>
|
||||
<? $this->placeholder('content_top')->captureStart(); ?>
|
||||
<div id="convention_header">
|
||||
<div class="container">
|
||||
<div class="item">
|
||||
<img src="<?=\DF\Url::content($this->convention->image_url) ?>" alt="Convention Thumbnail">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? $this->placeholder('content_top')->captureEnd(); ?>
|
||||
<? $this->placeholder('content_top')->captureEnd(); ?>
|
||||
<? endif; ?>
|
||||
|
||||
<? foreach($this->videos as $folder_name => $videos): ?>
|
||||
<h2><i class="icon-folder-open"></i> <?=$folder_name ?></h2>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 24 KiB |
Binary file not shown.
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 11 KiB |
Loading…
Reference in New Issue
Block a user