* @author Sebastian Siedentopf * @version 0.2.1 * @author Adam Overton * @version 0.3 * @link http://www.pmwiki.org/wiki/Cookbook/QuickTime http://www.pmwiki.org/wiki/Cookbook/QuickTime * @copyright by the respective authors 2004-2005 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License * @package quicktime */ /* For Developers ============== Quicktime Embeded: http://www.apple.com/quicktime/tutorials/embed.html Version History --------------- * 0.3 - 2009-12-20 - overtones99 ** now permits files from other groups, in the format: (:quicktime Attach:Group./file.ext:) * 0.2 - 2006-01-26 - Schlaefer ** [feature] html Links ** [change] no use of IMapLinkFmt * 0.1 - initial release - Schlaefer */ # Version date $RecipeInfo['QuickTime']['Version'] = '2009-12-20'; # see http://schlaefer.macbay.de/index.php/PmWikiCookbook/AutoUpdate SDVA ($PmWikiAutoUpdate['QuickTime'] , array( 'version' => QUICKTIME, 'updateurl' => "http://pmwiki.org/wiki/Cookbook/QuickTime" )); SDV($QuickTimeExternalResource, 1); Markup('quicktime', '"; foreach ($args as $key => $arg) if ($key != '#') $out .= ""; ## embed tag $out .= " $arg) if ($key != '#') $out .= " $key=\"$arg\""; $out .= " type=\"video/quicktime\" class=\"mov\" pluginspage=\"http://www.apple.com/quicktime/download/\">"; $out .= ""; return $out; } } $LinkFunctions['Quicktime:'] = 'LinkUploadQuicktime'; /** * Allows Quicktime:attachment.ext. Only experimental. *
* See LinkUpload() for parameter details */ function LinkUploadQuicktime($pagename, $imap, $path, $title, $txt, $fmt = NULL) { global $UploadFileFmt, $pagename, $PageUrl, $PubDirUrl, $IMapLinkFmt; $filepath = FmtPageName("$UploadFileFmt/".$path, $pagename); $IMapLinkFmtTemp = $IMapLinkFmt['Attach:']; if (file_exists($filepath)) $IMapLinkFmt['Attach:'] = "\$LinkUrl"; $out = LinkUpload($pagename, "Attach:", $path, $title, $txt); $IMapLinkFmtTemp['Attach:'] = $IMapLinkFmtTemp; if (file_exists($filepath)) $out = ""; return Keep($out); } ?>