Lines Matching defs:attrs
12 protected $attrs = [];
19 $this->attrs = $data['attrs'];
28 if (!empty($this->attrs['title'])) {
29 $title = '|' . $this->attrs['title'];
34 if (!empty($this->attrs['align'])) {
35 if ($this->attrs['align'] === 'left') {
37 } elseif ($this->attrs['align'] === 'right') {
39 } elseif ($this->attrs['align'] === 'center') {
46 if (!empty($this->attrs['height'])) {
47 $query[] = $this->attrs['width'] . 'x' . $this->attrs['height'];
48 } elseif (!empty($this->attrs['width'])) {
49 $query[] = $this->attrs['width'];
51 if (!empty($this->attrs['linking']) && $this->attrs['linking'] !== 'details') {
52 $query[] = $this->attrs['linking'];
54 if (!empty($this->attrs['cache']) && $this->attrs['cache'] !== 'cache') {
55 $query[] = $this->attrs['cache'];
64 return '{{' . $leftAlign . $this->attrs['id'] . $queryString . $rightAlign . $title . '}}';