modules/widgets/facebook-likebox.php 1 location
|
@@ 66-70 (lines=5) @@
|
| 63 |
|
$like_args = $this->normalize_facebook_args( $instance['like_args'] ); |
| 64 |
|
|
| 65 |
|
if ( empty( $like_args['href'] ) || ! $this->is_valid_facebook_url( $like_args['href'] ) ) { |
| 66 |
|
if ( current_user_can('edit_theme_options') ) { |
| 67 |
|
echo $before_widget; |
| 68 |
|
echo '<p>' . sprintf( __( 'It looks like your Facebook URL is incorrectly configured. Please check it in your <a href="%s">widget settings</a>.', 'jetpack' ), admin_url( 'widgets.php' ) ) . '</p>'; |
| 69 |
|
echo $after_widget; |
| 70 |
|
} |
| 71 |
|
echo '<!-- Invalid Facebook Page URL -->'; |
| 72 |
|
return; |
| 73 |
|
} |
modules/widgets/image-widget.php 1 location
|
@@ 113-117 (lines=5) @@
|
| 110 |
|
</figure>'; // wp_kses_post caption on update |
| 111 |
|
} |
| 112 |
|
echo '<div class="jetpack-image-container">' . do_shortcode( $output ) . '</div>'; |
| 113 |
|
} else { |
| 114 |
|
if ( current_user_can( 'edit_theme_options' ) ) { |
| 115 |
|
echo '<p>' . sprintf( __( 'Image missing or invalid URL. Please check the Image widget URL in your <a href="%s">widget settings</a>.', 'jetpack' ), admin_url( 'widgets.php' ) ) . '</p>'; |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
echo "\n" . $args['after_widget']; |
| 120 |
|
|
modules/widgets/top-posts.php 1 location
|
@@ 303-308 (lines=6) @@
|
| 300 |
|
echo $args['before_title'] . $title . $args['after_title']; |
| 301 |
|
|
| 302 |
|
if ( ! $posts ) { |
| 303 |
|
if ( current_user_can( 'edit_theme_options' ) ) { |
| 304 |
|
echo '<p>' . sprintf( |
| 305 |
|
__( 'There are no posts to display. <a href="%s" target="_blank">Want more traffic?</a>', 'jetpack' ), |
| 306 |
|
'https://jetpack.com/support/getting-more-views-and-traffic/' |
| 307 |
|
) . '</p>'; |
| 308 |
|
} |
| 309 |
|
|
| 310 |
|
echo $args['after_widget']; |
| 311 |
|
return; |