Skip to content

Instantly share code, notes, and snippets.

View jensjns's full-sized avatar
🐙
⌨️🦍

Jens Nilsson jensjns

🐙
⌨️🦍
View GitHub Profile
@Chukatuk
Chukatuk / getMenuHierarchically.php
Last active April 20, 2017 13:07 — forked from vwasteels/getMenuHierarchically.md
Retrieve menu items hierarchically in Wordpress
```php
/**
* Get Menu Items From Location
*
* @param $location : location slug given as key in register_nav_menus
*/
function getMenuItemsFromLocation($location) {
$theme_locations = get_nav_menu_locations();
@brikis98
brikis98 / CheckBoxes.html
Created July 26, 2011 07:38
Proposed syntax for a Markdown extension that would support form elements
<label>Phones:</label>
<input type="checkbox" name="phones" id="Android" value="Android"/><label for="Android">Android</label>
<input type="checkbox" name="phones" id="iPhone" value="iPhone" checked="checked"/><label for="iPhone">iPhone</label>
<input type="checkbox" name="phones" id="Blackberry" value="Blackberry" checked="checked"/><label for="Blackberry">Blackberry</label>