{"id":7,"date":"2008-11-19T11:26:50","date_gmt":"2008-11-19T16:26:50","guid":{"rendered":"http:\/\/www.mrsoftie.net\/?page_id=7"},"modified":"2012-11-19T15:17:40","modified_gmt":"2012-11-19T20:17:40","slug":"gallery","status":"publish","type":"page","link":"https:\/\/www.obxlabs.net\/mrsoftie\/gallery\/","title":{"rendered":"Gallery"},"content":{"rendered":"<p><?php error_reporting(E_ALL &#038; ~E_NOTICE); ?><\/p>\n<div id=\"gallery\">\n<h4  class=\"top\">Images<\/h4>\n<p><!-- flickr::::see header for JS functions --><\/p>\n<div class=\"photoset\">\n<table>\n<tbody>\n\t\t\t<\/tbody>\n<\/table><\/div>\n<p><!-- end flickr --><\/p>\n<h4>Videos<\/h4>\n<table>\n\t\t\t\t\t<?php\n\n\t\t\t\t\t\t$vimeo_channel = '66030';\n\t\t\t\t\t\t$api_endpoint = 'http:\/\/vimeo.com\/api\/v2\/channel\/' . $vimeo_channel . '\/videos.xml';\n\t\t\t\t\t\t$videos = simplexml_load_file($api_endpoint);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$counter = 0; \/\/ to keep track of table rows\n\t\t\t\t\t\tforeach ($videos->video as $video) {<br \/>\n\t\t\t\t\t\t\t$counter = ($counter++ % 4) + 1;<\/p>\n<p>\t\t\t\t\t\t\t\/\/ split the title of the video into title and author (delimiter &#8221; by &#8220;)<br \/>\n\t\t\t\t\t\t\t$title = $video->title;<br \/>\n\t\t\t\t\t\t\t$pos = strpos($title, &#8221; by &#8220;);<br \/>\n\t\t\t\t\t\t\t$author = substr($title, $pos+4, strlen($title));<br \/>\n\t\t\t\t\t\t\t$title = substr($title, 0, $pos);<br \/>\n\t\t\t\t\t?><\/p>\n<p>\t\t\t\t\t<?php if ($counter == 0) echo \"\n\n<tr>&#8220;; ?><\/p>\n<td>\n<div class='item'>\n\t\t\t\t\t\t<a rel=\"shadowbox[Videos];width=<?= $video->width ?>;height=<?= $video->height ?>&#8221; title=&#8221;<?= $video->title ?>&#8221; href=&#8221;gallery.php#<?= $video->id ?>&#8221;><br \/>\n\t\t\t\t\t\t\t<img decoding=\"async\" src=\"<?= $video->thumbnail_large?> &#8221; \/><br \/>\n\t\t\t\t\t\t<\/a><\/p>\n<p class='title'><?= $title ?><\/p>\n<p class='author'><?= $author ?><\/p>\n<\/p><\/div>\n<\/td>\n<p>\t\t\t\t\t<?php if ($counter == 4) echo \"<\/tr>\n<p>&#8220;; ?><\/p>\n<p>\t\t\t\t\t<!-- Hidden div to be displayed inside the shadowbox --><\/p>\n<div id=\"<?= $video->id ?>&#8221; class=&#8221;hidden&#8221;><object width=\"<?= $video->width ?>&#8221; height=&#8221;<?= $video->height ?>&#8221;><param name=\"allowfullscreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"movie\" value=\"http:\/\/vimeo.com\/moogaloop.swf?clip_id=<?= $video->id ?>&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1&#8243; \/><embed src=\"http:\/\/vimeo.com\/moogaloop.swf?clip_id=<?= $video->id ?>&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1&#8243; type=&#8221;application\/x-shockwave-flash&#8221; allowfullscreen=&#8221;true&#8221; allowscriptaccess=&#8221;always&#8221; width=&#8221;<?= $video->width ?>&#8221; height=&#8221;<?= $video->height ?>&#8221;><\/embed><\/object><\/div>\n<p>\t\t\t\t\t<?php\n\t\t\t\t\t\t}\n\t\t\t\t\t?><\/p>\n<tr>\n<td>\n<div class=\"item\" style=\"\">\n\t\t\t\t\t\t<a href=\"http:\/\/www.youtube.com\/v\/UmTwHYggzmk&#038;rel=1&#038;autoplay=1\" rel=\"shadowbox;width=420;height=315;player=swf\"  ><br \/>\n\t\t\t\t\t\t\t<img decoding=\"async\" src=\"http:\/\/img.youtube.com\/vi\/UmTwHYggzmk\/0.jpg\"><br \/>\n\t\t\t\t\t\t<\/a><\/p>\n<p class=\"title\">les-ateliers-angus<\/p>\n<p class=\"author\">Line Dezainde<\/p>\n<\/p>\n<\/div>\n<\/td>\n<\/tr>\n<\/table><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Images Videos<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-7","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.obxlabs.net\/mrsoftie\/wp-json\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.obxlabs.net\/mrsoftie\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.obxlabs.net\/mrsoftie\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.obxlabs.net\/mrsoftie\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.obxlabs.net\/mrsoftie\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":128,"href":"https:\/\/www.obxlabs.net\/mrsoftie\/wp-json\/wp\/v2\/pages\/7\/revisions"}],"predecessor-version":[{"id":795,"href":"https:\/\/www.obxlabs.net\/mrsoftie\/wp-json\/wp\/v2\/pages\/7\/revisions\/795"}],"wp:attachment":[{"href":"https:\/\/www.obxlabs.net\/mrsoftie\/wp-json\/wp\/v2\/media?parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}