Initial commit

This commit is contained in:
2018-04-02 08:07:38 +02:00
commit 7330c1ed3e
2054 changed files with 405203 additions and 0 deletions

View File

@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8"?>
<T3DataStructure>
<sheets>
<general>
<ROOT>
<TCEforms>
<sheetTitle>LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang.xlf:flexform.generalInfo</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<settings.flexform.info_page_id>
<TCEforms>
<exclude>1</exclude>
<label>LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang.xlf:flexform.general.info_link</label>
<config>
<type>group</type>
<internal_type>db</internal_type>
<allowed>pages</allowed>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<show_thumbs>0</show_thumbs>
</config>
</TCEforms>
</settings.flexform.info_page_id>
<settings.flexform.use_cookie>
<TCEforms>
<exclude>1</exclude>
<label>LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang.xlf:flexform.general.use_cookie</label>
<config>
<type>check</type>
</config>
</TCEforms>
</settings.flexform.use_cookie>
<settings.flexform.cookie_description>
<TCEforms>
<exclude>1</exclude>
<label>LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang.xlf:flexform.general.cookie_description</label>
<config>
<type>text</type>
<cols>24</cols>
<rows>2</rows>
</config>
</TCEforms>
</settings.flexform.cookie_description>
<settings.flexform.share_link>
<TCEforms>
<exclude>1</exclude>
<label>LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang.xlf:flexform.general.share_link</label>
<config>
<type>input</type>
<size>40</size>
<max>1000</max>
<eval>trim</eval>
</config>
</TCEforms>
</settings.flexform.share_link>
<settings.flexform.main_buttons>
<TCEforms>
<exclude>1</exclude>
<label>LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang.xlf:flexform.general.main_buttons</label>
<config>
<type>group</type>
<internal_type>db</internal_type>
<allowed>tx_tgmsocialshareprivacy_domain_model_socialbutton</allowed>
<size>5</size>
<maxitems>100</maxitems>
<minitems>0</minitems>
<show_thumbs>1</show_thumbs>
<eval>required</eval>
</config>
</TCEforms>
</settings.flexform.main_buttons>
<settings.flexform.additional_buttons>
<TCEforms>
<exclude>1</exclude>
<label>LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang.xlf:flexform.general.additional_buttons</label>
<config>
<type>group</type>
<internal_type>db</internal_type>
<allowed>tx_tgmsocialshareprivacy_domain_model_socialbutton</allowed>
<size>5</size>
<maxitems>100</maxitems>
<minitems>0</minitems>
<show_thumbs>1</show_thumbs>
</config>
</TCEforms>
</settings.flexform.additional_buttons>
</el>
</ROOT>
</general>
</sheets>
</T3DataStructure>

View File

