Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
82aea5e9
Commit
82aea5e9
authored
Feb 03, 2015
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the avatar size a member class variable
parent
b2d2e970
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
qa-theme.php
qa-theme/SnowFlat/qa-theme.php
+5
-4
No files found.
qa-theme/SnowFlat/qa-theme.php
View file @
82aea5e9
...
@@ -41,6 +41,7 @@ class qa_html_theme extends qa_html_theme_base
...
@@ -41,6 +41,7 @@ class qa_html_theme extends qa_html_theme_base
private
$fixed_topbar
=
false
;
private
$fixed_topbar
=
false
;
private
$welcome_widget_class
=
'turquoise'
;
private
$welcome_widget_class
=
'turquoise'
;
private
$ask_search_box_class
=
'turquoise'
;
private
$ask_search_box_class
=
'turquoise'
;
private
$nav_bar_avatar_size
=
32
;
// Size of the user avatar in the navigation bar
/**
/**
* Adding aditional meta for responsive design
* Adding aditional meta for responsive design
...
@@ -563,9 +564,8 @@ class qa_html_theme extends qa_html_theme_base
...
@@ -563,9 +564,8 @@ class qa_html_theme extends qa_html_theme_base
$handle
=
qa_get_logged_in_user_field
(
'handle'
);
$handle
=
qa_get_logged_in_user_field
(
'handle'
);
$toggleClass
=
'qam-logged-in'
;
$toggleClass
=
'qam-logged-in'
;
$avatarsize
=
32
;
if
(
QA_FINAL_EXTERNAL_USERS
)
if
(
QA_FINAL_EXTERNAL_USERS
)
$tobar_avatar
=
qa_get_external_avatar_html
(
qa_get_logged_in_user_field
(
'userid'
),
$
avatar
size
,
true
);
$tobar_avatar
=
qa_get_external_avatar_html
(
qa_get_logged_in_user_field
(
'userid'
),
$
this
->
nav_bar_avatar_
size
,
true
);
else
{
else
{
$tobar_avatar
=
qa_get_user_avatar_html
(
$tobar_avatar
=
qa_get_user_avatar_html
(
qa_get_logged_in_user_field
(
'flags'
),
qa_get_logged_in_user_field
(
'flags'
),
...
@@ -574,13 +574,14 @@ class qa_html_theme extends qa_html_theme_base
...
@@ -574,13 +574,14 @@ class qa_html_theme extends qa_html_theme_base
qa_get_logged_in_user_field
(
'avatarblobid'
),
qa_get_logged_in_user_field
(
'avatarblobid'
),
qa_get_logged_in_user_field
(
'avatarwidth'
),
qa_get_logged_in_user_field
(
'avatarwidth'
),
qa_get_logged_in_user_field
(
'avatarheight'
),
qa_get_logged_in_user_field
(
'avatarheight'
),
$
avatar
size
,
$
this
->
$nav_bar_avatar_
size
,
false
false
);
);
}
}
$auth_icon
=
strip_tags
(
$tobar_avatar
,
'<img>'
);
$auth_icon
=
strip_tags
(
$tobar_avatar
,
'<img>'
);
}
else
{
// display login icon and label
}
else
{
// display login icon and label
$handle
=
$this
->
content
[
'navigation'
][
'user'
][
'login'
][
'label'
];
$handle
=
$this
->
content
[
'navigation'
][
'user'
][
'login'
][
'label'
];
$toggleClass
=
'qam-logged-out'
;
$toggleClass
=
'qam-logged-out'
;
$auth_icon
=
'<i class="icon-key qam-auth-key"></i>'
;
$auth_icon
=
'<i class="icon-key qam-auth-key"></i>'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment