From: Laury GvR Date: Tue, 7 Oct 2014 19:05:41 +0000 (-0400) Subject: Functions errors X-Git-Tag: v1.0.0~16 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=c96df36ca336ccef2a6652e25afffa9a4541613a;p=WP-Themes%2FParrotsLanding.git Functions errors --- diff --git a/functions.php b/functions.php index ed18ac7..dc3f9a6 100644 --- a/functions.php +++ b/functions.php @@ -1,84 +1,44 @@ __( 'Header Menu' ), - 'extra-menu' => __( 'Extra Menu' ) - ) - ); -} -add_action( 'init', 'register_my_menus' ); - -wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); - -wp_nav_menu( array( 'theme_location' => 'extra-menu', 'container_class' => 'my_extra_menu_class' ) ); - -// Register Navigation Menus -function custom_navigation_menus() { - - $locations = array( - ); - register_nav_menus( $locations ); - -} - -// Hook into the 'init' action -add_action( 'init', 'custom_navigation_menus' ); - -?> - - - - - - - - - - - - - - - - -/** - * Register Lato Google font for Theme. - * - * @since parrotslanding 1.0 - * - * @return string - */ -function parrotslanding_font_url() { - $font_url = ''; - /* - * Translators: If there are characters in your language that are not supported - * by Lato, translate this to 'off'. Do not translate into your own language. - */ - if ( 'off' !== _x( 'on', 'Lato font: on or off', 'parrotslanding' ) ) { - $font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), "//fonts.googleapis.com/css" ); - } +//require_once('navigation.php'); +// +// +//function register_my_menu() { +// register_nav_menu('header-menu',__( 'Header Menu' )); +//} +//add_action( 'init', 'register_my_menu' ); +// +// +//function register_my_menus() { +// register_nav_menus( +// array( +// 'header-menu' => __( 'Header Menu' ), +// 'extra-menu' => __( 'Extra Menu' ) +// ) +// ); +//} +//add_action( 'init', 'register_my_menus' ); +// +//wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); +// +//wp_nav_menu( array( 'theme_location' => 'extra-menu', 'container_class' => 'my_extra_menu_class' ) ); +// +//// Register Navigation Menus +//function custom_navigation_menus() { +// +// $locations = array( +// ); +// register_nav_menus( $locations ); +// +//} +// +//// Hook into the 'init' action +//add_action( 'init', 'custom_navigation_menus' ); - return $font_url; -} \ No newline at end of file +?> \ No newline at end of file