Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/modules/widgets/flickr
File: form.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Jetpack_Flickr_Widget settings form output.
[2] Fix | Delete
*
[3] Fix | Delete
* @html-template Jetpack_Flickr_Widget::form
[4] Fix | Delete
* @package automattic/jetpack
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit( 0 );
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it.
[12] Fix | Delete
[13] Fix | Delete
?>
[14] Fix | Delete
<p>
[15] Fix | Delete
<label>
[16] Fix | Delete
<?php esc_html_e( 'Title:', 'jetpack' ); ?>
[17] Fix | Delete
</label>
[18] Fix | Delete
<input
[19] Fix | Delete
class="widefat"
[20] Fix | Delete
name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>"
[21] Fix | Delete
type="text"
[22] Fix | Delete
value="<?php echo esc_attr( $instance['title'] ); ?>"
[23] Fix | Delete
/>
[24] Fix | Delete
</p>
[25] Fix | Delete
[26] Fix | Delete
<p>
[27] Fix | Delete
<label>
[28] Fix | Delete
<?php esc_html_e( 'Flickr RSS URL:', 'jetpack' ); ?>
[29] Fix | Delete
</label>
[30] Fix | Delete
<input
[31] Fix | Delete
class="widefat"
[32] Fix | Delete
name="<?php echo esc_attr( $this->get_field_name( 'flickr_rss_url' ) ); ?>"
[33] Fix | Delete
type="text"
[34] Fix | Delete
value="<?php echo esc_attr( $instance['flickr_rss_url'] ); ?>"
[35] Fix | Delete
/>
[36] Fix | Delete
</p>
[37] Fix | Delete
<p>
[38] Fix | Delete
<small>
[39] Fix | Delete
<?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' ); ?>
[40] Fix | Delete
</small>
[41] Fix | Delete
</p>
[42] Fix | Delete
<p>
[43] Fix | Delete
<small>
[44] Fix | Delete
<?php
[45] Fix | Delete
printf(
[46] Fix | Delete
wp_kses(
[47] Fix | Delete
/* Translators: %s is the URL to an example Flickr RSS feed. */
[48] Fix | Delete
__( 'Leave the Flickr RSS URL field blank to display <a target="_blank" href="%s">interesting</a> Flickr photos.', 'jetpack' ),
[49] Fix | Delete
array(
[50] Fix | Delete
'a' => array(
[51] Fix | Delete
'href' => array(),
[52] Fix | Delete
'target' => array(),
[53] Fix | Delete
),
[54] Fix | Delete
)
[55] Fix | Delete
),
[56] Fix | Delete
'https://www.flickr.com/explore/interesting'
[57] Fix | Delete
);
[58] Fix | Delete
?>
[59] Fix | Delete
</small>
[60] Fix | Delete
</p>
[61] Fix | Delete
[62] Fix | Delete
<p>
[63] Fix | Delete
<label>
[64] Fix | Delete
<?php esc_html_e( 'How many photos would you like to display?', 'jetpack' ); ?>
[65] Fix | Delete
</label>
[66] Fix | Delete
<select name="<?php echo esc_attr( $this->get_field_name( 'items' ) ); ?>">
[67] Fix | Delete
<?php for ( $i = 1; $i <= 10; ++$i ) { ?>
[68] Fix | Delete
<option
[69] Fix | Delete
<?php selected( $instance['items'], $i ); ?>
[70] Fix | Delete
value="<?php echo esc_attr( $i ); ?>"
[71] Fix | Delete
>
[72] Fix | Delete
<?php echo esc_html( $i ); ?>
[73] Fix | Delete
</option>
[74] Fix | Delete
<?php } ?>
[75] Fix | Delete
</select>
[76] Fix | Delete
</p>
[77] Fix | Delete
[78] Fix | Delete
<p>
[79] Fix | Delete
<label>
[80] Fix | Delete
<input
[81] Fix | Delete
type="checkbox"
[82] Fix | Delete
name="<?php echo esc_attr( $this->get_field_name( 'target' ) ); ?>"
[83] Fix | Delete
<?php checked( $instance['target'] ); ?>
[84] Fix | Delete
/>
[85] Fix | Delete
<?php esc_html_e( 'Open images in new tab?', 'jetpack' ); ?>
[86] Fix | Delete
</label>
[87] Fix | Delete
</p>
[88] Fix | Delete
<p>
[89] Fix | Delete
<div>
[90] Fix | Delete
<?php esc_html_e( 'What size photos would you like to display?', 'jetpack' ); ?>
[91] Fix | Delete
</div>
[92] Fix | Delete
<ul>
[93] Fix | Delete
<li>
[94] Fix | Delete
<label>
[95] Fix | Delete
<input
[96] Fix | Delete
<?php checked( $instance['flickr_image_size'], 'thumbnail' ); ?>
[97] Fix | Delete
name="<?php echo esc_attr( $this->get_field_name( 'flickr_image_size' ) ); ?>"
[98] Fix | Delete
type="radio"
[99] Fix | Delete
value="thumbnail"
[100] Fix | Delete
/>
[101] Fix | Delete
<?php esc_html_e( 'Thumbnail', 'jetpack' ); ?>
[102] Fix | Delete
</label>
[103] Fix | Delete
</li>
[104] Fix | Delete
<li>
[105] Fix | Delete
<label>
[106] Fix | Delete
<input
[107] Fix | Delete
<?php checked( $instance['flickr_image_size'], 'small' ); ?>
[108] Fix | Delete
name="<?php echo esc_attr( $this->get_field_name( 'flickr_image_size' ) ); ?>"
[109] Fix | Delete
type="radio"
[110] Fix | Delete
value="small"
[111] Fix | Delete
/>
[112] Fix | Delete
<?php esc_html_e( 'Medium', 'jetpack' ); ?>
[113] Fix | Delete
</label>
[114] Fix | Delete
</li>
[115] Fix | Delete
<li>
[116] Fix | Delete
<label>
[117] Fix | Delete
<input
[118] Fix | Delete
<?php checked( $instance['flickr_image_size'], 'large' ); ?>
[119] Fix | Delete
name="<?php echo esc_attr( $this->get_field_name( 'flickr_image_size' ) ); ?>"
[120] Fix | Delete
type="radio"
[121] Fix | Delete
value="large"
[122] Fix | Delete
/>
[123] Fix | Delete
<?php esc_html_e( 'Large', 'jetpack' ); ?>
[124] Fix | Delete
</label>
[125] Fix | Delete
</li>
[126] Fix | Delete
</ul>
[127] Fix | Delete
</p>
[128] Fix | Delete
[129] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function