@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | |
42 | 42 | // Let's create the new BBCode |
43 | 43 | $configurator->BBCodes->addCustom( |
44 | - '[pagebreak title={SIMPLETEXT;optional;postFilter=ucwords}]', |
|
45 | - '<p><!-- pagebreak --></p>' . |
|
46 | - '<xsl:if test="@title"><h4>{SIMPLETEXT}</h4><br /></xsl:if>' |
|
44 | + '[pagebreak title={SIMPLETEXT;optional;postFilter=ucwords}]', |
|
45 | + '<p><!-- pagebreak --></p>' . |
|
46 | + '<xsl:if test="@title"><h4>{SIMPLETEXT}</h4><br /></xsl:if>' |
|
47 | 47 | ); |
48 | 48 | } |
49 | 49 | |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | |
63 | 63 | // Let's create the new BBCode |
64 | 64 | $configurator->BBCodes->addCustom( |
65 | - '[tag={IDENTIFIER}]{TEXT}[/tag]', |
|
66 | - "<!-- begin field -->\n" . |
|
65 | + '[tag={IDENTIFIER}]{TEXT}[/tag]', |
|
66 | + "<!-- begin field -->\n" . |
|
67 | 67 | "<div data-field=\"{IDENTIFIER}\">{TEXT}</div><br />\n" . |
68 | 68 | "<!-- end field -->\n" |
69 | 69 | ); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | // Let's create the new BBCode |
43 | 43 | $configurator->BBCodes->addCustom( |
44 | 44 | '[pagebreak title={SIMPLETEXT;optional;postFilter=ucwords}]', |
45 | - '<p><!-- pagebreak --></p>' . |
|
45 | + '<p><!-- pagebreak --></p>'. |
|
46 | 46 | '<xsl:if test="@title"><h4>{SIMPLETEXT}</h4><br /></xsl:if>' |
47 | 47 | ); |
48 | 48 | } |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | // Let's create the new BBCode |
64 | 64 | $configurator->BBCodes->addCustom( |
65 | 65 | '[tag={IDENTIFIER}]{TEXT}[/tag]', |
66 | - "<!-- begin field -->\n" . |
|
67 | - "<div data-field=\"{IDENTIFIER}\">{TEXT}</div><br />\n" . |
|
66 | + "<!-- begin field -->\n". |
|
67 | + "<div data-field=\"{IDENTIFIER}\">{TEXT}</div><br />\n". |
|
68 | 68 | "<!-- end field -->\n" |
69 | 69 | ); |
70 | 70 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * Constructor |
30 | 30 | * |
31 | 31 | * @param \blitze\content\services\form\builder $builder Form builder object |
32 | - */ |
|
32 | + */ |
|
33 | 33 | public function __construct(\blitze\content\services\form\builder $builder) |
34 | 34 | { |
35 | 35 | $this->builder = $builder; |
@@ -160,8 +160,7 @@ |
||
160 | 160 | if ($this->build_content) |
161 | 161 | { |
162 | 162 | $event['redirect_url'] = $this->builder->get_cp_url(); |
163 | - } |
|
164 | - else |
|
163 | + } else |
|
165 | 164 | { |
166 | 165 | $topic_url = $this->builder->get_post_url($this->content_type, $event['post_data']); |
167 | 166 |
@@ -172,8 +172,8 @@ discard block |
||
172 | 172 | $update_count = array(); |
173 | 173 | foreach ($posts_data as $topic_id => $posts) |
174 | 174 | { |
175 | - $post_data = array_shift($posts); |
|
176 | - $topic_data = $topics_data[$topic_id]; |
|
175 | + $post_data = array_shift($posts); |
|
176 | + $topic_data = $topics_data[$topic_id]; |
|
177 | 177 | $this->ptemplate->assign_block_vars('topicrow', $this->fields->show($type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info)); |
178 | 178 | } |
179 | 179 | unset($topics_data, $posts_data, $users_cache, $attachments, $topic_tracking_info); |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | POST_STICKY => 'CONTENT_STICKY_POSTS', |
201 | 201 | ); |
202 | 202 | |
203 | - return (isset($topic_types[$this->settings['topic_type']])) ? $topic_types[$this->settings['topic_types']] : $this->language->lang('CONTENT_' . $this->sort_options[$this->settings['sort_key']], $content_langname); |
|
203 | + return (isset($topic_types[$this->settings['topic_type']])) ? $topic_types[$this->settings['topic_types']] : $this->language->lang('CONTENT_'.$this->sort_options[$this->settings['sort_key']], $content_langname); |
|
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | foreach ($content_types as $value => $title) |
268 | 268 | { |
269 | 269 | $selected = ($type == $value) ? ' selected="selected"' : ''; |
270 | - $html .= '<option value="' . $value . '"' . $selected . ' data-toggle-setting="#fields-col-' . $value . '">' . $title . '</option>'; |
|
270 | + $html .= '<option value="'.$value.'"'.$selected.' data-toggle-setting="#fields-col-'.$value.'">'.$title.'</option>'; |
|
271 | 271 | } |
272 | 272 | |
273 | 273 | return $html; |