PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.0
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
bbp-core / includes / features / bbp_attachments.php

bbp_attachments.php in Forumax – AI Powered Advanced Community Forum Plugin 2.2.0, at includes/features/bbp_attachments.php

33 lines 989 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace features;
3
4 class bbp_attachments {
5 public function __construct() {
6 add_action( 'after_setup_theme', [ $this, 'inclue_attachment_files'], 20 );
7 }
8
9 public function inclue_attachment_files() {
10 if ( ! defined( 'FORUMAX_ATTACHMENT' ) ) {
11 define( 'FORUMAX_ATTACHMENT', 'activate_plugins' );
12 }
13
14 $cfile = dirname( __FILE__ );
15 require_once $cfile . '/bbpc_attachments/code/defaults.php';
16 require_once $cfile . '/bbpc_attachments/code/shared.php';
17 require_once $cfile . '/bbpc_attachments/code/sanitize.php';
18
19 require_once $cfile . '/bbpc_attachments/code/class.php';
20 require_once $cfile . '/bbpc_attachments/code/public.php';
21
22 \BBPCATTCore::instance();
23 }
24 }
25
26 //TODO: Make multiple file attachment features
27 //TODO: Show progress and cross button like gmail
28 //TODO: Show file size of each upload
29 //TODO: Add icon for every feature, like gmail
30 //TODO: Do caption feature, take caption from title
31 //TODO: Add lightbox in pro plugin, lock the feature lightbox
32
33