From: Hypolite Petovan Date: Sun, 27 Oct 2019 14:09:00 +0000 (-0400) Subject: Move profile-related templates to sub-folder X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9803c96db4aead03bedac7d17598a829d94c6a46;p=friendica.git Move profile-related templates to sub-folder --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 341727ceef..d9524a7390 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -527,7 +527,7 @@ class Profile $p['url'] = Contact::magicLink(($p['url'] ?? '') ?: $profile_url); - $tpl = Renderer::getMarkupTemplate('profile_vcard.tpl'); + $tpl = Renderer::getMarkupTemplate('profile/vcard.tpl'); $o .= Renderer::replaceMacros($tpl, [ '$profile' => $p, '$xmpp' => $xmpp, @@ -747,8 +747,6 @@ class Profile $uid = intval($a->profile['uid']); if ($a->profile['name']) { - $tpl = Renderer::getMarkupTemplate('profile_advanced.tpl'); - $profile = []; $profile['fullname'] = [DI::l10n()->t('Full Name:'), $a->profile['name']]; @@ -875,6 +873,7 @@ class Profile $profile['edit'] = [DI::baseUrl() . '/profiles/' . $a->profile['id'], DI::l10n()->t('Edit profile'), '', DI::l10n()->t('Edit profile')]; } + $tpl = Renderer::getMarkupTemplate('profile/advanced.tpl'); return Renderer::replaceMacros($tpl, [ '$title' => DI::l10n()->t('Profile'), '$basic' => DI::l10n()->t('Basic'), diff --git a/src/Module/Register.php b/src/Module/Register.php index 8a92b25088..98af06543d 100644 --- a/src/Module/Register.php +++ b/src/Module/Register.php @@ -87,7 +87,7 @@ class Register extends BaseModule if (DI::config()->get('system', 'publish_all')) { $profile_publish = ''; } else { - $publish_tpl = Renderer::getMarkupTemplate('profile_publish.tpl'); + $publish_tpl = Renderer::getMarkupTemplate('profile/publish.tpl'); $profile_publish = Renderer::replaceMacros($publish_tpl, [ '$instance' => 'reg', '$pubdesc' => DI::l10n()->t('Include your profile in member directory?'), diff --git a/view/templates/profile/advanced.tpl b/view/templates/profile/advanced.tpl new file mode 100644 index 0000000000..44e763f393 --- /dev/null +++ b/view/templates/profile/advanced.tpl @@ -0,0 +1,184 @@ + +{{include file="section_title.tpl"}} + +
+
{{$profile.fullname.0}}
+
{{$profile.fullname.1}}
+
+ +{{if $profile.membersince}} +
+
{{$profile.membersince.0}}
+
{{$profile.membersince.1}}
+
+{{/if}} + +{{if $profile.gender}} +
+
{{$profile.gender.0}}
+
{{$profile.gender.1}}
+
+{{/if}} + +{{if $profile.birthday}} +
+
{{$profile.birthday.0}}
+
{{$profile.birthday.1}}
+
+{{/if}} + +{{if $profile.age}} +
+
{{$profile.age.0}}
+
{{$profile.age.1}}
+
+{{/if}} + +{{if $profile.marital}} +
+
{{$profile.marital.0}}
+
{{$profile.marital.1}}{{if $profile.marital.with}} ({{$profile.marital.with nofilter}}){{/if}}{{if $profile.howlong}} {{$profile.howlong}}{{/if}}
+
+{{/if}} + +{{if $profile.sexual}} +
+
{{$profile.sexual.0}}
+
{{$profile.sexual.1}}
+
+{{/if}} + +{{if $profile.pub_keywords}} +
+
{{$profile.pub_keywords.0}}
+
{{$profile.pub_keywords.1}}
+
+{{/if}} + +{{if $profile.homepage}} +
+
{{$profile.homepage.0}}
+
{{$profile.homepage.1 nofilter}}
+
+{{/if}} + +{{if $profile.hometown}} +
+
{{$profile.hometown.0}}
+
{{$profile.hometown.1}}
+
+{{/if}} + +{{if $profile.politic}} +
+
{{$profile.politic.0}}
+
{{$profile.politic.1}}
+
+{{/if}} + +{{if $profile.religion}} +
+
{{$profile.religion.0}}
+
{{$profile.religion.1}}
+
+{{/if}} + +{{if $profile.about}} +
+
{{$profile.about.0}}
+
{{$profile.about.1 nofilter}}
+
+{{/if}} + +{{if $profile.interest}} +
+
{{$profile.interest.0}}
+
{{$profile.interest.1 nofilter}}
+
+{{/if}} + +{{if $profile.likes}} +
+
{{$profile.likes.0}}
+
{{$profile.likes.1 nofilter}}
+
+{{/if}} + +{{if $profile.dislikes}} +
+
{{$profile.dislikes.0}}
+
{{$profile.dislikes.1 nofilter}}
+
+{{/if}} + +{{if $profile.contact}} +
+
{{$profile.contact.0}}
+
{{$profile.contact.1 nofilter}}
+
+{{/if}} + + +{{if $profile.music}} +
+
{{$profile.music.0}}
+
{{$profile.music.1 nofilter}}
+
+{{/if}} + + +{{if $profile.book}} +
+
{{$profile.book.0}}
+
{{$profile.book.1 nofilter}}
+
+{{/if}} + + +{{if $profile.tv}} +
+
{{$profile.tv.0}}
+
{{$profile.tv.1 nofilter}}
+
+{{/if}} + + +{{if $profile.film}} +
+
{{$profile.film.0}}
+
{{$profile.film.1 nofilter}}
+
+{{/if}} + + +{{if $profile.romance}} +
+
{{$profile.romance.0}}
+
{{$profile.romance.1 nofilter}}
+
+{{/if}} + + +{{if $profile.work}} +
+
{{$profile.work.0}}
+
{{$profile.work.1 nofilter}}
+
+{{/if}} + +{{if $profile.education}} +
+
{{$profile.education.0}}
+
{{$profile.education.1 nofilter}}
+
+{{/if}} + + +{{if $profile.forumlist}} +
+
{{$profile.forumlist.0}}
+
{{$profile.forumlist.1 nofilter}}
+
+{{/if}} + + diff --git a/view/templates/profile/publish.tpl b/view/templates/profile/publish.tpl new file mode 100644 index 0000000000..a62292ff56 --- /dev/null +++ b/view/templates/profile/publish.tpl @@ -0,0 +1,17 @@ + +

+{{$pubdesc}} +

+ +
+ + + +
+
+
+ + + +
+
diff --git a/view/templates/profile/vcard.tpl b/view/templates/profile/vcard.tpl new file mode 100644 index 0000000000..1ee3302669 --- /dev/null +++ b/view/templates/profile/vcard.tpl @@ -0,0 +1,74 @@ + +
+ +
{{$profile.name}}
+ + {{if $profile.addr}}
{{$profile.addr}}
{{/if}} + + {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} + + {{if $profile.picdate}} +
{{$profile.name}}
+ {{else}} +
{{$profile.name}}
+ {{/if}} + {{if $account_type}}{{/if}} + {{if $profile.network_link}}
{{$network}}
{{$profile.network_link nofilter}}
{{/if}} + {{if $location}} +
{{$location}}
+
+ {{if $profile.address}}
{{$profile.address nofilter}}
{{/if}} + + {{$profile.locality}}{{if $profile.locality}}, {{/if}} + {{$profile.region}} + {{$profile.postal_code}} + + {{if $profile.country_name}}{{$profile.country_name}}{{/if}} +
+
+ {{/if}} + + {{if $profile.xmpp}} +
+
{{$xmpp}}
+
{{$profile.xmpp}}
+
+ {{/if}} + + {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} + + {{if $profile.pubkey}}{{/if}} + + {{if $contacts}}{{/if}} + + {{if $updated}}{{/if}} + + {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} + + {{if $homepage}}
{{$homepage}}
{{$profile.homepage}}
{{/if}} + + {{if $about}}
{{$about}}
{{$profile.about nofilter}}
{{/if}} + + {{include file="diaspora_vcard.tpl"}} + + +
+ +{{$contact_block nofilter}} + + diff --git a/view/templates/profile_advanced.tpl b/view/templates/profile_advanced.tpl deleted file mode 100644 index 44e763f393..0000000000 --- a/view/templates/profile_advanced.tpl +++ /dev/null @@ -1,184 +0,0 @@ - -{{include file="section_title.tpl"}} - -
-
{{$profile.fullname.0}}
-
{{$profile.fullname.1}}
-
- -{{if $profile.membersince}} -
-
{{$profile.membersince.0}}
-
{{$profile.membersince.1}}
-
-{{/if}} - -{{if $profile.gender}} -
-
{{$profile.gender.0}}
-
{{$profile.gender.1}}
-
-{{/if}} - -{{if $profile.birthday}} -
-
{{$profile.birthday.0}}
-
{{$profile.birthday.1}}
-
-{{/if}} - -{{if $profile.age}} -
-
{{$profile.age.0}}
-
{{$profile.age.1}}
-
-{{/if}} - -{{if $profile.marital}} -
-
{{$profile.marital.0}}
-
{{$profile.marital.1}}{{if $profile.marital.with}} ({{$profile.marital.with nofilter}}){{/if}}{{if $profile.howlong}} {{$profile.howlong}}{{/if}}
-
-{{/if}} - -{{if $profile.sexual}} -
-
{{$profile.sexual.0}}
-
{{$profile.sexual.1}}
-
-{{/if}} - -{{if $profile.pub_keywords}} -
-
{{$profile.pub_keywords.0}}
-
{{$profile.pub_keywords.1}}
-
-{{/if}} - -{{if $profile.homepage}} -
-
{{$profile.homepage.0}}
-
{{$profile.homepage.1 nofilter}}
-
-{{/if}} - -{{if $profile.hometown}} -
-
{{$profile.hometown.0}}
-
{{$profile.hometown.1}}
-
-{{/if}} - -{{if $profile.politic}} -
-
{{$profile.politic.0}}
-
{{$profile.politic.1}}
-
-{{/if}} - -{{if $profile.religion}} -
-
{{$profile.religion.0}}
-
{{$profile.religion.1}}
-
-{{/if}} - -{{if $profile.about}} -
-
{{$profile.about.0}}
-
{{$profile.about.1 nofilter}}
-
-{{/if}} - -{{if $profile.interest}} -
-
{{$profile.interest.0}}
-
{{$profile.interest.1 nofilter}}
-
-{{/if}} - -{{if $profile.likes}} -
-
{{$profile.likes.0}}
-
{{$profile.likes.1 nofilter}}
-
-{{/if}} - -{{if $profile.dislikes}} -
-
{{$profile.dislikes.0}}
-
{{$profile.dislikes.1 nofilter}}
-
-{{/if}} - -{{if $profile.contact}} -
-
{{$profile.contact.0}}
-
{{$profile.contact.1 nofilter}}
-
-{{/if}} - - -{{if $profile.music}} -
-
{{$profile.music.0}}
-
{{$profile.music.1 nofilter}}
-
-{{/if}} - - -{{if $profile.book}} -
-
{{$profile.book.0}}
-
{{$profile.book.1 nofilter}}
-
-{{/if}} - - -{{if $profile.tv}} -
-
{{$profile.tv.0}}
-
{{$profile.tv.1 nofilter}}
-
-{{/if}} - - -{{if $profile.film}} -
-
{{$profile.film.0}}
-
{{$profile.film.1 nofilter}}
-
-{{/if}} - - -{{if $profile.romance}} -
-
{{$profile.romance.0}}
-
{{$profile.romance.1 nofilter}}
-
-{{/if}} - - -{{if $profile.work}} -
-
{{$profile.work.0}}
-
{{$profile.work.1 nofilter}}
-
-{{/if}} - -{{if $profile.education}} -
-
{{$profile.education.0}}
-
{{$profile.education.1 nofilter}}
-
-{{/if}} - - -{{if $profile.forumlist}} -
-
{{$profile.forumlist.0}}
-
{{$profile.forumlist.1 nofilter}}
-
-{{/if}} - - diff --git a/view/templates/profile_publish.tpl b/view/templates/profile_publish.tpl deleted file mode 100644 index a62292ff56..0000000000 --- a/view/templates/profile_publish.tpl +++ /dev/null @@ -1,17 +0,0 @@ - -

-{{$pubdesc}} -

- -
- - - -
-
-
- - - -
-
diff --git a/view/templates/profile_vcard.tpl b/view/templates/profile_vcard.tpl deleted file mode 100644 index 1ee3302669..0000000000 --- a/view/templates/profile_vcard.tpl +++ /dev/null @@ -1,74 +0,0 @@ - -
- -
{{$profile.name}}
- - {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - - {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} - - {{if $profile.picdate}} -
{{$profile.name}}
- {{else}} -
{{$profile.name}}
- {{/if}} - {{if $account_type}}{{/if}} - {{if $profile.network_link}}
{{$network}}
{{$profile.network_link nofilter}}
{{/if}} - {{if $location}} -
{{$location}}
-
- {{if $profile.address}}
{{$profile.address nofilter}}
{{/if}} - - {{$profile.locality}}{{if $profile.locality}}, {{/if}} - {{$profile.region}} - {{$profile.postal_code}} - - {{if $profile.country_name}}{{$profile.country_name}}{{/if}} -
-
- {{/if}} - - {{if $profile.xmpp}} -
-
{{$xmpp}}
-
{{$profile.xmpp}}
-
- {{/if}} - - {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} - - {{if $profile.pubkey}}{{/if}} - - {{if $contacts}}{{/if}} - - {{if $updated}}{{/if}} - - {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} - - {{if $homepage}}
{{$homepage}}
{{$profile.homepage}}
{{/if}} - - {{if $about}}
{{$about}}
{{$profile.about nofilter}}
{{/if}} - - {{include file="diaspora_vcard.tpl"}} - - -
- -{{$contact_block nofilter}} - - diff --git a/view/theme/duepuntozero/templates/profile/vcard.tpl b/view/theme/duepuntozero/templates/profile/vcard.tpl new file mode 100644 index 0000000000..3c933c8333 --- /dev/null +++ b/view/theme/duepuntozero/templates/profile/vcard.tpl @@ -0,0 +1,60 @@ + +
+ +
{{$profile.name}}
+ + {{if $profile.addr}}
{{$profile.addr}}
{{/if}} + + {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} +
{{$profile.name}}
+ + {{if $account_type}}{{/if}} + + {{if $profile.network_link}}
{{$network}}
{{$profile.network_link nofilter}}
{{/if}} + + {{if $location}} +
{{$location}}
+
+ {{if $profile.address}}
{{$profile.address nofilter}}
{{/if}} + + {{$profile.locality}}{{if $profile.locality}}, {{/if}} + {{$profile.region}} + {{$profile.postal_code}} + + {{if $profile.country_name}}{{$profile.country_name}}{{/if}} +
+
+ {{/if}} + + {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} + + {{if $profile.pubkey}}{{/if}} + + {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} + + {{if $homepage}}
{{$homepage}}
{{$profile.homepage}}
{{/if}} + + {{include file="diaspora_vcard.tpl"}} + +
+ +
+ +{{$contact_block nofilter}} + + diff --git a/view/theme/duepuntozero/templates/profile_vcard.tpl b/view/theme/duepuntozero/templates/profile_vcard.tpl deleted file mode 100644 index 3c933c8333..0000000000 --- a/view/theme/duepuntozero/templates/profile_vcard.tpl +++ /dev/null @@ -1,60 +0,0 @@ - -
- -
{{$profile.name}}
- - {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - - {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} -
{{$profile.name}}
- - {{if $account_type}}{{/if}} - - {{if $profile.network_link}}
{{$network}}
{{$profile.network_link nofilter}}
{{/if}} - - {{if $location}} -
{{$location}}
-
- {{if $profile.address}}
{{$profile.address nofilter}}
{{/if}} - - {{$profile.locality}}{{if $profile.locality}}, {{/if}} - {{$profile.region}} - {{$profile.postal_code}} - - {{if $profile.country_name}}{{$profile.country_name}}{{/if}} -
-
- {{/if}} - - {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} - - {{if $profile.pubkey}}{{/if}} - - {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} - - {{if $homepage}}
{{$homepage}}
{{$profile.homepage}}
{{/if}} - - {{include file="diaspora_vcard.tpl"}} - -
- -
- -{{$contact_block nofilter}} - - diff --git a/view/theme/frio/templates/profile/advanced.tpl b/view/theme/frio/templates/profile/advanced.tpl new file mode 100644 index 0000000000..3ca4000e6a --- /dev/null +++ b/view/theme/frio/templates/profile/advanced.tpl @@ -0,0 +1,234 @@ +
+

{{$title}}

+ + {{* The link to edit the profile*}} + {{if $profile.edit}} + +
+ {{/if}} + + {{* Frio does split the profile information in "standard" and "advanced". This is the tab menu for swithching between this modes *}} + + +
+
+
+
{{$profile.fullname.0}}
+
{{$profile.fullname.1}}
+
+ + {{if $profile.membersince}} +
+
+
{{$profile.membersince.0}}
+
{{$profile.membersince.1}}
+
+ {{/if}} + + {{if $profile.gender}} +
+
+
{{$profile.gender.0}}
+
{{$profile.gender.1}}
+
+ {{/if}} + + {{if $profile.birthday}} +
+
+
{{$profile.birthday.0}}
+
{{$profile.birthday.1}}
+
+ {{/if}} + + {{if $profile.age}} +
+
+
{{$profile.age.0}}
+
{{$profile.age.1}}
+
+ {{/if}} + + {{if $profile.hometown}} +
+
+
{{$profile.hometown.0}}
+
{{$profile.hometown.1}}
+
+ {{/if}} + + {{if $profile.marital}} +
+
+
{{$profile.marital.0}}
+
{{$profile.marital.1}}{{if $profile.marital.with}} ({{$profile.marital.with nofilter}}){{/if}}{{if $profile.howlong}} {{$profile.howlong}}{{/if}}
+
+ {{/if}} + + {{if $profile.homepage}} +
+
+
{{$profile.homepage.0}}
+
{{$profile.homepage.1 nofilter}}
+
+ {{/if}} + + {{if $profile.about}} +
+
+
{{$profile.about.0}}
+
{{$profile.about.1 nofilter}}
+
+ {{/if}} + + {{if $profile.pub_keywords}} +
+
+
{{$profile.pub_keywords.0}}
+
{{$profile.pub_keywords.1}}
+
+ {{/if}} +
+ +
+ {{if $profile.sexual}} +
+
+
{{$profile.sexual.0}}
+
{{$profile.sexual.1}}
+
+ {{/if}} + + {{if $profile.politic}} +
+
+
{{$profile.politic.0}}
+
{{$profile.politic.1}}
+
+ {{/if}} + + {{if $profile.religion}} +
+
+
{{$profile.religion.0}}
+
{{$profile.religion.1}}
+
+ {{/if}} + + + {{if $profile.interest}} +
+
+
{{$profile.interest.0}}
+
{{$profile.interest.1 nofilter}}
+
+ {{/if}} + + {{if $profile.likes}} +
+
+
{{$profile.likes.0}}
+
{{$profile.likes.1 nofilter}}
+
+ {{/if}} + + {{if $profile.dislikes}} +
+
+
{{$profile.dislikes.0}}
+
{{$profile.dislikes.1 nofilter}}
+
+ {{/if}} + + {{if $profile.contact}} +
+
+
{{$profile.contact.0}}
+
{{$profile.contact.1 nofilter}}
+
+ {{/if}} + + {{if $profile.music}} +
+
+
{{$profile.music.0}}
+
{{$profile.music.1 nofilter}}
+
+ {{/if}} + + + {{if $profile.book}} +
+
+
{{$profile.book.0}}
+
{{$profile.book.1 nofilter}}
+
+ {{/if}} + + + {{if $profile.tv}} +
+
+
{{$profile.tv.0}}
+
{{$profile.tv.1 nofilter}}
+
+ {{/if}} + + + {{if $profile.film}} +
+
+
{{$profile.film.0}}
+
{{$profile.film.1 nofilter}}
+
+ {{/if}} + + + {{if $profile.romance}} +
+
+
{{$profile.romance.0}}
+
{{$profile.romance.1 nofilter}}
+
+ {{/if}} + + + {{if $profile.work}} +
+
+
{{$profile.work.0}}
+
{{$profile.work.1 nofilter}}
+
+ {{/if}} + + {{if $profile.education}} +
+
+
{{$profile.education.0}}
+
{{$profile.education.1 nofilter}}
+
+ {{/if}} + + {{if $profile.forumlist}} +
+
+
{{$profile.forumlist.0}}
+
{{$profile.forumlist.1 nofilter}}
+
+ {{/if}} +
+
+
diff --git a/view/theme/frio/templates/profile/publish.tpl b/view/theme/frio/templates/profile/publish.tpl new file mode 100644 index 0000000000..bf14cf58ab --- /dev/null +++ b/view/theme/frio/templates/profile/publish.tpl @@ -0,0 +1,23 @@ + +
+
+ {{$pubdesc}} +
+ +
+
+ + +
+
+
+ +
+
+ + +
+ +
+
+
diff --git a/view/theme/frio/templates/profile/vcard.tpl b/view/theme/frio/templates/profile/vcard.tpl new file mode 100644 index 0000000000..1673a9c999 --- /dev/null +++ b/view/theme/frio/templates/profile/vcard.tpl @@ -0,0 +1,142 @@ +
+ +
+ {{if $profile.picdate}} + {{$profile.name}} + {{else}} + {{$profile.name}} + {{/if}} + +
+ {{if $profile.edit}} +
+ +
+ {{else}} + {{if $profile.menu}} +
+ {{/if}} + {{/if}} +
+ +
+ + {{* The short information which will appended to the second navbar by scrollspy *}} + + +
+
+

{{$profile.name}}

+ + {{if $profile.addr}}
{{include file="sub/punct_wrap.tpl" text=$profile.addr}}
{{/if}} + + {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} + + {{if $account_type}}{{/if}} +
+ + {{if $follow_link || $unfollow_link || $wallmessage_link}} + + {{/if}} + +
+ + {{if $location}} +
+ + + {{if $profile.address}}{{$profile.address nofilter}}{{/if}} + + {{$profile.locality}}{{if $profile.locality}}, {{/if}} + {{$profile.region}} + {{$profile.postal_code}} + + {{if $profile.country_name}}{{$profile.country_name}}{{/if}} + +
+ {{/if}} + + {{if $profile.xmpp}} + + {{/if}} + + {{if $gender}} +
+ + {{$profile.gender}} +
+ {{/if}} + + {{if $profile.pubkey}}{{/if}} + + {{if $contacts}}{{/if}} + + {{if $updated}}{{/if}} + + {{if $marital}} +
+ + {{$profile.marital}} +
+ {{/if}} + + {{if $homepage}} + + {{/if}} + + {{if $about}}{{/if}} + + {{include file="diaspora_vcard.tpl"}} +
+
+ +{{if $contact_block}} +
+ {{$contact_block nofilter}} +
+{{/if}} diff --git a/view/theme/frio/templates/profile_advanced.tpl b/view/theme/frio/templates/profile_advanced.tpl deleted file mode 100644 index 3ca4000e6a..0000000000 --- a/view/theme/frio/templates/profile_advanced.tpl +++ /dev/null @@ -1,234 +0,0 @@ -
-

{{$title}}

- - {{* The link to edit the profile*}} - {{if $profile.edit}} - -
- {{/if}} - - {{* Frio does split the profile information in "standard" and "advanced". This is the tab menu for swithching between this modes *}} - - -
-
-
-
{{$profile.fullname.0}}
-
{{$profile.fullname.1}}
-
- - {{if $profile.membersince}} -
-
-
{{$profile.membersince.0}}
-
{{$profile.membersince.1}}
-
- {{/if}} - - {{if $profile.gender}} -
-
-
{{$profile.gender.0}}
-
{{$profile.gender.1}}
-
- {{/if}} - - {{if $profile.birthday}} -
-
-
{{$profile.birthday.0}}
-
{{$profile.birthday.1}}
-
- {{/if}} - - {{if $profile.age}} -
-
-
{{$profile.age.0}}
-
{{$profile.age.1}}
-
- {{/if}} - - {{if $profile.hometown}} -
-
-
{{$profile.hometown.0}}
-
{{$profile.hometown.1}}
-
- {{/if}} - - {{if $profile.marital}} -
-
-
{{$profile.marital.0}}
-
{{$profile.marital.1}}{{if $profile.marital.with}} ({{$profile.marital.with nofilter}}){{/if}}{{if $profile.howlong}} {{$profile.howlong}}{{/if}}
-
- {{/if}} - - {{if $profile.homepage}} -
-
-
{{$profile.homepage.0}}
-
{{$profile.homepage.1 nofilter}}
-
- {{/if}} - - {{if $profile.about}} -
-
-
{{$profile.about.0}}
-
{{$profile.about.1 nofilter}}
-
- {{/if}} - - {{if $profile.pub_keywords}} -
-
-
{{$profile.pub_keywords.0}}
-
{{$profile.pub_keywords.1}}
-
- {{/if}} -
- -
- {{if $profile.sexual}} -
-
-
{{$profile.sexual.0}}
-
{{$profile.sexual.1}}
-
- {{/if}} - - {{if $profile.politic}} -
-
-
{{$profile.politic.0}}
-
{{$profile.politic.1}}
-
- {{/if}} - - {{if $profile.religion}} -
-
-
{{$profile.religion.0}}
-
{{$profile.religion.1}}
-
- {{/if}} - - - {{if $profile.interest}} -
-
-
{{$profile.interest.0}}
-
{{$profile.interest.1 nofilter}}
-
- {{/if}} - - {{if $profile.likes}} -
-
-
{{$profile.likes.0}}
-
{{$profile.likes.1 nofilter}}
-
- {{/if}} - - {{if $profile.dislikes}} -
-
-
{{$profile.dislikes.0}}
-
{{$profile.dislikes.1 nofilter}}
-
- {{/if}} - - {{if $profile.contact}} -
-
-
{{$profile.contact.0}}
-
{{$profile.contact.1 nofilter}}
-
- {{/if}} - - {{if $profile.music}} -
-
-
{{$profile.music.0}}
-
{{$profile.music.1 nofilter}}
-
- {{/if}} - - - {{if $profile.book}} -
-
-
{{$profile.book.0}}
-
{{$profile.book.1 nofilter}}
-
- {{/if}} - - - {{if $profile.tv}} -
-
-
{{$profile.tv.0}}
-
{{$profile.tv.1 nofilter}}
-
- {{/if}} - - - {{if $profile.film}} -
-
-
{{$profile.film.0}}
-
{{$profile.film.1 nofilter}}
-
- {{/if}} - - - {{if $profile.romance}} -
-
-
{{$profile.romance.0}}
-
{{$profile.romance.1 nofilter}}
-
- {{/if}} - - - {{if $profile.work}} -
-
-
{{$profile.work.0}}
-
{{$profile.work.1 nofilter}}
-
- {{/if}} - - {{if $profile.education}} -
-
-
{{$profile.education.0}}
-
{{$profile.education.1 nofilter}}
-
- {{/if}} - - {{if $profile.forumlist}} -
-
-
{{$profile.forumlist.0}}
-
{{$profile.forumlist.1 nofilter}}
-
- {{/if}} -
-
-
diff --git a/view/theme/frio/templates/profile_publish.tpl b/view/theme/frio/templates/profile_publish.tpl deleted file mode 100644 index bf14cf58ab..0000000000 --- a/view/theme/frio/templates/profile_publish.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -
-
- {{$pubdesc}} -
- -
-
- - -
-
-
- -
-
- - -
- -
-
-
diff --git a/view/theme/frio/templates/profile_vcard.tpl b/view/theme/frio/templates/profile_vcard.tpl deleted file mode 100644 index 1673a9c999..0000000000 --- a/view/theme/frio/templates/profile_vcard.tpl +++ /dev/null @@ -1,142 +0,0 @@ -
- -
- {{if $profile.picdate}} - {{$profile.name}} - {{else}} - {{$profile.name}} - {{/if}} - -
- {{if $profile.edit}} -
- -
- {{else}} - {{if $profile.menu}} -
- {{/if}} - {{/if}} -
- -
- - {{* The short information which will appended to the second navbar by scrollspy *}} - - -
-
-

{{$profile.name}}

- - {{if $profile.addr}}
{{include file="sub/punct_wrap.tpl" text=$profile.addr}}
{{/if}} - - {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} - - {{if $account_type}}{{/if}} -
- - {{if $follow_link || $unfollow_link || $wallmessage_link}} - - {{/if}} - -
- - {{if $location}} -
- - - {{if $profile.address}}{{$profile.address nofilter}}{{/if}} - - {{$profile.locality}}{{if $profile.locality}}, {{/if}} - {{$profile.region}} - {{$profile.postal_code}} - - {{if $profile.country_name}}{{$profile.country_name}}{{/if}} - -
- {{/if}} - - {{if $profile.xmpp}} - - {{/if}} - - {{if $gender}} -
- - {{$profile.gender}} -
- {{/if}} - - {{if $profile.pubkey}}{{/if}} - - {{if $contacts}}{{/if}} - - {{if $updated}}{{/if}} - - {{if $marital}} -
- - {{$profile.marital}} -
- {{/if}} - - {{if $homepage}} - - {{/if}} - - {{if $about}}{{/if}} - - {{include file="diaspora_vcard.tpl"}} -
-
- -{{if $contact_block}} -
- {{$contact_block nofilter}} -
-{{/if}} diff --git a/view/theme/quattro/templates/profile/vcard.tpl b/view/theme/quattro/templates/profile/vcard.tpl new file mode 100644 index 0000000000..fd455fba58 --- /dev/null +++ b/view/theme/quattro/templates/profile/vcard.tpl @@ -0,0 +1,82 @@ +
+ +
+
{{$profile.name}}
+ {{if $profile.edit}} + + {{/if}} +
+ + {{if $profile.addr}}
{{$profile.addr}}
{{/if}} + + {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} +
{{$profile.name}}
+ + {{if $account_type}}{{/if}} + + {{if $profile.network_link}}
{{$network}}
{{$profile.network_link nofilter}}
{{/if}} + + {{if $location}} +
{{$location}}
+
+ {{if $profile.address}}
{{$profile.address nofilter}}
{{/if}} + + {{$profile.locality}}{{if $profile.locality}}, {{/if}} + {{$profile.region}} + {{$profile.postal_code}} + + {{if $profile.country_name}}{{$profile.country_name}}{{/if}} +
+
+ {{/if}} + + {{if $profile.xmpp}} +
+
{{$xmpp}}
+
{{$profile.xmpp}}
+
+ {{/if}} + + {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} + + {{if $profile.pubkey}}{{/if}} + + {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} + + {{if $homepage}} +
{{$homepage}}
+
{{$profile.homepage}}
+
+ {{/if}} + + {{include file="diaspora_vcard.tpl"}} + + +
+ +{{$contact_block nofilter}} + + diff --git a/view/theme/quattro/templates/profile_vcard.tpl b/view/theme/quattro/templates/profile_vcard.tpl deleted file mode 100644 index cd8bd6ee7c..0000000000 --- a/view/theme/quattro/templates/profile_vcard.tpl +++ /dev/null @@ -1,93 +0,0 @@ -
- -
-
{{$profile.name}}
- {{if $profile.edit}} -
- {{$profile.edit.1}} - -
- {{/if}} -
- - {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - - {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} -
{{$profile.name}}
- - {{if $account_type}}{{/if}} - - {{if $profile.network_link}}
{{$network}}
{{$profile.network_link nofilter}}
{{/if}} - - {{if $location}} -
{{$location}}
-
- {{if $profile.address}}
{{$profile.address nofilter}}
{{/if}} - - {{$profile.locality}}{{if $profile.locality}}, {{/if}} - {{$profile.region}} - {{$profile.postal_code}} - - {{if $profile.country_name}}{{$profile.country_name}}{{/if}} -
-
- {{/if}} - - {{if $profile.xmpp}} -
-
{{$xmpp}}
-
{{$profile.xmpp}}
-
- {{/if}} - - {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} - - {{if $profile.pubkey}}{{/if}} - - {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} - - {{if $homepage}} -
{{$homepage}}
-
{{$profile.homepage}}
-
- {{/if}} - - {{include file="diaspora_vcard.tpl"}} - - -
- -{{$contact_block nofilter}} - - diff --git a/view/theme/vier/templates/profile/advanced.tpl b/view/theme/vier/templates/profile/advanced.tpl new file mode 100644 index 0000000000..20c4e84b13 --- /dev/null +++ b/view/theme/vier/templates/profile/advanced.tpl @@ -0,0 +1,186 @@ +{{if $profile.edit}} +
+ {{$profile.edit.1}} +
+{{/if}} + +{{include file="section_title.tpl"}} + +
+
{{$profile.fullname.0}}
+
{{$profile.fullname.1}}
+
+ +{{if $profile.membersince}} +
+
{{$profile.membersince.0}}
+
{{$profile.membersince.1}}
+
+{{/if}} + +{{if $profile.gender}} +
+
{{$profile.gender.0}}
+
{{$profile.gender.1}}
+
+{{/if}} + +{{if $profile.birthday}} +
+
{{$profile.birthday.0}}
+
{{$profile.birthday.1}}
+
+{{/if}} + +{{if $profile.age}} +
+
{{$profile.age.0}}
+
{{$profile.age.1}}
+
+{{/if}} + +{{if $profile.marital}} +
+
{{$profile.marital.0}}
+
{{$profile.marital.1}}{{if $profile.marital.with}} ({{$profile.marital.with}}){{/if}}{{if $profile.howlong}} {{$profile.howlong}}{{/if}}
+
+{{/if}} + +{{if $profile.sexual}} +
+
{{$profile.sexual.0}}
+
{{$profile.sexual.1}}
+
+{{/if}} + +{{if $profile.pub_keywords}} +
+
{{$profile.pub_keywords.0}}
+
{{$profile.pub_keywords.1}}
+
+{{/if}} + +{{if $profile.homepage}} +
+
{{$profile.homepage.0}}
+
{{$profile.homepage.1 nofilter}}
+
+{{/if}} + +{{if $profile.hometown}} +
+
{{$profile.hometown.0}}
+
{{$profile.hometown.1}}
+
+{{/if}} + +{{if $profile.politic}} +
+
{{$profile.politic.0}}
+
{{$profile.politic.1}}
+
+{{/if}} + +{{if $profile.religion}} +
+
{{$profile.religion.0}}
+
{{$profile.religion.1}}
+
+{{/if}} + +{{if $profile.about}} +
+
{{$profile.about.0}}
+
{{$profile.about.1 nofilter}}
+
+{{/if}} + +{{if $profile.interest}} +
+
{{$profile.interest.0}}
+
{{$profile.interest.1 nofilter}}
+
+{{/if}} + +{{if $profile.likes}} +
+
{{$profile.likes.0}}
+
{{$profile.likes.1 nofilter}}
+
+{{/if}} + +{{if $profile.dislikes}} +
+
{{$profile.dislikes.0}}
+
{{$profile.dislikes.1 nofilter}}
+
+{{/if}} + +{{if $profile.contact}} +
+
{{$profile.contact.0}}
+
{{$profile.contact.1 nofilter}}
+
+{{/if}} + + +{{if $profile.music}} +
+
{{$profile.music.0}}
+
{{$profile.music.1 nofilter}}
+
+{{/if}} + + +{{if $profile.book}} +
+
{{$profile.book.0}}
+
{{$profile.book.1 nofilter}}
+
+{{/if}} + + +{{if $profile.tv}} +
+
{{$profile.tv.0}}
+
{{$profile.tv.1 nofilter}}
+
+{{/if}} + + +{{if $profile.film}} +
+
{{$profile.film.0}}
+
{{$profile.film.1 nofilter}}
+
+{{/if}} + + +{{if $profile.romance}} +
+
{{$profile.romance.0}}
+
{{$profile.romance.1 nofilter}}
+
+{{/if}} + + +{{if $profile.work}} +
+
{{$profile.work.0}}
+
{{$profile.work.1 nofilter}}
+
+{{/if}} + +{{if $profile.education}} +
+
{{$profile.education.0}}
+
{{$profile.education.1 nofilter}}
+
+{{/if}} + +{{if $profile.forumlist}} +
+
{{$profile.forumlist.0}}
+
{{$profile.forumlist.1 nofilter}}
+
+{{/if}} diff --git a/view/theme/vier/templates/profile/vcard.tpl b/view/theme/vier/templates/profile/vcard.tpl new file mode 100644 index 0000000000..6331e84c4e --- /dev/null +++ b/view/theme/vier/templates/profile/vcard.tpl @@ -0,0 +1,83 @@ +
+ +
+
{{$profile.name}}
+ {{if $profile.edit}} + + {{else}} + {{if $profile.menu}} +
+ {{/if}} + {{/if}} +
+ + {{if $profile.addr}}
{{$profile.addr}}
{{/if}} + + {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} + + {{if $profile.picdate}} +
{{$profile.name}}
+ {{else}} +
{{$profile.name}}
+ {{/if}} + + {{if $account_type}}{{/if}} + {{if $profile.network_link}}
{{$network}}
{{$profile.network_link nofilter}}
{{/if}} + {{if $location}} +
{{$location}}
+
+ {{if $profile.address}}
{{$profile.address nofilter}}
{{/if}} + + {{$profile.locality}}{{if $profile.locality}}, {{/if}} + {{$profile.region}} + {{$profile.postal_code}} + + {{if $profile.country_name}}{{$profile.country_name}}{{/if}} +
+
+ {{/if}} + + {{if $profile.xmpp}} +
+
{{$xmpp}}
+
{{$profile.xmpp}}
+
+ {{/if}} + + {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} + + {{if $profile.pubkey}}{{/if}} + + {{if $contacts}}{{/if}} + + {{if $updated}}{{/if}} + + {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} + + {{if $homepage}}
{{$homepage}}
{{$profile.homepage}}
{{/if}} + + {{if $about}}
{{$about}}
{{$profile.about nofilter}}
{{/if}} + + {{include file="diaspora_vcard.tpl"}} + + +
+ +{{$contact_block nofilter}} diff --git a/view/theme/vier/templates/profile_advanced.tpl b/view/theme/vier/templates/profile_advanced.tpl deleted file mode 100644 index 20c4e84b13..0000000000 --- a/view/theme/vier/templates/profile_advanced.tpl +++ /dev/null @@ -1,186 +0,0 @@ -{{if $profile.edit}} -
- {{$profile.edit.1}} -
-{{/if}} - -{{include file="section_title.tpl"}} - -
-
{{$profile.fullname.0}}
-
{{$profile.fullname.1}}
-
- -{{if $profile.membersince}} -
-
{{$profile.membersince.0}}
-
{{$profile.membersince.1}}
-
-{{/if}} - -{{if $profile.gender}} -
-
{{$profile.gender.0}}
-
{{$profile.gender.1}}
-
-{{/if}} - -{{if $profile.birthday}} -
-
{{$profile.birthday.0}}
-
{{$profile.birthday.1}}
-
-{{/if}} - -{{if $profile.age}} -
-
{{$profile.age.0}}
-
{{$profile.age.1}}
-
-{{/if}} - -{{if $profile.marital}} -
-
{{$profile.marital.0}}
-
{{$profile.marital.1}}{{if $profile.marital.with}} ({{$profile.marital.with}}){{/if}}{{if $profile.howlong}} {{$profile.howlong}}{{/if}}
-
-{{/if}} - -{{if $profile.sexual}} -
-
{{$profile.sexual.0}}
-
{{$profile.sexual.1}}
-
-{{/if}} - -{{if $profile.pub_keywords}} -
-
{{$profile.pub_keywords.0}}
-
{{$profile.pub_keywords.1}}
-
-{{/if}} - -{{if $profile.homepage}} -
-
{{$profile.homepage.0}}
-
{{$profile.homepage.1 nofilter}}
-
-{{/if}} - -{{if $profile.hometown}} -
-
{{$profile.hometown.0}}
-
{{$profile.hometown.1}}
-
-{{/if}} - -{{if $profile.politic}} -
-
{{$profile.politic.0}}
-
{{$profile.politic.1}}
-
-{{/if}} - -{{if $profile.religion}} -
-
{{$profile.religion.0}}
-
{{$profile.religion.1}}
-
-{{/if}} - -{{if $profile.about}} -
-
{{$profile.about.0}}
-
{{$profile.about.1 nofilter}}
-
-{{/if}} - -{{if $profile.interest}} -
-
{{$profile.interest.0}}
-
{{$profile.interest.1 nofilter}}
-
-{{/if}} - -{{if $profile.likes}} -
-
{{$profile.likes.0}}
-
{{$profile.likes.1 nofilter}}
-
-{{/if}} - -{{if $profile.dislikes}} -
-
{{$profile.dislikes.0}}
-
{{$profile.dislikes.1 nofilter}}
-
-{{/if}} - -{{if $profile.contact}} -
-
{{$profile.contact.0}}
-
{{$profile.contact.1 nofilter}}
-
-{{/if}} - - -{{if $profile.music}} -
-
{{$profile.music.0}}
-
{{$profile.music.1 nofilter}}
-
-{{/if}} - - -{{if $profile.book}} -
-
{{$profile.book.0}}
-
{{$profile.book.1 nofilter}}
-
-{{/if}} - - -{{if $profile.tv}} -
-
{{$profile.tv.0}}
-
{{$profile.tv.1 nofilter}}
-
-{{/if}} - - -{{if $profile.film}} -
-
{{$profile.film.0}}
-
{{$profile.film.1 nofilter}}
-
-{{/if}} - - -{{if $profile.romance}} -
-
{{$profile.romance.0}}
-
{{$profile.romance.1 nofilter}}
-
-{{/if}} - - -{{if $profile.work}} -
-
{{$profile.work.0}}
-
{{$profile.work.1 nofilter}}
-
-{{/if}} - -{{if $profile.education}} -
-
{{$profile.education.0}}
-
{{$profile.education.1 nofilter}}
-
-{{/if}} - -{{if $profile.forumlist}} -
-
{{$profile.forumlist.0}}
-
{{$profile.forumlist.1 nofilter}}
-
-{{/if}} diff --git a/view/theme/vier/templates/profile_vcard.tpl b/view/theme/vier/templates/profile_vcard.tpl deleted file mode 100644 index 6331e84c4e..0000000000 --- a/view/theme/vier/templates/profile_vcard.tpl +++ /dev/null @@ -1,83 +0,0 @@ -
- -
-
{{$profile.name}}
- {{if $profile.edit}} - - {{else}} - {{if $profile.menu}} -
- {{/if}} - {{/if}} -
- - {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - - {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} - - {{if $profile.picdate}} -
{{$profile.name}}
- {{else}} -
{{$profile.name}}
- {{/if}} - - {{if $account_type}}{{/if}} - {{if $profile.network_link}}
{{$network}}
{{$profile.network_link nofilter}}
{{/if}} - {{if $location}} -
{{$location}}
-
- {{if $profile.address}}
{{$profile.address nofilter}}
{{/if}} - - {{$profile.locality}}{{if $profile.locality}}, {{/if}} - {{$profile.region}} - {{$profile.postal_code}} - - {{if $profile.country_name}}{{$profile.country_name}}{{/if}} -
-
- {{/if}} - - {{if $profile.xmpp}} -
-
{{$xmpp}}
-
{{$profile.xmpp}}
-
- {{/if}} - - {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} - - {{if $profile.pubkey}}{{/if}} - - {{if $contacts}}{{/if}} - - {{if $updated}}{{/if}} - - {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} - - {{if $homepage}}
{{$homepage}}
{{$profile.homepage}}
{{/if}} - - {{if $about}}
{{$about}}
{{$profile.about nofilter}}
{{/if}} - - {{include file="diaspora_vcard.tpl"}} - - -
- -{{$contact_block nofilter}}