Пример #1
0
        /**
         * Function to display my subscriber details.
         * @return  string
         */
        public function mySubscriberTemplate()
        {
            $mySubscribeDetails = $this->mySubscribeUserDetails;
            $channelLink = channelPageLink();
            if (!empty($mySubscribeDetails)) {
                foreach ($mySubscribeDetails as $mySubscribeDetail) {
                    $jsonDetailsForSubscriber = json_decode($mySubscribeDetail->user_content, true);
                    $getProfileImage = $jsonDetailsForSubscriber['profileImage'];
                    $profileImage = $getProfileImage != '' && file_exists(APPTHA_VGALLERY_BASEDIR . "/images/channel/banner/profile/" . $getProfileImage) ? APPTHA_VGALLERY_BASEURL . "images/channel/banner/profile/" . $getProfileImage : APPTHA_VGALLERY_BASEURL . "images/channel/" . 'subs.png';
                    $subscriberLink = add_query_arg(array('ukey' => $mySubscribeDetail->user_key), $channelLink);
                    $subsName = strlen($mySubscribeDetail->user_name) > 20 ? substr($mySubscribeDetail->user_name, 0, 20) . ".." : $mySubscribeDetail->user_name;
                    $result .= '<div class="mysubscription" style="position:relative">
                <a href="' . $subscriberLink . '" style="text-decoration:none !important" target="_blank"><img src="' . $profileImage . '" style="width:160px;height:160px;"></a>
                <a href="' . $subscriberLink . '" style="text-decoration:none !important;" target="_blank"><h3 class="subscripeTitle" style="padding-left:5px;">' . $subsName . '</h3></a>
                <div class="closeSubscripe" style="cursor:pointer" onclick="closemysubscripers(this)"><img src="' . APPTHA_VGALLERY_BASEURL . 'images/channel/playerclose.png" title="Delete subscriber"></div>
                <input type="hidden" class="msid" value="' . $mySubscribeDetail->user_id . '">
		        </div>';
                }
                echo $result;
            } else {
                echo "<p class='novideostext'>" . __('No subscription', APPTHA_VGALLERY) . "</p><div style='clear:both'></div>";
            }
            exitAction('');
        }
Пример #2
0
<div class="mysubscriptionRow">
</div>
<div style="clear:both"></div>
</div>
<div class="subscripeContainer">
</div>
<?php 
if (!empty($notificationDetails) && $this->admin == true) {
    ?>
<div class="notificationContainer">
<div class="notificationRow">
<ul>
<?php 
    $notificationCount = '';
    $notificationCount = count($notificationDetails);
    $channelPageLink = channelPageLink();
    foreach ($notificationDetails as $notification) {
        $jsonDetails = json_decode($notification->user_content, true);
        $notificationImage = $jsonDetails[PROFILE_IMAGE] != '' ? APPTHA_VGALLERY_BASEURL . $profile_path . $jsonDetails[PROFILE_IMAGE] : APPTHA_VGALLERY_BASEURL . "images/channel/" . $notification_image;
        $userUrl = add_query_arg(array('ukey' => $notification->user_key), $channelPageLink);
        ?>
<li class="notificationLi" id="<?php 
        echo 'n' . $notification->user_id;
        ?>
">
<a href="<?php 
        echo $userUrl;
        ?>
" target="_blank" >
<img src="<?php 
        echo $notificationImage;