-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontroller.php
51 lines (41 loc) · 1.11 KB
/
controller.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* TDS Share This Page add-on controller.
*
* Copyright 2018 - TDSystem Beratung & Training - Thomas Dausner (aka dausi)
*/
namespace Concrete\Package\TdsShareThisPage;
use Concrete\Core\Package\Package;
use Concrete\Core\Block\BlockType\BlockType;
/*
* FontAwesome (not image) based Social Media "Share" Icons
*
* developed from:
* FontAwesome based Social Media "Vist" Icons
*/
class Controller extends Package
{
protected $pkgHandle = 'tds_share_this_page';
protected $appVersionRequired = '5.7.5.6';
protected $pkgVersion = '1.0.0';
public function getPackageName()
{
return t('TDS Social Media "Share this page" Icons (EU-GDPR compliant)');
}
public function getPackageDescription()
{
return t('Add EU-GDPR compliant social media "Share this page" icons on your pages.');
}
public function install()
{
$pkg = parent::install();
$blk = BlockType::getByHandle($this->pkgHandle);
if (!is_object($blk)) {
BlockType::installBlockType($this->pkgHandle, $pkg);
}
}
public function uninstall()
{
$pkg = parent::uninstall();
}
}