This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('table').replaceWith( $('table').html() | |
.replace(/<tbody/gi, "<div id='table'") | |
.replace(/<tr/gi, "<div") | |
.replace(/<\/tr>/gi, "</div>") | |
.replace(/<td/gi, "<span") | |
.replace(/<\/td>/gi, "</span>") | |
.replace(/<\/tbody/gi, "<\/div") | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ========== | |
Get Split Nav | |
include $menu_name for the menu you want and $raw=true if you want to return just the menu objects | |
========== */ | |
function get_split_nav($menu_name=null, $raw=false){ | |
if($menu_name == null || !is_string($menu_name)){ | |
return false; | |
} | |
$output = new stdClass(); |
NewerOlder