@@ -610,7 +610,7 @@ |
||
| 610 | 610 | } |
| 611 | 611 | |
| 612 | 612 | flextype('media')->folders()->move('entries/' . $data['entry_path_current'], |
| 613 | - 'entries/' . $data['entry_parent'] . '/' . flextype('slugify')->slugify($data['name'])); |
|
| 613 | + 'entries/' . $data['entry_parent'] . '/' . flextype('slugify')->slugify($data['name'])); |
|
| 614 | 614 | flextype('flash')->addMessage('success', __('admin_message_entry_renamed')); |
| 615 | 615 | } else { |
| 616 | 616 | flextype('flash')->addMessage('error', __('admin_message_entry_was_not_renamed')); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | 'create' => [ |
| 122 | 122 | 'link' => 'javascript:;', |
| 123 | 123 | 'title' => __('admin_create_new_entry'), |
| 124 | - 'onclick' => 'event.preventDefault(); selectEntryType("'.$this->getEntryID($query).'", 0);' |
|
| 124 | + 'onclick' => 'event.preventDefault(); selectEntryType("' . $this->getEntryID($query) . '", 0);' |
|
| 125 | 125 | ] |
| 126 | 126 | ] |
| 127 | 127 | ] |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $parts = [0 => '']; |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | - $type = isset($query['type']) ? $query['type']: ''; |
|
| 151 | + $type = isset($query['type']) ? $query['type'] : ''; |
|
| 152 | 152 | |
| 153 | 153 | return flextype('twig')->render( |
| 154 | 154 | $response, |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | if (flextype('registry')->has('plugins.site')) { |
| 250 | 250 | $template_path = PATH['project'] . '/themes/' . flextype('registry')->get('plugins.site.settings.theme') . '/templates/' . $data['fieldset'] . '.html'; |
| 251 | 251 | $template = (Filesystem::has($template_path)) ? $data['fieldset'] : 'default'; |
| 252 | - $data_from_post['template'] = $template; |
|
| 252 | + $data_from_post['template'] = $template; |
|
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | //foreach ($fieldset['sections'] as $section_name => $section_body) { |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | $data['entry_id_path_current'], |
| 516 | 516 | $data['parent_entry'] . '/' . $entry_id_current |
| 517 | 517 | )) { |
| 518 | - if (! flextype('media')->folders()->has('entries/' . $data['entry_id_path_current'])) { |
|
| 518 | + if (!flextype('media')->folders()->has('entries/' . $data['entry_id_path_current'])) { |
|
| 519 | 519 | flextype('media')->folders()->create('entries/' . $data['entry_id_path_current']); |
| 520 | 520 | } |
| 521 | 521 | |
@@ -605,7 +605,7 @@ discard block |
||
| 605 | 605 | $data['entry_path_current'], |
| 606 | 606 | $data['entry_parent'] . '/' . $name) |
| 607 | 607 | ) { |
| 608 | - if (! flextype('media')->folders()->has('entries/' . $data['entry_path_current'])) { |
|
| 608 | + if (!flextype('media')->folders()->has('entries/' . $data['entry_path_current'])) { |
|
| 609 | 609 | flextype('media')->folders()->create('entries/' . $data['entry_path_current']); |
| 610 | 610 | } |
| 611 | 611 | |
@@ -636,7 +636,7 @@ discard block |
||
| 636 | 636 | |
| 637 | 637 | if (flextype('entries')->delete($id)) { |
| 638 | 638 | |
| 639 | - if (! flextype('media')->folders()->has('entries/' . $id)) { |
|
| 639 | + if (!flextype('media')->folders()->has('entries/' . $id)) { |
|
| 640 | 640 | flextype('media')->folders()->create('entries/' . $id); |
| 641 | 641 | } |
| 642 | 642 | |
@@ -669,7 +669,7 @@ discard block |
||
| 669 | 669 | |
| 670 | 670 | flextype('entries')->copy($id, $id . '-duplicate-' . $random_date, true); |
| 671 | 671 | |
| 672 | - if (! flextype('media')->folders()->has('entries/' . $id)) { |
|
| 672 | + if (!flextype('media')->folders()->has('entries/' . $id)) { |
|
| 673 | 673 | flextype('media')->folders()->create('entries/' . $id); |
| 674 | 674 | } |
| 675 | 675 | |
@@ -750,7 +750,7 @@ discard block |
||
| 750 | 750 | |
| 751 | 751 | ], |
| 752 | 752 | 'edit_entry' => [ |
| 753 | - 'link' => flextype('router')->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query). '&type=editor', |
|
| 753 | + 'link' => flextype('router')->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query) . '&type=editor', |
|
| 754 | 754 | 'title' => __('admin_editor'), |
| 755 | 755 | |
| 756 | 756 | ], |
@@ -903,15 +903,15 @@ discard block |
||
| 903 | 903 | $data = $request->getParsedBody(); |
| 904 | 904 | |
| 905 | 905 | // Delete system fields |
| 906 | - isset($data['slug']) and Arrays::delete($data, 'slug'); |
|
| 907 | - isset($data['id']) and Arrays::delete($data, 'id'); |
|
| 908 | - isset($data['csrf_value']) and Arrays::delete($data, 'csrf_value'); |
|
| 909 | - isset($data['csrf_name']) and Arrays::delete($data, 'csrf_name'); |
|
| 910 | - isset($data['form-save-action']) and Arrays::delete($data, 'form-save-action'); |
|
| 911 | - isset($data['trumbowyg-icons-path']) and Arrays::delete($data, 'trumbowyg-icons-path'); |
|
| 912 | - isset($data['trumbowyg-locale']) and Arrays::delete($data, 'trumbowyg-locale'); |
|
| 906 | + isset($data['slug']) and Arrays::delete($data, 'slug'); |
|
| 907 | + isset($data['id']) and Arrays::delete($data, 'id'); |
|
| 908 | + isset($data['csrf_value']) and Arrays::delete($data, 'csrf_value'); |
|
| 909 | + isset($data['csrf_name']) and Arrays::delete($data, 'csrf_name'); |
|
| 910 | + isset($data['form-save-action']) and Arrays::delete($data, 'form-save-action'); |
|
| 911 | + isset($data['trumbowyg-icons-path']) and Arrays::delete($data, 'trumbowyg-icons-path'); |
|
| 912 | + isset($data['trumbowyg-locale']) and Arrays::delete($data, 'trumbowyg-locale'); |
|
| 913 | 913 | isset($data['flatpickr-date-format']) and Arrays::delete($data, 'flatpickr-date-format'); |
| 914 | - isset($data['flatpickr-locale']) and Arrays::delete($data, 'flatpickr-locale'); |
|
| 914 | + isset($data['flatpickr-locale']) and Arrays::delete($data, 'flatpickr-locale'); |
|
| 915 | 915 | |
| 916 | 916 | $data['published_by'] = flextype('acl')->getUserLoggedInUuid(); |
| 917 | 917 | |
@@ -937,7 +937,7 @@ discard block |
||
| 937 | 937 | |
| 938 | 938 | if (isset($data['routable'])) { |
| 939 | 939 | $data['routable'] = (bool) $data['routable']; |
| 940 | - } elseif(isset($entry['routable'])) { |
|
| 940 | + } elseif (isset($entry['routable'])) { |
|
| 941 | 941 | $data['routable'] = (bool) $entry['routable']; |
| 942 | 942 | } else { |
| 943 | 943 | $data['routable'] = true; |
@@ -991,7 +991,7 @@ discard block |
||
| 991 | 991 | { |
| 992 | 992 | $data = $request->getParsedBody(); |
| 993 | 993 | |
| 994 | - if (! flextype('media')->folders()->has('entries/' . $data['entry-id'])) { |
|
| 994 | + if (!flextype('media')->folders()->has('entries/' . $data['entry-id'])) { |
|
| 995 | 995 | flextype('media')->folders()->create('entries/' . $data['entry-id']); |
| 996 | 996 | } |
| 997 | 997 | |