本文整理汇总了PHP中Codes::render_freemind方法的典型用法代码示例。如果您正苦于以下问题:PHP Codes::render_freemind方法的具体用法?PHP Codes::render_freemind怎么用?PHP Codes::render_freemind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Codes
的用法示例。
在下文中一共展示了Codes::render_freemind方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$text .= Codes::render_embed($item['id'] . ', 99%, 90%');
// add a link to close the window
$text .= '</div>' . "\n" . '<p style="text-align: center; margin: 0.5em 0 1em 0;"><button type="button" onclick="self.close()">' . i18n::s('Close') . '</button></p>' . "\n";
// page postamble
$text .= '</body>' . "\n" . '</html>' . "\n";
break;
case 'mm':
// we are invoking some freemind viewer
$type = '';
$mime = 'text/html';
// allow to load Flash objects
$script = 'included/browser/js_header/swfobject.js';
// page preamble
$text = '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">' . "\n" . '<html>' . "\n" . '<head>' . "\n" . '<title>' . $context['page_title'] . '</title>' . "\n" . '<script type="text/javascript" src="' . $context['url_to_root'] . $script . '"></script>' . "\n" . '</head>' . "\n" . '<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">' . "\n";
// render object full size
$text .= Codes::render_freemind($target_href . ', 100%, 90%');
// add a link to close the window
$text .= '</div>' . "\n" . '<p style="text-align: center; margin: 0.5em 0 1em 0;"><button type="button" onclick="self.close()">' . i18n::s('Close') . '</button></p>' . "\n";
// page postamble
$text .= '</body>' . "\n" . '</html>' . "\n";
break;
case 'swf':
// display a large Flash file
$type = '';
$mime = 'text/html';
// allow to load Flash objects
$script = 'included/browser/js_header/swfobject.js';
// page preamble
$text = '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">' . "\n" . '<html>' . "\n" . '<head>' . "\n" . '<title>' . $context['page_title'] . '</title>' . "\n";
// load the full library
$text .= '<script type="text/javascript" src="' . $context['url_to_root'] . $script . '"></script>' . "\n";