Uname: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Software: Apache
PHP version: 5.4.45 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.91.62
Your Ip: 216.73.216.52
User: matthif (139342) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : PfhubPortfolio.php
<?php


namespace PfhubPortfolio;


class PfhubPortfolio
{
    public $admin = null;

    public function __construct()
    {
        register_activation_hook(__FILE__, array(Install::class, 'install'));
        add_action('init', array($this, 'init'), 0);
        add_action('plugins_loaded', array($this, 'loadPluginTextdomain'));
        add_action('widgets_init', array(Frontend::class, 'widgets'));
	    add_action('elementor/widgets/widgets_registered', array($this, 'elementorWidgets'));
    }

	public function elementorWidgets()
	{
		\Elementor\Plugin::instance()->widgets_manager->register_widget_type(new ElementorWidget());
	}

    /**
     * Load plugin text domain
     */
    public function loadPluginTextdomain()
    {
        load_plugin_textdomain('pfhub_portfolio', false, PFHUB_PORTFOLIO_PLUGIN_PATH . '/languages/');
    }

    public function init()
    {
        Install::init();

        if (is_admin()) {
            $this->admin = new Admin();
        }

        Frontend::init();
        Ajax::init();

    }

}
© 2026 XylotrechusZ