diff --git a/examples/amp-story/amp-story-social-share.html b/examples/amp-story/amp-story-social-share.html new file mode 100644 index 000000000000..a67f7807ebc2 --- /dev/null +++ b/examples/amp-story/amp-story-social-share.html @@ -0,0 +1,176 @@ + + + + + + + + My Story with social share + + + + + + + + + + + + + Share on + WhatsApp + + + + +

Share on WhatsApp Example

+
+
+ + + + + + +

Share on Facebook Example

+
+
+ + + + + + +

Share by email Example

+
+
+ + Share with my + friends + + + + +

System share Example (btn displays if navigator.share is available)

+
+
+
+ + + + diff --git a/extensions/amp-story/1.0/test/validator-amp-story-amp-social-share.html b/extensions/amp-story/1.0/test/validator-amp-story-amp-social-share.html new file mode 100644 index 000000000000..83d31be254f3 --- /dev/null +++ b/extensions/amp-story/1.0/test/validator-amp-story-amp-social-share.html @@ -0,0 +1,101 @@ + + + + + + + + + + My Story + + + + + + + + + + + +

Content

+
+
+
+ + + diff --git a/extensions/amp-story/1.0/test/validator-amp-story-amp-social-share.out b/extensions/amp-story/1.0/test/validator-amp-story-amp-social-share.out new file mode 100644 index 000000000000..b725f0827513 --- /dev/null +++ b/extensions/amp-story/1.0/test/validator-amp-story-amp-social-share.out @@ -0,0 +1,101 @@ +PASS +| +| + + + + + + + My Story + + + + + + + + + + + +

Content

+
+
+
+ + + diff --git a/extensions/amp-story/validator-amp-story.protoascii b/extensions/amp-story/validator-amp-story.protoascii index 2de6e5875f33..1869b771fc89 100644 --- a/extensions/amp-story/validator-amp-story.protoascii +++ b/extensions/amp-story/validator-amp-story.protoascii @@ -136,6 +136,7 @@ tags: { # child_tags: { child_tag_name_oneof: "AMP-ANALYTICS" child_tag_name_oneof: "AMP-PIXEL" + child_tag_name_oneof: "AMP-SOCIAL-SHARE" child_tag_name_oneof: "AMP-STORY-ANIMATION" child_tag_name_oneof: "AMP-STORY-AUTO-ANALYTICS" child_tag_name_oneof: "AMP-STORY-CTA-LAYER"