SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > essential-blocks > includes > Blocks


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/essential-blocks/includes/Blocks

NameTypeSizeLast ModifiedActions
Accordion.php File 1059 bytes February 26 2025 16:22:10.
AccordionItem.php File 335 bytes October 30 2024 16:05:38.
AddToCart.php File 3515 bytes October 30 2024 16:05:38.
AdvancedHeading.php File 4700 bytes December 24 2024 15:38:54.
AdvancedImage.php File 1983 bytes October 30 2024 16:05:38.
AdvancedNavigation.php File 703 bytes October 30 2024 16:05:38.
AdvancedTabs.php File 886 bytes October 30 2024 16:05:38.
AdvancedVideo.php File 1021 bytes October 30 2024 16:05:38.
Breadcrumbs.php File 11646 bytes January 12 2025 17:13:54.
Button.php File 351 bytes October 30 2024 16:05:38.
CallToAction.php File 365 bytes October 30 2024 16:05:38.
Column.php File 220 bytes August 27 2024 16:37:06.
CountDown.php File 605 bytes October 30 2024 16:05:38.
DualButton.php File 666 bytes October 30 2024 16:05:38.
FeatureList.php File 332 bytes October 30 2024 16:05:38.
FlipBox.php File 648 bytes October 30 2024 16:05:38.
FluentForms.php File 3865 bytes October 30 2024 16:05:38.
Form.php File 5859 bytes June 29 2025 14:07:42.
FormTextField.php File 246 bytes August 27 2024 16:37:06.
GoogleMap.php File 2615 bytes October 30 2024 16:05:38.
Icon.php File 323 bytes October 30 2024 16:05:38.
ImageComparison.php File 620 bytes August 27 2024 16:37:06.
ImageGallery.php File 2318 bytes December 24 2024 17:17:58.
InfoBox.php File 723 bytes July 27 2025 13:25:28.
InstagramFeed.php File 6032 bytes February 26 2025 16:22:10.
InteractivePromo.php File 321 bytes August 27 2024 16:37:06.
LottieAnimation.php File 608 bytes February 18 2025 14:31:10.
NftGallery.php File 649 bytes October 30 2024 16:05:38.
Notice.php File 580 bytes October 30 2024 16:05:38.
NumberCounter.php File 598 bytes August 27 2024 16:37:06.
Openverse.php File 480 bytes October 30 2024 16:05:38.
ParallaxSlider.php File 664 bytes October 30 2024 16:05:38.
PopUp.php File 625 bytes October 30 2024 16:05:38.
PostBlock.php File 1610 bytes August 27 2024 16:37:06.
PostCarousel.php File 4734 bytes May 19 2025 15:07:08.
PostGrid.php File 5888 bytes January 12 2025 17:13:54.
PostMeta.php File 3596 bytes December 24 2024 15:38:54.
PricingTable.php File 333 bytes October 30 2024 16:05:38.
ProductDetails.php File 3598 bytes October 30 2024 16:05:38.
ProductImages.php File 2903 bytes May 08 2025 15:01:12.
ProductPrice.php File 4866 bytes October 30 2024 16:05:38.
ProductRating.php File 3041 bytes October 30 2024 16:05:38.
ProgressBar.php File 604 bytes October 30 2024 16:05:38.
Row.php File 455 bytes October 30 2024 16:05:38.
ShapeDivider.php File 602 bytes October 30 2024 16:05:38.
Slider.php File 996 bytes October 30 2024 16:05:38.
Social.php File 352 bytes October 30 2024 16:05:38.
SocialShare.php File 3982 bytes October 30 2024 16:05:38.
Tab.php File 214 bytes August 27 2024 16:37:06.
TableOfContents.php File 17342 bytes June 01 2025 14:07:44.
Taxonomy.php File 5015 bytes October 30 2024 16:05:38.
TeamMember.php File 361 bytes October 30 2024 16:05:38.
Testimonial.php File 373 bytes October 30 2024 16:05:38.
Text.php File 2540 bytes October 30 2024 16:05:38.
ToggleContent.php File 613 bytes October 30 2024 16:05:38.
TypingText.php File 594 bytes August 27 2024 16:37:06.
WPForms.php File 2991 bytes October 30 2024 16:05:38.
WooProductGrid.php File 8590 bytes March 24 2025 12:57:24.
Wrapper.php File 359 bytes August 27 2024 16:37:06.
price.php File 239 bytes August 27 2024 16:37:06.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/essential-blocks/includes/Blocks/Taxonomy.php

<?php
namespace EssentialBlocks\Blocks;

use EssentialBlocks\Core\Block;
use EssentialBlocks\Utils\Helper;

class Taxonomy extends Block
{
    protected $frontend_styles = [ 'essential-blocks-fontawesome' ];

