$sitesSampleApp = new SitesSampleApp($familyGraph, $sampleIndividualId, $requestedIndividualId); $sampleAppData = $sitesSampleApp->getData(); $isUserLoggedIn = $sampleAppData['isUserLoggedIn']; $currentUserName = $sampleAppData['currentUserName']; $loginUrl = $sampleAppData['loginUrl']; $logoutUrl = $_SERVER['PHP_SELF'] . '?logout'; if (!isset($sampleAppData['exception'])) { $memberships = $sampleAppData['memberships']; } else { /** @var $exception FamilyGraphException */ $exception = $sampleAppData['exception']; $errorDescription = $exception->getType() . ' ' . $exception->getMessage(); } // Initialize the sample application's common viewer utility which contains utility functions that are common for the samples require_once '../CommonViewerUtility.php'; $commonViewerUtility = new CommonViewerUtility(); ?> <!doctype html> <html> <head> <title>Sites Sample App</title> <style> body, td { font-family: arial; font-size: 13px; color: #333; line-height: 18px; } a { color: #3B5998; }
$isUserLoggedIn = $sampleAppData['isUserLoggedIn']; $currentUserName = $sampleAppData['currentUserName']; $loginUrl = $sampleAppData['loginUrl']; $logoutUrl = $_SERVER['PHP_SELF'] . '?logout'; if (!isset($sampleAppData['exception'])) { $individual = $sampleAppData['individual']; $taggedFaces = $sampleAppData['taggedFaces']; $nTaggedFaces = count($taggedFaces); } else { /** @var $exception FamilyGraphException */ $exception = $sampleAppData['exception']; $errorDescription = $exception->getType() . ' ' . $exception->getMessage(); } // Initialize the sample application's common viewer utility which contains utility functions that are common for the samples require_once '../CommonViewerUtility.php'; $commonViewerUtility = new CommonViewerUtility(); $thumbnailWidth = 80; $thumbnailHeight = 80; ?> <!doctype html> <html> <head> <title>Faces Sample App</title> <style> body, td { font-family: "lucida grande",tahoma,verdana,arial,sans-serif; font-size: 13px; color: #333; line-height: 18px; }
$individual = $sampleAppData['individual']; $closeFamily = $sampleAppData['closeFamily']; $individualId = $closeFamily['individualId']; $fatherId = $closeFamily['fatherId']; $motherId = $closeFamily['motherId']; $siblingIds = $closeFamily['siblingIds']; $spousesFamily = $closeFamily['spousesFamily']; $relatives = $closeFamily['relatives']; } else { /** @var $exception FamilyGraphException */ $exception = $sampleAppData['exception']; $errorDescription = $exception->getType() . ' ' . $exception->getMessage(); } // Initialize the sample application's common viewer utility which contains utility functions that are common for the samples require_once '../CommonViewerUtility.php'; $commonViewerUtility = new CommonViewerUtility(); ?> <!doctype html> <html> <head> <title>Tree Sample App</title> <style> body, td { font-family: arial; font-size: 13px; color: #333; line-height: 18px; } body {
$loginUrl = $sampleAppData['loginUrl']; $currentUrl = $_SERVER['PHP_SELF']; $logoutUrl = $currentUrl . '?logout'; if (!isset($sampleAppData['exception'])) { $individual = $sampleAppData['individual']; $rootIndividualsInAllTrees = $sampleAppData['rootIndividualsInAllTrees']; $immediateFamily = $sampleAppData['immediateFamily']; $personalPhotos = $sampleAppData['personalPhotos']; } else { /** @var $exception FamilyGraphException */ $exception = $sampleAppData['exception']; $errorDescription = $exception->getType() . ' ' . $exception->getMessage(); } // Initialize the sample application's common viewer utility which contains utility functions that are common for the samples require_once '../CommonViewerUtility.php'; $commonViewerUtility = new CommonViewerUtility(); ?> <!doctype html> <html> <head> <title>Profile Sample App</title> <style> body, td { font-family: arial; font-size: 13px; color: #333; line-height: 18px; } body {