CSS only loaded when shortcode present.

This commit is contained in:
2015-09-18 11:11:40 +02:00
parent 2692f2bd0c
commit b39a577faf
5 changed files with 28 additions and 19 deletions

View File

@ -23,6 +23,8 @@ add_filter( 'wp_ajax_get_new_ticks', array( $this, 'wplt_ajax_get_new_ticks' ) )
function wplt_shortcode_ticker_show( $atts ) {
global $wplt_options;
$wplt_options['shortcode_present'] = true;
/*$wplt_ticker_options = array();
extract(
@ -37,7 +39,7 @@ function wplt_shortcode_ticker_show( $atts ) {
{
if(!$atts[1]) $atts[1] = -1;
$output .= '<ul class="wplt_ticker">';
$output = '<ul class="wplt_ticker">';
$args = array( 'post_type' => 'wplt_tick',
'posts_per_page' => $atts[1],