# PmWiki Bootstrap

(redirected from WebDevelopment.PmWikiBootstrap)

## Using Bootstrap with PmWiki

I built a theme using bootstrap for a client, but it was fairly precise, with static content on the majority of pages, and using config.php to switch to the default theme for all admin pages.

## Standalone Bootstrap theme

I built a theme based on the theme embedded within the (see below).
It’s bundled up like a “real” theme, and can be installed on any (modern) version of PmWiki.

Zip files now exist, but haven’t been made available properly.
Work is in-progress on php unit tests.

MORE FEATURES

## Applying the darkstrap theme

so, to do darkstrap, add after screen in the template:
\path\to\pmwikibootstrap\pub\skins\bootstrap-fluid\bootstrap-fluid.tmpl

<!-- Le styles -->
<link href="$FarmPubDirUrl/css/screen.css" rel="stylesheet"> I downloaded the zip of darkstrap from https://github.com/danneu/darkstrap placed JUST the darkstrap.css file into \path\to\pmwikibootstrap\pub\css added the third line below line to the template: <!-- Le styles --> <link href="$FarmPubDirUrl/css/screen.css" rel="stylesheet">

### apply scope

pmwiki-kit comes with the blogit package, which sets up some configs of its own.

At least the following from blogit is required for markup styles expected by pmwiki-bootstrap:

\$WikiStyleApply['link'] = 'a';  #allows A to be labelled with class attributes

so that the following might be implemented properly:

## other bootstrap examples to look at

### polymer

http://polymer-project.appspot.com/ - I’m recognizing a lot of the components now.
That’s a non-inverted navbar at top.
The whole theme looks lighter and .... arier? than the bootstrap in the kit-extracted version.
What’s the difference?

Maybe no difference beyond the header, and the “fact” that the sample image includes the hero-unit, which has a gray background.

Maybe the header style should be a theme option....

### unofficial github buttons

I like the emptyness -- could we do this with pmwiki? no headers, no right or left bars?

some sort of per-page markup (I believe if stuck in the group-header it would be respected in all group pages, no?)....

## Licensing

Darkstrap doesn’t appear to have any copyrights or licensing attached to it AFAIK

PmWikiBootstrap would be covered by the GNU General Public License:

This program is free software; you can redistribute it and/or modify
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

Re-distributed components (PmWiki, bootstrap, cookbook recipes) carry whatever licenses they already have.