%PDF- %PDF-
Direktori : /var/www/businessmultisite/wp-content/plugins/ac-addon-acf/classes/Field/ |
Current File : /var/www/businessmultisite/wp-content/plugins/ac-addon-acf/classes/Field/Url.php |
<?php namespace ACA\ACF\Field; use ACA\ACF\Editing; use ACA\ACF\Field; use ACA\ACF\Filtering; use ACP; class Url extends Field { public function get_value( $id ) { $url = parent::get_value( $id ); return ac_helper()->html->link( $url, urldecode( str_replace( [ 'http://', 'https://' ], '', $url ) ) ); } public function editing() { return new Editing\Url( $this->column ); } public function filtering() { return new Filtering( $this->column ); } public function sorting() { return ( new ACP\Sorting\Model\MetaFactory() )->create( $this->get_meta_type(), $this->get_meta_key() ); } public function search() { return new ACP\Search\Comparison\Meta\Text( $this->get_meta_key(), $this->get_meta_type() ); } }