-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
687 lines (613 loc) · 26.8 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
<?php
/**
* Created by PhpStorm.
* User: sourabh
* Date: 28/8/16
* Time: 9:39 PM
*/
ob_start();
require_once ('fbconfig.php');
require_once __DIR__ . '/vendor/autoload.php';
if(!session_id()){
session_start();
}
// echo session_id();
?>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<title>Facebook Albums</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="google-site-verification" content="2uAX5gLSPgsR0L1iM37-eZGUdiH0-rZQtz2-HHlQuoo" />
<meta property="og:url" content="https://yourfacebookimages.herokuapp.com" />
<meta property="og:type" content="website" />
<meta property="fb:app_id" content="1733591630236331" />
<meta property="og:title" content="Facebook Album App" />
<meta property="og:description" content="Get all of your Album photos in one place and download it later." />
<meta property="og:image" content="http://www.telegraph.co.uk/content/dam/technology/2016/07/01/102002782-facebook-xlarge_trans_NvBQzQNjv4BqhasgUMiR-rxiRxu9qBoVLQpcDfsC-seRM-lm2nZ7XJA.jpg" />
<link rel="stylesheet" type="text/css" href="libs/resources/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://blueimp.github.io/Gallery/css/blueimp-gallery.min.css"/>
<link rel="stylesheet" href="libs/resources/gallery_css/bootstrap-image-gallery.min.css"/>
<script src="//fast.eager.io/cVEwvLt7my.js"></script>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Nunito:300);
body { font-family: "Nunito", sans-serif; font-size: 15px; }
a { text-decoration: none; }
sup { font-size: 36px; font-weight: 100; line-height: 55px; }
.button
{
text-transform: uppercase;
letter-spacing: 2px;
text-align: center;
color: #0C5;
font-size: 15px;
font-family: "Nunito", sans-serif;
font-weight: 500;
margin: 5em auto;
position: inherit;
top: 50%; right:0; bottom:0; left:0;
padding: 20px 10px;
width: 300px;
height:60px;
background: #0C5;
border: 2px solid #0D6;
border-radius: 10px;
color: #FFF;
overflow: hidden;
transition: all 0.5s;
}
.navbar{
background-color: #fff;
border: none;
border-radius: 0px;
}
.button:hover, .button:active
{
text-decoration: none;
color: black;
border-color: #0C5;
background: #FFFFFF;
}
.button span
{
display: inline-block;
position: relative;
padding-right: 0;
transition: padding-right 0.5s;
}
.button span:after
{
content: ' ';
position: absolute;
top: 0;
right: -18px;
opacity: 0;
width: 10px;
height: 10px;
margin-top: -6px;
background: rgba(0, 0, 0, 0);
border: 3px solid #FFF;
border-top: none;
border-right: none;
transition: opacity 0.5s, top 0.5s, right 0.5s;
transform: rotate(-135deg);
}
.button:hover span, .button:active span
{
padding-right: 30px;
}
.button:hover span:after, .button:active span:after
{
transition: opacity 0.5s, top 0.5s, right 0.5s;
opacity: 1;
border-color: #0C5;
right: 0;
top: 50%;
}
body{
background: url('https://themechangers.files.wordpress.com/2014/11/website-design-background1.png') no-repeat center center fixed;
background-size: cover;
background-repeat: no-repeat;
}
.logo{
float: left;
margin-top: -12px;
}
.container-fluid{
border-bottom-style: solid;
border-bottom: 1px solid green;
}
.footer{
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
background-color: #f5f5f5;
display: block;
}
.thumbnail:hover, .thumbnail:active {
box-shadow: 0px 0px 30px -2px rgba(0,0,0,0.75);
}
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-6551970076619458",
enable_page_level_ads: true
});
</script>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '441901622832654'); // Insert your pixel ID here.
fbq('track', 'PageView');
fbq('track', 'ViewContent');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=441901622832654&ev=PageView&noscript=1"
/></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->
</head>
<body>
<!-- Modal Donation-->
<div class="modal fade" id="donate" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Want to Donate?</h4>
</div>
<div class="modal-body">
<h4>It will be very nice if you can donate. Thank you !!</h4>
<!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_tipjar_inline"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<?php
\Facebook\FacebookSession::setDefaultApplication($app_id,$app_secret);
$helper = $fb->getRedirectLoginHelper(); /*The FacebookRedirectLoginHelper
makes use of sessions to store a CSRF value.*/
$_SESSION['FBRLH_state']=$_GET['state'];
$permissions = ['email','user_photos'];
$login_url = $helper->getLoginUrl('https://yourfacebookimages.herokuapp.com/#-callback.php',$permissions);
// echo "LOGIN URL".$login_url;
if(!empty($_SESSION['facebook_access_token']) && isset($_SESSION['facebook_access_token'])) {
// echo "facebook_access_token";
$accessToken = $_SESSION['facebook_access_token'];
$fbApp = new \Facebook\FacebookApp($app_id,$app_secret);
$request = new \Facebook\FacebookRequest( $fbApp,$accessToken, 'GET', '/me?fields=id,name' );
try{
$response = $fb->getClient()->sendRequest($request);
} catch (\Facebook\Exceptions\FacebookResponseException $e){
// When Graph returns an error
echo "Graph returned an error : " .$e->getMessage();
exit;
} catch (\Facebook\Exceptions\FacebookSDKException $e){
// When Validation fails or some other issues
// echo "here we go";
echo "Facebook SDK returned an error : " .$e->getMessage();
exit;
}
$user = $response->getGraphUser();
$user_id = $user['id'];
$user_name = $user['name'];
//echo $user_id;
//echo $user_name;
?>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">Facebook Album</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs">
<ul class="nav navbar-nav">
<li><a href="index.php">Home <span class="sr-only">(current)</span></a></li>
<li><a href="#donate" role="button" data-toggle="modal">Donate?</a></li>
</ul>
<!-- code for the right side of the navbar -->
<div class="nav navbar-nav navbar-right">
<div class="dropdown">
<button class="btn btn-success dropdown-toggle" id="menu1" type="button" data-toggle="dropdown">
<?php $user_photo = 'https://graph.facebook.com/'.$user_id.'/picture';?>
<img src="<?php echo $user_photo;?>" id="user_photo" class="img-circle" />
<strong><?php echo $user_name;?></strong>
<span class="caret"></span>
</button>
<!-- <a href="logout.php" class="btn btn-lg btn-danger">Logout</a>-->
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
<li><a href="logout.php" style="padding: 20px; color: red; ">Log out</a></li>
</ul>
</div>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<script>
fbq('track', 'ViewContent', {
value: 500000,
currency: 'INR'
});
</script>
<!-- Main Body-->
<div class="container">
<div class="panel-group">
<div class="panel panel-primary">
<div class="panel-heading">Facebook Photo Album</div>
<div class="panel-body" style="margin: 10px;">
<div class="row">
<!-- The Bootstrap Image Gallery lightbox, should be a child element of the document body -->
<div id="blueimp-gallery" class="blueimp-gallery">
<!-- The container for the modal slides -->
<div class="slides"></div>
<!-- Controls for the borderless lightbox -->
<h3 class="title"></h3>
<a class="prev">‹</a>
<a class="next">›</a>
<a class="close">×</a>
<a class="play-pause"></a>
<ol class="indicator"></ol>
<!-- The modal dialog, which will be used to wrap the lightbox content -->
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" aria-hidden="true">×</button>
<h4 class="modal-title"></h4>
</div>
<div class="modal-body next"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left prev">
<span class="glyphicon glyphicon-chevron-left"></span>
Previous
</button>
<button type="button" class="btn btn-primary next">
Next
<i class="glyphicon glyphicon-chevron-right"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<?php
// Graph API Request
$request_albums = new \Facebook\FacebookRequest( $fbApp,$accessToken, 'GET', '/'.$user['id'].'/albums?fields=id,cover_photo,from,name');//'/me/albums?fields=id,cover_photo,from,name');
try{
$response_albums = $fb->getClient()->sendRequest($request_albums);
} catch (\Facebook\Exceptions\FacebookResponseException $e){
// Graph error as usual !!
echo "Graph Returned error : " .$e->getMessage();
} catch (\Facebook\Exceptions\FacebookSDKException $e){
// SDK Error
echo "Facebook SDK error : " .$e->getMessage();
}
$user_albums = $response_albums->getGraphEdge();
$user_albums = json_decode($user_albums,true);
$_GET['user_albums_download'] = $user_albums;
if(!empty($user_albums)) {
?>
<h2>Facebook Photo Album</h2>
<ul class="nav nav-tabs">
<?php
foreach ($user_albums as $album) {
?>
<li>
<a href='?album_name=<?php echo $album['name']; ?>&album_id=<?php echo $album['id']; ?>'><?php echo $album['name']; ?></a>
</li>
<?php
}
?>
</ul>
<div class="tab-content">
<?php
if (isset($_GET['album_name'])){
$album_name = $_GET['album_name'];
?>
<div id="<?php echo $album_name ?>" class="tab-pane fade in active">
<h3><?php echo $_GET['album_name']; ?></h3>
<p>
<?php
foreach ($user_albums as $album){
$album = (array)$album;
$request_albums_photos = new \Facebook\FacebookRequest($fbApp, $accessToken, 'GET', '/' . $album['id'] . '/photos?fields=source');
try {
$response_albums_photos = $fb->getClient()->sendRequest($request_albums_photos);
} catch (\Facebook\Exceptions\FacebookResponseException $e) {
echo "Graph Returned error : " . $e->getMessage();
} catch (\Facebook\Exceptions\FacebookSDKException $e) {
// SDK Error
echo "Facebook SDK error : " . $e->getMessage();
}
$albums_photos = $response_albums_photos->getGraphEdge()->asArray();
// echo die($albums_photos_download);
if (!empty($albums_photos)) {
foreach ($albums_photos as $album_photo) {
$album_photo = (array)$album_photo;
$album_cover_photo = $album_photo['source'];
// echo $album_photo['source'];
if ($album_name == $album['name']){
?>
<div class="col-md-4">
<ul id="<?php echo $album['id']; ?>"
class="list-unstyled row albm-thmb thmb-light">
<li data-src="<?php echo $album_cover_photo; ?>">
<div class="thumbnail no-border center" style="border: 2px solid #2196F3; margin:10px; border-radius:10px;">
<div id="links">
<a href="<?php echo $album_photo['source']; ?>"
rel="<?php echo $album['id']; ?>"
title="<?php echo $album['name']; ?>"
data-gallery>
<img
src="<?php echo $album_cover_photo; ?>"
class="thm img-responsive img-rounded"
alt="<?php echo $album['name']; ?>"
style="height: 200px; width: 200px;"/>
</a>
<div class="caption">
<div class="well">
<div class="text-center">
<form method="post" action="#">
<input type="checkbox" class="photo_selected"
name="checkbox[]"
value="<?php echo $album_photo['source']; ?>"/> Select
<!--<a href="#" title="Move to Picasa"
class="btn btn-md btn-primary"><span
class="glyphicon glyphicon-new-window"></span></a>-->
<a href="<?php echo $album_photo['source']; ?>" download
title="Download" class="btn btn-md btn-success pull-right"><span
class="glyphicon glyphicon-download"></span></a>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<?php
}
}
}
}
}
if (isset($_GET['album_name'])) {
?>
</p>
</div>
</div>
</div>
<div class="well text-center">
<button class="btn btn-lg btn-success" name="download_button"><span
class="glyphicon glyphicon-download"></span> Download Selected
</button>
<button class="btn btn-lg btn-info" name="download_button_all"><span
class="glyphicon glyphicon-download-alt"></span> Download All
</button>
<button class="btn btn-lg btn-warning" name="move_album_picasa"><span
class="glyphicon glyphicon-new-window"></span> Move Album to Picasa
</button>
</div>
</form>
<div
class="fb-like text-right"
data-share="true"
data-width="450"
data-show-faces="true">
</div>
</div>
</div>
</div>
</div>
<?php
}
}
if(!isset($_GET['album_name'])){
echo "<div class='text-center jumbotron'><h2>Select an Album</h2></div>";
}
}
else
{
?>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">Facebook Album</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs">
<ul class="nav navbar-nav">
<li class="active"><a href="index.php">Home <span class="sr-only">(current)</span></a></li>
<!-- <li><a href="#about" role="button" data-toggle="modal">About</a></li> -->
<li><a href="#donate" role="button" data-toggle="modal">Donate?</a></li>
</ul>
<!-- code for the right side of the navbar -->
<ul class="nav navbar-nav navbar-right">
<li><a href="#contact" role="button" data-toggle="modal">Contact Me</a>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<!-- Modal Contact-->
<div class="modal fade" id="contact" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Social Links</h4>
</div>
<div class="modal-body">
<p><a href="https://www.facebook.com/sourabhjagtap08" target="_blank"><img src="http://marketingland.com/wp-content/ml-loads/2013/04/Facebook-Home-Logo-300x300.png" class="img-circle" style="height: 60px; width: 60px;"></a>
<a href="https://in.linkedin.com/in/sourabh-jagtap-b4a394b3" target="_blank"><img src="https://cdn3.iconfinder.com/data/icons/free-social-icons/67/linkedin_circle_color-512.png" class="img-circle" style="height: 65px; width: 65px;"></a>
<a href="https://github.com/sourabhjagtap95" target="_blank"><img src="https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png" class="img-circle" style="height: 75px; width: 75px;"></a>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal About-->
<div class="modal fade" id="about" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">About this Challenge</h4>
</div>
<div class="modal-body">
<p>
<h4>This is an assignment given by <a href="https://careers.rtcamp.com/web-developers/assignments/#facebook-challenge">RTCamp</a>
which displays all of your facebook photos from facebook album and allows you to download each photo of a particular album.</h4>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="text-center">
<h2 style="font-size: 75px; color: #0DF; margin-bottom: 50px;">Facebook Album App</h2>
<div style="padding-top: 100px;">
<a class="button" href="<?php echo $login_url;?>"><span>Connect with Facebook</span></a>
</div>
</div>
</div>
<?php
}
?>
<?php
if(isset($_POST['download_button'])) {
if (isset($_POST['checkbox'])) {
$photos = $_POST['checkbox'];
$photos_directory = "libs/resources/downloaded_photos/album_photos/";
$zip = new ZipArchive();
$zip_folder = "libs/resources/downloaded_photos/album_photos/".uniqid();
$zip_status = $zip->open($zip_folder,ZipArchive::CREATE);
foreach ($photos as $photo_selected) {
$photos_directory = "libs/resources/downloaded_photos/album_photos";
if (!file_exists($photos_directory))
mkdir($photos_directory, 0777);
else {
if($zip_status) {
$zip->addFromString(uniqid().'.jpeg',file_get_contents($photo_selected));
}
}
}
$zip->close();
header('Content-Disposition: attachment; filename="save_as.zip"');
header('Content-type: application/zip');
ob_end_clean();
readfile($zip_folder);
}
else
echo "<script>alert('Please select a photo');</script>";
}
else if(isset($_POST['download_button_all'])) {
$zip = new ZipArchive();
$zip_folder = "libs/resources/downloaded_photos/album_photos/".uniqid();
$zip_status = $zip->open($zip_folder,ZipArchive::CREATE);
$user_albums_download = $_GET['user_albums_download'];
foreach ($user_albums_download as $album) {
if ($album['name'] == $album_name) {
$album = (array)$album;
$request_albums_photos = new \Facebook\FacebookRequest($fbApp, $accessToken, 'GET', '/' . $album['id'] . '/photos?fields=source');
try {
$response_albums_photos = $fb->getClient()->sendRequest($request_albums_photos);
} catch (\Facebook\Exceptions\FacebookResponseException $e) {
echo "Graph Returned error : " . $e->getMessage();
} catch (\Facebook\Exceptions\FacebookSDKException $e) {
// SDK Error
echo "Facebook SDK error : " . $e->getMessage();
}
$albums_photos = $response_albums_photos->getGraphEdge()->asArray();
if (!empty($albums_photos)) {
foreach ($albums_photos as $albums_photo_all) {
$photos_directory = "libs/resources/downloaded_photos/album_photos";
if (!file_exists($photos_directory))
mkdir($photos_directory, 0777);
else {
if($zip_status) {
$zip->addFromString(uniqid().'.jpeg',file_get_contents($albums_photo_all['source']));
// file_put_contents($photos_directory . "/" . uniqid() . ".jpg", fopen($albums_photo_all['source'], 'r'));
}
}
}
$zip->close();
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename="All_Photos.ZIP"');
ob_end_clean();
readfile($zip_folder);
}
}
}
}
else if(isset($_POST['move_album_picasa'])){
if(!isset($_GET['google_session'])){
$_SESSION['album_name'] = $_GET['album_name'];
$_SESSION['album_id'] = $_GET['album_id'];
echo "<script>window.location.href='libs/move_to_picasa.php';</script>";
}
}
?>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-91026710-1', 'auto');
ga('send', 'pageview');
</script>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1733591630236331',
xfbml : true,
version : 'v2.12'
});
FB.AppEvents.logPageView();
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script src="libs/resources/js/jquery-3.1.0.min.js"></script>
<script src="libs/resources/js/bootstrap.min.js"></script>
<script src="//blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js"></script>
<!--<script src="libs/resources/gallery_js/bootstrap-image-gallery.min.js"></script>-->
<!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-59b67e1c105da68d"></script>
<!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-59b67e1c105da68d"></script>
</body>
</html>