Exemplo n.º 1
0
<?php

include dirname(dirname(__FILE__)) . '/vendor/autoload.php';
include dirname(__FILE__) . '/lib/functions.php';
$file = dirname(__FILE__) . '/data/videos.csv';
$videos = getVideos($file);
?>
<style>
table td {
	 vertical-align: top;
}
td.types {
	width: 300px;
}
textarea {
	width: 100%;
	height: 100px;
}
ul.no-examples li {
	font-size: 10px;
}
</style>

<h1>Video Examples</h1>
<p>The examples use the iframe if possible, and fallback to the embed object if necessary.</p>

<table><tr><td class="types">
<h2>Select Type</h2>
<ul>
<?php 
$MediaEmbed = new \MediaEmbed\MediaEmbed();
Exemplo n.º 2
0
            } else {
                $result = $obj1['data'];
            }
        }
    }
    return $result;
}
$get_access_token = file_get_contents('https://graph.facebook.com/oauth/access_token?client_id=169677393071841&client_secret=7fb529df333cb84be2eb0e545efc079a&grant_type=client_credentials');
$access_token = explode('|', $get_access_token)[1];
//fetch facebook page photos
$fb_page_id = "304229246363923";
$access_token = $get_access_token;
$limit = 25;
$offset = 0;
$photos = getPhotos($fb_page_id, $access_token, $offset, $limit, 'json');
$videos = getVideos($fb_page_id, $access_token, $offset, $limit, 'json');
// print_r($photos);
$collections = array_merge($photos, $videos);
shuffle($collections);
?>

<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
		<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
		<title>Blueprint: Google Grid Gallery</title>
		<meta name="description" content="Blueprint: Blueprint: Google Grid Gallery" />
		<meta name="keywords" content="google getting started gallery, image gallery, image grid, template, masonry" />
		<meta name="author" content="" />
Exemplo n.º 3
0
		<link href="css/styles.css" rel="stylesheet">
		<link href="css/videos.css" rel="stylesheet">

		<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->

	</head>

	<body>
		<!-- End container -->
		
		<div class="row carousel-row">
		<?php 
foreach (getVideos($_GET['section'], $_GET['year']) as $value) {
    echo "<div class=\"col-xs-8 col-xs-offset-2 slide-row\">";
    echo "<div class=\"slide-content\">";
    echo "<h4 id=\"h4" . $value["ID"] . "\">" . $value["name"] . "</h4>";
    echo "<p id=\"p" . $value["ID"] . "\">" . $value["desc"] . "</p>";
    echo "</div>";
    echo "<div class=\"slide-footer\">";
    echo "<span class=\"pull-right buttons\">";
    echo "<button class=\"btn btn-sm btn-primary\" onclick=\"parent.openUpdateVideo('" . str_replace("'", "\\'", $value["ID"]) . "','" . str_replace("'", "\\'", $value["name"]) . "','" . str_replace("'", "\\'", $value["desc"]) . "');\">Edit</button>";
    echo "<button style=\"margin-left: 5px;\" class=\"btn btn-sm btn-danger\" onclick=\"parent.openDeleteVideo('" . str_replace("'", "\\'", $value["ID"]) . "','" . str_replace("'", "\\'", $value["name"]) . "');\">Delete</button>";
    echo "</span>";
    echo "</div>";
    echo "</div>";
}
?>
		</div>