403Webshell
Server IP : 104.21.93.192  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/redwjova/sort.llc/wp-content/plugins/ultimate-post/blocks/template/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/redwjova/sort.llc/wp-content/plugins/ultimate-post/blocks/template/category.php
<?php
defined('ABSPATH') || exit;

$attr['catStyle'] = sanitize_html_class( $attr['catStyle'] );
$attr['catPosition'] = sanitize_html_class( $attr['catPosition'] );

$category = '';
if ( $attr['catShow'] ) {
    $category .= '<div class="ultp-category-grid ultp-category-'.$attr['catStyle'].' ultp-category-'.$attr['catPosition'].'">';
        $category .= '<div class="ultp-category-in'.( $attr['customCatColor'] == true ? ' ultp-cat-color-'.$attr['customCatColor'] : '').'">';
            $cat = get_the_terms($post_id, $attr['taxonomy']);
            if ( ! empty( $cat ) ) {
                $max_tax = isset($attr['maxTaxonomy']) && $attr['maxTaxonomy'] ? ( $attr['maxTaxonomy'] == '0' ? 0 : $attr['maxTaxonomy'] ) : 30 ;

                foreach ( $cat as $k => $val ) {
                    if ( $k >= $max_tax ) { break; }
                    $color = '';
                    if ( isset( $attr['customCatColor'] ) ) {
                        if ( $attr['customCatColor'] ) {
                            $color = get_term_meta($val->term_id, 'ultp_category_color', true);
                            $color = $color == 1 ? '#CE2746' : $color;
                            if ( isset( $attr['onlyCatColor'] ) ) {
                                if ( $attr['onlyCatColor'] ) {
                                    $color = 'style="color: '.($color ? $color : '#CE2746').'"';
                                } else {
                                    $color = 'style="background-color: '.($color ? $color : '#CE2746').';"';
                                }
                            } else {
                                $color = 'style="background-color: '.($color ? $color : '#CE2746').';"';                           
                            }
                        }
                    }
                    if ( $attr['onlyCatColor'] ) {
                        $category .= '<a class="ultp-cat-'.$val->slug.'" href="'.get_term_link($val->term_id).'" '.$color.' '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.$val->name.'</a>';
                    } else {
                        $category .= '<a class="ultp-cat-'.$val->slug.( $attr['customCatColor'] == true ? ' ultp-cat-only-color-'.$attr['customCatColor'] : '').'" href="'.get_term_link($val->term_id).'" '.$color.' '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.$val->name.'</a>';
                    }
                }
            }
        $category .= '</div>';
    $category .= '</div>';
}

Youez - 2016 - github.com/yon3zu
LinuXploit