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
<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject"> | |
<iframe class="video2" width="755" height="425" src="https://www.youtube.com/embed/uNDZTcmPfnU?showinfo=0"></iframe> | |
<meta itemprop="name" content="Welcome To Floor Factory"> | |
<meta itemprop="thumbnailUrl" content="http://www.floor-factory.co.uk/wp-content/themes/floor_fact/images/thumbnail.png"> | |
<meta itemprop="description" content="A short video displaying the Floor Factory Derby branch, with a rundown of facilities and range of products provided."> | |
<meta itemprop="uploadDate" content="2014-05-09"> | |
<meta itemprop="duration" content="T0M44S"> | |
</div> | |
There are lots of properties you can add to the video, however there are three in particular that are mandatory: name, thumbnailUrl, and description. |
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
<?php | |
// Detect our key devices | |
$iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod"); | |
$iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone"); | |
$iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad"); | |
$Android = stripos($_SERVER['HTTP_USER_AGENT'],"Android"); | |
// if iPad or iPhone, add a deep link to launch the Instagram iOS App | |
if( $iPod || $iPhone ){ ?> |