Submit
Path:
~
/
home
/
getwphos
/
www
/
ccma
/
wp-content
/
themes
/
curly
/
framework
/
modules
/
widgets
/
contact-form-7
/
File Content:
contact-form-7.php
<?php if ( class_exists( 'CurlyCoreClassWidget' ) ) { class CurlyMikadofContactForm7Widget extends CurlyCoreClassWidget { public function __construct() { parent::__construct( 'mkdf_contact_form_7_widget', esc_html__( 'Curly Contact Form 7 Widget', 'curly' ), array( 'description' => esc_html__( 'Add contact form 7 to widget areas', 'curly' ) ) ); $this->setParams(); } protected function setParams() { $cf7 = get_posts( 'post_type="wpcf7_contact_form"&numberposts=-1' ); $contact_forms = array(); if ( $cf7 ) { foreach ( $cf7 as $cform ) { $contact_forms[ $cform->ID ] = $cform->post_title; } } else { $contact_forms[0] = esc_html__( 'No contact forms found', 'curly' ); } $this->params = array( array( 'type' => 'textfield', 'name' => 'extra_class', 'title' => esc_html__( 'Extra Class Name', 'curly' ) ), array( 'type' => 'textfield', 'name' => 'widget_title', 'title' => esc_html__( 'Widget Title', 'curly' ) ), array( 'type' => 'dropdown', 'name' => 'contact_form', 'title' => esc_html__( 'Select Contact Form 7', 'curly' ), 'options' => $contact_forms ), array( 'type' => 'dropdown', 'name' => 'contact_form_style', 'title' => esc_html__( 'Contact Form 7 Style', 'curly' ), 'options' => array( '' => esc_html__( 'Default', 'curly' ), 'cf7_custom_style_1' => esc_html__( 'Custom Style 1', 'curly' ), 'cf7_custom_style_2' => esc_html__( 'Custom Style 2', 'curly' ), 'cf7_custom_style_3' => esc_html__( 'Custom Style 3', 'curly' ) ) ) ); } public function widget( $args, $instance ) { $extra_class = ! empty( $instance['extra_class'] ) ? esc_attr( $instance['extra_class'] ) : ''; ?> <div class="widget mkdf-contact-form-7-widget <?php echo esc_attr( $extra_class ); ?>"> <?php if ( ! empty( $instance['widget_title'] ) ) { echo wp_kses_post( $args['before_title'] ) . esc_html( $instance['widget_title'] ) . wp_kses_post( $args['after_title'] ); } ?> <?php if ( ! empty( $instance['contact_form'] ) ) { echo do_shortcode( '[contact-form-7 id="' . esc_attr( $instance['contact_form'] ) . '" html_class="' . esc_attr( $instance['contact_form_style'] ) . '"]' ); } ?> </div> <?php } } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
contact-form-7.php
2390 bytes
0644
load.php
502 bytes
0644
N4ST4R_ID | Naxtarrr