Skip to content

Commit

Permalink
Update user module template
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Mar 31, 2016
1 parent 8e2c557 commit 27932cd
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 38 deletions.
Binary file modified usr/module/user/locale/en/default.mo
Binary file not shown.
38 changes: 21 additions & 17 deletions usr/module/user/locale/en/default.po
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
msgid ""
msgstr ""
"Project-Id-Version: Pi-user\n"
"POT-Creation-Date: 2016-03-01 14:30+0330\n"
"PO-Revision-Date: 2016-03-01 14:30+0330\n"
"POT-Creation-Date: 2016-03-31 14:33+0430\n"
"PO-Revision-Date: 2016-03-31 14:33+0430\n"
"Last-Translator: Taiwen Jiang <[email protected]>\n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.6\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-Basepath: ../..\n"
"X-Poedit-SearchPath-0: .\n"
Expand Down Expand Up @@ -109,7 +109,7 @@ msgstr ""

#: src/Api/Breadcrumbs.php:63 src/Controller/Front/AvatarController.php:185
#: template/front/avatar-index.phtml:44 template/front/profile-sidebar.phtml:39
#: template/front/profile-topbar.phtml:133
#: template/front/profile-topbar.phtml:135
msgid "Change avatar"
msgstr ""

Expand Down Expand Up @@ -867,15 +867,15 @@ msgid "My items"
msgstr ""

#: template/front/profile-sidebar.phtml:61
msgid "My events"
msgid "Sponsorship"
msgstr ""

#: template/front/profile-sidebar.phtml:64
msgid "Sponsorship"
#: template/front/profile-sidebar.phtml:67
msgid "My messages"
msgstr ""

#: template/front/profile-sidebar.phtml:70
msgid "My messages"
msgid "My events"
msgstr ""

#: template/front/profile-sidebar.phtml:73
Expand All @@ -886,36 +886,40 @@ msgstr ""
msgid "My favorites"
msgstr ""

#: template/front/profile-topbar.phtml:77
#: template/front/profile-sidebar.phtml:79
msgid "My videos"
msgstr ""

#: template/front/profile-topbar.phtml:79
msgid "Switch to public"
msgstr ""

#: template/front/profile-topbar.phtml:82
#: template/front/profile-topbar.phtml:84
msgid "Settings"
msgstr ""

#: template/front/profile-topbar.phtml:88
#: template/front/profile-topbar.phtml:90
msgid "Quicklinks"
msgstr ""

#: template/front/profile-topbar.phtml:111
#: template/front/profile-topbar.phtml:113
msgid "Switch to own"
msgstr ""

#: template/front/profile-topbar.phtml:117
#: template/front/profile-topbar.phtml:122
#: template/front/profile-topbar.phtml:119
#: template/front/profile-topbar.phtml:124
msgid "Send message"
msgstr ""

#: template/front/profile-topbar.phtml:141
#: template/front/profile-topbar.phtml:143
msgid "Gender:"
msgstr ""

#: template/front/profile-topbar.phtml:147
#: template/front/profile-topbar.phtml:149
msgid "Birthdate:"
msgstr ""

#: template/front/profile-topbar.phtml:203
#: template/front/profile-topbar.phtml:206
msgid "More"
msgstr ""

Expand Down
Binary file modified usr/module/user/locale/fa/default.mo
Binary file not shown.
40 changes: 22 additions & 18 deletions usr/module/user/locale/fa/default.po
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
msgid ""
msgstr ""
"Project-Id-Version: Pi-user\n"
"POT-Creation-Date: 2016-03-01 14:26+0330\n"
"PO-Revision-Date: 2016-03-01 14:27+0330\n"
"POT-Creation-Date: 2016-03-31 14:33+0430\n"
"PO-Revision-Date: 2016-03-31 14:33+0430\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.6\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-Basepath: ../..\n"
"X-Poedit-SearchPath-0: .\n"
Expand Down Expand Up @@ -109,7 +109,7 @@ msgstr "تنظیمات حساب کاربری"

#: src/Api/Breadcrumbs.php:63 src/Controller/Front/AvatarController.php:185
#: template/front/avatar-index.phtml:44 template/front/profile-sidebar.phtml:39
#: template/front/profile-topbar.phtml:133
#: template/front/profile-topbar.phtml:135
msgid "Change avatar"
msgstr "تغییر آواتار"

Expand Down Expand Up @@ -878,17 +878,17 @@ msgid "My items"
msgstr "آیتم های من"

#: template/front/profile-sidebar.phtml:61
msgid "My events"
msgstr "رویداد های من"

#: template/front/profile-sidebar.phtml:64
msgid "Sponsorship"
msgstr "اسپانسر"

#: template/front/profile-sidebar.phtml:70
#: template/front/profile-sidebar.phtml:67
msgid "My messages"
msgstr "پیام های من"

#: template/front/profile-sidebar.phtml:70
msgid "My events"
msgstr "رویداد های من"

#: template/front/profile-sidebar.phtml:73
msgid "My orders"
msgstr "سفارش های من"
Expand All @@ -897,36 +897,40 @@ msgstr "سفارش های من"
msgid "My favorites"
msgstr "مورد علاقه های من"

