Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/finanalyst/hkbahaisite

GRAV based site for hk.bahai.org
https://github.com/finanalyst/hkbahaisite

Last synced: 17 days ago
JSON representation

GRAV based site for hk.bahai.org

Awesome Lists containing this project

README

        

# Critical Files for the GRAV site at hk.bahai.org

Only those files that differ from a standard GRAV installation with the Quark theme.

BUT ... the shortcode plugin for `[size]` currently does not support attributes like 'xx-large'.

So the following needs to be the contents of `user/plugins/shortcode-core/shortcodes/SizeShortcode.php`
```
shortcode->getHandlers()->add('size', function(ShortcodeInterface $sc) {
$size = $sc->getParameter('size', $sc->getBbCode());
if ( is_numeric($size) ) { $size = $size.'px' ; }
return ''.$sc->getContent().'';
});
}
}
```