@php
if($type) {
$parameters[] = [
'name' => 'url',
'type' => $type,
'format' => 'string',
'description' => __('The website\'s URL.')
];
}
$parameters[] = [
'name' => 'privacy',
'type' => 0,
'format' => 'integer',
'description' => __('Stats page privacy.') . ' ' . __('Possible values are: :values.', [
'values' => implode(', ', [
__(':value for :name', ['value' => '0
', 'name' => ''.__('Public').'']),
__(':value for :name', ['value' => '1
', 'name' => ''.__('Private').'']),
__(':value for :name', ['value' => '2
', 'name' => ''.__('Password').''])
])
]) . ($type ? ' ' . __('Defaults to: :value.', ['value' => '1
']) : '')
];
$parameters[] = [
'name' => 'password',
'type' => 0,
'format' => 'string',
'description' => __('The password for the statistics page.') . ' ' . __('Only works with :field set to :value.', ['field' => 'privacy
', 'value' => '2
'])
];
$parameters[] = [
'name' => 'email',
'type' => 0,
'format' => 'integer',
'description' => __('Periodic email reports.') . ' ' . __('Possible values are: :values.', [
'values' => implode(', ', [
__(':value for :name', ['value' => '0
', 'name' => ''.__('Disabled').'']),
__(':value for :name', ['value' => '1
', 'name' => ''.__('Enabled').''])
])
]) . ($type ? ' ' . __('Defaults to: :value.', ['value' => '0
']) : '')
];
$parameters[] = [
'name' => 'exclude_bots',
'type' => 0,
'format' => 'integer',
'description' => __('Exclude common bots from being tracked.') . ' ' . __('Possible values are: :values.', [
'values' => implode(', ', [
__(':value for :name', ['value' => '0
', 'name' => ''.__('Disabled').'']),
__(':value for :name', ['value' => '1
', 'name' => ''.__('Enabled').''])
])
]) . ($type ? ' ' . __('Defaults to: :value.', ['value' => '1
']) : '')
];
$parameters[] = [
'name' => 'exclude_params',
'type' => 0,
'format' => 'string',
'description' => __('Exclude URL query parameters from being tracked.') . ' ' . __('One per line.')
];
$parameters[] = [
'name' => 'exclude_ips',
'type' => 0,
'format' => 'string',
'description' => __('Exclude IPs from being tracked.') . ' ' . __('One per line.')
];
@endphp
@include('developers.parameters')