diff --git a/metatag_twitter_cards/metatag_twitter_cards.metatag.inc b/metatag_twitter_cards/metatag_twitter_cards.metatag.inc
index 1e5a056..0493c10 100644
--- a/metatag_twitter_cards/metatag_twitter_cards.metatag.inc
+++ b/metatag_twitter_cards/metatag_twitter_cards.metatag.inc
@@ -57,15 +57,19 @@ function metatag_twitter_cards_metatag_info() {
$info['tags']['twitter:card'] = array(
'label' => t('Twitter card type'),
- 'description' => t('Notes: no other fields are required for a Summary card, a Photo card requires the \'image\' field, while a Media player card requires the \'title\', \'description\', \'media player URL\', \'media player width\', \'media player height\' and \'image\' fields.'),
+ 'description' => t('Notes: no other fields are required for a Summary card, a Photo card requires the \'image\' field, a Media player card requires the \'title\', \'description\', \'media player URL\', \'media player width\', \'media player height\' and \'image\' fields, a Summary Card with Large Image card requires the \'Summary\' field and the \'image\' field, a Gallery Card requires all the \'Gallery Image\' fields, an App Card requires the \'Iphone app ID\' field, the \'Ipad app ID\' field and the \'Google Play app ID\' field, a Product Card requires the \'description\' field, the \'image\' field, the \'Label 1\' field, the \'Data 1\' field, the \'Label 2\' field and the \'Data 2\' field.'),
'class' => 'DrupalTextMetaTag',
'group' => 'twitter-cards',
'form' => array(
'#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'),
+ 'app' => t('App'),
+ 'product' => t('Product'),
),
'#empty_option' => t('- None -'),
),
@@ -165,6 +169,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.'),
@@ -210,5 +250,116 @@ function metatag_twitter_cards_metatag_info() {
'#theme' => 'metatag_twitter_cards',
),
);
+
+ $info['tags']['twitter:app:id:iphone'] = array(
+ 'label' => t('Iphone app ID'),
+ 'description' => t('String value, and should be the numeric representation of your app ID in the App Store.'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:app:id:ipad'] = array(
+ 'label' => t('Ipad app ID'),
+ 'description' => t('String value, should be the numeric representation of your app ID in the App Store.'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:app:id:googleplay'] = array(
+ 'label' => t('Google Play app ID'),
+ 'description' => t('String value, and should be the numeric representation of your app ID in Google Play.'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:app:url:iphone'] = array(
+ 'label' => t('Iphone app\'s custom URL scheme'),
+ 'description' => t('Your app\'s custom URL scheme (you must include "://" after your scheme name).'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:app:url:ipad'] = array(
+ 'label' => t('Ipad app\'s custom URL scheme'),
+ 'description' => t('Your app\'s custom URL scheme (you must include "://" after your scheme name).'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:app:country'] = array(
+ 'label' => t('App Store Country'),
+ 'description' => t('If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:app:url:googleplay'] = array(
+ 'label' => t('Google Play\'s Url scheme'),
+ 'description' => t('Your app\'s custom URL scheme.'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:label1'] = array(
+ 'label' => t('Label 1'),
+ 'description' => t('This field expects a string, and you can specify values for labels such as price, items in stock, sizes, etc.'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:data1'] = array(
+ 'label' => t('Data 1'),
+ 'description' => t('This field expects a string, and allows you to specify the types of data you want to offer (price, country, etc.).'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:label2'] = array(
+ 'label' => t('Label 2'),
+ 'description' => t('This field expects a string, and you can specify values for labels such as price, items in stock, sizes, etc.'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
+ $info['tags']['twitter:data2'] = array(
+ 'label' => t('Data 2'),
+ 'description' => t('This field expects a string, and allows you to specify the types of data you want to offer (price, country, etc.).'),
+ 'class' => 'DrupalTextMetaTag',
+ 'group' => 'twitter-cards',
+ 'element' => array(
+ '#theme' => 'metatag_twitter_cards'
+ ),
+ );
+
return $info;
}