Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(function_exists('register_sidebar'))
- register_sidebar(array(
- 'before_widget' => '<section class="widgets">',
- 'after_widget' => '</section>',
- 'before_title' => '<h2>',
- 'after_title' => '</h2>'
- ));
- // Registro de menus
- function navigation_menus() {
- $locations = array(
- 'principal' => 'Menu Principal',
- 'menu-coluna-lateral' => 'Menu Lateral',
- 'menu-rodape' => 'Menu Rodapé'
- );
- register_nav_menus( $locations );
- }
- // Hook action
- add_action( 'init', 'navigation_menus' );
- //fim registro menu
- class Meu_Item{
- public function walk($args){
- $m= "<li class='Minha-Classe'>";
- $m.= "<a href='".$args[1]->url ."'>".$args[1]->title."</a>";
- $m.= "</li>";
- return $m;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement