northeastern-web/support
最新稳定版本:v1.1.0
Composer 安装命令:
composer require northeastern-web/support
包简介
Package of support classes for Northeastern University websites
README 文档
README
Package of support classes for Northeastern University websites
Installation
You can install the package via composer:
composer require northeastern-web/support
Usage
Meta tags
The package includes the Meta class for any meta related tags.
Add the following code to inside your <head> tag.
<?php echo Northeastern\Support\Meta::head() ?>
If your project is using Laravel Blade's templating engine, you can add the following code.
{!! Northeastern\Support\Meta::head() !!}
Analytics scripts
The package includes the Analytics class for the Northeastern analytics scripts.
Add the following code to inside your <head> tag.
<?php echo Northeastern\Support\Analytics::googleTagManagerScript() ?>
And add the following code just after your opening <body> tag.
<?php echo Northeastern\Support\Analytics::googleTagManagerNoScript() ?>
If your project is using Laravel Blade's templating engine, you can add the following code inside your <head> tag.
{!! Northeastern\Support\Analytics::googleTagManagerScript() !!}
And add the following code just after your opening <body> tag.
{!! Northeastern\Support\Analytics::googleTagManagerNoScript() !!}
统计信息
- 总下载量: 5.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-14