use components\Helper; ?> <?php Helper::renderStatic('main/_filterUserForm', compact('options'), false); if (!empty($userInfo)) { ?> <?php Helper::renderStatic('main/_summaryUserInfo', compact('userInfo', 'options'), false); } ?> <table border="1" align="center" cellpadding="0" cellspacing="0" id="mainTable"> <thead align="center" style="background-color: lightblue;"> <tr> <td style="width: 100px;">Link</td> <td style="width: 20px;">Type</td> <td style="width: 30px;">Likes</td> <td style="width: 30px;">Comments</td> <td style="width: 100px;">Caption</td> <td style="width: 100px;">Tags</td> <td style="width: 100px;">Create Date</td> </tr> </thead> <tbody align="center"> <?php Helper::renderStatic('main/_viewMediaMore', compact('media', 'options'), false); ?> </tbody> </table>
<?php foreach ($media as $i => $value) { ?> <?php $bgTr = ''; if ($i % 2) { $bgTr = 'background-color: lightgreen;'; } ?> <tr style="<?php echo $bgTr; ?> height: 40px;"> <td> <?php Helper::renderStatic('main/_likesDetailTables', ['media' => [$value->from], 'options' => $options]); ?> </td> <td> <?php echo $value->text; ?> </td> <td> <?php echo date('d F, Y H:i:s', $value->created_time); ?> </td> </tr> <?php }
<?php use config\Config; use components\Helper; ?> <?php Helper::renderStatic('main/_back_to_user', ['options' => $options], false); ?> <table border="1" align="center" id="followersTable"> <tr style="background-color: lightblue;"> <td>User ID</td> <td>Username</td> <td>Full Name</td> <td>Profile Picture</td> </tr> <?php foreach ($media as $i => $value) { ?> <?php $bgTr = ''; if ($i % 2) { $bgTr = 'background-color: lightgreen;'; } ?> <tr style="<?php echo $bgTr; ?> height: 40px;"> <td> <a href="<?php
/** * */ public function followsAction() { $code = Helper::requestGet('code', null); $userName = Helper::requestGet('userName', null); if ($userName) { $token = $this->getTokenByCode($code); $this->instagram->setAccessToken($token); $search = $this->instagram->searchUser($userName, self::COUNT_SEARCH_USER); $this->hasError($search); if ($search->meta->code == self::SUCCESS_RESPONSE && !empty($search->data)) { $userId = current($search->data)->id; $data = $this->instagram->getUserFollows($userId, self::COUNT_FOLLOWS_DATA); $this->hasError($data); if ($data->meta->code == self::SUCCESS_RESPONSE && !empty($data->data)) { $media = $data->data; $options = ['c' => Config::get('defaultController'), 'a' => 'follows', 'code' => $code, 'userName' => $userName]; Helper::renderStatic('main/follows', compact('media', 'options')); exit; } } } }
<?php use components\Helper; ?> <?php Helper::renderStatic('main/_back_to_user', ['options' => $options], false); ?> <table border="1" align="center" id="followersTable"> <tr style="background-color: lightblue;"> <td>User ID</td> <td>Username</td> <td>Full Name</td> <td>Profile Picture</td> </tr> <?php Helper::renderStatic('main/_followersList', compact('media', 'options'), false); ?> </table>