示例#1
0
<?php

$channel = ChannelData::getById($_GET['id']);
// aui empieza ...
if ($channel != null) {
    $images = ImageData::getAllByChannel($channel->id);
    $followers = FollowerData::getByChannelId($_GET['id']);
    $url = "";
    $background = "";
    if ($channel->image != "") {
        $url = "storage/channel/{$channel->id}/profile/{$channel->image}";
    }
    if ($url != "") {
        $background = "style='background: url({$url}) center;'";
    }
    $f = null;
    if (Session::getUID() != "") {
        $f = FollowerData::existFollowerChannel(Session::getUID(), $channel->id);
    }
    ?>

<br>	<div class='row'>
		<div class="col-md-12">
				<h1 class='roboto'><?php 
    echo $channel->title;
    ?>
</h1>
				<p class="lead"><?php 
    echo $channel->description;
    ?>
</p>