'flickr', 'description' => __( 'The most recent photos from flickr.', 'Avada' ), ]; $control_ops = [ 'id_base' => 'flickr-widget', ]; parent::__construct( 'flickr-widget', __( 'Avada: Flickr', 'Avada' ), $widget_ops, $control_ops ); } /** * Echoes the widget content. * * @access public * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance The settings for the particular instance of the widget. */ public function widget( $args, $instance ) { extract( $args ); // phpcs:ignore WordPress.PHP.DontExtract.extract_extract $title = apply_filters( 'widget_title', isset( $instance['title'] ) ? $instance['title'] : '', $instance, $this->id_base ); $screen_name = $instance['screen_name']; $number = $instance['number']; $api = $instance['api']; if ( empty( $api ) ) { $api = 'c9d2c2fda03a2ff487cb4769dc0781ea'; } echo $before_widget; // phpcs:ignore WordPress.Security.EscapeOutput if ( $title ) { echo $before_title . $title . $after_title; // phpcs:ignore WordPress.Security.EscapeOutput } ?>
settings->get( 'privacy_embeds' ) && ! Avada()->privacy_embeds->get_consent( 'flickr' ); ?> privacy_embeds->script_placeholder( 'flickr' ); ?> __( 'Photos from Flickr', 'Avada' ), 'screen_name' => '', 'number' => 6, 'api' => 'c9d2c2fda03a2ff487cb4769dc0781ea', ]; $instance = wp_parse_args( (array) $instance, $defaults ); $flickr_getid_url = 'http://idgettr.com/'; $flickr_apply_url = 'http://www.flickr.com/services/apps/create/apply'; ?>