I use something very similar for Boostrap 3. $WikiStyleAttr['data-breakpoint'] = 'li|div|p';
then you can use * %apply=list class="flexnav" data-breakpoint="800"% First Menu Item Rgds Brian On 17 December 2013 17:24, Crisses <cris...@kinhost.org> wrote: > A wikistyle may not be the right way to do this: > > Here's what I need in the HTML output for a navigation menu: > > <ul class="flexnav" data-breakpoint="800"> <li>...</li> </ul> > > > Here's the markup I'm trying to use: > > *%apply=list class=flexnav db=800%First Menu Item > *Second Menu Item > **Nested Menu Item > *Third Menu Item > > Here's the custom php I'm attempting to employ: > $WikiStyleRepl['/\\bdb(=\d+)/'] = 'data-breakpoint$1'; > > And the output I'm getting: > <ul class="flexnav"><li> <a class="wikilink" href="... > > The whole "db" part disappears. > > ideas? > > Thanks! Trying to make a responsive navigation plug-in... > > Crisses > > > > > _______________________________________________ > pmwiki-users mailing list > pmwiki-users@pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > >
_______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users