Lines Matching refs:attrs
11 protected $attrs = [];
18 $this->attrs = $data['attrs'];
27 if (!empty($this->attrs['title'])) {
28 $title = '|' . $this->attrs['title'];
33 if (!empty($this->attrs['align'])) {
34 if ($this->attrs['align'] === 'left') {
36 } elseif ($this->attrs['align'] === 'right') {
38 } elseif ($this->attrs['align'] === 'center') {
45 if (!empty($this->attrs['height'])) {
46 $query[] = $this->attrs['width'] . 'x' . $this->attrs['height'];
47 } elseif (!empty($this->attrs['width'])) {
48 $query[] = $this->attrs['width'];
50 if (!empty($this->attrs['linking']) && $this->attrs['linking'] !== 'details') {
51 $query[] = $this->attrs['linking'];
53 if (!empty($this->attrs['cache']) && $this->attrs['cache'] !== 'cache') {
54 $query[] = $this->attrs['cache'];
63 return '{{' . $leftAlign . $this->attrs['id'] . $queryString . $rightAlign . $title . '}}';