X7ROOT File Manager
Current Path:
/home/softbdltd/images-bd.com/wp-content87b/plugins/contact-form-7/includes
home
/
softbdltd
/
images-bd.com
/
wp-content87b
/
plugins
/
contact-form-7
/
includes
/
??
..
??
block-editor
??
capabilities.php
(834 B)
??
config-validator
??
contact-form-functions.php
(10.26 KB)
??
contact-form-template.php
(5.64 KB)
??
contact-form.php
(30.74 KB)
??
controller.php
(3.16 KB)
??
css
??
file.php
(10.13 KB)
??
filesystem.php
(3 KB)
??
form-tag.php
(14.29 KB)
??
form-tags-manager.php
(14.57 KB)
??
formatting.php
(14.47 KB)
??
functions.php
(16.98 KB)
??
html-formatter.php
(20.66 KB)
??
integration.php
(8.76 KB)
??
js
??
l10n.php
(3.37 KB)
??
mail-tag.php
(4.1 KB)
??
mail.php
(14.54 KB)
??
pipe.php
(2.62 KB)
??
pocket-holder.php
(325 B)
??
rest-api.php
(12.99 KB)
??
shortcodes.php
(2.66 KB)
??
special-mail-tags.php
(6.53 KB)
??
submission.php
(20.23 KB)
??
swv
??
upgrade.php
(3.1 KB)
??
validation-functions.php
(6.67 KB)
Editing: pipe.php
<?php /** * Pipe-related classes. * * @link https://contactform7.com/selectable-recipient-with-pipes/ */ /** * Class representing a pair of pipe. */ class WPCF7_Pipe { public $before = ''; public $after = ''; public function __construct( $text ) { $text = (string) $text; $pipe_pos = strpos( $text, '|' ); if ( false === $pipe_pos ) { $this->before = $this->after = wpcf7_strip_whitespaces( $text ); } else { $this->before = wpcf7_strip_whitespaces( substr( $text, 0, $pipe_pos ) ); $this->after = wpcf7_strip_whitespaces( substr( $text, $pipe_pos + 1 ) ); } } } /** * Class representing a list of pipes. */ class WPCF7_Pipes { private $pipes = array(); public function __construct( $texts = null ) { foreach ( (array) $texts as $text ) { $this->add_pipe( $text ); } } private function add_pipe( $text ) { $pipe = new WPCF7_Pipe( $text ); $this->pipes[] = $pipe; } public function merge( self $another ) { $this->pipes = array_merge( $this->pipes, $another->pipes ); } public function do_pipe( $input ) { $input_canonical = wpcf7_canonicalize( $input, array( 'strto' => 'as-is', ) ); foreach ( $this->pipes as $pipe ) { $before_canonical = wpcf7_canonicalize( $pipe->before, array( 'strto' => 'as-is', ) ); if ( $input_canonical === $before_canonical ) { return $pipe->after; } } return $input; } public function collect_befores() { $befores = array(); foreach ( $this->pipes as $pipe ) { $befores[] = $pipe->before; } return $befores; } public function collect_afters() { $afters = array(); foreach ( $this->pipes as $pipe ) { $afters[] = $pipe->after; } return $afters; } public function zero() { return empty( $this->pipes ); } public function random_pipe() { if ( $this->zero() ) { return null; } return $this->pipes[array_rand( $this->pipes )]; } public function to_array() { return array_map( static function ( WPCF7_Pipe $pipe ) { return array( $pipe->before, $pipe->after, ); }, $this->pipes ); } } /** * Trait for classes that hold cross-tag WPCF7_Pipes object. */ trait WPCF7_PipesHolder { protected $pipes; public function get_pipes( $field_name ) { if ( isset( $this->pipes[$field_name] ) ) { return $this->pipes[$field_name]; } $result = new WPCF7_Pipes(); $tags = $this->scan_form_tags( array( 'name' => $field_name, ) ); foreach ( $tags as $tag ) { if ( $tag->pipes instanceof WPCF7_Pipes ) { $result->merge( $tag->pipes ); } } return $this->pipes[$field_name] = $result; } public function scan_form_tags() { return array(); } }
Upload File
Create Folder