X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/wp-email-capture/inc
home
/
freights
/
public_html
/
wp-content
/
plugins
/
wp-email-capture
/
inc
/
??
..
??
admin-sidebar.php
(8.53 KB)
??
core.php
(1.17 KB)
??
css
??
dashboard.php
(2.54 KB)
??
deprecated
??
display.php
(6.75 KB)
??
enqueue.php
(2.73 KB)
??
exportcsv.php
(1.23 KB)
??
functions.php
(13.13 KB)
??
gdpr.php
(11.25 KB)
??
gutenberg.php
(651 B)
??
help.php
(10.94 KB)
??
img
??
install.php
(1.72 KB)
??
js
??
options.php
(44.95 KB)
??
process.php
(10.78 KB)
??
security.php
(1.05 KB)
??
tabledata.php
(3.49 KB)
??
tempdata.php
(970 B)
??
tinymce.php
(1.1 KB)
??
tracking.php
(5.12 KB)
??
widget.php
(2.28 KB)
Editing: widget.php
<?php /** * Class to display the WP Email Capture Widget. */ class wp_email_capture_widget_class extends WP_Widget { public function __construct() { parent::__construct('wp_email_capture_widget_class', __('WP Email Capture','wp-email-capture'), array('description' =>__('Widget for WP Email Capture','WPEC'))); } function widget($args, $instance) { // $args is an array of strings which help your widget // conform to the active theme: before_widget, before_title, // after_widget, and after_title are the array keys. extract($args); extract($args, EXTR_SKIP); $title = apply_filters('widget_title', $instance['widget_title']); $text = $instance['widget_text']; echo $before_widget; echo !empty($title) ? $before_title . $title . $after_title : ''; echo !empty($text) ? '<div class="textwidget"><p>'.$text.'</p></div>' : ''; wp_email_capture_form(); echo $after_widget; } function update($new_instance, $old_instance) { $instance = $old_instance; $instance['widget_title'] = strip_tags($new_instance['widget_title']); $instance['widget_text'] = strip_tags($new_instance['widget_text']); return $instance; } /** * admin control form */ function form($instance) { $default = array( 'widget_title' => __('Subscribe!','wp-email-capture'), 'widget_text' => __('Subscribe to my blog for updates','wp-email-capture') ); $instance = wp_parse_args( (array) $instance, $default ); $title_id = $this->get_field_id('widget_title'); $title_name = $this->get_field_name('widget_title'); $text_id = $this->get_field_id('widget_text'); $text_name = $this->get_field_name('widget_text'); echo "\r\n".'<p><label for="'.$title_id.'">'.__('Widget title:','wp-email-capture').': <input type="text" class="widefat" id="'.$title_id.'" name="'.$title_name.'" value="'.esc_attr( $instance['widget_title'] ).'" /><label></p>'; echo "\r\n".'<p><label for="'.$text_id.'">'.__('Widget text:','wp-email-capture').': <input type="text" class="widefat" id="'.$text_id.'" name="'.$text_name .'" value="'.esc_attr( $instance['widget_text'] ).'" /><label></p>'; } } function wp_email_capture_widget_init(){ // curl need to be installed register_widget('wp_email_capture_widget_class'); }
Upload File
Create Folder