PhotoLinks
This commit is contained in:
parent
7f825feb8f
commit
ce178ddea9
|
|
@ -7,6 +7,7 @@ class Photo extends Model
|
||||||
$this->_tableName_ = 'photos';
|
$this->_tableName_ = 'photos';
|
||||||
parent::__construct($fromArray);
|
parent::__construct($fromArray);
|
||||||
$this->setRelation('point', 'pointId', 'Point', 'id', self::TO_ONE);
|
$this->setRelation('point', 'pointId', 'Point', 'id', self::TO_ONE);
|
||||||
|
$this->setRelation('link', 'name', 'PhotoLinks', 'photo', self::TO_ONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static function model()
|
static function model()
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($photos): ?>
|
<?php if ($photos): ?>
|
||||||
<?php foreach ($photos as $photo): ?>
|
<?php foreach ($photos as $photo): ?>
|
||||||
<img data-thumb="/photos/small/<?= $photo->name ?>" src="/photos/middle/<?= $photo->name ?>">
|
<img data-thumb="/photos/small/<?= $photo->name ?>" src="/photos/middle/<?= $photo->name ?>" data-caption="<?= $photo->link->url?>">
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<span data-thumb="/img/mapThumb.png">
|
<span data-thumb="/img/mapThumb.png">
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ div.header img {height: 89px;}
|
||||||
div.add {cursor: pointer;}
|
div.add {cursor: pointer;}
|
||||||
|
|
||||||
.fotorama {display: inline-block;}
|
.fotorama {display: inline-block;}
|
||||||
|
div.fotorama__caption {text-align: left;font-size: 9px;margin-bottom: 5px;opacity: 0.6;}
|
||||||
|
div.fotorama__caption div.fotorama__caption__wrap {padding: 0px 5px;}
|
||||||
|
|
||||||
#addPointModal .extraImage .button {cursor: pointer; background-color: #eeeeee;}
|
#addPointModal .extraImage .button {cursor: pointer; background-color: #eeeeee;}
|
||||||
#addPointModal .extraImage .remove:hover {background-color: #f4bfbf;}
|
#addPointModal .extraImage .remove:hover {background-color: #f4bfbf;}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue