get_url() ) . '">'; $output .= '' . esc_attr( $banner->get_alt() ) . ''; $output .= ''; return $output; } /** * Sets the base path, where the images are located. * * @param string $base_path The image location. */ public function set_base_path( $base_path ) { $this->base_path = $base_path; } /** * Returns the full path for the image. * * @param string $image The image path. * * @return string */ protected function get_image_path( $image ) { return rtrim( $this->base_path, '/' ) . '/' . ltrim( $image, '/' ); } }