diff --git a/Classes/Domain/Model/Author.php b/Classes/Domain/Model/Author.php index 7af5534b..b1f9162a 100644 --- a/Classes/Domain/Model/Author.php +++ b/Classes/Domain/Model/Author.php @@ -80,6 +80,11 @@ class Author extends AbstractEntity */ protected $xing = ''; + /** + * @var string + */ + protected $instagram = ''; + /** * @var string */ @@ -318,6 +323,24 @@ public function setXing(string $xing): self return $this; } + /** + * @return string + */ + public function getInstagram(): ?string + { + return $this->instagram; + } + + /** + * @param string $instagram + * @return Author + */ + public function setInstagram(string $instagram): self + { + $this->instagram = $instagram; + return $this; + } + /** * @return string */ diff --git a/Configuration/DataHandler/BlogSetupRecords.php b/Configuration/DataHandler/BlogSetupRecords.php index d44c0a47..ac9f5d9f 100644 --- a/Configuration/DataHandler/BlogSetupRecords.php +++ b/Configuration/DataHandler/BlogSetupRecords.php @@ -162,6 +162,7 @@ 'website' => 'https://typo3.com/', 'email' => 'noreply@typo3.com', 'twitter' => 'typo3', + 'instagram' => 'https://www.instagram.com/typo3_official/', ]; // Comment diff --git a/Configuration/TCA/tx_blog_domain_model_author.php b/Configuration/TCA/tx_blog_domain_model_author.php index eadae356..7910ecbe 100644 --- a/Configuration/TCA/tx_blog_domain_model_author.php +++ b/Configuration/TCA/tx_blog_domain_model_author.php @@ -200,6 +200,15 @@ ], 'l10n_mode' => 'exclude', ], + 'instagram' => [ + 'label' => $ll . 'tx_blog_domain_model_author.instagram', + 'config' => [ + 'type' => 'input', + 'size' => 30, + 'eval' => '', + ], + 'l10n_mode' => 'exclude', + ], 'profile' => [ 'label' => $ll . 'tx_blog_domain_model_author.profile', 'config' => [ @@ -292,6 +301,7 @@ twitter, linkedin, xing, + instagram, profile, --div--;' . $ll . 'tx_blog_domain_model_author.tab_blog, posts, diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index af5d24f4..4703e773 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -156,19 +156,22 @@ - + About the Author - + Website - + Twitter - + + Instagram + + LinkedIn - + Xing diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index f25909cf..a4738a4f 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -229,6 +229,9 @@ XING profile URL + + Instagram profile URL + Author profile URL (used for schema.org markup) diff --git a/Resources/Private/Partials/General/SocialIcons.html b/Resources/Private/Partials/General/SocialIcons.html index d32258a9..eccd1661 100644 --- a/Resources/Private/Partials/General/SocialIcons.html +++ b/Resources/Private/Partials/General/SocialIcons.html @@ -1,15 +1,18 @@ - + - + - + + + + - + - + diff --git a/Resources/Private/Partials/Post/Author.html b/Resources/Private/Partials/Post/Author.html index 8239e745..30a884ba 100644 --- a/Resources/Private/Partials/Post/Author.html +++ b/Resources/Private/Partials/Post/Author.html @@ -33,6 +33,14 @@ + + +