@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\Acf; |
| 4 | 4 | |
| 5 | -use RecursiveDirectoryIterator; |
|
| 6 | 5 | use ACFComposer\ACFComposer; |
| 7 | 6 | use Flynt\Utils\ArrayHelpers; |
| 8 | 7 | use Flynt\Utils\FileLoader; |
@@ -11,9 +11,7 @@ |
||
| 11 | 11 | use ACFComposer; |
| 12 | 12 | use Flynt\ComponentManager; |
| 13 | 13 | use Flynt\Features\AdminNotices\AdminNoticeManager; |
| 14 | -use Flynt\Features\CustomPostTypes\CustomPostTypeRegister; |
|
| 15 | 14 | use Flynt\Utils\Feature; |
| 16 | -use Flynt\Utils\FileLoader; |
|
| 17 | 15 | use Flynt\Utils\StringHelpers; |
| 18 | 16 | |
| 19 | 17 | class OptionPages |
@@ -36,13 +36,16 @@ |
||
| 36 | 36 | console.log('GoogleAnalytics: ' + [].slice.call(arguments)); |
| 37 | 37 | } |
| 38 | 38 | <?php |
| 39 | - else : ?> |
|
| 39 | + else { |
|
| 40 | + : ?> |
|
| 40 | 41 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 41 | 42 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 42 | 43 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 43 | 44 | })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
| 44 | 45 | <?php |
| 45 | - endif; ?> |
|
| 46 | + endif; |
|
| 47 | + } |
|
| 48 | + ?> |
|
| 46 | 49 | ga('create','<?php echo $this->gaId; ?>','auto');ga('send','pageview'); |
| 47 | 50 | <?php if ($this->anonymizeIp == 1) : ?> |
| 48 | 51 | ga('set', 'anonymizeIp', true); |