Skip to content

Commit

Permalink
fix layouts again
Browse files Browse the repository at this point in the history
  • Loading branch information
danwdart committed Jan 19, 2018
1 parent 8390525 commit 27e0fdc
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 40 deletions.
8 changes: 4 additions & 4 deletions src/php/Chaplin/Module/Api/views/scripts/index/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
<div class="row text-center">
<?php foreach($this->ittNodes as $modelNode) :
foreach($modelNode->getFeaturedVideos() as $modelVideo):?>
<a href="/video/watchremote/node/<?php echo $modelNode->getNodeId()?>/id/<?php echo $modelVideo->getVideoId();?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/video/watchremote/node/<?php echo $modelNode->getNodeId()?>/id/<?php echo $modelVideo->getVideoId();?>">
<img src="<?php echo htmlentities($modelVideo->getThumbnail()).'?'.time();?>" alt="View Video"/>
<p><?php echo $modelVideo->getShortTitle();?></p>
</div>
</a>
</a>
</div>
<?php endforeach; endforeach;?>
</div>
<?php endif; ?>
40 changes: 20 additions & 20 deletions src/php/Chaplin/Module/Api/views/scripts/search/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -28,61 +28,61 @@
</h1>
<div class="row text-center">
<?php foreach($this->ittVideos as $modelVideo):?>
<a href="/video/watch/id/<?php echo $modelVideo->getVideoId();?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/video/watch/id/<?php echo $modelVideo->getVideoId();?>">
<img src="<?php echo htmlentities($modelVideo->getThumbnail());?>" alt="View Video"/>
<p><?php echo $modelVideo->getShortTitle();?></p>
</div>
</a>
</a>
</div>
<?php endforeach;?>
</div>
<div class="clearfix"></div>
<?php if ($this->ytUser) : ?>
<h2>Found YouTube user <?php echo $this->ytUser->getSnippet()->title; ?></h2>
<div class="row text-center">
<a href="/user/youtube/id/<?php echo $this->ytUser->id; ?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/user/youtube/id/<?php echo $this->ytUser->id; ?>">
<img src="<?php echo $this->ytUser->getSnippet()->thumbnails->high->url;?>" alt="View User"/>
<p><?php echo $this->ytUser->getSnippet()->title;?></p>
</div>
</a>
</a>
</div>
</div>
<div class="clearfix"></div>
<?php endif; ?>
<?php if ($this->vimeoUser) : ?>
<h2>Found Vimeo user <?php echo $this->vimeoUser['name']; ?></h2>
<div class="row text-center">
<a href="/user/vimeo/id/<?php echo substr($this->vimeoUser['uri'], 8); ?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/user/vimeo/id/<?php echo substr($this->vimeoUser['uri'], 8); ?>">
<img src="" alt="View User"/>
<p><?php echo $this->vimeoUser['name'];?></p>
</div>
</a>
</a>
</div>
</div>
<div class="clearfix"></div>
<?php endif; ?>
<h2>YouTube results for: <?php echo $this->strSearchTerm; ?></h2>
<div class="row text-center" id="youtubevids">
<?php foreach($this->videoFeed->items as $ytVideo): ?>
<a href="/video/watchyoutube/id/<?php echo $ytVideo->getId()->videoId; ?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/video/watchyoutube/id/<?php echo $ytVideo->getId()->videoId; ?>">
<img src="<?php echo htmlentities($ytVideo->getSnippet()->getThumbnails()->high->url);?>" alt="View Video"/>
<p><?php echo $ytVideo->getSnippet()->getTitle();?></p>
</div>
</a>
</a>
</div>
<?php endforeach;?>
</div>
<div class="clearfix"></div>
<h2>Vimeo results for: <?php echo $this->strSearchTerm; ?></h2>
<div class="row text-center" id="youtubevids">
<?php if (isset($this->vimeoFeed['data'])):
foreach($this->vimeoFeed['data'] as $arrVideo): ?>
<a href="/video/watchvimeo/id/<?php echo substr($arrVideo['uri'], 8); ?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/video/watchvimeo/id/<?php echo substr($arrVideo['uri'], 8); ?>">
<img src="<?php echo htmlentities($arrVideo['pictures']['sizes'][3]['link']);?>" alt="View Video"/>
<p><?php echo $arrVideo['name'];?></p>
</div>
</a>
</a>
</div>
<?php endforeach;
endif;?>
</div>
8 changes: 4 additions & 4 deletions src/php/Chaplin/Module/Api/views/scripts/search/youtube.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
* @link https://github.com/danwdart/projectchaplin
**/
foreach($this->videoFeed as $ytVideo):?>
<a href="/video/watchyoutube/id/<?php echo $ytVideo->getVideoId(); ?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/video/watchyoutube/id/<?php echo $ytVideo->getVideoId(); ?>">
<?php
$arrThumbnails = $ytVideo->getVideoThumbnails();
if (isset($arrThumbnails[0])) :?>
<img src="<?php echo htmlentities($arrThumbnails[0]['url']);?>" alt="View Video"/>
<?php endif;?>
<p><?php echo $ytVideo->getVideoTitle();?></p>
</div>
</a>
</a>
</div>
<?php endforeach;?>
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
?>
<?php if (isset($this->ittVideos['data'])):
foreach($this->ittVideos['data'] as $videoEntry):?>
<a href="/video/watchvimeo/id/<?php echo substr($videoEntry['uri'], 8);?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/video/watchvimeo/id/<?php echo substr($videoEntry['uri'], 8);?>">
<img src="<?php echo htmlentities($videoEntry['pictures']['sizes'][3]['link']);?>" alt="View Video"/>
<p><?php echo $videoEntry['name'];?></p>
</div>
</a>
</a>
</div>
<?php endforeach;
endif;?>
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
?>

<?php foreach($this->ittVideos->items as $videoEntry):?>
<a href="/video/watchyoutube/id/<?php echo $videoEntry->id->videoId;?>" data-next-page-token="<?php echo $this->ittVideos->nextPageToken; ?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/video/watchyoutube/id/<?php echo $videoEntry->id->videoId;?>" data-next-page-token="<?php echo $this->ittVideos->nextPageToken; ?>">
<img src="<?php echo htmlentities($videoEntry->getSnippet()->thumbnails->high->url);?>" alt="View Video"/>
<p><?php echo $videoEntry->getSnippet()->title;?></p>
</div>
</a>
</a>
</div>
<?php endforeach;?>
8 changes: 4 additions & 4 deletions src/php/Chaplin/Module/Api/views/scripts/user/youtube.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
</h1>
<div class="row text-center">
<?php foreach($this->ittVideos->items as $videoEntry):?>
<a href="/video/watchyoutube/id/<?php echo $videoEntry->id->videoId;?>" data-next-page-token="<?php echo $this->ittVideos->nextPageToken; ?>">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
<a href="/video/watchyoutube/id/<?php echo $videoEntry->id->videoId;?>" data-next-page-token="<?php echo $this->ittVideos->nextPageToken; ?>">
<img src="<?php echo htmlentities($videoEntry->getSnippet()->thumbnails->high->url);?>" alt="View Video"/>
<p><?php echo $videoEntry->getSnippet()->title;?></p>
</div>
</a>
</a>
</div>
<?php endforeach;?>
</div>

0 comments on commit 27e0fdc

Please sign in to comment.