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/Text.php

<?php
namespace EssentialBlocks\Blocks;

use EssentialBlocks\Core\Block;

class Text extends Block
{

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

    protected static $default_attributes = [
        'source'       => 'custom',
        'tagName'      => 'p',
        'enableLink'   => false,
        'openInNewTab' => false
     ];

    /**
     * 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' ] : '';

        if ( $attributes[ 'source' ] === 'custom' ) {
            return $content;
        } else {
            $tag_name = $attributes[ 'tagName' ];
            $content  = '';
            if ( $attributes[ 'source' ] === 'dynamic-content' && is_single() ) {
                $tag_name = 'div';
                $content  = get_the_content();
            } else if ( $attributes[ 'source' ] === 'dynamic-excerpt' ) {
                $content = get_the_excerpt();
            }

            if ( ! $content ) {
                return '';
            }

            $_parent_classes = [
                'eb-parent-wrapper',
                'eb-parent-' . $attributes[ 'blockId' ],
                $className,
                $classHook
             ];
            $_wrapper_classes = [
                'eb-text-wrapper',
                $attributes[ 'blockId' ]
             ];

            $parent_attributes  = get_block_wrapper_attributes( [ 'class' => implode( ' ', $_parent_classes ) ] );
            $wrapper_attributes = get_block_wrapper_attributes( [
                'class'   => implode( ' ', $_wrapper_classes ),
                'data-id' => $attributes[ 'blockId' ]
             ] );

            $wrapper = sprintf( '
            <div %1$s>
                <div %2$s>
                    <%3$s class="eb-text">%4$s</%3$s>
                </div>
            </div>',
                $parent_attributes,
                $wrapper_attributes,
                $tag_name,
                $content
            );

            return wp_kses_post( $wrapper );
        }
    }
}

SILENT KILLER Tool