    /**
     * Unique name of the block.
     *
     * @return string
     */
    public function get_name()
    {
        return 'taxonomy';
    }

    protected static $default_attributes = [
        'source'           => 'current-post',
        'selectedTaxonomy' => '',
        'prefixType'       => 'none',
        'prefixIcon'       => 'fas fa-list',
        'prefixText'       => 'Prefix Text',
        'suffixType'       => 'none',
        'suffixIcon'       => 'fas fa-list',
        'suffixText'       => 'Suffix Text',
        'displayStyle'     => 'display-inline',
        'showSeparator'    => false,
        'separator'        => "|",
        'taxonomyLimit'    => 1
     ];

    /**
     * Block render callback.
     *
     * @param mixed $attributes
     * @param mixed $content
     * @return mixed
     */
    public function render_callback( $attributes, $content )
    {
        if ( is_admin() ) {
            return;
        }

        $attributes = wp_parse_args( $attributes, self::$default_attributes );
        $className  = isset( $attributes[ "className" ] ) ? $attributes[ "className" ] : "";
        $classHook  = isset( $attributes[ 'classHook' ] ) ? $attributes[ 'classHook' ] : '';
        $prefixType = isset( $attributes[ 'prefixType' ] ) ? $attributes[ 'prefixType' ] : '';
        $suffixType = isset( $attributes[ 'suffixType' ] ) ? $attributes[ 'suffixType' ] : '';

        if ( $attributes[ 'source' ] === 'current-post' ) {
            $terms = get_the_terms( get_the_ID(), $attributes[ 'selectedTaxonomy' ] );
            if ( ! empty( $terms ) && ! empty( $attributes[ 'taxonomyLimit' ] ) && $attributes[ 'taxonomyLimit' ] !== -1 ) {
                $terms = array_slice( $terms, 0, $attributes[ 'taxonomyLimit' ] );
            }
        } else {
            $args = [
                'taxonomy'   => $attributes[ 'selectedTaxonomy' ],
                'hide_empty' => false
             ];
            if ( $attributes[ 'taxonomyLimit' ] !== -1 ) {
                $args[ 'number' ] = $attributes[ 'taxonomyLimit' ];
            }

            $terms = get_terms( $args );
        }

        $categories = '';
        if ( ! empty( $terms ) ) {
            $categories .= '<div class="eb-tax-wrap">';
            foreach ( $terms as $term ) {
                $categories .= sprintf(
                    '<span class="eb-tax-item"><a href="%1$s" title="%2$s">%2$s</a></span>',
                    esc_attr( esc_url( get_category_link( $term->term_id ) ) ),
                    esc_html( $term->name )
                );
                if ( $attributes[ 'showSeparator' ] ) {
                    $categories .= sprintf( '<span class="eb-tax-separator">%1$s</span>', esc_html( $attributes[ 'separator' ] ) );
                }
            }
            $categories .= '</div>';
        } else {
            return;
        }

        if ( $prefixType !== 'none' ) {
            if ( $prefixType === 'icon' ) {
                $prefix_icon = sprintf(
                    '%1$s',
                    Helper::eb_render_icon( Helper::eb_get_icon_type( $attributes[ 'prefixIcon' ] ), 'eb-button-icon', $attributes[ 'prefixIcon' ] )
                );
                $prefix_markup = sprintf(
                    '<div class="prefix-wrap">%1$s</div>',
                    $prefix_icon
                );
            }
            if ( $prefixType === 'text' ) {
                $prefix_markup = sprintf(
                    '<div class="prefix-wrap"><span>%1$s</span></div>',
                    $attributes[ 'prefixText' ]
                );
            }
        } else {
            $prefix_markup = '';
        }

        if ( $suffixType !== 'none' ) {
            if ( $suffixType === 'icon' ) {
                $suffix_icon = sprintf(
                    '%1$s',
                    Helper::eb_render_icon( Helper::eb_get_icon_type( $attributes[ 'suffixIcon' ] ), 'eb-button-icon', $attributes[ 'suffixIcon' ] )
                );
                $suffix_markup = sprintf(
                    '<div class="suffix-wrap">%1$s</div>',
                    $suffix_icon
                );
            }
            if ( $suffixType === 'text' ) {
                $suffix_markup = sprintf(
                    '<div class="suffix-wrap"><span>%1$s</span></div>',
                    $attributes[ 'suffixText' ]
                );
            }
        } else {
            $suffix_markup = '';
        }

        ob_start();
        Helper::views( 'taxonomy', array_merge( $attributes, [
            'className'     => $className,
            'classHook'     => $classHook,
            'categories'    => $categories,
            'prefix_markup' => $prefix_markup,
            'suffix_markup' => $suffix_markup
         ] ) );
        return ob_get_clean();
    }
}

SILENT KILLER Tool