| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | |
| 41 | 41 | public function load() { |
| 42 | 42 | add_action( 'wp_enqueue_scripts', [ $this, 'wp_enqueue_scripts' ] ); |
| 43 | 43 | |
| 44 | - add_action( 'frmx_reply_attachments', [ $this, 'embed_form' ] ); | |
| 44 | + add_action( 'bbp_theme_before_reply_form_submit_wrapper', [ $this, 'embed_form' ] ); | |
| 45 | 45 | add_action( 'bbp_theme_before_topic_form_submit_wrapper', [ $this, 'embed_form' ] ); |
| 46 | 46 | |
| 47 | 47 | add_action( 'bbp_edit_reply', [ $this, 'edit_reply' ], 10, 5 ); |
| 48 | 48 | add_action( 'bbp_edit_topic', [ $this, 'edit_topic' ], 10, 4 ); |
| @@ -240,12 +240,12 @@ | ||
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | public function show_attachments_icon() { |
| 243 | 243 | $topic_id = bbp_get_topic_id(); |
| 244 | - $count = forumax_topic_attachments_count( $topic_id, true ); | |
| 244 | + $count = bbpc_topic_attachments_count( $topic_id, true ); | |
| 245 | 245 | |
| 246 | 246 | if ( $count > 0 ) { |
| 247 | - echo '<span class="bbp-attachments-count" aria-hidden="true" title="' . esc_attr( $count . ' ' . _n( 'attachment', 'attachments', $count, 'forumax' ) ) . '"></span>'; | |
| 247 | + echo '<span class="bbp-attachments-count" title="' . esc_attr( $count . ' ' . _n( 'attachment', 'attachments', $count, 'forumax' ) ) . '"></span>'; | |
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | } |
| 251 | 251 | |
| @@ -328,9 +328,9 @@ | ||
| 328 | 328 | |
| 329 | 329 | if ( $html != '' ) { |
| 330 | 330 | $img = true; |
| 331 | 331 | |
| 332 | - $class_li = forumax_bba_o( 'is_file_type_icon' ) == 1 ? 'bbp-atthumb bbp-atticon bbp-atticon-' . $this->icon( $ext ) : 'bbp-atthumb'; | |
| 332 | + $class_li = 'bbp-atthumb'; | |
| 333 | 333 | |
| 334 | 334 | $caption = forumax_bba_o( 'image_thumbnail_caption' ) == 1; |
| 335 | 335 | } |
| 336 | 336 | } |
| @@ -338,9 +338,9 @@ | ||
| 338 | 338 | $item = '<li id="bbpcore-attach_' . $attachment->ID . '" class="bbpcore-attach bbpcore-attachment-' . $ext . ' ' . $class_li . '">'; |
| 339 | 339 | |
| 340 | 340 | if ( $html == '' ) { |
| 341 | 341 | $html = $filename; |
| 342 | - $class_li = forumax_bba_o( 'is_file_type_icon' ) == 1 ? 'bbp-atticon bbp-atticon-' . $this->icon( $ext ) : ''; | |
| 342 | + $class_li = 'bbp-atticon bbp-atticon-' . $this->icon( $ext ); | |
| 343 | 343 | } |
| 344 | 344 | |
| 345 | 345 | if ( $img ) { |
| 346 | 346 | |
| @@ -428,4 +428,5 @@ | ||
| 428 | 428 | |
| 429 | 429 | include BBPCATTACHMENTS_PATH . 'forms/uploader.php'; |
| 430 | 430 | } |
| 431 | 431 | } |
| 432 | + | |