Minor code fix; updated info in comments
This commit is contained in:
parent
30039219b3
commit
51ce48105f
20
papyrus.css
20
papyrus.css
@ -1,21 +1,9 @@
|
|||||||
/* PAPYRUS skin for PmWiki
|
/* Papyrus skin for PmWiki
|
||||||
Copyright 2019 Said Achmiz
|
Copyright 2017-2021 Said Achmiz
|
||||||
|
|
||||||
|
https://www.pmwiki.org/wiki/Skins/Papyrus
|
||||||
|
|
||||||
Version: 2019-01-28-3
|
Version: 2019-01-28-3
|
||||||
|
|
||||||
More info at these URLs:
|
|
||||||
|
|
||||||
* https://www.pmwiki.org/wiki/Skins/Papyrus
|
|
||||||
* https://www.pmwiki.org/wiki/Profiles/SaidAchmiz
|
|
||||||
|
|
||||||
The Papyrus skin includes:
|
|
||||||
|
|
||||||
* papyrus.css (this file)
|
|
||||||
* papyrus.jpg (background pattern)
|
|
||||||
* papyrus.tmpl (skin template)
|
|
||||||
* papyrus.php (skin script file)
|
|
||||||
* ReadMe.txt (instructions & info)
|
|
||||||
* wikilib.d/ (directory of bundled wikipages)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*************/
|
/*************/
|
||||||
|
|||||||
25
papyrus.php
25
papyrus.php
@ -1,23 +1,8 @@
|
|||||||
<?php if (!defined('PmWiki')) exit();
|
<?php if (!defined('PmWiki')) exit();
|
||||||
|
/* Papyrus skin for PmWiki
|
||||||
|
Copyright 2017-2021 Said Achmiz
|
||||||
|
|
||||||
/* PAPYRUS skin for PmWiki
|
https://www.pmwiki.org/wiki/Skins/Papyrus
|
||||||
Copyright 2019 Said Achmiz
|
|
||||||
|
|
||||||
Version: 2019-01-28-3
|
|
||||||
|
|
||||||
More info at these URLs:
|
|
||||||
|
|
||||||
* https://www.pmwiki.org/wiki/Skins/Papyrus
|
|
||||||
* https://www.pmwiki.org/wiki/Profiles/SaidAchmiz
|
|
||||||
|
|
||||||
The Papyrus skin includes:
|
|
||||||
|
|
||||||
* papyrus.php (skin script file)
|
|
||||||
* papyrus.css (style sheet)
|
|
||||||
* papyrus.jpg (background pattern)
|
|
||||||
* papyrus.tmpl (skin template)
|
|
||||||
* ReadMe.txt (instructions & info)
|
|
||||||
* wikilib.d/ (directory of bundled wikipages)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
global $FmtPV;
|
global $FmtPV;
|
||||||
@ -70,11 +55,11 @@ global $HTMLFooterFmt, $action;
|
|||||||
$HTMLFooterFmt[] = "<script type='text/javascript'>document.querySelector('body').classList.add('action-{$action}');</script>";
|
$HTMLFooterFmt[] = "<script type='text/javascript'>document.querySelector('body').classList.add('action-{$action}');</script>";
|
||||||
|
|
||||||
## Enable the (:notitlegroup:) and (:titlegroup:) directives.
|
## Enable the (:notitlegroup:) and (:titlegroup:) directives.
|
||||||
Markup('notitlegroup', 'directives', '/\\(:notitlegroup:\\)/i', function ($m) {
|
Markup('notitlegroup', 'directives', '/\(:notitlegroup:\)/i', function ($m) {
|
||||||
global $HTMLStylesFmt;
|
global $HTMLStylesFmt;
|
||||||
$HTMLStylesFmt['papyrus-title-group'] = "#pageTitle .title-group { display: none; }";
|
$HTMLStylesFmt['papyrus-title-group'] = "#pageTitle .title-group { display: none; }";
|
||||||
});
|
});
|
||||||
Markup('titlegroup', 'directives', '/\\(:titlegroup:\\)/i', function ($m) {
|
Markup('titlegroup', 'directives', '/\(:titlegroup:\)/i', function ($m) {
|
||||||
global $HTMLStylesFmt;
|
global $HTMLStylesFmt;
|
||||||
$HTMLStylesFmt['papyrus-title-group'] = "";
|
$HTMLStylesFmt['papyrus-title-group'] = "";
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user