acf
This commit is contained in:
27
plugins/fields/acfvideo/tmpl/acfvideo.php
Normal file
27
plugins/fields/acfvideo/tmpl/acfvideo.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Advanced Custom Fields
|
||||
* @version 2.8.8 Pro
|
||||
*
|
||||
* @author Tassos Marinos <info@tassos.gr>
|
||||
* @link http://www.tassos.gr
|
||||
* @copyright Copyright © 2021 Tassos Marinos All Rights Reserved
|
||||
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
if (!$provider = $fieldParams->get('provider', 'YouTube'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$file = __DIR__ . '/providers/' . strtolower($provider) . '.php';
|
||||
if(!file_exists($file))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Display selected widget
|
||||
require $file;
|
||||
Reference in New Issue
Block a user