forked from in2code-de/instagram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
25 lines (22 loc) · 813 Bytes
/
ext_tables.php
File metadata and controls
25 lines (22 loc) · 813 Bytes
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
<?php
defined('TYPO3_MODE') || die();
call_user_func(
function () {
/**
* Register icons
*/
$iconRegistry =
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'extension-instagram',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:instagram/Resources/Public/Icons/Extension.svg']
);
/**
* Register own preview renderer for plugins
*/
$layout = 'cms/layout/class.tx_cms_layout.php';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['instagram_pi1'] =
\In2code\Instagram\Hooks\PageLayoutView\Pi1PreviewRenderer::class;
}
);