Fixed sending user settings
This commit is contained in:
parent
1be0ec3dcd
commit
fde6fc2a89
1 changed files with 25 additions and 9 deletions
|
@ -37,15 +37,21 @@ $settings = $this->context->transport->user->getSettings();
|
|||
<div class="form-row endless-scrolling">
|
||||
<label for="endless-scrolling">Endless scrolling:</label>
|
||||
<div class="input-wrapper">
|
||||
<label>
|
||||
<?php
|
||||
$attrs = [];
|
||||
$attrs['type'] = 'checkbox';
|
||||
$attrs['id'] = 'endless-scrolling';
|
||||
$attrs['name'] = 'endless-scrolling';
|
||||
$attrs['type'] = 'hidden';
|
||||
$attrs['value'] = '0';
|
||||
echo TextHelper::htmlTag('input', TextHelper::HTML_LEAF, $attrs);
|
||||
?>
|
||||
<label>
|
||||
<?php
|
||||
|
||||
$attrs['type'] = 'checkbox';
|
||||
$attrs['value'] = '1';
|
||||
$attrs['id'] = 'endless-scrolling';
|
||||
if ($settings->hasEnabledEndlessScrolling())
|
||||
$attrs['checked'] = 'checked';
|
||||
|
||||
echo TextHelper::htmlTag('input', TextHelper::HTML_LEAF, $attrs);
|
||||
?>
|
||||
Enabled
|
||||
|
@ -56,15 +62,20 @@ $settings = $this->context->transport->user->getSettings();
|
|||
<div class="form-row post-tag-titles">
|
||||
<label for="post-tag-titles">Tags in thumbs:</label>
|
||||
<div class="input-wrapper">
|
||||
<label>
|
||||
<?php
|
||||
$attrs = [];
|
||||
$attrs['type'] = 'checkbox';
|
||||
$attrs['id'] = 'post-tag-titles';
|
||||
$attrs['name'] = 'post-tag-titles';
|
||||
$attrs['type'] = 'hidden';
|
||||
$attrs['value'] = '0';
|
||||
echo TextHelper::htmlTag('input', TextHelper::HTML_LEAF, $attrs);
|
||||
?>
|
||||
<label>
|
||||
<?php
|
||||
$attrs['type'] = 'checkbox';
|
||||
$attrs['value'] = '1';
|
||||
$attrs['id'] = 'post-tag-titles';
|
||||
if ($settings->hasEnabledPostTagTitles())
|
||||
$attrs['checked'] = 'checked';
|
||||
|
||||
echo TextHelper::htmlTag('input', TextHelper::HTML_LEAF, $attrs);
|
||||
?>
|
||||
Enabled
|
||||
|
@ -75,15 +86,20 @@ $settings = $this->context->transport->user->getSettings();
|
|||
<div class="form-row hide-disliked-posts">
|
||||
<label for="hide-disliked-posts">Hide down-voted:</label>
|
||||
<div class="input-wrapper">
|
||||
<label>
|
||||
<?php
|
||||
$attrs = [];
|
||||
$attrs['type'] = 'checkbox';
|
||||
$attrs['id'] = 'hide-disliked-posts';
|
||||
$attrs['name'] = 'hide-disliked-posts';
|
||||
$attrs['type'] = 'hidden';
|
||||
$attrs['value'] = '0';
|
||||
echo TextHelper::htmlTag('input', TextHelper::HTML_LEAF, $attrs);
|
||||
?>
|
||||
<label>
|
||||
<?php
|
||||
$attrs['type'] = 'checkbox';
|
||||
$attrs['value'] = '1';
|
||||
$attrs['id'] = 'hide-disliked-posts';
|
||||
if ($settings->hasEnabledHidingDislikedPosts())
|
||||
$attrs['checked'] = 'checked';
|
||||
|
||||
echo TextHelper::htmlTag('input', TextHelper::HTML_LEAF, $attrs);
|
||||
?>
|
||||
Enabled
|
||||
|
|
Loading…
Reference in a new issue