فهرست منبع

Add an individual description for each profile

Visman 2 سال پیش
والد
کامیت
4a32811d33

+ 2 - 0
app/Models/Pages/Profile.php

@@ -45,6 +45,8 @@ abstract class Profile extends Page
         $this->nameTpl   = 'profile';
         $this->onlinePos = 'profile-' . $this->curUser->id; // ????
 
+        $this->mDescription = __(['mDescription for %s', $this->curUser->username]);
+
         return true;
     }
 

+ 3 - 0
app/lang/en/profile.po

@@ -374,3 +374,6 @@ msgstr "Search settings updated."
 
 msgid "Select followed forums for %s and %s:"
 msgstr "Select followed forums for <b><i>%s</i></b> and <b><i>%s</i></b>:"
+
+msgid "mDescription for %s"
+msgstr "%s's profile. Activity, posts, topics and contacts."

+ 3 - 0
app/lang/ru/profile.po

@@ -374,3 +374,6 @@ msgstr "Настройки поиска сохранены."
 
 msgid "Select followed forums for %s and %s:"
 msgstr "Выберите отслеживаемые разделы для <b><i>%s</i></b> и <b><i>%s</i></b>:"
+
+msgid "mDescription for %s"
+msgstr "%s - профиль пользователя. Активность, посты, топики и контакты."

+ 1 - 1
app/templates/layouts/main.forkbb.php

@@ -5,7 +5,7 @@
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>{{! $p->pageTitle !}}</title>
 @if ($p->mDescription)
-  <meta name="description" content="{{ $p->mDescription }}">
+  <meta name="description" content="{{! $p->mDescription !}}">
 @endif
 @foreach ($p->pageHeaders as $pageHeader)
     @if ('style' === $pageHeader['type'])

+ 1 - 1
app/templates/layouts/redirect.forkbb.php

@@ -6,7 +6,7 @@
   <meta http-equiv="refresh" content="{{ $p->timeout }}; URL={{ $p->link }}">
   <title>{{! $p->pageTitle !}}</title>
 @if ($p->mDescription)
-  <meta name="description" content="{{ $p->mDescription }}">
+  <meta name="description" content="{{! $p->mDescription !}}">
 @endif
 @foreach ($p->pageHeaders as $pageHeader)
     @if ('style' === $pageHeader['type'])