#: template/front/profile-topbar.phtml:77
#: template/front/profile-sidebar.phtml:79
msgid "My videos"
msgstr "ویدیو های من"

#: template/front/profile-topbar.phtml:79
msgid "Switch to public"
msgstr "نمایش عمومی"

#: template/front/profile-topbar.phtml:82
#: template/front/profile-topbar.phtml:84
msgid "Settings"
msgstr "تنظیمات"

#: template/front/profile-topbar.phtml:88
#: template/front/profile-topbar.phtml:90
msgid "Quicklinks"
msgstr "لینک های سریع"

#: template/front/profile-topbar.phtml:111
#: template/front/profile-topbar.phtml:113
msgid "Switch to own"
msgstr "نمایش شخصی"

#: template/front/profile-topbar.phtml:117
#: template/front/profile-topbar.phtml:122
#: template/front/profile-topbar.phtml:119
#: template/front/profile-topbar.phtml:124
msgid "Send message"
msgstr "ارسال پیام شخصی"

#: template/front/profile-topbar.phtml:141
#: template/front/profile-topbar.phtml:143
msgid "Gender:"
msgstr "جنسیت:"

#: template/front/profile-topbar.phtml:147
#: template/front/profile-topbar.phtml:149
msgid "Birthdate:"
msgstr "تاریخ تولد:"

#: template/front/profile-topbar.phtml:203
#: template/front/profile-topbar.phtml:206
msgid "More"
msgstr "بیشتر"

Expand Down
9 changes: 6 additions & 3 deletions usr/module/user/template/front/profile-sidebar.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ array_walk($groups, function (&$group, $gid) {
<?php $guideConfig = Pi::service('registry')->config->read('guide'); ?>
<?php if ($guideConfig['manage_active']) { ?>
<a title="<?php _e('My items'); ?>" href="<?php echo Pi::url($this->url('guide', array('module' => 'guide', 'controller' => 'manage', 'action' => 'dashboard'))); ?>" class="list-group-item<?php if (isset($sideActive) && $sideActive == 'dashboard') {echo ' active';} ?>"><?php _e('My items'); ?></a>
<?php if ($guideConfig['event_byuser']) { ?>
<a title="<?php _e('My events'); ?>" href="<?php echo Pi::url($this->url('guide', array('module' => 'guide', 'controller' => 'manage', 'action' => 'event'))); ?>" class="list-group-item<?php if (isset($sideActive) && $sideActive == 'event') {echo ' active';} ?>"><?php _e('My events'); ?></a>
<?php } ?>
<?php if ($guideConfig['sponsor_active']) { ?>
<a title="<?php _e('Sponsorship'); ?>" href="<?php echo Pi::url($this->url('guide', array('module' => 'guide', 'controller' => 'manage', 'action' => 'sponsor'))); ?>" class="list-group-item<?php if (isset($sideActive) && $sideActive == 'sponsor') {echo ' active';} ?>"><?php _e('Sponsorship'); ?></a>
<?php } ?>
Expand All @@ -69,10 +66,16 @@ array_walk($groups, function (&$group, $gid) {
<?php $count = _number(Pi::api('api', 'message')->getUnread($uid, 'message')); ?>
<a title="<?php _e('My messages'); ?>" href="<?php echo Pi::url($this->url('default', array('module' => 'message', 'controller' => 'index', 'action' => 'index'))); ?>" class="list-group-item<?php if ($module == 'message') {echo ' active';} ?>"><?php _e('My messages'); ?> <span class="badge"><?php echo $count; ?></span></a>
<?php } ?>
<?php if (Pi::service('module')->isActive('event')) { ?>
<a title="<?php _e('My events'); ?>" href="<?php echo Pi::url($this->url('event', array('module' => 'event', 'controller' => 'manage', 'action' => 'index'))); ?>" class="list-group-item<?php if ($module == 'event') {echo ' active';} ?>"><?php _e('My events'); ?></a>
<?php } ?>
<?php if (Pi::service('module')->isActive('order')) { ?>
<a title="<?php _e('My orders'); ?>" href="<?php echo Pi::url($this->url('order', array('module' => 'order', 'controller' => 'index', 'action' => 'index'))); ?>" class="list-group-item<?php if ($module == 'order') {echo ' active';} ?>"><?php _e('My orders'); ?></a>
<?php } ?>
<?php if (Pi::service('module')->isActive('favourite')) { ?>
<a title="<?php _e('My favorites'); ?>" href="<?php echo Pi::url($this->url('default', array('module' => 'favourite', 'controller' => 'index', 'action' => 'index'))); ?>" class="list-group-item<?php if ($module == 'favourite') {echo ' active';} ?>"><?php _e('My favorites'); ?></a>
<?php } ?>
<?php if (Pi::service('module')->isActive('video')) { ?>
<a title="<?php _e('My videos'); ?>" href="<?php echo Pi::url($this->url('video', array('module' => 'video', 'controller' => 'channel', 'action' => 'index'))); ?>" class="list-group-item<?php if ($module == 'video') {echo ' active';} ?>"><?php _e('My videos'); ?></a>
<?php } ?>
</div>

0 comments on commit 27932cd

Please sign in to comment.