85 public function addCss(
string $path,
string $media = self::MEDIA_SCREEN)
87 $this->css->addItem(
new Css($path, $this->resource_version, $media));
96 public function addJs(
string $path,
bool $add_version_number =
false,
int $batch = 2)
98 $this->js->addItem(
new Js($path, $this->resource_version, $add_version_number, $batch));
106 public function addInlineCss(
string $content,
string $media = self::MEDIA_SCREEN)
108 $this->inline_css->addItem(
new InlineCss($content, $this->resource_version, $media));
118 $this->on_load_code->addItem(
new OnLoadCode($content, $this->resource_version, $batch));
185 if (!in_array($text_direction, [Standard::LTR, Standard::RTL],
true)) {
186 throw new \InvalidArgumentException(
'$text_direction MUST be Standard::LTR, or Standard::RTL');
193 $this->meta_data->add(
new MetaDatum($key, $value));
addJs(string $path, bool $add_version_number=false, int $batch=2)
addInlineCss(string $content, string $media=self::MEDIA_SCREEN)
__construct(string $resource_version)
MetaContent constructor.
addCss(string $path, string $media=self::MEDIA_SCREEN)
Class MetaDataCollection.
setBaseURL(string $base_url)
Class MetaDataCollection.
addOnloadCode(string $content, int $batch=2)
addMetaDatum(string $key, string $value)
setTextDirection(string $text_direction)