[pmwiki-users] bonny -- HeaderTitle lost
Jean-Pierre Chrétien
jeanpierre.chretien at free.fr
Mon Aug 17 07:41:39 CDT 2015
Hello,
I updated bonny.php (from bonny skin) to make it php>=5.5 compatible:
* Markup
*/
/* (:noleft:) redefinition */
-Markup('noleft','directives','/\\(:noleft:\\)/e', "NoLeftBar()");
+Markup_e('noleft','directives','/\\(:noleft:\\)/', PCCF('return
NoLeftBar();'));
/* (:noright:) redefinition */
-Markup('noright','directives','/\\(:noright:\\)/e', "NoRightBar()");
+Markup_e('noright','directives','/\\(:noright:\\)/', PCCF('return
NoRightBar();'));
/* external link markup */
global $IMapLinkFmt;
$IMapLinkFmt['http:'] =
"<a class='externallink' href='\$LinkUrl'>\$LinkText</a>";
-Markup('bonny', '<split', '/\\(:bonny\\s+(\w+)\\s?(.*?):\\)/ei',
- "BonnyMarkup(\$pagename, PSS('$1'), PSS('$2'))");
+Markup_e('bonny', '<split', '/\\(:bonny\\s+(\w+)\\s?(.*?):\\)/i',
+ PCCF('return BonnyMarkup($pagename, PSS($m[1]), PSS($m[2]));'));
/* ============================================================== */
/*
The meesgaes about deprecated e modifier do not show anymore,
but I've lost the logo.
Can that be related to the template being edited before
substitution is made? Here is the template code:
<div id='wikilogo'><!--markup:(:if enabled
BonnyLogoLink:)[[Path:{$BonnyLogoLink}|Path:{$PageLogoUrl}]]\
(:if !enabled
BonnyLogoLink:)[[Path:{$ScriptUrl}|Path:{$PageLogoUrl}]\
(:ifend:)-->$HeaderTitle</div>
</div>
--
Jean-Pierre
More information about the pmwiki-users
mailing list