├── cccyoutube
├── language
│ ├── en-GB
│ │ ├── en-GB.plg_cccyoutube.sys.ini
│ │ └── en-GB.plg_cccyoutube.ini
│ └── de-DE
│ │ ├── de-DE.plg_cccyoutube.sys.ini
│ │ └── de-DE.plg_cccyoutube.ini
├── tmpl
│ └── cccyoutube.php
├── cccyoutube.xml
├── media
│ ├── css
│ │ └── cccyoutube.css
│ └── js
│ │ └── cccyoutube.js
└── cccyoutube.php
└── README.md
/cccyoutube/language/en-GB/en-GB.plg_cccyoutube.sys.ini:
--------------------------------------------------------------------------------
1 | PLG_CCCYOUTUBE="CCC Youtube"
2 | PLG_CCCYOUTUBE_XML_DESCRIPTION="Adds a youtube video with responsive container. The video is loaded when the user clicks on the preview."
--------------------------------------------------------------------------------
/cccyoutube/language/de-DE/de-DE.plg_cccyoutube.sys.ini:
--------------------------------------------------------------------------------
1 | PLG_CCCYOUTUBE ="CCC Youtube"
2 | PLG_CCCYOUTUBE_XML_DESCRIPTION = "Fügt ein Youtube Video mit responsivem Container hinzu. Das Video wird erst geladen wenn man auf das Vorschaubild klickt."
--------------------------------------------------------------------------------
/cccyoutube/language/en-GB/en-GB.plg_cccyoutube.ini:
--------------------------------------------------------------------------------
1 | PLG_CCCYOUTUBE_LABEL="CCC Youtube"
2 | PLG_CCCYOUTUBE="CCC Youtube"
3 | PLG_CCCYOUTUBE_XML_DESCRIPTION="Adds a youtube video with responsive container. The video is loaded when the user clicks on the preview."
--------------------------------------------------------------------------------
/cccyoutube/language/de-DE/de-DE.plg_cccyoutube.ini:
--------------------------------------------------------------------------------
1 | PLG_CCCYOUTUBE_LABEL="CCC Youtube"
2 | PLG_CCCYOUTUBE="CCC Youtube"
3 | PLG_CCCYOUTUBE_XML_DESCRIPTION="Fügt ein Youtube Video mit responsivem Container hinzu. Das Video wird erst geladen wenn man auf das Vorschaubild klickt."
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # plg_cccyoutube
2 | A plugin to show youtube videos only after user click to help with the loading time and GDPR
3 |
4 | # usage
5 | embed your video with {cccyoutube}rFxXoHkIwMk{/cccyoutube} where the code between the brackets is the Video ID.
6 |
7 | https://www.youtube.com/watch?v=rFxXoHkIwMk
8 |
--------------------------------------------------------------------------------
/cccyoutube/tmpl/cccyoutube.php:
--------------------------------------------------------------------------------
1 | 'auto', 'relative' => true));
21 | JHtml::_('script', 'plg_cccyoutube/cccyoutube.js', array('version' => 'auto', 'relative' => true));
22 |
23 | if (is_array($value))
24 | {
25 | $value = implode(', ', $value);
26 | }
27 |
28 | ?>
29 |
30 |