diff --git a/metatag_twitter_cards/metatag_twitter_cards.metatag.inc b/metatag_twitter_cards/metatag_twitter_cards.metatag.inc index 1e5a056..860ce23 100644 --- a/metatag_twitter_cards/metatag_twitter_cards.metatag.inc +++ b/metatag_twitter_cards/metatag_twitter_cards.metatag.inc @@ -64,8 +64,10 @@ function metatag_twitter_cards_metatag_info() { '#type' => 'select', '#options' => array( 'summary' => t('Summary (default)'), + 'summary_large_image' => t('Summary with large image'), 'photo' => t('Photo'), 'player' => t('Media player'), + 'gallery' => t('Gallery') ), '#empty_option' => t('- None -'), ), @@ -165,6 +167,42 @@ function metatag_twitter_cards_metatag_info() { '#theme' => 'metatag_twitter_cards', ), ); + $info['tags']['twitter:image0'] = array( + 'label' => t('1st Gallery Image '), + 'description' => t('A URL to the image representing the first photo in your gallery.'), + 'class' => 'DrupalTextMetaTag', + 'group' => 'twitter-cards', + 'element' => array( + '#theme' => 'metatag_twitter_cards', + ), + ); + $info['tags']['twitter:image1'] = array( + 'label' => t('2nd Gallery Image '), + 'description' => t('A URL to the image representing the second photo in your gallery.'), + 'class' => 'DrupalTextMetaTag', + 'group' => 'twitter-cards', + 'element' => array( + '#theme' => 'metatag_twitter_cards', + ), + ); + $info['tags']['twitter:image2'] = array( + 'label' => t('3rd Gallery Image '), + 'description' => t('A URL to the image representing the third photo in your gallery.'), + 'class' => 'DrupalTextMetaTag', + 'group' => 'twitter-cards', + 'element' => array( + '#theme' => 'metatag_twitter_cards', + ), + ); + $info['tags']['twitter:image3'] = array( + 'label' => t('4th Gallery Image '), + 'description' => t('A URL to the image representing the fourth photo in your gallery.'), + 'class' => 'DrupalTextMetaTag', + 'group' => 'twitter-cards', + 'element' => array( + '#theme' => 'metatag_twitter_cards', + ), + ); $info['tags']['twitter:player'] = array( 'label' => t('Media player URL'), 'description' => t('The full URL for loading a media player. Required when using a Media player card.'),