samuelsimoes
5/25/2012 - 12:49 PM

Registra e fila!!

Registra e fila!!

<?php
	if(!is_admin()){ 
		/* Estilos */
		wp_register_style('reset', get_bloginfo('template_directory') . "/reset.css", null);
		wp_register_style('style', get_bloginfo('stylesheet_url'), array('reset'), null);
		wp_register_style('font-lato', 'http://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,700italic');

		wp_enqueue_style('reset');
		wp_enqueue_style('style');
		wp_enqueue_style('font-lato');

		/* Scripts */
		wp_deregister_script('jquery');
		wp_deregister_script('jquery-ui');
		wp_register_script('jquery', get_bloginfo('template_directory') . "/scripts/jquery.min.js", array(), '1.7.2');
		wp_register_script('jquery-ui', get_bloginfo('template_directory') . "/scripts/jquery-ui-1.8.20.min.js", array('jquery'), '1.8.20');
		wp_register_script('jquery-jcarousel', get_bloginfo('template_directory') . "/scripts/jquery.jcarousel.js", array('jquery'));
		wp_register_script('jquery-jcarousel-control', get_bloginfo('template_directory') . "/scripts/jquery.jcarousel.control.js", array('jquery', 'jquery-jcarousel'));
		wp_register_script('jquery-jcarousel-autoscroll', get_bloginfo('template_directory') . "/scripts/jquery.jcarousel.autoscroll.js", array('jquery', 'jquery-jcarousel'));
		wp_register_script('jquery-jcarousel-pagination', get_bloginfo('template_directory') . "/scripts/jquery.jcarousel.pagination.js", array('jquery', 'jquery-jcarousel'));
		wp_register_script('global', get_bloginfo('template_directory') . "/scripts/global.js", array('jquery', 'jquery-jcarousel'));
	
		wp_enqueue_script('jquery');
		wp_enqueue_script('jquery-ui');
		wp_enqueue_script('jquery-jcarousel');
		wp_enqueue_script('jquery-jcarousel-control');
		wp_enqueue_script('jquery-jcarousel-autoscroll');
		wp_enqueue_script('jquery-jcarousel-pagination');
		wp_enqueue_script('global');
	}