| @@ -52,23 +52,8 @@ | ||
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * @return void |
| 55 | 55 | */ |
| 56 | - //public static function get_notice_template( $template, $template_name ) { | |
| 57 | - // switch ( $template_name ) { | |
| 58 | - // case 'notices/success.php': | |
| 59 | - // case 'notices/error.php': | |
| 60 | - // case 'notices/notice.php': | |
| 61 | - // $rtsb_template = 'elementor/general/' . str_replace( '.php', '', $template_name ); | |
| 62 | - // $template = Fns::locate_template( $rtsb_template ) ?? $template; | |
| 63 | - // break; | |
| 64 | - // } | |
| 65 | - // return $template; | |
| 66 | - //} | |
| 67 | - | |
| 68 | - /** | |
| 69 | - * @return void | |
| 70 | - */ | |
| 71 | 56 | public function apply_the_hooks() { |
| 72 | 57 | |
| 73 | 58 | } |
| 74 | 59 | |
| @@ -80,9 +65,9 @@ | ||
| 80 | 65 | protected function render() { |
| 81 | 66 | $this->apply_the_hooks(); |
| 82 | 67 | $this->theme_support(); |
| 83 | 68 | |
| 84 | - if ( $this->is_builder_mode() ) { | |
| 69 | + if ( $this->is_edit_mode() ) { | |
| 85 | 70 | $all_notices = [ |
| 86 | 71 | 'success' => [ |
| 87 | 72 | [ |
| 88 | 73 | 'notice' => esc_html__( 'This is demo preview for success notice.', 'shopbuilder' ) . '<a href="#" tabindex="1" class="button wc-forward">' . esc_html__( 'Demo Button', 'shopbuilder' ) . '</a>', |