-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from jonathanheilmann/v1.3.1
[RELEASE] Release of version 1.3.1
- Loading branch information
Showing
10 changed files
with
239 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?php | ||
if (!defined('TYPO3_MODE')) { | ||
die ('Access denied.'); | ||
} | ||
|
||
$_EXTKEY = 'jh_opengraphprotocol'; | ||
|
||
$tempColumns = array( | ||
'tx_jhopengraphprotocol_ogtitle' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogtitle', | ||
'config' => array( | ||
'type' => 'input', | ||
'size' => '160', | ||
) | ||
), | ||
'tx_jhopengraphprotocol_ogtype' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogtype', | ||
'config' => array( | ||
'type' => 'input', | ||
'size' => '30', | ||
) | ||
), | ||
'tx_jhopengraphprotocol_ogimage' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogimage', | ||
'config' => array( | ||
'type' => 'group', | ||
'internal_type' => 'file', | ||
'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], | ||
'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'], | ||
'uploadfolder' => 'uploads/tx_jhopengraphprotocol', | ||
'show_thumbs' => 1, | ||
'size' => 4, | ||
'minitems' => 0, | ||
'maxitems' => 6, | ||
) | ||
), | ||
'tx_jhopengraphprotocol_ogfalimages' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogimage', | ||
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( | ||
'tx_jhopengraphprotocol_ogfalimages', | ||
array( | ||
'appearance' => array( | ||
'showPossibleLocalizationRecords' => true, | ||
'showRemovedLocalizationRecords' => true, | ||
'showSynchronizationLink' => true, | ||
'showAllLocalizationLink' => true, | ||
|
||
'enableControls' => array( | ||
'sort' => true, | ||
), | ||
), | ||
'behaviour' => array( | ||
'localizationMode' => 'select', | ||
'localizeChildrenAtParentLocalization' => TRUE, | ||
), | ||
'foreign_types' => array( | ||
'0' => array( | ||
'showitem' => ' | ||
--palette--;;opengraphprotocolPalette, | ||
--palette--;;filePalette' | ||
), | ||
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array( | ||
'showitem' => ' | ||
--palette--;;opengraphprotocolPalette, | ||
--palette--;;filePalette' | ||
), | ||
\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array( | ||
'showitem' => ' | ||
--palette--;;opengraphprotocolPalette, | ||
--palette--;;filePalette' | ||
), | ||
), | ||
), | ||
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] | ||
) | ||
), | ||
'tx_jhopengraphprotocol_ogdescription' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogdescription', | ||
'config' => array( | ||
'type' => 'text', | ||
'size' => '30', | ||
'rows' => '3', | ||
'max' => '300', | ||
) | ||
), | ||
); | ||
|
||
// Add columns to TCA of pages | ||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempColumns, 1); | ||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', '--div--;LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tab_title,tx_jhopengraphprotocol_ogtitle;;;;1-1-1, tx_jhopengraphprotocol_ogtype, tx_jhopengraphprotocol_ogfalimages, tx_jhopengraphprotocol_ogdescription'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<?php | ||
if (!defined('TYPO3_MODE')) { | ||
die ('Access denied.'); | ||
} | ||
|
||
$_EXTKEY = 'jh_opengraphprotocol'; | ||
|
||
// Get extension configuration | ||
if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY])) { | ||
$extConf = \TYPO3\CMS\Core\Utility\GeneralUtility::removeDotsFromTS(unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY])); | ||
} else { | ||
$extConf = array(); | ||
} | ||
|
||
$tempColumns = array( | ||
'tx_jhopengraphprotocol_ogtitle' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogtitle', | ||
'config' => array( | ||
'type' => 'input', | ||
'size' => '160', | ||
) | ||
), | ||
'tx_jhopengraphprotocol_ogtype' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogtype', | ||
'config' => array( | ||
'type' => 'input', | ||
'size' => '30', | ||
) | ||
), | ||
'tx_jhopengraphprotocol_ogimage' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogimage', | ||
'config' => array( | ||
'type' => 'group', | ||
'internal_type' => 'file', | ||
'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], | ||
'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'], | ||
'uploadfolder' => 'uploads/tx_jhopengraphprotocol', | ||
'show_thumbs' => 1, | ||
'size' => 4, | ||
'minitems' => 0, | ||
'maxitems' => 6, | ||
) | ||
), | ||
'tx_jhopengraphprotocol_ogfalimages' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogimage', | ||
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( | ||
'tx_jhopengraphprotocol_ogfalimages', | ||
array( | ||
'appearance' => array( | ||
'showPossibleLocalizationRecords' => true, | ||
'showRemovedLocalizationRecords' => true, | ||
'showSynchronizationLink' => true, | ||
'showAllLocalizationLink' => true, | ||
|
||
'enableControls' => array( | ||
'sort' => true, | ||
), | ||
), | ||
'behaviour' => array( | ||
'localizationMode' => 'select', | ||
'localizeChildrenAtParentLocalization' => TRUE, | ||
), | ||
'foreign_types' => array( | ||
'0' => array( | ||
'showitem' => ' | ||
--palette--;;opengraphprotocolPalette, | ||
--palette--;;filePalette' | ||
), | ||
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array( | ||
'showitem' => ' | ||
--palette--;;opengraphprotocolPalette, | ||
--palette--;;filePalette' | ||
), | ||
\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array( | ||
'showitem' => ' | ||
--palette--;;opengraphprotocolPalette, | ||
--palette--;;filePalette' | ||
), | ||
), | ||
), | ||
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] | ||
) | ||
), | ||
'tx_jhopengraphprotocol_ogdescription' => array( | ||
'exclude' => 1, | ||
'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogdescription', | ||
'config' => array( | ||
'type' => 'text', | ||
'size' => '30', | ||
'rows' => '3', | ||
'max' => '300', | ||
) | ||
), | ||
); | ||
|
||
foreach ($tempColumns as $tempColumnKey => $tempColumnValue) | ||
{ | ||
$tempColumns[$tempColumnKey]['l10n_cat'] = 'text'; | ||
// Set l10n_mode for pages_language_overlay | ||
if (isset($extConf['languageOverlay'][$tempColumnKey]['mergeIfNotBlank']) && $extConf['languageOverlay'][$tempColumnKey]['mergeIfNotBlank']) | ||
$tempColumns[$tempColumnKey]['l10n_mode'] = 'mergeIfNotBlank'; | ||
|
||
// Don't display language diff, it's really ugly | ||
if ($tempColumnKey === 'tx_jhopengraphprotocol_ogfalimages') | ||
$tempColumns[$tempColumnKey]['l10n_display'] = 'hideDiff'; | ||
|
||
// Change label for tx_jhopengraphprotocol_ogfalimages if l10n_mode is 'mergeIfNotBlank' to add mode information | ||
if ($tempColumnKey === 'tx_jhopengraphprotocol_ogfalimages' && $tempColumns[$tempColumnKey]['l10n_mode'] === 'mergeIfNotBlank') | ||
$tempColumns[$tempColumnKey]['label'] = 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tx_jhopengraphprotocol_ogimage.mergeIfNotBlank'; | ||
} | ||
|
||
// Add columns to TCA of pages_language_overlay | ||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages_language_overlay', $tempColumns, 1); | ||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages_language_overlay', '--div--;LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:pages.tab_title,tx_jhopengraphprotocol_ogtitle;;;;1-1-1, tx_jhopengraphprotocol_ogtype, tx_jhopengraphprotocol_ogfalimages, tx_jhopengraphprotocol_ogdescription'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
if (!defined('TYPO3_MODE')) { | ||
die ('Access denied.'); | ||
} | ||
|
||
// Add new palette | ||
$GLOBALS['TCA']['sys_file_reference']['palettes']['opengraphprotocolPalette'] = $GLOBALS['TCA']['sys_file_reference']['palettes']['basicoverlayPalette']; | ||
$GLOBALS['TCA']['sys_file_reference']['palettes']['opengraphprotocolPalette']['showitem'] = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.