/home/techb158/l2hypotheques.com/wp-content/plugins/contact-form-7/includes
NameSizeModeActions
block-editor/-0755rm
config-validator/-0755rm
css/-0755rm
js/-0755rm
swv/-0755rm
capabilities.php8340644editdlrm
contact-form-functions.php105110644editdlrm
contact-form-template.php57780644editdlrm
contact-form.php314820644editdlrm
controller.php32380644editdlrm
file.php103690644editdlrm
filesystem.php30690644editdlrm
form-tag.php146290644editdlrm
form-tags-manager.php149170644editdlrm
formatting.php148210644editdlrm
functions.php173850644editdlrm
html-formatter.php211530644editdlrm
integration.php89690644editdlrm
l10n.php34550644editdlrm
mail-tag.php41950644editdlrm
mail.php155110644editdlrm
pipe.php26810644editdlrm
pocket-holder.php3250644editdlrm
rest-api.php133020644editdlrm
shortcodes.php27260644editdlrm
special-mail-tags.php66850644editdlrm
submission.php207180644editdlrm
upgrade.php31730644editdlrm
validation-functions.php68270644editdlrm
validation.php33340644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/contact-form-7/includes/pipe.php (2681B)
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(); } }