Skip to content
Snippets Groups Projects
Commit e76dae9c authored by Johannes Kreiner's avatar Johannes Kreiner
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 294 additions and 0 deletions
<?php
namespace SGalinski\SgYoutube\Controller;
use TYPO3\CMS\Extbase\Mvc\Controller\AbstractController;
/***************************************************************
* Copyright notice
* (c) sgalinski Internet Services (https://www.sgalinski.de)
* All rights reserved
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
class YoutubeController extends AbstractController {
public function listAction() {
}
}
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
<langChildren>1</langChildren>
</meta>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>LLL:EXT:sg_youtube/Resources/Private/Language/locallang.xlf:settings
</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<settings.id>
<TCEforms>
<exclude>0</exclude>
<label>LLL:EXT:sg_youtube/Resources/Private/Language/locallang.xlf:id
</label>
<config>
<type>input</type>
<size>30</size>
<eval>trim</eval>
</config>
</TCEforms>
</settings.id>
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>
<?php
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['sgyoutube_youtube'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('sgyoutube_youtube', 'FILE:EXT:sg_youtube/Configuration/FlexForms/flexform_sgyoutube_youtube.xml');
plugin.tx_sgyoutube {
view {
# cat=plugin.tx_sgyoutube/file; type=string; label=Path to template root (FE)
templateRootPath = EXT:sg_youtube/Resources/Private/Templates/
# cat=plugin.tx_sgyoutube/file; type=string; label=Path to template partials (FE)
partialRootPath = EXT:sg_youtube/Resources/Private/Partials/
# cat=plugin.tx_sgyoutube/file; type=string; label=Path to template layouts (FE)
layoutRootPath = EXT:sg_youtube/Resources/Private/Layouts/
}
}
plugin.tx_sgyoutube {
view {
templateRootPaths {
0 = EXT:sg_youtube/Resources/Private/Templates/
1 = {$plugin.tx_sgyoutube.view.templateRootPath}
}
partialRootPaths {
0 = EXT:sg_youtube/Resources/Private/Partials/
1 = {$plugin.tx_sgyoutube.view.partialRootPath}
}
layoutRootPaths {
0 = EXT:sg_youtube/Resources/Private/Layouts/
1 = {$plugin.tx_sgyoutube.view.layoutRootPath}
}
}
}
# Ext: sg_youtube
<img src="https://www.sgalinski.de/typo3conf/ext/project_theme/Resources/Public/Images/logo.svg" />
License: [GNU GPL, Version 2](https://www.gnu.org/licenses/gpl-2.0.html)
Repository: https://gitlab.sgalinski.de/typo3/sg_youtube
Please report bugs here: https://gitlab.sgalinski.de/typo3/sg_youtube
TYPO3 version: >7.6
\ No newline at end of file
# Apache < 2.3
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
# Apache >= 2.3
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2016-02-28T23:20:19Z">
<header>
<generator>LFEditor</generator>
</header>
<body>
<trans-unit id="id" approved="yes">
<source>ID of Channel (UC) or Playlist (PL)</source>
<target>ID eines Channels (UC) oder einer Playlist (PL)</target>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2016-02-28T23:20:19Z">
<header>
<generator>LFEditor</generator>
</header>
<body>
<trans-unit id="id">
<source>ID of Channel (UC) or Playlist (PL)</source>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
<div class="tx-sg-youtube">
<f:render section="main"/>
</div>
<f:layout name="Default"/>
<f:section name="main">
</f:section>
{
"name": "sgalinski/sg-youtube",
"type": "typo3-cms-extension",
"description": "Embed YouTube Videos of a Playlist or Channel",
"homepage": "https://www.sgalinski.de",
"license": "GPL-2.0+",
"version": "1.0.0",
"require": {
"typo3/cms-core": "7.6.0 - 8.7.99"
},
"replace": {
"sg_youtube": "self.version"
},
"autoload": {
"psr-4": {
"SGalinski\\SgYoutube\\": "Classes/"
}
}
}
<?php
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
$EM_CONF[$_EXTKEY] = [
'title' => 'YouTube Videos',
'description' => 'Embed YouTube Videos of a Channel or Playlist',
'category' => 'plugin',
'author' => 'Johannes Kreiner',
'author_email' => 'johannes@sgalinski.de',
'author_company' => 'sgalinski Internet Services (https://www.sgalinski.de)',
'state' => 'stable',
'internal' => '',
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '1.0.0',
'constraints' => [
'depends' => [
'typo3' => '7.6.0-8.7.99',
],
'conflicts' => [],
'suggests' => [],
],
];
ext_icon.png

825 B

<?php
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SGalinski.sg_youtube',
'Youtube',
[
'Youtube' => 'list',
],
// non-cacheable actions
[
]
);
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'SGalinski.' . $_EXTKEY,
'Youtube',
'YouTube Videos'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'SG Youtube');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment