Skip to content

Commit 27e0fdc

Browse files
committed
fix layouts again
1 parent 8390525 commit 27e0fdc

6 files changed

Lines changed: 40 additions & 40 deletions

File tree

src/php/Chaplin/Module/Api/views/scripts/index/index.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444
<div class="row text-center">
4545
<?php foreach($this->ittNodes as $modelNode) :
4646
foreach($modelNode->getFeaturedVideos() as $modelVideo):?>
47-
<a href="/video/watchremote/node/<?php echo $modelNode->getNodeId()?>/id/<?php echo $modelVideo->getVideoId();?>">
48-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
47+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
48+
<a href="/video/watchremote/node/<?php echo $modelNode->getNodeId()?>/id/<?php echo $modelVideo->getVideoId();?>">
4949
<img src="<?php echo htmlentities($modelVideo->getThumbnail()).'?'.time();?>" alt="View Video"/>
5050
<p><?php echo $modelVideo->getShortTitle();?></p>
51-
</div>
52-
</a>
51+
</a>
52+
</div>
5353
<?php endforeach; endforeach;?>
5454
</div>
5555
<?php endif; ?>

src/php/Chaplin/Module/Api/views/scripts/search/index.phtml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,61 +28,61 @@
2828
</h1>
2929
<div class="row text-center">
3030
<?php foreach($this->ittVideos as $modelVideo):?>
31-
<a href="/video/watch/id/<?php echo $modelVideo->getVideoId();?>">
32-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
31+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
32+
<a href="/video/watch/id/<?php echo $modelVideo->getVideoId();?>">
3333
<img src="<?php echo htmlentities($modelVideo->getThumbnail());?>" alt="View Video"/>
3434
<p><?php echo $modelVideo->getShortTitle();?></p>
35-
</div>
36-
</a>
35+
</a>
36+
</div>
3737
<?php endforeach;?>
3838
</div>
3939
<div class="clearfix"></div>
4040
<?php if ($this->ytUser) : ?>
4141
<h2>Found YouTube user <?php echo $this->ytUser->getSnippet()->title; ?></h2>
4242
<div class="row text-center">
43-
<a href="/user/youtube/id/<?php echo $this->ytUser->id; ?>">
44-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
43+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
44+
<a href="/user/youtube/id/<?php echo $this->ytUser->id; ?>">
4545
<img src="<?php echo $this->ytUser->getSnippet()->thumbnails->high->url;?>" alt="View User"/>
4646
<p><?php echo $this->ytUser->getSnippet()->title;?></p>
47-
</div>
48-
</a>
47+
</a>
48+
</div>
4949
</div>
5050
<div class="clearfix"></div>
5151
<?php endif; ?>
5252
<?php if ($this->vimeoUser) : ?>
5353
<h2>Found Vimeo user <?php echo $this->vimeoUser['name']; ?></h2>
5454
<div class="row text-center">
55-
<a href="/user/vimeo/id/<?php echo substr($this->vimeoUser['uri'], 8); ?>">
56-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
55+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
56+
<a href="/user/vimeo/id/<?php echo substr($this->vimeoUser['uri'], 8); ?>">
5757
<img src="" alt="View User"/>
5858
<p><?php echo $this->vimeoUser['name'];?></p>
59-
</div>
60-
</a>
59+
</a>
60+
</div>
6161
</div>
6262
<div class="clearfix"></div>
6363
<?php endif; ?>
6464
<h2>YouTube results for: <?php echo $this->strSearchTerm; ?></h2>
6565
<div class="row text-center" id="youtubevids">
6666
<?php foreach($this->videoFeed->items as $ytVideo): ?>
67-
<a href="/video/watchyoutube/id/<?php echo $ytVideo->getId()->videoId; ?>">
68-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
67+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
68+
<a href="/video/watchyoutube/id/<?php echo $ytVideo->getId()->videoId; ?>">
6969
<img src="<?php echo htmlentities($ytVideo->getSnippet()->getThumbnails()->high->url);?>" alt="View Video"/>
7070
<p><?php echo $ytVideo->getSnippet()->getTitle();?></p>
71-
</div>
72-
</a>
71+
</a>
72+
</div>
7373
<?php endforeach;?>
7474
</div>
7575
<div class="clearfix"></div>
7676
<h2>Vimeo results for: <?php echo $this->strSearchTerm; ?></h2>
7777
<div class="row text-center" id="youtubevids">
7878
<?php if (isset($this->vimeoFeed['data'])):
7979
foreach($this->vimeoFeed['data'] as $arrVideo): ?>
80-
<a href="/video/watchvimeo/id/<?php echo substr($arrVideo['uri'], 8); ?>">
81-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
80+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
81+
<a href="/video/watchvimeo/id/<?php echo substr($arrVideo['uri'], 8); ?>">
8282
<img src="<?php echo htmlentities($arrVideo['pictures']['sizes'][3]['link']);?>" alt="View Video"/>
8383
<p><?php echo $arrVideo['name'];?></p>
84-
</div>
85-
</a>
84+
</a>
85+
</div>
8686
<?php endforeach;
8787
endif;?>
8888
</div>

src/php/Chaplin/Module/Api/views/scripts/search/youtube.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
* @link https://github.com/danwdart/projectchaplin
2424
**/
2525
foreach($this->videoFeed as $ytVideo):?>
26-
<a href="/video/watchyoutube/id/<?php echo $ytVideo->getVideoId(); ?>">
27-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
26+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
27+
<a href="/video/watchyoutube/id/<?php echo $ytVideo->getVideoId(); ?>">
2828
<?php
2929
$arrThumbnails = $ytVideo->getVideoThumbnails();
3030
if (isset($arrThumbnails[0])) :?>
3131
<img src="<?php echo htmlentities($arrThumbnails[0]['url']);?>" alt="View Video"/>
3232
<?php endif;?>
3333
<p><?php echo $ytVideo->getVideoTitle();?></p>
34-
</div>
35-
</a>
34+
</a>
35+
</div>
3636
<?php endforeach;?>

src/php/Chaplin/Module/Api/views/scripts/user/vimeo-partial.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
?>
2626
<?php if (isset($this->ittVideos['data'])):
2727
foreach($this->ittVideos['data'] as $videoEntry):?>
28-
<a href="/video/watchvimeo/id/<?php echo substr($videoEntry['uri'], 8);?>">
29-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
28+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
29+
<a href="/video/watchvimeo/id/<?php echo substr($videoEntry['uri'], 8);?>">
3030
<img src="<?php echo htmlentities($videoEntry['pictures']['sizes'][3]['link']);?>" alt="View Video"/>
3131
<p><?php echo $videoEntry['name'];?></p>
32-
</div>
33-
</a>
32+
</a>
33+
</div>
3434
<?php endforeach;
3535
endif;?>

src/php/Chaplin/Module/Api/views/scripts/user/youtube-partial.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
?>
2626

2727
<?php foreach($this->ittVideos->items as $videoEntry):?>
28-
<a href="/video/watchyoutube/id/<?php echo $videoEntry->id->videoId;?>" data-next-page-token="<?php echo $this->ittVideos->nextPageToken; ?>">
29-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
28+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
29+
<a href="/video/watchyoutube/id/<?php echo $videoEntry->id->videoId;?>" data-next-page-token="<?php echo $this->ittVideos->nextPageToken; ?>">
3030
<img src="<?php echo htmlentities($videoEntry->getSnippet()->thumbnails->high->url);?>" alt="View Video"/>
3131
<p><?php echo $videoEntry->getSnippet()->title;?></p>
32-
</div>
33-
</a>
32+
</a>
33+
</div>
3434
<?php endforeach;?>

src/php/Chaplin/Module/Api/views/scripts/user/youtube.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
</h1>
3333
<div class="row text-center">
3434
<?php foreach($this->ittVideos->items as $videoEntry):?>
35-
<a href="/video/watchyoutube/id/<?php echo $videoEntry->id->videoId;?>" data-next-page-token="<?php echo $this->ittVideos->nextPageToken; ?>">
36-
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
35+
<div class="thumb col-lg-3 col-md-4 col-sm-6 col-xs-6 col-xxs-12">
36+
<a href="/video/watchyoutube/id/<?php echo $videoEntry->id->videoId;?>" data-next-page-token="<?php echo $this->ittVideos->nextPageToken; ?>">
3737
<img src="<?php echo htmlentities($videoEntry->getSnippet()->thumbnails->high->url);?>" alt="View Video"/>
3838
<p><?php echo $videoEntry->getSnippet()->title;?></p>
39-
</div>
40-
</a>
39+
</a>
40+
</div>
4141
<?php endforeach;?>
4242
</div>

0 commit comments

Comments
 (0)