17 lines
556 B
PHP
17 lines
556 B
PHP
<?php
|
|
|
|
function HookYoutube_publishViewAfterresourceactions()
|
|
{
|
|
# Adds a Youtube link to the view page.
|
|
global $baseurl, $lang, $ref, $access, $resource, $youtube_publish_restypes;
|
|
|
|
if ($access==0 && in_array($resource["resource_type"],$youtube_publish_restypes))
|
|
{
|
|
?>
|
|
<li><a href="<?php echo $baseurl?>/plugins/youtube_publish/pages/youtube_upload.php?resource=<?php echo $ref?>"><?php echo "<i class='fa fa-youtube'></i> " .$lang["youtube_publish_linktext"]; ?></a></li>
|
|
<?php
|
|
}
|
|
}
|
|
|
|
?>
|