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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
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. |
<?php namespace EssentialBlocks\Blocks; use EssentialBlocks\Core\Block; use EssentialBlocks\Utils\Helper; class Form extends Block { protected $frontend_scripts = [ 'essential-blocks-form-frontend' ]; protected $frontend_styles = [ 'essential-blocks-fontawesome' ]; /** * Default attributes * * @var array */ protected $default_attributes; public function __construct() { $this->default_attributes = [ 'btnAddIcon' => false, 'iconPosition' => 'right', 'buttonText' => __( 'Submit', 'essential-blocks' ), 'icon' => 'fas fa-chevron-right', 'formLayout' => 'block', 'formStyle' => 'form-style-classic', 'enableMultistepForm' => false, 'stepIndecator' => true, 'stepNavigationStyle' => 'progress-bar', 'enableStepCount' => false, 'enableStepIcon' => true, 'enableStepSubtitle' => false, 'nextBtnText' => 'Next', 'prevBtnText' => 'Previous', ]; } /** * Unique name of the block. * @return string */ public function get_name() { return 'form'; } /** * Initialize the InnerBlocks for Accordion * @return array<Block> */ public function inner_blocks() { return [ FormTextField::get_instance() ]; } /** * Register all other scripts * @return void */ public function register_scripts() { $this->assets_manager->register( 'form-frontend', $this->path() . '/frontend.js', [ 'essential-blocks-babel-bundle' ] ); } /** * Render callback */ public function render_callback( $attributes, $content ) { if ( is_admin() ) { return; } //Modify wp_kses rules for Form Block kses add_filter( 'wp_kses_allowed_html', [ new Helper, 'eb_allowed_html' ], 99, 2 ); $_essential_attributes = [ 'formType' => 'contact_form', 'preset' => 'contact_form_1', 'confirmationType' => 'message', 'successMessage' => __( 'Your form has been submitted Successfully!', 'essential-blocks' ), 'errorMessage' => __( 'Your form couldn\'t been submitted! Please try again', 'essential-blocks' ) ]; foreach ( $_essential_attributes as $key => $value ) { if ( isset( $attributes[ $key ] ) && is_bool( $attributes[ $key ] ) ) { $_essential_attributes[ $key ] = $attributes[ $key ]; } elseif ( ! empty( $attributes[ $key ] ) ) { $_essential_attributes[ $key ] = $attributes[ $key ]; } else { $_essential_attributes[ $key ] = $value; } } $attributes = wp_parse_args( $attributes, $this->default_attributes ); if ( empty( $attributes[ 'formType' ] ) ) { return ''; } if ( empty( $content ) ) { return ''; } $classHook = isset( $attributes[ 'classHook' ] ) ? $attributes[ 'classHook' ] : ''; $submit_btn_attr = apply_filters( 'eb_form_submit_btn_attr', [ 'data-id' => $attributes[ 'blockId' ], 'data-form-id' => $attributes[ 'formId' ] ] ); $submit_btn_classes = apply_filters( 'eb_form_submit_btn_classes', 'btn btn-primary eb-form-submit-button' ); $submit_button_icon = sprintf( '%1$s', Helper::eb_render_icon( Helper::eb_get_icon_type( $attributes[ 'icon' ] ), 'eb-button-icon', $attributes[ 'icon' ] ) ); $submit_button_html = sprintf( '<button type="submit" class="%1$s" %2$s> %4$s%3$s%5$s <img class="eb-form-submit-loader" src="%6$sassets/images/loading.svg" /> </button>', $submit_btn_classes, http_build_query( $submit_btn_attr, '', ' ' ), $attributes[ 'buttonText' ], $attributes[ 'btnAddIcon' ] && $attributes[ 'iconPosition' ] === 'left' ? $submit_button_icon : '', $attributes[ 'btnAddIcon' ] && $attributes[ 'iconPosition' ] === 'right' ? $submit_button_icon : '', ESSENTIAL_BLOCKS_URL ); $confirmation_div_attr = apply_filters( 'eb_form_confirmation_div_attr', [ 'data-confirmation-type' => esc_attr( $_essential_attributes[ 'confirmationType' ] ), 'data-success' => esc_html( $_essential_attributes[ 'successMessage' ] ), 'data-error' => esc_html( $_essential_attributes[ 'errorMessage' ] ) ], $attributes ); $attributes_html = ''; foreach ( $confirmation_div_attr as $key => $value ) { $attributes_html .= sprintf( '%s="%s" ', esc_attr( $key ), esc_attr( $value ) ); } $confirmation_div_html = sprintf( '<div class="eb_form_submit_response" %1$s></div>', trim( $attributes_html ) ); // $confirmation_div_html = sprintf( // '<div class="eb_form_submit_response" %1$s></div>', // http_build_query( $confirmation_div_attr, '', ' ' ) // ); ob_start(); Helper::views( 'form-block', array_merge( $attributes, [ 'essentialAttr' => $_essential_attributes, 'classHook' => $classHook, 'submit_button_html' => $submit_button_html, 'confirmation_div_html' => $confirmation_div_html, 'content' => $content, 'nonce' => wp_create_nonce( $attributes[ 'blockId' ] . '-nonce' ) ] ) ); return ob_get_clean(); } }
SILENT KILLER Tool