REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.87 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tlp-team/app/Controllers/GutenbergController.php
Text
Base64
<?php /** * Gutenberg Controller Class. * * @package RT_Team */ namespace RT\Team\Controllers; use RT\Team\Helpers\Fns; use RT\Team\Controllers\Frontend\Blocks\Blocks; // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'This script cannot be accessed directly.' ); } /** * Gutenberg Controller Class. */ class GutenbergController { use \RT\Team\Traits\SingletonTrait; /** * Class Init. * * @return void */ protected function init() { add_action( 'enqueue_block_assets', [ $this, 'block_assets' ] ); add_action( 'enqueue_block_editor_assets', [ $this, 'block_editor_assets' ] ); if ( function_exists( 'register_block_type' ) ) { register_block_type( 'rttpg/tlp-team-pro', [ 'render_callback' => [ __CLASS__, 'render_shortcode' ], ] ); } } /** * Render Shortcode. * * @param array $atts Shortcode attributes. * * @return string|void */ public static function render_shortcode( $atts ) { if ( ! empty( $atts['gridId'] ) ) { return do_shortcode( '[tlpteam id="' . absint( $atts['gridId'] ) . '"]' ); } } /** * Block Assets. * * @return void */ public function block_assets() { wp_enqueue_style( 'wp-blocks' ); } /** * Block Editor Assets. * * @return void */ public function block_editor_assets() { // Scripts. wp_enqueue_script( 'rt-team-cgb-block-js', rttlp_team()->assets_url() . 'js/tlp-team-blocks.min.js', [ 'wp-blocks', 'wp-i18n', 'wp-element' ], ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? time() : TLP_TEAM_VERSION, true ); wp_localize_script( 'rt-team-cgb-block-js', 'rtTeam', [ 'short_codes' => Fns::getTTPShortcodeList(), 'icon' => rttlp_team()->assets_url() . 'images/team.png', ] ); wp_enqueue_style( 'wp-edit-blocks' ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Admin
DIR
-
drwxr-xr-x
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Frontend
DIR
-
drwxr-xr-x
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Hooks
DIR
-
drwxr-xr-x
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AdminController.php
1.46 KB
lrw-r--r--
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AjaxController.php
1.47 KB
lrw-r--r--
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
FrontendController.php
1.20 KB
lrw-r--r--
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GutenbergController.php
1.87 KB
lrw-r--r--
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PostTypesController.php
8.86 KB
lrw-r--r--
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ScriptsController.php
7.68 KB
lrw-r--r--
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
WidgetsController.php
833 B
lrw-r--r--
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).