Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndresCortes committed Aug 8, 2024
1 parent 5e97e4c commit 0dd02be
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

#### 2.0.3 - 8 August 2024
- ![Improvement](https://smftricks.com/assets/changelog/tag--pencil.png) Changed standard custom fields location in profile.

#### 2.0.2 - 26 July 2024
- ![Bug Fix](https://smftricks.com/assets/changelog/bug--minus.png) Fixed missing avatar in recent posts.

Expand Down
52 changes: 25 additions & 27 deletions Profile.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,33 +346,7 @@ function template_summary()
<dd>', $context['member']['age'] . ($context['member']['today_is_birthday'] ? ' &nbsp; <img src="' . $settings['images_url'] . '/cake.png" alt="">' : ''), '</dd>';

echo '
</dl>';

// Any custom fields for standard placement?
if (!empty($context['print_custom_fields']['standard']))
{
$fields = array();

foreach ($context['print_custom_fields']['standard'] as $field)
if (!empty($field['output_html']))
$fields[] = $field;

if (count($fields) > 0)
{
echo '
<dl class="settings">';

foreach ($fields as $field)
echo '
<dt>', $field['name'], ':</dt>
<dd>', $field['output_html'], '</dd>';

echo '
</dl>';
}
}

echo '
</dl>
<dl class="settings noborder">';

// Can they view/issue a warning?
Expand Down Expand Up @@ -457,6 +431,30 @@ function template_summary()
echo '
</dl>';

// Any custom fields for standard placement?
if (!empty($context['print_custom_fields']['standard']))
{
$fields = array();

foreach ($context['print_custom_fields']['standard'] as $field)
if (!empty($field['output_html']))
$fields[] = $field;

if (count($fields) > 0)
{
echo '
<dl class="settings">';

foreach ($fields as $field)
echo '
<dt>', $field['name'], ':</dt>
<dd>', $field['output_html'], '</dd>';

echo '
</dl>';
}
}

// Are there any custom profile fields for above the signature?
if (!empty($context['print_custom_fields']['above_signature']))
{
Expand Down
2 changes: 1 addition & 1 deletion theme_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<theme-info xmlns="http://www.simplemachines.org/xml/theme-info" xmlns:smf="http://www.simplemachines.org/">
<id>smftricks:Reseller</id>
<!-- The theme's version -->
<version>2.0.2</version>
<version>2.0.3</version>
<install for="2.1 - 2.1.99" />
<name>Reseller</name>
<author name="SMF Tricks">admin@smftricks.com</author>
Expand Down
2 changes: 1 addition & 1 deletion themecustoms/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Config extends Init
/**
* @var string Theme Version
*/
protected string $version = '2.0.2';
protected string $version = '2.0.3';

/**
* @var string Theme Author
Expand Down

0 comments on commit 0dd02be

Please sign in to comment.