Perfect way to include cdns in Wordpress
<?php
global $wp_filesystem;
if(!empty($wp_filesystem)){
$cdn_urls = __('https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.0/animate.min.css',r);
$cdn_urls = __('http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', r);
}
if( $cdn_urls !== false)
{
//USE CDNS
function stepup_cdn_css()
{
wp_enqueue_style('css3_animation_style' , 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.0/animate.min.css', false);
wp_enqueue_style('font-awesome-css' , 'http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', false);
}
add_action('wp_enqueue_scripts', 'stepup_cdn_css');
} //end of if
else
{
//USE internal
function stepup_local_css()
{
wp_enqueue_style ('css3_animation_style' , TEMPLATE_DIRECTORY . 'css/animate.min.css', false);
wp_enqueue_style ('font-awesome-css' , TEMPLATE_DIRECTORY . 'fonts/font-awesome-3.2/css/font-awesome.min.css', false);
}
add_action('wp_enqueue_scripts', 'stepup_local_css');
}// end of else
?>