-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from chrometoasters/silverstripe4-update
Update to work with SilverStripe 4
- Loading branch information
Showing
13 changed files
with
28 additions
and
17 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
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
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
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,9 +1,6 @@ | ||
--- | ||
Name: ga-gtm-singlefield | ||
After: | ||
- 'framework/*' | ||
- 'cms/*' | ||
--- | ||
SiteConfig: | ||
SilverStripe\SiteConfig\SiteConfig: | ||
extensions: | ||
- GASiteConfigExtension | ||
- Chrometoaster\GA_GTM\Extensions\GASiteConfigExtension |
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
6 changes: 6 additions & 0 deletions
6
code/extensions/GASiteConfigExtension.php → src/extensions/GASiteConfigExtension.php
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
4 changes: 4 additions & 0 deletions
4
code/formfields/GACodeField.php → src/formfields/GACodeField.php
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,5 +1,9 @@ | ||
<?php | ||
|
||
namespace Chrometoaster\GA_GTM\Formfields; | ||
|
||
use SilverStripe\Forms\TextField; | ||
|
||
/** | ||
* Class GACodeField | ||
*/ | ||
|
4 changes: 2 additions & 2 deletions
4
templates/GA_GTM_body.ss → ...lates/Chrometoaster/GA_GTM/GA_GTM_body.ss
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,10 +1,10 @@ | ||
<% with $SiteConfig %> | ||
<% if $GoogleCode %> | ||
<% if $AnalyticType == 'GTM' %> | ||
<% include GTM_body %> | ||
<% include Chrometoaster\GA_GTM\Includes\GTM_body %> | ||
<% end_if %> | ||
<% if $AnalyticType == 'UA' %> | ||
<% include GA_body %> | ||
<% include Chrometoaster\GA_GTM\Includes\GA_body %> | ||
<% end_if %> | ||
<% end_if %> | ||
<% end_with %> |
4 changes: 2 additions & 2 deletions
4
templates/GA_GTM_head.ss → ...lates/Chrometoaster/GA_GTM/GA_GTM_head.ss
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,10 +1,10 @@ | ||
<% with $SiteConfig %> | ||
<% if $GoogleCode %> | ||
<% if $AnalyticType == 'GTM' %> | ||
<% include GTM_head %> | ||
<% include Chrometoaster\GA_GTM\Includes\GTM_head %> | ||
<% end_if %> | ||
<% if $AnalyticType == 'UA' %> | ||
<% include GA_head %> | ||
<% include Chrometoaster\GA_GTM\Includes\GA_head %> | ||
<% end_if %> | ||
<% end_if %> | ||
<% end_with %> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.