403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/aecm.ihu.gr/wp-content/plugins/wp-education/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/aecm.ihu.gr/wp-content/plugins/wp-education/includes/helper-function.php
<?php

namespace Elementor;

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

/**
 * Elementor category
 */
function wpeducation_elementor_init(){
    Plugin::instance()->elements_manager->add_category(
        'wpeducation',
        array(
            'title'  => 'WP Education',
            'icon' => 'font'
        )
    );
}
add_action('elementor/init','Elementor\wpeducation_elementor_init');

// Course Category
function wpeducation_categories(){
    $terms = get_terms( array(
        'taxonomy' => 'wpeducation_category',
        'hide_empty' => true,
    ));
    if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
        foreach ( $terms as $term ) {
            $options[ $term->slug ] = $term->name;
        }
        return $options;
    }
}

// Teachers Category
function wpeducation_teachers_categories(){
    $terms = get_terms( array(
        'taxonomy' => 'teachers_category',
        'hide_empty' => true,
    ));
    if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
        foreach ( $terms as $term ) {
            $options[ $term->slug ] = $term->name;
        }
        return $options;
    }
}

// Gallery Category
function wpeducation_gallery_categories(){
    $terms = get_terms( array(
        'taxonomy' => 'gallery_cat',
        'hide_empty' => true,
    ));
    if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
        foreach ( $terms as $term ) {
            $options[ $term->slug ] = $term->name;
        }
        return $options;
    }
}

// Events Category
function wpeducation_events_categories(){
    $terms = get_terms( array(
        'taxonomy' => 'wpevents_category',
        'hide_empty' => true,
    ));
    if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
        foreach ( $terms as $term ) {
            $options[ $term->slug ] = $term->name;
        }
        return $options;
    }
}

/**
 * HTML Tag Validation
 * @param string $tag
 * @return string
 */
function wpeducation_validate_html_tag( $tag = 'div' ) {
    $allowed_html_tags = [
        'article',
        'aside',
        'footer',
        'header',
        'section',
        'nav',
        'main',
        'div',
        'h1',
        'h2',
        'h3',
        'h4',
        'h5',
        'h6',
        'p',
        'span',
    ];
    return in_array( strtolower( $tag ), $allowed_html_tags ) ? $tag : 'div';
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit