Passed
Push — master ( 29baaf...069627 )
by Mihail
06:51
created

Apps/View/Admin/default/content/settings.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/** @var $this object */
4
/** @var $model Apps\Model\Admin\Content\FormSettings */
5
6
use Ffcms\Core\Helper\HTML\Form;
7
use Ffcms\Core\Helper\Url;
8
9
$this->title = __('Settings');
10
11
$this->breadcrumbs = [
12
    Url::to('main/index') => __('Main'),
13
    Url::to('application/index') => __('Applications'),
14
    Url::to('content/index') => __('Contents'),
15
    __('Settings')
16
];
17
18
?>
19
20
<?= $this->render('content/_tabs') ?>
21
22
<h1><?= __('Content settings') ?></h1>
23
<hr />
24
25
<?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '']); ?>
26
27
<?= $form->start() ?>
0 ignored issues
show
The method start() does not seem to exist on object<Ffcms\Core\Helper\HTML\Form>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
28
29
<?= $form->field('itemPerCategory', 'text', ['class' => 'form-control'], __('Count of content items per each page of category')) ?>
30
<?= $form->field('userAdd', 'checkbox', null, __('Allow users add content pages?')) ?>
31
<?= $form->field('multiCategories', 'checkbox', null, __('Display content in depended categories of?')) ?>
32
<?= $form->field('galleryResize', 'text', ['class' => 'form-control'], __('Specify maximum size of image in gallery in px')) ?>
33
<?= $form->field('gallerySize', 'text', ['class' => 'form-control'], __('Specify maximum image size in gallery in kb. Example: 500 = 0,5 mb')) ?>
34
<?= $form->field('keywordsAsTags', 'checkbox', null, __('Display tag list, based on keywords data?')) ?>
35
<?= $form->field('rss', 'checkbox', null, __('Display rss line of content add, changes, updates?')) ?>
36
<?= $form->field('rssFull', 'checkbox', null, __('Display full text of content in rss line?')) ?>
37
38
<div class="col-md-9 col-md-offset-3"><?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?></div>
39
40
<?= $form->finish() ?>