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 :  /inetpub/wwwroot/aecm.ihu.gr/wp-content/plugins/wp-education/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/aecm.ihu.gr/wp-content/plugins/wp-education/admin/wpeducation_shortcode.php
<?php
//Insurance Shortcode
//usages: [wp_education]
if(!function_exists('wp_education_shortcode')){
    function wp_education_shortcode($atts,$content=null){
        extract(shortcode_atts(array(
            'style'        => 'style1',
            'item'             => '6',
            'order'             => 'DESC',
            'cat'        => '',
            'column'        => '4',
        ),$atts));
        ob_start();
        ?>
            <div class="wp-education-area">
                <div class="service box">
                    <div class="row">
                          <?php 
                                $bargs = array(
                                    'post_type'            => 'wpeducation',
                                    'post_status'          => 'publish',
                                    'ignore_sticky_posts'  => 1,
                                    'posts_per_page'       => $item,
                                    'order'                => $order,
                                );
                                $categories = str_replace(' ', '', $cat);
                                if( strlen($categories) > 0 ){
                                    $ar_categories = explode(',', $categories);
                                    if( is_array($ar_categories) && count($ar_categories) > 0 ){
                                        $field_name = is_numeric($ar_categories[0])?'term_id':'slug';
                                        $bargs['tax_query'] = array(
                                            array(
                                                'taxonomy' => 'wpeducation_category'
                                                ,'terms' => $ar_categories
                                                ,'field' => $field_name
                                                ,'include_children' => false
                                            ),
                                        );
                                    }
                                }
                                $bldata = new WP_Query($bargs);


                                $collumval = 'col-lg-3';
                                if( $column !='' ){
                                    $colwidth = round(12/$column);
                                    $collumval = 'col-lg-'.$colwidth.' col-md-6';
                                }


                                while($bldata->have_posts()):$bldata->the_post();
                                    $short_des = get_post_meta( get_the_ID(),'_wpeducation_service_short_des', true ); 
                                    $service_icon = get_post_meta( get_the_ID(),'_wpeducation_service_icon', true ); 
                                    $service_icon_img = get_post_meta( get_the_ID(),'_wpeducation_service_icon_img', true );
                                ?>
                                <div class="<?php echo $collumval; if( $style == 'style2' ){ echo ' wp_education_style2'; }elseif( $style == 'style3'){ echo ' wp_education_style2 education_hover_box'; }else{ echo ' wp_education_style1'; } ?>">
                                    <div class="wp-education-box">
                                        <div class="wp-education-image">
                                            <?php 
                                            if( $style == 'style2' && !empty( $service_icon_img )){ ?>
                                                <img src="<?php echo esc_attr( $service_icon_img ); ?>" alt="<?php echo esc_attr( the_title() ); ?>">
                                                <?php
                                                }elseif ( $style =='style3' && !empty( $service_icon )) { ?>
                                                    <i class="<?php echo esc_attr( $service_icon ); ?>"></i>
                                                    <?php
                                                }else{
                                            the_post_thumbnail('wpeducation_img550x348'); }?>
                                        </div>
                                        <div class="wp-education-content">
                                            <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3>
                                            <p><?php echo esc_html( $short_des ); ?></p>
                                        </div>
                                    </div>
                                </div>
                           <?php endwhile; ?>
                        </div>

                    </div> 
                </div> 
            </div>
        <?php
        wp_reset_postdata();
        return ob_get_clean();
    }
    add_shortcode('wp_education','wp_education_shortcode');
}





Youez - 2016 - github.com/yon3zu
LinuXploit