|
47 | 47 | <img src="/img/128x128.png" alt="..." class="img-circle profile_img"> |
48 | 48 | </div> |
49 | 49 | <div class="profile_info"> |
50 | | - <span>Welcome,</span> |
51 | | - <h2><?= Yii::$app->user->identity->username; ?></h2> |
| 50 | + <span><?= \Yii::t('app-backend', 'Welcome');?>,</span> |
| 51 | + <h2><?= (Yii::$app->user->isGuest)? \Yii::t('app-backend', 'Guest'):Yii::$app->user->identity->username; ?></h2> |
52 | 52 | </div> |
53 | 53 | </div> |
54 | 54 | <!-- /menu prile quick info --> |
|
59 | 59 | <div id="sidebar-menu" class="main_menu_side hidden-print main_menu"> |
60 | 60 |
|
61 | 61 | <div class="menu_section"> |
62 | | - <h3>General</h3> |
| 62 | + <h3><?= \Yii::t('app-backend', 'General');?></h3> |
63 | 63 | <?= |
64 | 64 | \yiister\gentelella\widgets\Menu::widget( |
65 | 65 | [ |
66 | 66 | "items" => [ |
67 | | - ["label" => "Home", "url" => "/", "icon" => "home"], |
68 | | - ["label" => "Layout", "url" => ["site/layout"], "icon" => "files-o"], |
69 | | - ["label" => "Error page", "url" => ["site/error-page"], "icon" => "close"], |
| 67 | + ["label" => \Yii::t('app-backend', 'Dashboard'), "url" => "/", "icon" => "home"], |
| 68 | + ["label" => \Yii::t('app-model', 'Users'), "url" => ["/user/admin"], "icon" => "users"], |
| 69 | + ["label" => \Yii::t('app-model', 'Email Form'), "url" => ["/email-form/index"], "icon" => "envelope"], |
70 | 70 | [ |
71 | | - "label" => "Widgets", |
72 | | - "icon" => "th", |
| 71 | + "label" => \Yii::t('app-backend', 'Admin'), |
73 | 72 | "url" => "#", |
74 | | - "items" => [ |
75 | | - ["label" => "Menu", "url" => ["site/menu"]], |
76 | | - ["label" => "Panel", "url" => ["site/panel"]], |
77 | | - ], |
78 | | - ], |
79 | | - [ |
80 | | - "label" => "Badges", |
81 | | - "url" => "#", |
82 | | - "icon" => "table", |
83 | | - "items" => [ |
84 | | - [ |
85 | | - "label" => "Default", |
86 | | - "url" => "#", |
87 | | - "badge" => "123", |
88 | | - ], |
89 | | - [ |
90 | | - "label" => "Success", |
91 | | - "url" => "#", |
92 | | - "badge" => "new", |
93 | | - "badgeOptions" => ["class" => "label-success"], |
94 | | - ], |
95 | | - [ |
96 | | - "label" => "Danger", |
97 | | - "url" => "#", |
98 | | - "badge" => "!", |
99 | | - "badgeOptions" => ["class" => "label-danger"], |
100 | | - ], |
101 | | - ], |
102 | | - ], |
103 | | - [ |
104 | | - "label" => "Multilevel", |
105 | | - "url" => "#", |
106 | | - "icon" => "table", |
| 73 | + "icon" => "cog", |
107 | 74 | "items" => [ |
108 | 75 | [ |
109 | | - "label" => "Second level 1", |
110 | | - "url" => "#", |
111 | | - ], |
112 | | - [ |
113 | | - "label" => "Second level 2", |
114 | | - "url" => "#", |
115 | | - "items" => [ |
116 | | - [ |
117 | | - "label" => "Third level 1", |
118 | | - "url" => "#", |
119 | | - ], |
120 | | - [ |
121 | | - "label" => "Third level 2", |
122 | | - "url" => "#", |
123 | | - ], |
124 | | - ], |
| 76 | + "label" => \Yii::t('app-model', 'Log'), |
| 77 | + "url" => ['/log/index'], |
| 78 | + "icon" => "bug", |
125 | 79 | ], |
126 | 80 | ], |
127 | 81 | ], |
|
166 | 120 | <li class=""> |
167 | 121 | <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" |
168 | 122 | aria-expanded="false"> |
169 | | - <img src="/img/128x128.png" alt=""><?= Yii::$app->user->identity->username; ?> |
| 123 | + <img src="/img/128x128.png" alt=""><?= (Yii::$app->user->isGuest)? \Yii::t('app-backend', 'Guest'):Yii::$app->user->identity->username; ?> |
170 | 124 | <span class=" fa fa-angle-down"></span> |
171 | 125 | </a> |
172 | 126 | <ul class="dropdown-menu dropdown-usermenu pull-right"> |
173 | | - <li><a href="javascript:;"> Profile</a> |
| 127 | + <li><a href="/user/admin/update-profile?id=1"><?= \Yii::t('app-model', 'Profile');?></a> |
174 | 128 | </li> |
175 | 129 | <li> |
176 | | - <a href="javascript:;"> |
177 | | - <span class="badge bg-red pull-right">50%</span> |
178 | | - <span>Settings</span> |
| 130 | + <a href="/user/security/logout" data-method="post"> |
| 131 | + <i class="fa fa-sign-out pull-right"></i> |
| 132 | + <?= \Yii::t('app-model', 'Log out');?> |
179 | 133 | </a> |
180 | 134 | </li> |
181 | | - <li> |
182 | | - <a href="javascript:;">Help</a> |
183 | | - </li> |
184 | | - <li><a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log Out</a> |
185 | | - </li> |
186 | 135 | </ul> |
187 | 136 | </li> |
188 | 137 |
|
|
195 | 144 | <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu"> |
196 | 145 | <li> |
197 | 146 | <a> |
198 | | - <span class="image"> |
199 | | - <img src="http://placehold.it/128x128" alt="Profile Image"/> |
200 | | - </span> |
201 | | - <span> |
202 | | - <span>John Smith</span> |
203 | | - <span class="time">3 mins ago</span> |
204 | | - </span> |
205 | | - <span class="message"> |
206 | | - Film festivals used to be do-or-die moments for movie makers. They were where... |
207 | | - </span> |
208 | | - </a> |
209 | | - </li> |
210 | | - <li> |
211 | | - <a> |
212 | | - <span class="image"> |
213 | | - <img src="http://placehold.it/128x128" alt="Profile Image"/> |
214 | | - </span> |
215 | | - <span> |
216 | | - <span>John Smith</span> |
217 | | - <span class="time">3 mins ago</span> |
218 | | - </span> |
219 | | - <span class="message"> |
220 | | - Film festivals used to be do-or-die moments for movie makers. They were where... |
221 | | - </span> |
222 | | - </a> |
223 | | - </li> |
224 | | - <li> |
225 | | - <a> |
226 | | - <span class="image"> |
227 | | - <img src="http://placehold.it/128x128" alt="Profile Image"/> |
228 | | - </span> |
| 147 | + <span class="image"> |
| 148 | + <img src="http://placehold.it/128x128" alt="Profile Image"/> |
| 149 | + </span> |
229 | 150 | <span> |
230 | | - <span>John Smith</span> |
231 | | - <span class="time">3 mins ago</span> |
232 | | - </span> |
| 151 | + <span>John Smith</span> |
| 152 | + <span class="time">3 mins ago</span> |
| 153 | + </span> |
233 | 154 | <span class="message"> |
234 | | - Film festivals used to be do-or-die moments for movie makers. They were where... |
235 | | - </span> |
| 155 | + Film festivals used to be do-or-die moments for movie makers. They were where... |
| 156 | + </span> |
236 | 157 | </a> |
237 | 158 | </li> |
238 | 159 | <li> |
|
0 commit comments