|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Cowglow\InstagramGallery\Infrastructure; |
|
4
|
|
|
|
|
5
|
|
|
|
|
6
|
|
|
class DispatchController |
|
7
|
|
|
{ |
|
8
|
|
|
/** |
|
9
|
|
|
* Instance of Class |
|
10
|
|
|
* @var null |
|
11
|
|
|
*/ |
|
12
|
|
|
protected static $instance = null; |
|
13
|
|
|
|
|
14
|
|
|
public function __invoke($JSON_Object) |
|
15
|
|
|
{ |
|
16
|
|
|
print_r($JSON_Object); |
|
17
|
|
|
} |
|
18
|
|
|
|
|
19
|
|
|
public function __construct($params) |
|
|
|
|
|
|
20
|
|
|
{ |
|
21
|
|
|
|
|
22
|
|
|
$rootDirectory = dirname(dirname(dirname(__DIR__))).DIRECTORY_SEPARATOR; |
|
23
|
|
|
include_once $rootDirectory.'assets'.DIRECTORY_SEPARATOR.'partials'.DIRECTORY_SEPARATOR.'header.php'; |
|
24
|
|
|
include_once $rootDirectory.'assets'.DIRECTORY_SEPARATOR.'partials'.DIRECTORY_SEPARATOR.'footer.php'; |
|
25
|
|
|
|
|
26
|
|
|
// $grams = array_reverse($params); |
|
|
|
|
|
|
27
|
|
|
// |
|
28
|
|
|
echo 'one'; |
|
29
|
|
|
|
|
30
|
|
|
// $counter = 0; |
|
|
|
|
|
|
31
|
|
|
// while ($counter < count($grams)) { |
|
32
|
|
|
// if ($counter % 3 === 0) { |
|
33
|
|
|
// echo '<div class="row">'; |
|
34
|
|
|
// } |
|
35
|
|
|
// $gram = $grams[$counter]; |
|
36
|
|
|
// ?> |
|
37
|
|
|
<!-- <div class="col-lg-4">--> |
|
38
|
|
|
<!-- <blockquote--> |
|
39
|
|
|
<!-- class="instagram-media"--> |
|
40
|
|
|
<!-- data-instgrm-version="7"--> |
|
41
|
|
|
<!-- style="--> |
|
42
|
|
|
<!-- background:#FFF;--> |
|
43
|
|
|
<!-- border:0;--> |
|
44
|
|
|
<!-- border-radius:3px;--> |
|
45
|
|
|
<!-- box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15);--> |
|
46
|
|
|
<!-- margin: 1px;--> |
|
47
|
|
|
<!-- max-width:658px;--> |
|
48
|
|
|
<!-- padding:0;--> |
|
49
|
|
|
<!-- width:99.375%;--> |
|
50
|
|
|
<!-- width:-webkit-calc(100% - 2px);--> |
|
51
|
|
|
<!-- width:calc(100% - 2px);">--> |
|
52
|
|
|
<!-- <div style="padding:8px;">--> |
|
53
|
|
|
<!-- <div style="--> |
|
54
|
|
|
<!-- background:#F8F8F8;--> |
|
55
|
|
|
<!-- line-height:0;--> |
|
56
|
|
|
<!-- margin-top:40px;--> |
|
57
|
|
|
<!-- padding:28.194444444444443% 0;--> |
|
58
|
|
|
<!-- text-align:center;--> |
|
59
|
|
|
<!-- width:100%;">--> |
|
60
|
|
|
<!-- <div style="--> |
|
61
|
|
|
<!-- background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC);--> |
|
62
|
|
|
<!-- display:block;--> |
|
63
|
|
|
<!-- height:44px;--> |
|
64
|
|
|
<!-- margin:0 auto -44px;--> |
|
65
|
|
|
<!-- position:relative;--> |
|
66
|
|
|
<!-- top:-22px;--> |
|
67
|
|
|
<!-- width:44px;">--> |
|
68
|
|
|
<!-- </div>--> |
|
69
|
|
|
<!-- </div>--> |
|
70
|
|
|
<!-- <p style="--> |
|
71
|
|
|
<!-- color:#c9c8cd;--> |
|
72
|
|
|
<!-- font-family:Arial,sans-serif;--> |
|
73
|
|
|
<!-- font-size:14px;--> |
|
74
|
|
|
<!-- line-height:17px;--> |
|
75
|
|
|
<!-- margin-bottom:0;--> |
|
76
|
|
|
<!-- margin-top:8px;--> |
|
77
|
|
|
<!-- overflow:hidden;--> |
|
78
|
|
|
<!-- padding:8px 0 7px;--> |
|
79
|
|
|
<!-- text-align:center;--> |
|
80
|
|
|
<!-- text-overflow:ellipsis;--> |
|
81
|
|
|
<!-- white-space:nowrap;">--> |
|
82
|
|
|
<!-- <a href="https://www.instagram.com/p/--><?php //echo $gram; ?><!--"--> |
|
83
|
|
|
<!-- style="color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none;"--> |
|
84
|
|
|
<!-- target="_blank">Loading...</a>--> |
|
85
|
|
|
<!-- </p>--> |
|
86
|
|
|
<!-- </div>--> |
|
87
|
|
|
<!-- </blockquote>--> |
|
88
|
|
|
<!-- </div>--> |
|
89
|
|
|
<!-- --><?php |
|
90
|
|
|
// $counter++; |
|
|
|
|
|
|
91
|
|
|
// if ($counter % 3 === 0) { |
|
92
|
|
|
// echo '</div>'; |
|
93
|
|
|
// } |
|
94
|
|
|
// } |
|
95
|
|
|
|
|
96
|
|
|
} |
|
97
|
|
|
} |
|
98
|
|
|
|
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.