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
0aad2f25
Commit
0aad2f25
authored
Nov 30, 2014
by
pupi1985
Committed by
Scott
Dec 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an initialization function for layers
parent
871bc11c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
qa-page.php
qa-include/qa-page.php
+1
-0
qa-theme-base.php
qa-include/qa-theme-base.php
+5
-0
No files found.
qa-include/qa-page.php
View file @
0aad2f25
...
@@ -371,6 +371,7 @@
...
@@ -371,6 +371,7 @@
// Load the appropriate theme class and output the page
// Load the appropriate theme class and output the page
$themeclass
=
qa_load_theme_class
(
qa_get_site_theme
(),
(
substr
(
$qa_template
,
0
,
7
)
==
'custom-'
)
?
'custom'
:
$qa_template
,
$qa_content
,
qa_request
());
$themeclass
=
qa_load_theme_class
(
qa_get_site_theme
(),
(
substr
(
$qa_template
,
0
,
7
)
==
'custom-'
)
?
'custom'
:
$qa_template
,
$qa_content
,
qa_request
());
$themeclass
->
initialize
();
header
(
'Content-type: '
.
$qa_content
[
'content_type'
]);
header
(
'Content-type: '
.
$qa_content
[
'content_type'
]);
...
...
qa-include/qa-theme-base.php
View file @
0aad2f25
...
@@ -187,6 +187,11 @@ class qa_html_theme_base
...
@@ -187,6 +187,11 @@ class qa_html_theme_base
}
}
}
}
/**
* Pre-output initialization. Immediately called after loading of the module. Content and template variables are
* already setup at this point. Useful to perform layer initialization in the earliest and safest stage possible
*/
public
function
initialize
()
{
}
public
function
finish
()
public
function
finish
()
/*
/*
...
...
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