'widget-oceanwp-flickr flickr-widget', 'description' => esc_html__( 'Pulls in images from your flickr account.', 'ocean-extra' ), 'customize_selective_refresh' => true, ) ); } /** * Front-end display of widget. * * @see WP_Widget::widget() * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget( $args, $instance ) { $title = isset( $instance['title'] ) ? apply_filters( 'widget_title', $instance['title'] ) : ''; $number = isset( $instance['number'] ) ? $instance['number'] : ''; $id = isset( $instance['id'] ) ? $instance['id'] : ''; // Before widget WP hook echo $args['before_widget']; // Show widget title if ( $title ) { echo $args['before_title'] . $title . $args['after_title']; } // Display flickr feed if ID is defined if ( $id ) : ?>
esc_attr__( 'Flickr Photos', 'ocean-extra' ), 'id' => '73064996@N08', 'number' => 6, ) ); $title = $settings['title']; $id = $settings['id']; $number = $settings['number']; ?>