@@ 44-59 (lines=16) @@ | ||
41 | * @param mixed $args Arguments. |
|
42 | * @param mixed $instance Instance. |
|
43 | */ |
|
44 | public function widget( $args, $instance ) { |
|
45 | ||
46 | $title = ! empty( $instance['title'] ) ? $instance['title'] : ''; |
|
47 | $affiliate = ! empty( $instance['affiliate'] ) ? $instance['affiliate'] : ''; |
|
48 | $count = ! empty( $instance['count'] ) ? $instance['count'] : ''; |
|
49 | ||
50 | echo $args['before_widget']; |
|
51 | ||
52 | echo $args['before_title'] . esc_attr( $title ) . $args['after_title']; |
|
53 | ||
54 | $homefinder_widgets = new HomeFinderWidgets(); |
|
55 | ||
56 | $homefinder_widgets->get_affiliates_widget( 'directory', $instance ); |
|
57 | ||
58 | echo $args['after_widget']; |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * Form function. |
@@ 44-59 (lines=16) @@ | ||
41 | * @param mixed $args Arguments. |
|
42 | * @param mixed $instance Instance. |
|
43 | */ |
|
44 | public function widget( $args, $instance ) { |
|
45 | ||
46 | $iframe_id = ! empty( $args['widget_id'] ) ? $args['widget_id'] : ''; |
|
47 | $title = ! empty( $instance['title'] ) ? $instance['title'] : ''; |
|
48 | $color = ! empty( $instance['color'] ) ? $instance['color'] : ''; |
|
49 | ||
50 | echo $args['before_widget']; |
|
51 | ||
52 | echo $args['before_title'] . esc_attr( $title ) . $args['after_title']; |
|
53 | ||
54 | $homes_widgets = new HomesWidgets(); |
|
55 | ||
56 | $homes_widgets->get_mortgage_calc( $iframe_id, $color ); |
|
57 | ||
58 | echo $args['after_widget']; |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * Form function. |
@@ 47-63 (lines=17) @@ | ||
44 | * @param mixed $instance Instance. |
|
45 | * @return void |
|
46 | */ |
|
47 | public function widget( $args, $instance ) { |
|
48 | ||
49 | $iframe_id = ! empty( $args['widget_id'] ) ? $args['widget_id'] : ''; |
|
50 | $title = ! empty( $instance['title'] ) ? $instance['title'] : ''; |
|
51 | $zuid = ! empty( $instance['zuid'] ) ? $instance['zuid'] : ''; |
|
52 | ||
53 | ||
54 | echo $args['before_widget']; |
|
55 | ||
56 | echo $args['before_title'] . esc_attr( $title ) . $args['after_title']; |
|
57 | ||
58 | $zillow_widgets = new ZillowWidgets(); |
|
59 | ||
60 | return $zillow_widgets->get_past_listings_widget( $iframe_id, $zuid ); |
|
61 | ||
62 | echo $args['after_widget']; |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * Form function. |