mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-10 07:54:00 +02:00
Refactor code.
This commit is contained in:
@@ -22,7 +22,7 @@ modulejs.define('ext/custom', ['_', '$', 'marked', 'core/event', 'core/server',
|
||||
|
||||
if (data.header) {
|
||||
content = data.header;
|
||||
if (data.header_type === 'md') {
|
||||
if (data.headerType === 'md') {
|
||||
content = marked(content);
|
||||
}
|
||||
$header.html(content).stop().slideDown(duration);
|
||||
@@ -31,7 +31,7 @@ modulejs.define('ext/custom', ['_', '$', 'marked', 'core/event', 'core/server',
|
||||
|
||||
if (data.footer) {
|
||||
content = data.footer;
|
||||
if (data.footer_type === 'md') {
|
||||
if (data.footerType === 'md') {
|
||||
content = marked(content);
|
||||
}
|
||||
$footer.html(content).stop().slideDown(duration);
|
||||
|
@@ -337,9 +337,9 @@ class App {
|
||||
if (!$this->get_option("custom.enabled", false)) {
|
||||
return array(
|
||||
"header" => null,
|
||||
"header_type" => null,
|
||||
"headerType" => null,
|
||||
"footer" => null,
|
||||
"footer_type" => null
|
||||
"footerType" => null
|
||||
);
|
||||
}
|
||||
|
||||
@@ -374,9 +374,9 @@ class App {
|
||||
|
||||
return array(
|
||||
"header" => $header,
|
||||
"header_type" => $header_type,
|
||||
"headerType" => $header_type,
|
||||
"footer" => $footer,
|
||||
"footer_type" => $footer_type
|
||||
"footerType" => $footer_type
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user