diff --git a/src/Module/Profile/Index.php b/src/Module/Profile/Index.php index 95a929d4b..521a682dc 100644 --- a/src/Module/Profile/Index.php +++ b/src/Module/Profile/Index.php @@ -148,7 +148,6 @@ class Index extends BaseModule $basic_fields += self::buildField('homepage', DI::l10n()->t('Homepage:'), HTML::toLink($a->profile['homepage'])); } - $o .= Profile::getTabs($a, 'profile', $is_owner, $a->profile['nickname']); if ( $a->profile['address'] || $a->profile['locality'] diff --git a/src/Module/Profile/Status.php b/src/Module/Profile/Status.php index 1300fdc97..0047f27ed 100644 --- a/src/Module/Profile/Status.php +++ b/src/Module/Profile/Status.php @@ -42,8 +42,8 @@ class Status extends BaseModule $dtFormat = DI::dtFormat(); - if ($args->getArgc() > 2) { - for ($x = 2; $x < $args->getArgc(); $x++) { + if ($args->getArgc() > 3) { + for ($x = 3; $x < $args->getArgc(); $x++) { if ($dtFormat->isYearMonth($args->get($x))) { if ($datequery) { $datequery2 = Strings::escapeHtml($args->get($x)); diff --git a/view/templates/profile/index.tpl b/view/templates/profile/index.tpl index 8ad4d5eba..60bf46b99 100644 --- a/view/templates/profile/index.tpl +++ b/view/templates/profile/index.tpl @@ -28,97 +28,76 @@
{{/if}} +
+
{{$basic_fields.fullname.label}}
+
{{$basic_fields.fullname.value}}
+
- {{* Frio does split the profile information in "standard" and "advanced". This is the tab menu for switching between this modes *}} - {{if count($custom_fields)}} - - {{/if}} +{{if $basic_fields.membersince}} +
+
+
{{$basic_fields.membersince.label}}
+
{{$basic_fields.membersince.value}}
+
+{{/if}} -
-
-
-
{{$basic_fields.fullname.label}}
-
{{$basic_fields.fullname.value}}
-
+{{if $basic_fields.birthday}} +
+
+
{{$basic_fields.birthday.label}}
+
{{$basic_fields.birthday.value}}
+
+{{/if}} - {{if $basic_fields.membersince}} -
-
-
{{$basic_fields.membersince.label}}
-
{{$basic_fields.membersince.value}}
-
- {{/if}} +{{if $basic_fields.age}} +
+
+
{{$basic_fields.age.label}}
+
{{$basic_fields.age.value}}
+
+{{/if}} - {{if $basic_fields.birthday}} -
-
-
{{$basic_fields.birthday.label}}
-
{{$basic_fields.birthday.value}}
-
- {{/if}} +{{if $basic_fields.location}} +
+
+
{{$basic_fields.location.label}}
+
{{$basic_fields.location.value}}
+
+{{/if}} - {{if $basic_fields.age}} -
-
-
{{$basic_fields.age.label}}
-
{{$basic_fields.age.value}}
-
- {{/if}} +{{if $basic_fields.homepage}} +
+
+
{{$basic_fields.homepage.label}}
+
{{$basic_fields.homepage.value nofilter}}
+
+{{/if}} - {{if $basic_fields.location}} -
-
-
{{$basic_fields.location.label}}
-
{{$basic_fields.location.value}}
-
- {{/if}} +{{if $basic_fields.xmpp}} +
+
+
{{$basic_fields.xmpp.label}}
+
{{$basic_fields.xmpp.value nofilter}}
+
+{{/if}} - {{if $basic_fields.homepage}} -
-
-
{{$basic_fields.homepage.label}}
-
{{$basic_fields.homepage.value nofilter}}
-
- {{/if}} +{{if $basic_fields.pub_keywords}} +
+
+
{{$basic_fields.pub_keywords.label}}
+
+ {{foreach $basic_fields.pub_keywords.value as $tag}} + {{$tag.label}} + {{/foreach}} +
+
+{{/if}} - {{if $basic_fields.xmpp}} -
-
-
{{$basic_fields.xmpp.label}}
-
{{$basic_fields.xmpp.value nofilter}}
-
- {{/if}} - - {{if $basic_fields.pub_keywords}} -
-
-
{{$basic_fields.pub_keywords.label}}
-
- {{foreach $basic_fields.pub_keywords.value as $tag}} - {{$tag.label}} - {{/foreach}} -
-
- {{/if}} -
- - {{if count($custom_fields)}} -
- {{foreach $custom_fields as $custom_field}} -
-
-
{{$custom_field.label}}
-
{{$custom_field.value nofilter}}
-
- {{/foreach}} -
- {{/if}} -
+{{foreach $custom_fields as $custom_field}} +
+
+
{{$custom_field.label}}
+
{{$custom_field.value nofilter}}
+
+{{/foreach}}