/
ShashinPhotoDisplayerYoutubeOther.php
executable file
·61 lines (46 loc) · 1.56 KB
/
ShashinPhotoDisplayerYoutubeOther.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
class Public_ShashinPhotoDisplayerYoutubeOther extends Public_ShashinPhotoDisplayerYoutube {
public function __construct() {
parent::__construct();
}
public function setImgTitle() {
if (in_array('images', $this->settings->otherTitle)) {
return parent::setImgTitle();
}
return null;
}
public function setImgClass() {
parent::setImgClass();
if ($this->settings->otherImageClass) {
$this->imgClass .= ' ' . $this->settings->otherImageClass;
}
return $this->imgClass;
}
public function setLinkRelVideo() {
$this->linkRel = $this->settings->otherRelVideo;
$this->generateLinkRelGroupMarker();
return $this->linkRel;
}
private function generateLinkRelGroupMarker() {
if ($this->settings->otherRelDelimiter == 'brackets') {
$this->linkRel .= '[' . $this->sessionManager->getGroupCounter() . ']';
}
else {
$this->linkRel .= '-' . $this->sessionManager->getGroupCounter();
}
}
public function setLinkTitle() {
$this->linkTitle = null;
if (in_array('links', $this->settings->otherTitle)) {
$this->linkTitle = str_replace('"', '"', $this->dataObject->description);
}
return $this->linkTitle;
}
public function setLinkClass() {
$this->linkClass = null;
if ($this->settings->otherLinkClass) {
$this->linkClass = $this->settings->otherLinkClass;
}
return $this->linkClass;
}
}