Skip to content

Instantly share code, notes, and snippets.

@samuelsimoes
Created May 25, 2012 12:49
Show Gist options
  • Save samuelsimoes/2787907 to your computer and use it in GitHub Desktop.
Save samuelsimoes/2787907 to your computer and use it in GitHub Desktop.
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');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment