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
19607508
Commit
19607508
authored
Sep 25, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small improvements to base theme
parent
f723c54b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
qa-base.php
qa-include/qa-base.php
+1
-1
qa-page.php
qa-include/qa-page.php
+4
-1
qa-theme-base.php
qa-include/qa-theme-base.php
+7
-7
No files found.
qa-include/qa-base.php
View file @
19607508
...
...
@@ -29,7 +29,7 @@
define
(
'QA_BUILD_DATE'
,
'2014-03-20'
);
/*
/*
*
* Autoloads some Q2A classes so it's possible to use them without adding a require_once first. From version 1.7 onwards.
* These loosely follow PHP-FIG's PSR-0 standard where faux namespaces are separated by underscores. This is being done
* slowly and carefully to maintain backwards compatibility, and does not apply to plugins, themes, nor most of the core
...
...
qa-include/qa-page.php
View file @
19607508
...
...
@@ -479,9 +479,12 @@
$categoryids
=
array
(
$categoryids
);
$lastcategoryid
=
count
(
$categoryids
)
?
end
(
$categoryids
)
:
null
;
$charset
=
'utf-8'
;
$qa_content
=
array
(
'content_type'
=>
'text/html; charset=utf-8'
,
'content_type'
=>
'text/html; charset='
.
$charset
,
'charset'
=>
$charset
,
'site_title'
=>
qa_html
(
qa_opt
(
'site_title'
)),
...
...
qa-include/qa-theme-base.php
View file @
19607508
...
...
@@ -210,7 +210,7 @@
public
function
doctype
()
{
$this
->
output
(
'<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
>'
);
$this
->
output
(
'<!DOCTYPE
html
>'
);
}
public
function
html
()
...
...
@@ -234,7 +234,7 @@
{
$this
->
output
(
'<head>'
,
'<meta
http-equiv="content-type" content="'
.
$this
->
content
[
'content_type
'
]
.
'"/>'
'<meta
charset="'
.
$this
->
content
[
'charset
'
]
.
'"/>'
);
$this
->
head_title
();
...
...
@@ -292,18 +292,18 @@
public
function
head_css
()
{
$this
->
output
(
'<link rel="stylesheet"
type="text/css"
href="'
.
$this
->
rooturl
.
$this
->
css_name
()
.
'"/>'
);
$this
->
output
(
'<link rel="stylesheet" href="'
.
$this
->
rooturl
.
$this
->
css_name
()
.
'"/>'
);
if
(
isset
(
$this
->
content
[
'css_src'
]))
{
foreach
(
$this
->
content
[
'css_src'
]
as
$css_src
)
$this
->
output
(
'<link rel="stylesheet"
type="text/css"
href="'
.
$css_src
.
'"/>'
);
$this
->
output
(
'<link rel="stylesheet" href="'
.
$css_src
.
'"/>'
);
}
if
(
!
empty
(
$this
->
content
[
'notices'
]))
{
$this
->
output
(
'<style>
<!--
'
,
'<style>'
,
'.qa-body-js-on .qa-notice {display:none;}'
,
'
//-->
</style>'
'</style>'
);
}
}
...
...
@@ -356,7 +356,7 @@
public
function
body_script
()
{
$this
->
output
(
'<script
type="text/javascript"
>'
,
'<script>'
,
"var b=document.getElementsByTagName('body')[0];"
,
"b.className=b.className.replace('qa-body-js-off', 'qa-body-js-on');"
,
'</script>'
...
...
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