Uname: Linux premium264.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.3.22 [ PHP INFO ] PHP os: Linux
Server Ip: 69.57.162.13
Your Ip: 216.73.216.219
User: workvvfb (1129) | Group: workvvfb (1084)
Safe Mode: OFF
Disable Function:
NONE

name : premade-blocks.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

use WprAddons\Admin\Templates\Library\WPR_Templates_Data;
use WprAddons\Admin\Templates\Library\WPR_Templates_Library_Blocks;
use WprAddons\Classes\Utilities;
use Elementor\Plugin;

// Register Menus
function wpr_addons_add_premade_blocks_menu() {
	add_submenu_page( 'wpr-addons', 'Premade Blocks', 'Premade Blocks', 'manage_options', 'wpr-premade-blocks', 'wpr_addons_premade_blocks_page' );
}
add_action( 'admin_menu', 'wpr_addons_add_premade_blocks_menu' );

/**
** Render Premade Blocks Page
*/
function wpr_addons_premade_blocks_page() {

?>

<div class="wpr-premade-blocks-page">

    <div class="wpr-settings-page-header">
        <h1><?php echo esc_html(Utilities::get_plugin_name(true)); ?></h1>
        <p><?php esc_html_e( 'The most powerful Elementor Addon in the universe.', 'wpr-addons' ); ?></p>
    </div>

    <?php WPR_Templates_Library_Blocks::render_library_templates_blocks(); ?>

</div>


<?php

} // End wpr_addons_premade_blocks_page()
© 2025 GrazzMean