' . esc_html__( 'Image Settings:', 'jetpack' ) . '
';
$sizes = array(
'small' => __( 'Small', 'jetpack' ),
'medium' => __( 'Medium', 'jetpack' ),
'large' => __( 'Large', 'jetpack' ),
);
echo '
';
$colors = array(
'red' => __( 'Red', 'jetpack' ),
'orange' => __( 'Orange', 'jetpack' ),
'green' => __( 'Green', 'jetpack' ),
'blue' => __( 'Blue', 'jetpack' ),
'purple' => __( 'Purple', 'jetpack' ),
'pink' => __( 'Pink', 'jetpack' ),
'silver' => __( 'Silver', 'jetpack' ),
);
echo '
';
}
/**
* Output a link with a link to the feed.
*
* @param string $type Widget type (posts or comments).
* @param array $args Widget arguments.
*/
private function rss_link( $type, $args ) {
$link_text = null;
$rss_type = null;
$subscribe_to = null;
if ( 'posts' === $type ) {
$subscribe_to = esc_html__( 'Subscribe to posts', 'jetpack' );
$link_text = esc_html__( 'RSS - Posts', 'jetpack' );
$rss_type = 'rss2_url';
} elseif ( 'comments' === $type ) {
$subscribe_to = esc_html__( 'Subscribe to comments', 'jetpack' );
$link_text = esc_html__( 'RSS - Comments', 'jetpack' );
$rss_type = 'comments_rss2_url';
}
/**
* Filters the target link attribute for the RSS link in the RSS widget.
*
* @module widgets
*
* @since 3.4.0
*
* @param bool false Control whether the link should open in a new tab. Default to false.
*/
if ( apply_filters( 'jetpack_rsslinks_widget_target_blank', false ) ) {
$link_target = '_blank';
} else {
$link_target = '_self';
}
$link_contents = null;
$format = $args['format'];
if ( 'image' === $format ) {
$link_contents = $this->get_image_tag( $args );
} elseif ( 'text-image' === $format ) {
$link_contents = sprintf(
'%1$s %2$s',
$this->get_image_tag( $args ),
$link_text
);
} elseif ( 'text' === $format ) {
$link_contents = $link_text;
}
printf(
'%1$s