first commit

This commit is contained in:
Roman Pyrih
2023-07-24 08:30:51 +02:00
commit c2e100a763
7128 changed files with 1622619 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php if ( ! defined( 'ABSPATH' ) ) {
die( 'Direct access forbidden.' );
}
class Brizy_Editor_Asset_Media {
private $url;
private $path;
public function __construct( $url, $path ) {
$this->path = $path;
$this->url = $url;
}
public function get_path() {
return $this->path;
}
public function get_url() {
return $this->url;
}
public function get_name() {
return basename( $this->get_path() );
}
public function get_type() {
return pathinfo( $this->get_path(), PATHINFO_EXTENSION );
}
}