/** @see WP_Widget::widget */ function widget($args, $instance) { extract($args); // User-selected settings $title = $instance['title']; $title = apply_filters('widget_title', $title); $ticker = $instance['ticker']; $ticker_title = isset($instance['ticker_title']); // Before widget (defined by themes) echo $before_widget; // Title of widget (before and after defined by themes) if ($title) { echo $before_title . $title . $after_title; } // Set custom attributes $atts = array(); // Set the ticker title visibility $atts['title'] = 0; if ($ticker_title) { $atts['title'] = 1; } // Add a unique widget ID $atts['unique_id'] = 'widget'; // Add in_widget attribute for customization $atts['in_widget'] = 1; // Display the ticker if ($ticker != '') { ditty_news_ticker($ticker, '', $atts); } // After widget (defined by themes) echo $after_widget; }
<?php } } /* Restore original Post Data */ wp_reset_postdata(); ?> </div><!-- .column-content --> </div><!-- .c-column --> </div><!-- .abc-column --> <div class="sports column"> <?php if (function_exists('ditty_news_ticker')) { ditty_news_ticker(11126); ?> <a href="<?php echo get_category_link(get_cat_ID('sports')); ?> " class="column-title">Sports »</a> <?php } ?> <div class="column-content"> <?php // The Query $the_query = new WP_Query(array('category_name' => 'sports', 'posts_per_page' => '4')); // The Loop
<?php if (!defined('FW')) { die('Forbidden'); } if (($atts['ticker'] != '' || $atts['ticker'] != 'dnt-') && function_exists('ditty_news_ticker')) { ditty_news_ticker(substr($atts['ticker'], 4)); }
?> /images/homepage/light.svg"/> </div> <div class="home-badge"> <img src="<?php echo get_bloginfo('template_url'); ?> /images/homepage/badge.svg"/> </div> <h3 class="video-title"><a href="https://vimeo.com/154735390">Turning Privacy Into a Competitive Advantage: Four Hot Tips for Startups</a>.</h3> <iframe src="https://player.vimeo.com/video/154735390?title=0&byline=0&portrait=0" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <?php if (function_exists('ditty_news_ticker')) { ditty_news_ticker(45); } ?> </div> <?php } // End of the loop. ?> </main><!-- #main --> </div><!-- #primary -->