-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
* Add responsive embeds.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php require 'includes/functions.php'; ?> | ||
<!DOCTYPE html> | ||
<html class="rd-template-admin"> | ||
<head> | ||
<?php | ||
$title = 'Embeds'; | ||
include 'includes/html-head.php'; | ||
?> | ||
<link rel="stylesheet" href="<?php echo assetUrl('assets/css/rdta/components/rdta-embeds.css'); ?>"> | ||
</head> | ||
<body ontouchstart=""> | ||
<?php include 'includes/partials/page-header.php'; ?> | ||
<div class="rd-page-wrapper"> | ||
<?php include 'includes/partials/page-sidebar.php'; ?> | ||
<main> | ||
<?php | ||
echo renderBreadcrumb(['./' => 'Home', '#' => $title]); | ||
?> | ||
<div class="rd-page-content"> | ||
<h1>Embeds</h1> | ||
<p>Responsive video, embeded elements, or iframe.</p> | ||
<p> | ||
In order to make responsive embeds works, add this file. | ||
<strong>assets/css/rdta/components/rdta-embeds.css</strong> | ||
</p> | ||
<hr> | ||
|
||
<h2>Examples</h2> | ||
<div class="rd-embed-responsive rd-embed-responsive16by9"> | ||
<iframe class="rd-embed-responsive-item" src="https://www.youtube.com/embed/KX3OnQeETdI"></iframe> | ||
</div> | ||
<pre><div class="rd-embed-responsive rd-embed-responsive16by9"> | ||
<iframe class="rd-embed-responsive-item" src="https://www.youtube.com/embed/KX3OnQeETdI"></iframe> | ||
</div></pre> | ||
|
||
<h3>Aspect ratios</h3> | ||
<?php | ||
$ratios = [ | ||
[21, 9], | ||
[16, 9], | ||
[8, 5], | ||
[4, 3], | ||
[3, 2], | ||
[1, 1], | ||
]; | ||
?> | ||
<pre> | ||
<?php | ||
foreach ($ratios as $eachRatio) { | ||
?> | ||
<!-- <?php echo $eachRatio[0]; ?>:<?php echo $eachRatio[1]; ?> --> | ||
<div class="rd-embed-responsive rd-embed-responsive<?php echo $eachRatio[0]; ?>by<?php echo $eachRatio[1]; ?>"> | ||
<iframe class="rd-embed-responsive-item" src="..."></iframe> | ||
</div> | ||
|
||
<?php | ||
}// endforeach; | ||
unset($eachRatio, $ratios); | ||
?></pre> | ||
<h3>Video element</h3> | ||
<div class="rd-embed-responsive rd-embed-responsive16by9"> | ||
<video class="rd-embed-responsive-item" controls height="1080" width="1920"></video> | ||
</div> | ||
<pre><div class="rd-embed-responsive rd-embed-responsive16by9"> | ||
<video class="rd-embed-responsive-item" controls height="1080" width="1920"></video> | ||
</div></pre> | ||
</div><!--.rd-page-content--> | ||
</main> | ||
<?php include 'includes/partials/page-footer.php'; ?> | ||
</div><!--.rd-page-wrapper--> | ||
|
||
|
||
<?php include 'includes/js-end-body.php'; ?> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.