lp_dynamic_title = 'Course Author Avatar'; $this->lp_dynamic_name = 'course-author-avatar'; $this->lp_dynamic_categories = [ Module::TEXT_CATEGORY ]; parent::__construct( $data ); } /** * Render dynamic course author avatar elementor. * * @return void */ public function render() { $singleInstructorTemplate = SingleInstructorTemplate::instance(); try { $course = $this->get_course_model(); if ( ! $course ) { return; } $author = $course->get_author_model(); if ( ! $author ) { return; } echo $singleInstructorTemplate->html_avatar( $author ); } catch ( \Throwable $e ) { error_log( $e->getMessage() ); } } }