'flickr', 'description' => __( 'The most recent photos from flickr.', 'Avada' ), ); $control_ops = array( 'id_base' => 'flickr-widget', ); parent::__construct( 'flickr-widget', 'Avada: Flickr', $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 ); $title = apply_filters( 'widget_title', isset( $instance['title'] ) ? $instance['title'] : '' ); $screen_name = $instance['screen_name']; $number = $instance['number']; $api = $instance['api']; if ( empty( $api ) ) { $api = 'c9d2c2fda03a2ff487cb4769dc0781ea'; } echo $before_widget; // WPCS: XSS ok. if ( $title ) { echo $before_title . $title . $after_title; // WPCS: XSS ok. } ?>
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'; ?>