esc_html__( 'Display the most popular content right now.', 'better-analytics')) ); if (is_active_widget(false, false, $this->id_base)) { add_action('wp_head', array( $this, 'css')); } } function css() { ?> getTokens() || !$betterAnalyticsOptions['api']['profile']) { echo '
' . sprintf(esc_html__('No Linked Google Analytics Account (API access required for this widget). You can link one in the %1$sBetter Analytics API settings%2$s.', 'better-analytics'), '', '') . '
'; } ?>
$count) { if (substr($page, 0, 1) == '/' && strlen($page) > 1 && strpos($page, '/wp-admin/') === false) { $pagesOutput[] = $page; if (count($pagesOutput) >= $numberToShow) { break; } } } if (count($pagesOutput) > 0) { echo $args['before_widget']; if (!empty($instance['title'])) { echo $args['before_title']; echo esc_html( $instance['title'] ); echo $args['after_title']; } echo '