$_featured ) : if ( ! has_post_thumbnail( $_featured->ID ) ) unset( $featured[ $key ] ); endforeach; if ( empty( $featured ) ) return; wp_enqueue_script( 'nivo-slider', get_template_directory_uri() . '/js/nivo-slider/jquery.nivo.slider.pack.js', array( 'jquery' ), '3.1', true ); wp_enqueue_script( 'academica-slider', get_template_directory_uri() . '/js/nivo-slider/nivo.slider.js', array( 'nivo-slider' ), '20120927', true ); wp_enqueue_style( 'nivo-slider-default', get_template_directory_uri() . '/js/nivo-slider/default.css', array(), '1.3' ); wp_enqueue_style( 'nivo-slider', get_template_directory_uri() . '/js/nivo-slider/nivo-slider.css', array( 'nivo-slider-default' ), '3.1' ); ?>