Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
v1.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekVolsk authored Oct 26, 2022
1 parent 10912ad commit dc27a3e
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 31 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# YtVideo

![Version](https://img.shields.io/badge/VERSION-1.8.5-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
![Joomla!](https://img.shields.io/badge/Joomla!-3.7+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)

_description in Russian [here](README.ru.md)_

Content plugin for Joomla! 3 for video output from YouTube.
Content plugin for Joomla! 3 or 4 for video output from YouTube.

This solution compares favorably with others in that it downloads video from YouTube not when loading the page, but only after the playback starts, thus creating no delays when loading the page.

Expand Down
4 changes: 2 additions & 2 deletions README.ru.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# YtVideo

![Version](https://img.shields.io/badge/VERSION-1.8.5-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
![Joomla!](https://img.shields.io/badge/Joomla!-3.7+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)

Контентный плагин для Joomla! 3 для вывода видео с YouTube.
Контентный плагин для Joomla! 3 и 4 для вывода видео с YouTube.

Это решение выгодно отличается от других тем, что загружает видео с YouTube не при загрузке страницы, а только после начала воспроизведения, что не создает задержек при загрузке страницы.

Expand Down
4 changes: 2 additions & 2 deletions pkg_ytvideo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<authorUrl>https://alekvolsk.pw</authorUrl>
<copyright>(C) Aleksey A. Morozov. All right reserved.</copyright>
<license>GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt</license>
<creationDate>August 2022</creationDate>
<creationDate>Oktober 2022</creationDate>
<packager>Aleksey A. Morozov</packager>
<packagerurl>https://alekvolsk.pw</packagerurl>
<version>1.8.5</version>
<version>1.8.6</version>
<description>PKG_YTVIDEO_DESC</description>
<php_minimum>5.6</php_minimum>
<scriptfile>pkg_script.php</scriptfile>
Expand Down
2 changes: 1 addition & 1 deletion plg_content_ytvideo/assets/lazysizes/lazysizes.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plg_content_ytvideo/assets/lazysizes/ls.bgset.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions plg_content_ytvideo/script.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
<?php defined('_JEXEC') or die;
<?php

/*
* @package Joomla.Plugin
* @subpackage Content.ytvideo
* @copyright Copyright (C) Aleksey A. Morozov. All rights reserved.
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt
*
* @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
*/

use Joomla\CMS\Factory;

class plgContentYtvideoInstallerScript
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

class PlgContentYtvideoInstallerScript
{
function postflight($type, $parent)
public function postflight($type, $parent)
{
$db = Factory::getDbo();
$query = $db->getQuery(true);
Expand Down
16 changes: 14 additions & 2 deletions plg_content_ytvideo/tmpl/default.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<?php defined('_JEXEC') or die;
<?php

/*
* @package Joomla.Plugin
* @subpackage Content.ytvideo
* @copyright Copyright (C) Aleksey A. Morozov. All rights reserved.
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt
*/

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

?>
<div class="ytvideo ytvideo-<?php echo $ratio; ?>">
<a
Expand All @@ -20,6 +26,12 @@ class="ytvideo-cover lazyload"
<?php if ($title) { ?>
<span class="ytvideo-title"><?php echo $title; ?></span>
<?php } ?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48" width="68" height="48"><path id="ytvideo_icon" fill-opacity="0.8" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48" width="68" height="48">
<path id="ytvideo_icon" fill-opacity="0.8" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,
0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,
2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,
5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z"/>
<path d="M 45,24 27,14 27,34" fill="#fff"/>
</svg>
</a>
</div>
Loading

0 comments on commit dc27a3e

Please sign in to comment.