mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement markup models for different formats
This commit is contained in:
parent
805af30d5b
commit
83a5fc9d6e
6 changed files with 242 additions and 213 deletions
|
|
@ -9,8 +9,6 @@ use \GtkLabel;
|
|||
|
||||
use \Yggverse\Yoda\Entity\Browser\Container\Page\Content;
|
||||
|
||||
use \Yggverse\Net\Address;
|
||||
|
||||
abstract class Markup
|
||||
{
|
||||
public GtkLabel $gtk;
|
||||
|
|
@ -126,25 +124,4 @@ abstract class Markup
|
|||
abstract public function set(
|
||||
string $value
|
||||
): void;
|
||||
|
||||
// Tools
|
||||
protected function _url(
|
||||
string $link
|
||||
): ?string
|
||||
{
|
||||
$address = new Address(
|
||||
$link
|
||||
);
|
||||
|
||||
if ($address->isRelative())
|
||||
{
|
||||
$address->toAbsolute(
|
||||
new Address(
|
||||
$this->content->page->navbar->request->getValue()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $address->get();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue