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
d8036d29
Commit
d8036d29
authored
Dec 06, 2016
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move favorite star and RSS icon out of h1 tag
parent
d0ea4a77
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
17 deletions
+35
-17
qa-theme-base.php
qa-include/qa-theme-base.php
+3
-1
qa-styles.css
qa-theme/Snow/qa-styles.css
+8
-4
qa-theme.php
qa-theme/Snow/qa-theme.php
+5
-4
qa-styles.css
qa-theme/SnowFlat/qa-styles.css
+6
-3
qa-theme.php
qa-theme/SnowFlat/qa-theme.php
+13
-5
No files found.
qa-include/qa-theme-base.php
View file @
d8036d29
...
...
@@ -718,10 +718,12 @@ class qa_html_theme_base
if
(
isset
(
$favorite
))
$this
->
output
(
'<form '
.
$favorite
[
'form_tags'
]
.
'>'
);
$this
->
output
(
'<
h1
>'
);
$this
->
output
(
'<
div class="qa-main-heading"
>'
);
$this
->
favorite
();
$this
->
output
(
'<h1>'
);
$this
->
title
();
$this
->
output
(
'</h1>'
);
$this
->
output
(
'</div>'
);
if
(
isset
(
$favorite
))
{
$formhidden
=
isset
(
$favorite
[
'form_hidden'
])
?
$favorite
[
'form_hidden'
]
:
null
;
...
...
qa-theme/Snow/qa-styles.css
View file @
d8036d29
...
...
@@ -164,17 +164,21 @@ table {
/* Headings */
.qa-main-heading
{
position
:
relative
;
margin
:
5px
0
25px
;
padding
:
0
25px
5px
0
;
border-bottom
:
1px
solid
#ddd
;
}
h1
{
margin
:
0
;
color
:
#444
;
font-size
:
20px
;
font-weight
:
700
;
margin
:
5px
0
25px
;
font-family
:
Arial
,
Helvetica
,
sans-serif
;
font-weight
:
700
;
line-height
:
1.1em
;
border-bottom
:
1px
solid
#ddd
;
position
:
relative
;
padding
:
0
25px
5px
0
;
}
h2
{
...
...
qa-theme/Snow/qa-theme.php
View file @
d8036d29
...
...
@@ -113,14 +113,15 @@ class qa_html_theme extends qa_html_theme_base
}
// add RSS feed icon after the page title
public
function
titl
e
()
public
function
favorit
e
()
{
qa_html_theme_base
::
titl
e
();
parent
::
favorit
e
();
$feed
=
@
$this
->
content
[
'feed'
];
$feed
=
@
$this
->
content
[
'feed'
];
if
(
!
empty
(
$feed
))
if
(
!
empty
(
$feed
))
{
$this
->
output
(
'<a href="'
.
$feed
[
'url'
]
.
'" title="'
.@
$feed
[
'label'
]
.
'"><img src="'
.
$this
->
rooturl
.
'images/rss.jpg" alt="" width="16" height="16" border="0" class="qa-rss-icon"/></a>'
);
}
}
// add view count to question list
...
...
qa-theme/SnowFlat/qa-styles.css
View file @
d8036d29
...
...
@@ -107,20 +107,22 @@ a:hover {
text-decoration
:
underline
;
}
h1
{
.qa-main-heading
{
position
:
relative
;
margin
:
0
0
5px
;
padding
:
8px
52px
8px
20px
;
background
:
#3498db
;
color
:
#fff
;
}
h1
{
margin
:
0
;
font-size
:
1.4em
;
line-height
:
1.35em
;
}
h1
a
{
color
:
#fff
;
border-bottom
:
1px
dotted
#fff
;
line-height
:
inherit
;
border
:
none
;
border
:
0
;
text-decoration
:
none
;
opacity
:
0.85
;
}
...
...
@@ -905,6 +907,7 @@ blockquote p {
.qam-title-rss
{
float
:
right
;
color
:
#ecf0f1
;
font-size
:
1.4em
;
}
.qam-title-rss
:hover
{
color
:
#fff
;
...
...
qa-theme/SnowFlat/qa-theme.php
View file @
d8036d29
...
...
@@ -346,13 +346,11 @@ class qa_html_theme extends qa_html_theme_base
}
/**
* Add RSS feeds icon and closed icon for closed questions
*
* @since Snow 1.4
* Add RSS feeds icon
*/
public
function
titl
e
()
public
function
favorit
e
()
{
$q_view
=
isset
(
$this
->
content
[
'q_view'
])
?
$this
->
content
[
'q_view'
]
:
null
;
parent
::
favorite
()
;
// RSS feed link in title
if
(
isset
(
$this
->
content
[
'feed'
][
'url'
]))
{
...
...
@@ -360,6 +358,16 @@ class qa_html_theme extends qa_html_theme_base
$label
=
isset
(
$feed
[
'label'
])
?
$feed
[
'label'
]
:
''
;
$this
->
output
(
'<a href="'
.
$feed
[
'url'
]
.
'" title="'
.
$label
.
'"><i class="icon-rss qam-title-rss"></i></a>'
);
}
}
/**
* Add closed icon for closed questions
*
* @since Snow 1.4
*/
public
function
title
()
{
$q_view
=
isset
(
$this
->
content
[
'q_view'
])
?
$this
->
content
[
'q_view'
]
:
null
;
// link title where appropriate
$url
=
isset
(
$q_view
[
'url'
])
?
$q_view
[
'url'
]
:
false
;
...
...
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