Admin Notes

– added to functions.php for mobile / desktop to dynamically add Patrols to menu

base theme + wp-touch bauhaus theme: /plugins/wptouch/themes/bauhaus/default

/* Dynamically add Patrol directories */
add_filter( ‘wp_nav_menu_items’, ‘add_patrol_menu_item’, 10, 2 );
function add_patrol_menu_item ( $items, $args ) {

include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ );
if (is_plugin_active(‘scouttroop/scouttroop.php’)){
$list_of_patrols = patrol_list_func(“ARRAY”);
$new_menu_items = ‘>Patrol Directory</a>’;
$new_menu_items .= ‘<ul class=”sub-menu”>’;

if (is_array($list_of_patrols)){
foreach ($list_of_patrols as $patrol){
$new_menu_items .= ‘<li class=”menu-item menu-item-type-custom menu-item-object-custom”><a href=”http://troop351.org/patrol-dir/?’.$patrol.'”>’.$patrol.'</a></li></li>’;
}
$new_menu_items .= ‘</ul>’;

$items = str_replace(“>Patrols</a>”, $new_menu_items, $items);
}
}
return $items;
}

– change bauhaus mobile style sheet – h2 to color:white

bauhaus theme: /plugins/wptouch/themes/bauhaus/default

11/June – Did a bad thing.  Hacked core 🙁  I modified the wp-admin/includes/class-wp-posts-list-table.php file on line 1086 to return a list of subscribers not authors for the quick edit drop down.