@@ -27,7 +27,7 @@ |
||
27 | 27 | * @param \blitze\content\services\quickmod $quickmod Quick moderator tools |
28 | 28 | * @param \blitze\content\services\topic\blocks_factory $topic_blocks_factory Topic blocks factory object |
29 | 29 | * @param \phpbb\request\request_interface $request Request object |
30 | - */ |
|
30 | + */ |
|
31 | 31 | public function __construct(\phpbb\event\dispatcher_interface $phpbb_dispatcher, \phpbb\language\language $language, \phpbb\pagination $pagination, \phpbb\template\template $template, \blitze\content\services\fields $fields, \blitze\sitemaker\services\forum\data $forum, \blitze\content\services\helper $helper, \blitze\content\services\quickmod $quickmod, \blitze\content\services\topic\blocks_factory $topic_blocks_factory, \phpbb\request\request_interface $request) |
32 | 32 | { |
33 | 33 | parent::__construct($phpbb_dispatcher, $language, $pagination, $template, $fields, $forum, $helper, $quickmod, $topic_blocks_factory); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $value = $this->request->variable($data['field_name'], $data['field_value']); |
53 | 53 | $value = $this->get_image_src($value); |
54 | 54 | |
55 | - return ($value) ? '[img]' . $value . '[/img]' : ''; |
|
55 | + return ($value) ? '[img]'.$value.'[/img]' : ''; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | $this->set_filemanager($data); |
79 | 79 | $this->ptemplate->assign_vars($data); |
80 | - $field = $this->ptemplate->render_view('blitze/content', "fields/image.html", $field . '_field'); |
|
80 | + $field = $this->ptemplate->render_view('blitze/content', "fields/image.html", $field.'_field'); |
|
81 | 81 | |
82 | 82 | $data['field_value'] = $bbcode_value; |
83 | 83 | |
@@ -137,14 +137,14 @@ discard block |
||
137 | 137 | */ |
138 | 138 | private function get_image_html($image, $mode, $title, array $field_props) |
139 | 139 | { |
140 | - $image = $image ?: '<img src="' . $field_props['default'] . '" class="postimage" alt="' . $title . '" />'; |
|
140 | + $image = $image ?: '<img src="'.$field_props['default'].'" class="postimage" alt="'.$title.'" />'; |
|
141 | 141 | |
142 | - $html = '<figure class="img-ui">' . $image . '</figure>'; |
|
142 | + $html = '<figure class="img-ui">'.$image.'</figure>'; |
|
143 | 143 | if ($mode !== 'block') |
144 | 144 | { |
145 | - $view_props = array_fill_keys(array($mode . '_size', $mode . '_align'), ''); |
|
145 | + $view_props = array_fill_keys(array($mode.'_size', $mode.'_align'), ''); |
|
146 | 146 | $image_props = array_filter(array_intersect_key($field_props, $view_props)); |
147 | - $html = '<div class="' . join(' ', $image_props) . '">' . $html . '</div>'; |
|
147 | + $html = '<div class="'.join(' ', $image_props).'">'.$html.'</div>'; |
|
148 | 148 | } |
149 | 149 | return $html; |
150 | 150 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | { |
160 | 160 | $data['filemanager_path'] = append_sid("{$this->phpbb_root_path}ResponsiveFilemanager/filemanager/dialog.$this->php_ext", array( |
161 | 161 | 'type' => 1, |
162 | - 'field_id' => 'smc-' . $data['field_name'], |
|
162 | + 'field_id' => 'smc-'.$data['field_name'], |
|
163 | 163 | 'akey' => $this->filemanager->get_access_key(), |
164 | 164 | )); |
165 | 165 | } |
@@ -58,22 +58,22 @@ |
||
58 | 58 | '@blitze_content/assets/fields/display.min.js', |
59 | 59 | ), |
60 | 60 | 'css' => array( |
61 | - '@blitze_content/assets/fields/share/' . $props['theme'] . '.min.css', |
|
61 | + '@blitze_content/assets/fields/share/'.$props['theme'].'.min.css', |
|
62 | 62 | ) |
63 | 63 | )); |
64 | 64 | |
65 | 65 | $classes = ['social-share', $props['corners'], $props['placement']]; |
66 | 66 | $attributes = [ |
67 | - 'class="' . join(' ', array_filter($classes)) . '"', |
|
68 | - 'data-show-label="' . $props['show_label'] . '"', |
|
69 | - 'data-show-count="' . $props['show_count'] . '"', |
|
70 | - 'data-share-in="' . $props['sharein'] . '"', |
|
71 | - 'data-shares="' . join(',', $props['defaults']) . '"', |
|
72 | - 'data-url="' . $topic_data['PERMA_LINK'] . '"', |
|
73 | - 'style="font-size: ' . $props['size'] . 'px"', |
|
67 | + 'class="'.join(' ', array_filter($classes)).'"', |
|
68 | + 'data-show-label="'.$props['show_label'].'"', |
|
69 | + 'data-show-count="'.$props['show_count'].'"', |
|
70 | + 'data-share-in="'.$props['sharein'].'"', |
|
71 | + 'data-shares="'.join(',', $props['defaults']).'"', |
|
72 | + 'data-url="'.$topic_data['PERMA_LINK'].'"', |
|
73 | + 'style="font-size: '.$props['size'].'px"', |
|
74 | 74 | ]; |
75 | 75 | |
76 | - return '<div ' . join(' ', $attributes) . '></div>'; |
|
76 | + return '<div '.join(' ', $attributes).'></div>'; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function display_field(array $data, array $topic_data, $view_mode) |
38 | 38 | { |
39 | - return $data['field_value'] ? '<a href="tel:' . $data['field_value'] . '">' . preg_replace("/^1?(\d{3})(\d{3})(\d{4})$/", "$1-$2-$3", $data['field_value']) . '</a>' : ''; |
|
39 | + return $data['field_value'] ? '<a href="tel:'.$data['field_value'].'">'.preg_replace("/^1?(\d{3})(\d{3})(\d{4})$/", "$1-$2-$3", $data['field_value']).'</a>' : ''; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -56,7 +56,7 @@ |
||
56 | 56 | 'pagination' => array('lang' => 'SWIPER_PAGINATION', 'validate' => 'string', 'type' => 'select', 'options' => $pagination_options, 'default' => 1), |
57 | 57 | 'effect' => array('lang' => 'SWIPER_EFFECT', 'validate' => 'string', 'type' => 'select', 'options' => $effect_options, 'default' => 'slide'), |
58 | 58 | 'parallax' => array('lang' => 'SWIPER_PARALLAX_IMAGE_URL', 'validate' => 'string', 'type' => 'text', 'default' => ''), |
59 | - 'direction' => array('lang' => 'SWIPER_DIRECTION', 'validate' => 'string', 'type' => 'select:1:0:direction', 'options' => $direction_options, 'default' => 'horizontal', 'append' => '<div id="direction-vertical" class="error small">' . $this->language->lang('SWIPER_HEIGHT_REQUIRED') . '</div>'), |
|
59 | + 'direction' => array('lang' => 'SWIPER_DIRECTION', 'validate' => 'string', 'type' => 'select:1:0:direction', 'options' => $direction_options, 'default' => 'horizontal', 'append' => '<div id="direction-vertical" class="error small">'.$this->language->lang('SWIPER_HEIGHT_REQUIRED').'</div>'), |
|
60 | 60 | 'height' => array('lang' => 'SWIPER_HEIGHT', 'validate' => 'int:0', 'type' => 'number:0', 'default' => 0, 'append' => 'PIXEL'), |
61 | 61 | 'thumbs' => array('lang' => 'SWIPER_THUMBNAILS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'default' => 0), |
62 | 62 | 'loop' => array('lang' => 'SWIPER_LOOP', 'validate' => 'bool', 'type' => 'radio:yes_no', 'default' => 1), |
@@ -171,17 +171,17 @@ discard block |
||
171 | 171 | $topic_tracking_info = $this->forum->get_topic_tracking_info($forum_id); |
172 | 172 | $block_fields = $this->get_block_fields($entity->get_field_types()); |
173 | 173 | |
174 | - $this->fields->prepare_to_show($entity, array_keys($topics_data), $block_fields, $this->settings['block_tpl'], 'block', $block_id . '_block'); |
|
174 | + $this->fields->prepare_to_show($entity, array_keys($topics_data), $block_fields, $this->settings['block_tpl'], 'block', $block_id.'_block'); |
|
175 | 175 | |
176 | 176 | $update_count = array(); |
177 | 177 | foreach ($topics_data as $topic_id => $topic_data) |
178 | 178 | { |
179 | - $post_data = array_shift($posts_data[$topic_id]); |
|
179 | + $post_data = array_shift($posts_data[$topic_id]); |
|
180 | 180 | $this->ptemplate->assign_block_vars('topicrow', $this->fields->show($type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info)); |
181 | 181 | } |
182 | 182 | unset($topics_data, $posts_data, $users_cache, $attachments, $topic_tracking_info); |
183 | 183 | |
184 | - $content = $this->ptemplate->render_view('blitze/content', "blocks/{$this->tpl_name}.html", $this->tpl_name . '_block'); |
|
184 | + $content = $this->ptemplate->render_view('blitze/content', "blocks/{$this->tpl_name}.html", $this->tpl_name.'_block'); |
|
185 | 185 | } |
186 | 186 | |
187 | 187 | return array( |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | POST_STICKY => 'CONTENT_STICKY_POSTS', |
203 | 203 | ); |
204 | 204 | |
205 | - return $this->language->lang((isset($topic_types[$this->settings['topic_type']])) ? $topic_types[$this->settings['topic_type']] : 'CONTENT_' . $this->sort_options[$this->settings['sort_key']], $content_langname); |
|
205 | + return $this->language->lang((isset($topic_types[$this->settings['topic_type']])) ? $topic_types[$this->settings['topic_type']] : 'CONTENT_'.$this->sort_options[$this->settings['sort_key']], $content_langname); |
|
206 | 206 | } |
207 | 207 | |
208 | 208 | /** |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | foreach ($content_types as $value => $title) |
270 | 270 | { |
271 | 271 | $selected = ($type == $value) ? ' selected="selected"' : ''; |
272 | - $html .= '<option value="' . $value . '"' . $selected . ' data-toggle-setting="#fields-col-' . $value . '">' . $title . '</option>'; |
|
272 | + $html .= '<option value="'.$value.'"'.$selected.' data-toggle-setting="#fields-col-'.$value.'">'.$title.'</option>'; |
|
273 | 273 | } |
274 | 274 | |
275 | 275 | return $html; |