forked from tlamedia/gtm-kit
-
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.
Comply with WordPress Coding Standards - Style
- Loading branch information
1 parent
c59e146
commit 936b9f2
Showing
48 changed files
with
1,260 additions
and
864 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,10 +1,20 @@ | ||
var ncp = require('ncp').ncp; | ||
/** | ||
* GTM Kit plugin file. | ||
* | ||
* @package GTM Kit | ||
*/ | ||
|
||
var ncp = require( 'ncp' ).ncp; | ||
|
||
ncp.limit = 16; | ||
|
||
ncp('src/images', 'assets/images', function (err) { | ||
if (err) { | ||
return console.error(err); | ||
ncp( | ||
'src/images', | ||
'assets/images', | ||
function (err) { | ||
if (err) { | ||
return console.error( err ); | ||
} | ||
console.log( 'Images copied!' ); | ||
} | ||
console.log('Images copied!'); | ||
}); | ||
); |
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,16 +1,22 @@ | ||
<?php | ||
/** | ||
* Frontend template functions | ||
* | ||
* @package GTM Kit | ||
*/ | ||
|
||
use TLA_Media\GTM_Kit\Options; | ||
use TLA_Media\GTM_Kit\Frontend\Frontend; | ||
|
||
/** | ||
* The noscript tag | ||
* | ||
* @return void | ||
*/ | ||
function gtmkit_the_noscript_tag(): void { | ||
$noscript_implementation = (int) Options::init()->get( 'general', 'noscript_implementation' ); | ||
|
||
if ( $noscript_implementation == 2 ) { | ||
if ( $noscript_implementation === 2 ) { | ||
Frontend::get_body_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
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,6 +1,12 @@ | ||
/** | ||
* GTM Kit plugin file. | ||
* | ||
* @package GTM Kit | ||
*/ | ||
|
||
module.exports = { | ||
plugins: [ | ||
require('autoprefixer'), | ||
require('cssnano') // This will minify the result CSS | ||
require( 'autoprefixer' ), | ||
require( 'cssnano' ) // This will minify the result CSS. | ||
] | ||
} |
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
Oops, something went wrong.