caller_id = $caller_id; foreach( A_W_F::$presets[$this->id]['filters'] as $filter_id => $filter_position ) { $filter = new A_W_F::$front->filters_manager( $this, $filter_id ); $this->filters[$filter->name] = $filter; } } public function get_html() { $wrapper_classes[] = 'awf-preset-wrapper'; if( 'no' === $this->ajax_on && 'no' === $this->button_on ) { $this->is_url_query = true; $wrapper_classes[] = 'awf-url'; } if( 'yes' === $this->ajax_on ) { $wrapper_classes[] = 'awf-ajax'; switch( $this->button_on ) { case 'no': $wrapper_classes[] = 'awf-instant'; break; case 'yes': $wrapper_classes[] = 'awf-button'; break; } } $html = '
'; $html .= '
' . $this->title . '
'; if( 'yes' === $this->show_title_badges ) { $html .= '
'; } if( 'top' === $this->reset_btn || 'both' === $this->reset_btn ) { $html .= $this->reset_btn_html(); } $html .= '
'; foreach( $this->filters as $filter ) { $html .= $filter->get_html(); } if( 'bottom' === $this->reset_btn || 'both' === $this->reset_btn ) { $html .= $this->reset_btn_html(); } if( 'yes' === $this->button_on ) { if( 'yes' === $this->ajax_on ) { $html .= '
'; } else { $html .= '
'; } } $html .= '
'; $html .= '
'; return $html; } private function reset_btn_html() { $html = '
'; return $html; } } } ?>