php Lite YouTube Embed
페이지 정보
본문
[code]
<link rel="stylesheet" href="<?php echo G5_THEME_CSS_URL; ?>/lite-yt-embed.css">
<?php
add_javascript('<script src="'.G5_THEME_JS_URL.'/lite-yt-embed.js"></script>', 2);
?>
[/code]
/theme/skin/latest/latest.skin.php
[code]
<lite-youtube videoid="<?php echo $list[$i]['wr_7'];?>" playlabel="<?php echo $list[$i]['wr_subject'];?>" params="controls=1&modestbranding=1&rel=0&enablejsapi=1"></lite-youtube>
[/code]
첨부파일
-
lite-youtube-embed-master.zip (14.8K)
0회 다운로드 | DATE : 2022-09-16 10:45:36
관련링크
- 이전글최근 게시물 조건에 의해 뽑아 오기 22.09.19
- 다음글php에서 https가 아닌 경우에 https로 바꾸는 방법 22.08.31
댓글목록
neue님의 댓글
neue 작성일
js
if (!this.style.backgroundImage) {
this.style.backgroundImage = `url("https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg")`;
}
...
iframeEl.width = 560;
iframeEl.height = 315;
neue님의 댓글
neue 작성일
/* youtube */
lite-youtube {margin:0px auto;}
<link rel="stylesheet" href="<?php echo G5_THEME_CSS_URL; ?>/lite-yt-embed_bee1.css">
<script src="<?php echo G5_THEME_JS_URL; ?>/lite-yt-embed_bee1.js"></script>
<lite-youtube videoid="_oMXrx5A7SQ" params="controls=0&start=0&modestbranding=2&rel=0&enablejsapi=1"></lite-youtube>