Temporarily disabled smart links
This commit is contained in:
parent
89d8a897c4
commit
f1a7dadc9b
|
@ -22,7 +22,7 @@ public function __construct(
|
||||||
$this->slug = Str::slug($term);
|
$this->slug = Str::slug($term);
|
||||||
$this->path = sprintf('/termes/%s', $this->slug);
|
$this->path = sprintf('/termes/%s', $this->slug);
|
||||||
$this->bundle = new Bundle($this->path, $source->getDisk());
|
$this->bundle = new Bundle($this->path, $source->getDisk());
|
||||||
$this->link = new Link($this->path, $term, $source);
|
//$this->link = new Link($this->path, $term, $source);
|
||||||
|
|
||||||
$this->bundle->load();
|
$this->bundle->load();
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ public function __construct(
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return (string) $this->link->toHtmlElement();
|
return sprintf('<a href="%s">%s</a>', $this->path, $this->term);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function register(string $term, string $subCategory, Bundle $source)
|
public static function register(string $term, string $subCategory, Bundle $source)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user