summaryrefslogtreecommitdiff
blob: b08e7c4ddddb8e228c6ac6dff661e35f0a7b684a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<p>
	<label>
		<?php esc_html_e( 'Title:', 'jetpack' ); ?>
	</label>
	<input
		class="widefat"
		name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>"
		type="text"
		value="<?php echo esc_attr( $instance['title'] ); ?>"
	/>
</p>

<p>
	<label>
		<?php esc_html_e( 'Flickr RSS URL:', 'jetpack' ); ?>
	</label>
	<input
		class="widefat"
		name="<?php echo esc_attr( $this->get_field_name( 'flickr_rss_url' ) ); ?>"
		type="text"
		value="<?php echo esc_attr( $instance['flickr_rss_url'] ); ?>"
	/>
</p>
<p>
	<small>
		<?php esc_html_e( 'To find your Flickr RSS URL, go to your photostream, add "?details=1" to the URL, and hit enter. Scroll down until you see the RSS icon or the "Latest" link. Right-click on either options and copy the URL. Paste into the box above.', 'jetpack' ); ?>
	</small>
</p>
<p>
	<small>
		<?php printf(
			__( 'Leave the Flickr RSS URL field blank to display <a target="_blank" href="%s">interesting</a> Flickr photos.', 'jetpack' ),
			'http://www.flickr.com/explore/interesting'
		); ?>
	</small>
</p>

<p>
	<label>
		<?php esc_html_e( 'How many photos would you like to display?', 'jetpack' ); ?>
	</label>
	<select name="<?php echo esc_attr( $this->get_field_name( 'items' ) ); ?>">
		<?php for ( $i = 1; $i <= 10; ++$i ) { ?>
			<option
				<?php selected( $instance['items'], $i ); ?>
				value="<?php echo $i; ?>"
			>
				<?php echo $i; ?>
			</option>
		<?php } ?>
	</select>
</p>

<p>
	<div>
		<?php esc_html_e( 'What size photos would you like to display?', 'jetpack' ); ?>
	</div>
	<ul>
		<li>
			<label>
				<input
					<?php checked( $instance['flickr_image_size'], 'thumbnail' ); ?>
					name="<?php echo esc_attr( $this->get_field_name( 'flickr_image_size' ) ); ?>"
					type="radio"
					value="thumbnail"
				/>
				<?php esc_html_e( 'Thumbnail', 'jetpack' ); ?>
			</label>
		</li>
		<li>
			<label>
				<input
					<?php checked( $instance['flickr_image_size'], 'small' ); ?>
					name="<?php echo esc_attr( $this->get_field_name( 'flickr_image_size' ) ); ?>"
					type="radio"
					value="small"
				/>
				<?php esc_html_e( 'Medium', 'jetpack' ); ?>
			</label>
		</li>
		<li>
			<label>
				<input
					<?php checked( $instance['flickr_image_size'], 'large' ); ?>
					name="<?php echo esc_attr( $this->get_field_name( 'flickr_image_size' ) ); ?>"
					type="radio"
					value="large"
				/>
				<?php esc_html_e( 'Large', 'jetpack' ); ?>
			</label>
		</li>
	</ul>
</p>