-
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 #56 from jonathanheilmann/v1.3.0
[RELEASE] Release of version 1.3.0
- Loading branch information
Showing
5 changed files
with
54 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,12 +64,11 @@ public function main($content, $conf) | |
$content = ''; | ||
$og = array(); | ||
|
||
/* @var \TYPO3\CMS\Extbase\Object\ObjectManager */ | ||
$objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); | ||
|
||
if ($this->signalSlotDispatcher == null) | ||
{ | ||
/* @var \TYPO3\CMS\Extbase\Object\ObjectManager */ | ||
$objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); | ||
$this->signalSlotDispatcher = $objectManager->get('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher'); | ||
} | ||
|
||
// 2013-04-22 [email protected] | ||
// Check if the tt_news "displaySingle" method has been called before | ||
|
@@ -140,7 +139,18 @@ public function main($content, $conf) | |
$og['image'] = $fileObjects; | ||
|
||
// Get url | ||
$og['url'] = htmlentities(GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL')); | ||
/** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj */ | ||
$cObj = $objectManager->get(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class); | ||
$additionalParams = GeneralUtility::_GET(); | ||
if (GeneralUtility::_GP('L')) | ||
$additionalParams['L'] = (int)GeneralUtility::_GP('L'); | ||
unset($additionalParams['id']); | ||
$lConf = [ | ||
'additionalParams' => '&' . GeneralUtility::implodeArrayForUrl('', $additionalParams), | ||
'parameter' => $GLOBALS['TSFE']->id | ||
]; | ||
$og['url'] = htmlentities($cObj->typoLink_URL($lConf)); | ||
|
||
|
||
// Get site_name | ||
$og['site_name'] = htmlspecialchars(!empty($conf['sitename']) ? | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,47 +3,38 @@ | |
/*************************************************************** | ||
* Extension Manager/Repository config file for ext "jh_opengraphprotocol". | ||
* | ||
* Auto generated 29-12-2013 12:55 | ||
* Auto generated 27-07-2017 19:36 | ||
* | ||
* Manual updates: | ||
* Only the data in the array - everything else is removed by next | ||
* writing. "version" and "dependencies" must not be touched! | ||
***************************************************************/ | ||
|
||
$EM_CONF[$_EXTKEY] = array( | ||
'title' => 'Open Graph protocol', | ||
'description' => 'Adds the Open Graph protocol properties in meta-tags to the html-header supporting multilingual-websites.', | ||
'category' => 'plugin', | ||
'shy' => 0, | ||
'version' => '1.2.6', | ||
'dependencies' => '', | ||
'conflicts' => '', | ||
'priority' => '', | ||
'loadOrder' => '', | ||
'module' => '', | ||
'state' => 'stable', | ||
'uploadfolder' => 0, | ||
'createDirs' => '', | ||
'modify_tables' => '', | ||
'clearcacheonload' => 1, | ||
'lockType' => '', | ||
'author' => 'Jonathan Heilmann', | ||
'author_email' => '[email protected]', | ||
'author_company' => '', | ||
'CGLcompliance' => null, | ||
'CGLcompliance_note' => null, | ||
'constraints' => | ||
array( | ||
'depends' => | ||
array( | ||
'typo3' => '6.2.0-7.6.99', | ||
), | ||
'conflicts' => | ||
array( | ||
'jh_opengraph_ttnews' => '0.0.0-0.0.10', | ||
), | ||
'suggests' => | ||
array( | ||
), | ||
$EM_CONF[$_EXTKEY] = array ( | ||
'title' => 'Open Graph protocol', | ||
'description' => 'Adds the Open Graph protocol properties in meta-tags to the html-header supporting multilingual-websites.', | ||
'category' => 'plugin', | ||
'version' => '1.3.0', | ||
'state' => 'stable', | ||
'uploadfolder' => false, | ||
'createDirs' => '', | ||
'clearcacheonload' => true, | ||
'author' => 'Jonathan Heilmann', | ||
'author_email' => '[email protected]', | ||
'author_company' => '', | ||
'constraints' => | ||
array ( | ||
'depends' => | ||
array ( | ||
'typo3' => '6.2.0-8.7.99', | ||
), | ||
'conflicts' => | ||
array ( | ||
'jh_opengraph_ttnews' => '0.0.0-0.0.10', | ||
), | ||
'suggests' => | ||
array ( | ||
), | ||
), | ||
); | ||
|