@@ -0,0 +1,177 @@
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
$TCA['tx_tgmsocialshareprivacy_domain_model_socialbutton'] = array(
'ctrl' => $TCA['tx_tgmsocialshareprivacy_domain_model_socialbutton']['ctrl'],
'interface' => array(
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, name_fe, description_text, dummyimage, html_code, js_code, js_include_methode',
),
'types' => array(
'1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden;;1, name, name_fe, description_text, dummyimage, html_code, js_code, js_include_methode,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
),
'palettes' => array(
'1' => array('showitem' => ''),
),
'columns' => array(
'sys_language_uid' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array(
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
),
),
),
'l10n_parent' => array(
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array(
'type' => 'select',
'items' => array(
array('', 0),
),
'foreign_table' => 'tx_tgmsocialshareprivacy_domain_model_socialbutton',
'foreign_table_where' => 'AND tx_tgmsocialshareprivacy_domain_model_socialbutton.pid=###CURRENT_PID### AND tx_tgmsocialshareprivacy_domain_model_socialbutton.sys_language_uid IN (-1,0)',
),
),
'l10n_diffsource' => array(
'config' => array(
'type' => 'passthrough',
),
),
't3ver_label' => array(
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array(
'type' => 'input',
'size' => 30,
'max' => 255,
)
),
'hidden' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array(
'type' => 'check',
),
),
'starttime' => array(
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => array(
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
),
),
),
'endtime' => array(
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => array(
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
),
),
),
'name' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.name',
'config' => array(
'type' => 'input',
'size' => 30,
'eval' => 'trim,required'
),
),
'name_fe' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.name_fe',
'config' => array(
'type' => 'input',
'size' => 30,
'eval' => 'trim,required'
),
),
'description_text' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.description_text',
'config' => array(
'type' => 'text',
'cols' => 40,
'rows' => 3,
'eval' => 'trim',
// TODO: Make this translateable
// 'default' => 'LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.description_text_default'
'default' => 'This button is saving your privacy from social networks until you turn it on.',
),
),
'dummyimage' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.dummyimage',
'config' => array(
'type' => 'group',
'internal_type' => 'file',
'uploadfolder' => 'typo3conf/ext/tgm_socialshareprivacy/Resources/Public/Uploads',
'show_thumbs' => 1,
'size' => 1,
'maxitems' => 1,
'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
'disallowed' => '',
),
),
'html_code' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.html_code',
'config' => array(
'type' => 'input',
'size' => 30,
'eval' => 'trim'
),
),
'js_code' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.js_code',
'config' => array(
'type' => 'text',
'cols' => 40,
'rows' => 15,
'eval' => 'trim'
),
),
'js_include_methode' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode',
'config' => array(
'type' => 'select',
'items' => array(
array('LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode_append', 0),
array('LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang_db.xlf:tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode_prepend', 1),
),
'size' => 1,
'maxitems' => 1,
'eval' => ''
),
),
),
);
?>

View File

@@ -0,0 +1,22 @@
plugin.tx_tgmsocialshareprivacy {
view {
# cat=plugin.tx_tgmsocialshareprivacy/file; type=string; label=Path to template root (FE)
templateRootPath = EXT:tgm_socialshareprivacy/Resources/Private/Templates/
# cat=plugin.tx_tgmsocialshareprivacy/file; type=string; label=Path to template partials (FE)
partialRootPath = EXT:tgm_socialshareprivacy/Resources/Private/Partials/
# cat=plugin.tx_tgmsocialshareprivacy/file; type=string; label=Path to template layouts (FE)
layoutRootPath = EXT:tgm_socialshareprivacy/Resources/Private/Layouts/
}
persistence {
# cat=plugin.tx_tgmsocialshareprivacy//a; type=string; label=Default storage PID
storagePid = 0
}
settings {
# cat=plugin.tx_tgmsocialshareprivacy//b; type=boolean; label=Include jQuery Libary
include_jquery = 1
# cat=plugin.tx_tgmsocialshareprivacy//b; type=boolean; label=Include jQuery UI Lib (for tooltips)
include_jqueryui = 1
# cat=plugin.tx_tgmsocialshareprivacy//b; type=boolean; label=Include all JS Files in the Footer
include_to_footer = 1
}
}

View File

@@ -0,0 +1,33 @@
plugin.tx_tgmsocialshareprivacy {
view {
templateRootPath = {$plugin.tx_tgmsocialshareprivacy.view.templateRootPath}
partialRootPath = {$plugin.tx_tgmsocialshareprivacy.view.partialRootPath}
layoutRootPath = {$plugin.tx_tgmsocialshareprivacy.view.layoutRootPath}
}
persistence {
storagePid = {$plugin.tx_tgmsocialshareprivacy.persistence.storagePid}
}
features {
# uncomment the following line to enable the new Property Mapper.
# rewrittenPropertyMapper = 1
}
settings {
include_jquery = {$plugin.tx_tgmsocialshareprivacy.settings.include_jquery}
include_jqueryui = {$plugin.tx_tgmsocialshareprivacy.settings.include_jqueryui}
include_to_footer = {$plugin.tx_tgmsocialshareprivacy.settings.include_to_footer}
info_page_id =
use_cookie = 1
cookie_path = "/"
cookie_expires = 365
cookie_description = You may permanently enable buttons.
#cookie_domain = document.location.host
#cookie_https = 0
css_path = typo3conf/ext/tgm_socialshareprivacy/Resources/Public/Css/tgm_socialshareprivacy.css
share_link = current
main_buttons = 1,2,3
additional_buttons =
}
}