-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
# GoogleDataLayer | ||
Nette framework plugin - Google data layer (JS) for dynamic remarketing | ||
|
||
Installation | ||
------------ | ||
|
||
The best way to install Mk/Feed is using [Composer](http:https://getcomposer.org/): | ||
|
||
```sh | ||
$ composer require studioartcz/googledatalayer | ||
``` | ||
|
||
Configuration | ||
------------- | ||
|
||
.neon | ||
```yml | ||
extensions: | ||
feed: StudioArtcz\GoogleDataLayer\DI\GoogleDataLayerExtension | ||
|
||
googleDataLayer: | ||
gtmId: '%gtmId%' | ||
``` | ||
|
||
Usage | ||
----- | ||
|
||
todo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace StudioArtCz\GoogleDataLayer\Command; | ||
|
||
use Symfony\Component\Console\Command\Command, | ||
Symfony\Component\Console\Input\InputInterface, | ||
Symfony\Component\Console\Output\OutputInterface, | ||
Symfony\Component\Console\Input\InputOption; | ||
|
||
/** | ||
* see: https://github.com/martinknor/feed/blob/master/src/Command/FeedCommand.php | ||
* Class GoogleDataLayerCommand | ||
* @package StudioArtCz\GoogleDataLayer\Command | ||
*/ | ||
class GoogleDataLayerCommand extends Command | ||
{ | ||
|
||
/** @var \Nette\DI\Container */ | ||
private $container; | ||
|
||
/** @var array */ | ||
private $config; | ||
|
||
public function __construct(array $config = array(), Nette\DI\Container $container) | ||
{ | ||
parent::__construct(); | ||
$this->container = $container; | ||
$this->config = $config; | ||
} | ||
|
||
protected function configure() | ||
{ | ||
$this->setName('GTM:info') | ||
->setDescription('todo'); | ||
//->addOption('show', 's', InputOption::VALUE_NONE, 'Print available exports') | ||
//->addOption('feed', 'f', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL); | ||
} | ||
|
||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
use Nette; | ||
|
||
/** | ||
* see: https://github.com/martinknor/feed/blob/d577ff9c43b01b230ac298cc8e5efbf912806200/src/DI/FeedExtension.php | ||
* Class FeedExtension | ||
*/ | ||
class GoogleDataLayerExtension extends Nette\DI\CompilerExtension | ||
{ | ||
/** @var array */ | ||
private $defaults = array( | ||
'gtmId' => '%gtmId%' | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace StudioArtCz; | ||
|
||
/** | ||
* Class GoogleDataLayer | ||
* @package StudioArtCz | ||
*/ | ||
class GoogleDataLayer | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace StudioArtCz\GoogleDataLayer\Pages; | ||
|
||
use Nette; | ||
|
||
abstract class BasePage extends Nette\Object implements StudioArtCz\GoogleDataLayer\Pages\IPage; | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace StudioArtcz\GoogleDataLayer\Pages\Ecommerce; | ||
|
||
use StudioArtCz\GoogleDataLayer\Pages\BasePage; | ||
use Nette; | ||
|
||
/** | ||
* see: https://github.com/martinknor/feed/blob/master/src/Generators/Zbozi/Item.php | ||
* Class | ||
*/ | ||
class Product extends BasePage | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<script n:syntax="off"> | ||
var todo = "javascript"; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace StudioArtCz\GoogleDataLayer\Pages; | ||
|
||
interface IPage | ||
{ | ||
/** | ||
* @return bool Return true if item is valid | ||
*/ | ||
public function validate(); | ||
} |