Skip to content

Commit

Permalink
Fix tags Clicktochat not found in statamic4
Browse files Browse the repository at this point in the history
  • Loading branch information
manutheblacker authored Sep 9, 2023
1 parent 5502c06 commit 1fc34f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ServiceProvider extends AddonServiceProvider
];

protected $tags = [
\Homescriptone\ClickToChatWhatsapp\Tags\Clicktochat::class,
\Homescriptone\ClickToChatWhatsapp\Tags\ClickToChat::class,
];

protected $commands = [
Expand Down
6 changes: 4 additions & 2 deletions src/Tags/ClickToChat.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace Homescriptone\ClickToChatWhatsapp\Tags;
use Homescriptone\ClickToChatWhatsapp\Utils\Box;
use Statamic\Tags\Tags;
use Statamic\Tags\Tags as StatamicTags;

class Clicktochat extends Tags
class ClickToChat extends StatamicTags
{
/**
* The {{ clicktochat }} tag.
Expand All @@ -15,6 +15,8 @@ public function index()
return $this->get_widget();
}

public $tags = 'clicktochat';


private function get_widget() {
$values = Box::get_values();
Expand Down

0 comments on commit 1fc34f7

Please sign in to comment.