@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $value = $this->request->variable($name, $value); |
| 38 | 38 | $value = $this->get_image_src($value); |
| 39 | 39 | |
| 40 | - return ($value) ? '[img]' . $value . '[/img]' : ''; |
|
| 40 | + return ($value) ? '[img]'.$value.'[/img]' : ''; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | )); |
| 59 | 59 | |
| 60 | 60 | $this->ptemplate->assign_vars($data); |
| 61 | - $field = $this->ptemplate->render_view('blitze/content', "fields/image.html", $field . '_field'); |
|
| 61 | + $field = $this->ptemplate->render_view('blitze/content', "fields/image.html", $field.'_field'); |
|
| 62 | 62 | |
| 63 | 63 | $data['field_value'] = $bbcode_value; |
| 64 | 64 | |
@@ -73,10 +73,10 @@ discard block |
||
| 73 | 73 | $image = ''; |
| 74 | 74 | if ($data['field_value']) |
| 75 | 75 | { |
| 76 | - $image = '<figure class="img-ui">' . $data['field_value'] . '</figure>'; |
|
| 76 | + $image = '<figure class="img-ui">'.$data['field_value'].'</figure>'; |
|
| 77 | 77 | if ($mode !== 'block') |
| 78 | 78 | { |
| 79 | - $image = '<div class="' . join(' ', array_filter($data['field_props'])) . '">' . $image . '</div>'; |
|
| 79 | + $image = '<div class="'.join(' ', array_filter($data['field_props'])).'">'.$image.'</div>'; |
|
| 80 | 80 | } |
| 81 | 81 | } |
| 82 | 82 | return $image; |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | foreach ($fields_data as $field => $value) |
| 145 | 145 | { |
| 146 | 146 | $value = is_array($value) ? join("\n", $value) : $value; |
| 147 | - $message .= '[smcf=' . $field . ']' . $value . '[/smcf]'; |
|
| 147 | + $message .= '[smcf='.$field.']'.$value.'[/smcf]'; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | return $message; |
@@ -196,13 +196,13 @@ discard block |
||
| 196 | 196 | $text = ''; |
| 197 | 197 | if ($entity = $this->types->get_type($content_type)) |
| 198 | 198 | { |
| 199 | - $fields_accessor = 'get_' . $view . '_fields'; |
|
| 200 | - $template_accessor = 'get_' . $view . '_tpl'; |
|
| 199 | + $fields_accessor = 'get_'.$view.'_fields'; |
|
| 200 | + $template_accessor = 'get_'.$view.'_tpl'; |
|
| 201 | 201 | |
| 202 | 202 | $this->fields->prepare_to_show($entity, array($post_data['topic_id']), $entity->$fields_accessor(), $entity->$template_accessor(), $view); |
| 203 | 203 | $content = $this->fields->build_content(array_change_key_case($post_data, CASE_UPPER)); |
| 204 | 204 | |
| 205 | - $text = $content['CUSTOM_DISPLAY'] ?: join('', $content['FIELDS']['all']); |
|
| 205 | + $text = $content['CUSTOM_DISPLAY'] ?: join('', $content['FIELDS']['all']); |
|
| 206 | 206 | } |
| 207 | 207 | return $text; |
| 208 | 208 | } |
@@ -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 | } |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | // smcf = sitemaker content field (hopefully unique enough) |
| 65 | 65 | $configurator->BBCodes->addCustom( |
| 66 | 66 | '[smcf={IDENTIFIER}]{TEXT}[/smcf]', |
| 67 | - "<!-- begin field -->\n" . |
|
| 68 | - "<div data-field=\"{IDENTIFIER}\">{TEXT}</div><br />\n" . |
|
| 67 | + "<!-- begin field -->\n". |
|
| 68 | + "<div data-field=\"{IDENTIFIER}\">{TEXT}</div><br />\n". |
|
| 69 | 69 | "<!-- end field -->\n" |
| 70 | 70 | ); |
| 71 | 71 | } |
@@ -309,10 +309,10 @@ |
||
| 309 | 309 | $detail_fields = $this->get_template_fields($detail_fields, $this->detail_tpl, $fields); |
| 310 | 310 | |
| 311 | 311 | $this->summary_fields = array_intersect_key($field_types, array_flip($summary_fields)); |
| 312 | - $this->detail_fields = array_intersect_key($field_types, array_flip($detail_fields)); |
|
| 312 | + $this->detail_fields = array_intersect_key($field_types, array_flip($detail_fields)); |
|
| 313 | 313 | |
| 314 | 314 | $this->content_fields = $content_fields; |
| 315 | - $this->field_types = $field_types; |
|
| 315 | + $this->field_types = $field_types; |
|
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | /** |