$childs = get_pages('child_of=' . $page->ID);
if (count($childs) > 0) {
echo '<li class="has-dropdown">'."\n";
- echo '<a href="'.get_permalink($child->ID).'">'.$page->post_title.'</a>'."\n";
+ echo '<a href="'.get_permalink($page->ID).'">'.$page->post_title.'</a>'."\n";
echo glm_page_menu($page->ID, 'sub-menu dropdown');
echo '</li>'."\n";
} else {
}
add_action('wp_enqueue_scripts', 'glm_site_scripts');
-?>
\ No newline at end of file
+?>