|
17 | 17 | Container::get('hooks')->fire('view.profile.section_display.start'); |
18 | 18 | ?> |
19 | 19 |
|
20 | | -<div class="blockform"> |
21 | | - <h2><span><?= Utils::escape($user['username']).' - '.__('Section display') ?></span></h2> |
22 | | - <div class="box"> |
23 | | - <form id="profile5" method="post" action="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-ent"><?= Router::pathFor('profileSection', ['id' => $id, 'section' => 'display']) ?>"> |
24 | | - <input type="hidden" name="csrf_name" value="<?= $csrf_name; ?>"><input type="hidden" name="csrf_value" value="<?= $csrf_value; ?>"> |
25 | | - <div><input type="hidden" name="form_sent" value="1" /></div> |
| 20 | + <div class="blockform"> |
| 21 | + <h2><span><?= Utils::escape($user['username']).' - '.__('Section display') ?></span></h2> |
| 22 | + <div class="box"> |
| 23 | + <form id="profile5" method="post" action="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-ent"><?= Router::pathFor('profileSection', ['id' => $id, 'section' => 'display']) ?>"> |
| 24 | + <input type="hidden" name="csrf_name" value="<?= $csrf_name; ?>"><input type="hidden" name="csrf_value" value="<?= $csrf_value; ?>"> |
| 25 | + <div><input type="hidden" name="form_sent" value="1" /></div> |
26 | 26 | <?php |
27 | 27 |
|
28 | 28 | $styles = \FeatherBB\Core\Lister::getStyles(); |
|
32 | 32 | echo "\t\t\t".'<div><input type="hidden" name="form_style" value="'.$styles[0].'" /></div>'."\n"; |
33 | 33 | } elseif (count($styles) > 1) { |
34 | 34 | ?> |
35 | | - <div class="inform"> |
36 | | - <fieldset> |
37 | | - <legend><?php _e('Style legend') ?></legend> |
38 | | - <div class="infldset"> |
39 | | - <label><?php _e('Styles') ?><br /> |
40 | | - <select name="form_style"> |
| 35 | + <div class="inform"> |
| 36 | + <fieldset> |
| 37 | + <legend><?php _e('Style legend') ?></legend> |
| 38 | + <div class="infldset"> |
| 39 | + <label><?php _e('Styles') ?><br /> |
| 40 | + <select name="form_style"> |
41 | 41 | <?php |
42 | 42 |
|
43 | 43 | foreach ($styles as $temp) { |
|
49 | 49 | } |
50 | 50 |
|
51 | 51 | ?> |
52 | | - </select> |
53 | | - <br /></label> |
54 | | - </div> |
55 | | - </fieldset> |
56 | | - </div> |
| 52 | + </select> |
| 53 | + <br /></label> |
| 54 | + </div> |
| 55 | + </fieldset> |
| 56 | + </div> |
57 | 57 | <?php |
58 | 58 |
|
59 | 59 | } |
60 | 60 |
|
61 | 61 | ?> |
62 | 62 | <?php if (ForumSettings::get('smilies') == '1' || ForumSettings::get('smilies.sig') == '1' || ForumSettings::get('o_signatures') == '1' || ForumSettings::get('o_avatars') == '1' || (ForumSettings::get('p_message_bbcode') == '1' && ForumSettings::get('p_message_img_tag') == '1')): ?> |
63 | | - <div class="inform"> |
64 | | - <fieldset> |
65 | | - <legend><?php _e('Post display legend') ?></legend> |
66 | | - <div class="infldset"> |
67 | | - <p><?php _e('Post display info') ?></p> |
68 | | - <div class="rbox"> |
69 | | -<?php if (ForumSettings::get('smilies') == '1' || ForumSettings::get('smilies.sig') == '1'): ?> <label><input type="checkbox" name="form_show_smilies" value="1"<?php if (User::getPref('smilies', $user['id']) == '1') { |
70 | | - echo ' checked="checked"'; |
71 | | -} ?> /><?php _e('Show smilies') ?><br /></label> |
72 | | -<?php endif; if (ForumSettings::get('o_signatures') == '1'): ?> <label><input type="checkbox" name="form_show_sig" value="1"<?php if ($user['show_sig'] == '1') { |
73 | | - echo ' checked="checked"'; |
74 | | -} ?> /><?php _e('Show sigs') ?><br /></label> |
75 | | -<?php endif; if (ForumSettings::get('o_avatars') == '1'): ?> <label><input type="checkbox" name="form_show_avatars" value="1"<?php if ($user['show_avatars'] == '1') { |
76 | | - echo ' checked="checked"'; |
77 | | -} ?> /><?php _e('Show avatars') ?><br /></label> |
78 | | -<?php endif; if (ForumSettings::get('p_message_bbcode') == '1' && ForumSettings::get('p_message_img_tag') == '1'): ?> <label><input type="checkbox" name="form_show_img" value="1"<?php if ($user['show_img'] == '1') { |
79 | | - echo ' checked="checked"'; |
80 | | -} ?> /><?php _e('Show images') ?><br /></label> |
81 | | -<?php endif; if (ForumSettings::get('o_signatures') == '1' && ForumSettings::get('p_sig_bbcode') == '1' && ForumSettings::get('p_sig_img_tag') == '1'): ?> <label><input type="checkbox" name="form_show_img_sig" value="1"<?php if ($user['show_img_sig'] == '1') { |
82 | | - echo ' checked="checked"'; |
83 | | -} ?> /><?php _e('Show images sigs') ?><br /></label> |
| 63 | + <div class="inform"> |
| 64 | + <fieldset> |
| 65 | + <legend><?php _e('Post display legend') ?></legend> |
| 66 | + <div class="infldset"> |
| 67 | + <p><?php _e('Post display info') ?></p> |
| 68 | + <div class="rbox"> |
| 69 | +<?php if (ForumSettings::get('smilies') == '1' || ForumSettings::get('smilies.sig') == '1'): ?> |
| 70 | + <label><input type="checkbox" name="form_show_smilies" value="1"<?php if (User::getPref('smilies', $user['id']) == '1') {echo ' checked="checked"';} ?> /><?php _e('Show smilies') ?><br /></label> |
| 71 | +<?php endif; if (ForumSettings::get('o_signatures') == '1'): ?> |
| 72 | + <label><input type="checkbox" name="form_show_sig" value="1"<?php if ($user['show_sig'] == '1') {echo ' checked="checked"';} ?> /><?php _e('Show sigs') ?><br /></label> |
| 73 | +<?php endif; if (ForumSettings::get('o_avatars') == '1'): ?> |
| 74 | + <label><input type="checkbox" name="form_show_avatars" value="1"<?php if ($user['show_avatars'] == '1') {echo ' checked="checked"';} ?> /><?php _e('Show avatars') ?><br /></label> |
| 75 | +<?php endif; if (ForumSettings::get('p_message_bbcode') == '1' && ForumSettings::get('p_message_img_tag') == '1'): ?> |
| 76 | + <label><input type="checkbox" name="form_show_img" value="1"<?php if (User::getPref('show.img', $user['id']) == '1') {echo ' checked="checked"';} ?> /><?php _e('Show images') ?><br /></label> |
| 77 | +<?php endif; if (ForumSettings::get('o_signatures') == '1' && ForumSettings::get('p_sig_bbcode') == '1' && ForumSettings::get('p_sig_img_tag') == '1'): ?> |
| 78 | + <label><input type="checkbox" name="form_show_img_sig" value="1"<?php if (User::getPref('show.img.sig', $user['id']) == '1') {echo ' checked="checked"';} ?> /><?php _e('Show images sigs') ?><br /></label> |
84 | 79 | <?php endif; ?> |
| 80 | + </div> |
85 | 81 | </div> |
86 | | - </div> |
87 | | - </fieldset> |
88 | | - </div> |
| 82 | + </fieldset> |
| 83 | + </div> |
89 | 84 | <?php endif; ?> |
90 | | - <div class="inform"> |
91 | | - <fieldset> |
92 | | - <legend><?php _e('Pagination legend') ?></legend> |
93 | | - <div class="infldset"> |
94 | | - <label class="conl"><?php _e('Topics per page') ?><br /><input type="text" name="form_disp_topics" value="<?= User::getPref('disp.topics', $user['id']) ?>" size="6" maxlength="2" /><br /></label> |
95 | | - <label class="conl"><?php _e('Posts per page') ?><br /><input type="text" name="form_disp_posts" value="<?= User::getPref('disp.posts', $user['id']) ?>" size="6" maxlength="2" /><br /></label> |
96 | | - <p class="clearb"><?php _e('Paginate info') ?> <?php _e('Leave blank') ?></p> |
97 | | - </div> |
98 | | - </fieldset> |
99 | | - </div> |
100 | | - <p class="buttons"><input type="submit" name="update" value="<?php _e('Submit') ?>" /> <?php _e('Instructions') ?></p> |
101 | | - </form> |
| 85 | + <div class="inform"> |
| 86 | + <fieldset> |
| 87 | + <legend><?php _e('Pagination legend') ?></legend> |
| 88 | + <div class="infldset"> |
| 89 | + <label class="conl"><?php _e('Topics per page') ?><br /><input type="text" name="form_disp_topics" value="<?= User::getPref('disp.topics', $user['id']) ?>" size="6" maxlength="2" /><br /></label> |
| 90 | + <label class="conl"><?php _e('Posts per page') ?><br /><input type="text" name="form_disp_posts" value="<?= User::getPref('disp.posts', $user['id']) ?>" size="6" maxlength="2" /><br /></label> |
| 91 | + <p class="clearb"><?php _e('Paginate info') ?> <?php _e('Leave blank') ?></p> |
| 92 | + </div> |
| 93 | + </fieldset> |
| 94 | + </div> |
| 95 | + <p class="buttons"><input type="submit" name="update" value="<?php _e('Submit') ?>" /> <?php _e('Instructions') ?></p> |
| 96 | + </form> |
| 97 | + </div> |
| 98 | + </div> |
| 99 | + <div class="clearer"></div> |
102 | 100 | </div> |
103 | | -</div> |
104 | | - <div class="clearer"></div> |
105 | | -</div> |
106 | 101 |
|
107 | 102 | <?php |
108 | 103 | Container::get('hooks')->fire('view.profile.section_display.end'); |
0 commit comments