Skip to content

Commit

Permalink
poster updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndresCortes committed Jul 14, 2024
1 parent e34c08f commit b1080ce
Showing 3 changed files with 42 additions and 37 deletions.
32 changes: 16 additions & 16 deletions Display.template.php
Original file line number Diff line number Diff line change
@@ -851,50 +851,50 @@ function template_single_post($message)

echo '
</div><!-- .under_message -->
</div><!-- .postarea -->
<div class="moderatorbar">';
<div class="moderatorbar">';

// Are there any custom profile fields for above the signature?
if (!empty($message['custom_fields']['above_signature']))
{
echo '
<div class="custom_fields_above_signature">
<ul class="nolist">';
<div class="custom_fields_above_signature">
<ul class="nolist">';

foreach ($message['custom_fields']['above_signature'] as $custom)
echo '
<li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>';
<li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>';

echo '
</ul>
</div>';
</ul>
</div>';
}

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
echo '
<div class="signature" id="msg_', $message['id'], '_signature"', $ignoring ? ' style="display:none;"' : '', '>
', $message['member']['signature'], '
</div>';
<div class="signature" id="msg_', $message['id'], '_signature"', $ignoring ? ' style="display:none;"' : '', '>
', $message['member']['signature'], '
</div>';

// Are there any custom profile fields for below the signature?
if (!empty($message['custom_fields']['below_signature']))
{
echo '
<div class="custom_fields_below_signature">
<ul class="nolist">';
<div class="custom_fields_below_signature">
<ul class="nolist">';

foreach ($message['custom_fields']['below_signature'] as $custom)
echo '
<li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>';
<li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>';

echo '
</ul>
</div>';
</ul>
</div>';
}

echo '
</div><!-- .moderatorbar -->
</div><!-- .moderatorbar -->
</div><!-- .postarea -->
</div><!-- .post_container -->
</div><!-- $message[css_class] -->
<hr class="post_separator">';
32 changes: 16 additions & 16 deletions PersonalMessage.template.php
Original file line number Diff line number Diff line change
@@ -556,50 +556,50 @@ function template_single_pm($message)

echo '
</div><!-- .under_message -->
</div><!-- .postarea -->
<div class="moderatorbar">';
<div class="moderatorbar">';

// Are there any custom profile fields for above the signature?
if (!empty($message['custom_fields']['above_signature']))
{
echo '
<div class="custom_fields_above_signature">
<ul class="nolist">';
<div class="custom_fields_above_signature">
<ul class="nolist">';

foreach ($message['custom_fields']['above_signature'] as $custom)
echo '
<li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>';
<li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>';

echo '
</ul>
</div>';
</ul>
</div>';
}

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
echo '
<div class="signature">
', $message['member']['signature'], '
</div>';
<div class="signature">
', $message['member']['signature'], '
</div>';

// Are there any custom profile fields for below the signature?
if (!empty($message['custom_fields']['below_signature']))
{
echo '
<div class="custom_fields_below_signature">
<ul class="nolist">';
<div class="custom_fields_below_signature">
<ul class="nolist">';

foreach ($message['custom_fields']['below_signature'] as $custom)
echo '
<li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>';
<li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>';

echo '
</ul>
</div>';
</ul>
</div>';
}

echo '
</div><!-- .moderatorbar -->
</div><!-- .moderatorbar -->
</div><!-- .postarea -->
</div><!-- .post_container -->
</div><!-- .windowbg -->';
}
15 changes: 10 additions & 5 deletions css/custom/app.css
Original file line number Diff line number Diff line change
@@ -1230,25 +1230,27 @@ a.moderation_link {

/** Post View **/
.post_container {
align-items: flex-start;
gap: 3em;

.windowbg {
.windowbg,
.approvebg, .approvebg2 {
margin: 0;
position: relative;

&::after,
&::before {
background: var(--window-bg);
content: "";
height: 35px;
inset-block: 3.25em auto;
height: 30px;
inset-block: 1em auto;
inset-inline: -15px auto;
position: absolute;
transform: skew(45deg, 0);
width: 35px;
width: 50px;
}
&::after {
margin-block-start: 35px;
margin-block-start: 30px;
}
&::before {
transform: skew(-45deg, 0);
@@ -1257,6 +1259,9 @@ a.moderation_link {
position: relative;
z-index: 2;
}
&.postarea {
padding: .5em 1em !important;
}
}
}
:is(#forumposts, #pmFolder) div:has(> div.post_container) {

0 comments on commit b1080ce

Please sign in to comment.