{* $Header: /cvsroot/bitweaver/_bit_liberty/templates/edit_help_inc.tpl,v 1.28 2007/09/06 23:13:38 wjames5 Exp $ *}

{strip}
{if $dataplugins}
	<h2>{tr}Data Plugin Help{/tr}</h2>
	<div {if !$gBitThemes->isJavascriptEnabled()}style="display:none;"{/if}>
		{tr}Click on the plugin you need help for{/tr}:<br />
		<select size="5" onchange="javascript:flipMulti(this.options[this.selectedIndex].value,1,1);">
			{foreach from=$dataplugins item=p}
				<option value="{$p.plugin_guid}">{$p.title|escape|default:"{tr}No Title{/tr}"} &bull; {ldelim}{$p.tag|lower}{rdelim}</option>
			{/foreach}
		</select>
	</div>

	{foreach from=$dataplugins item=p}
		{if $gBitThemes->isJavascriptEnabled()}<div id="{$p.plugin_guid}1" style="display:none;">{/if}
		<h2>{tr}Plugin{/tr}: {$p.title|escape|default:"{tr}No Title{/tr}"}</h2>
			<ul>
				<li class="{cycle values="odd,even"}"><strong>{tr}Description{/tr}:</strong> {$p.description}</li>
				<li class="{cycle}"><strong>{tr}Syntax{/tr}:</strong>
					&nbsp;<a href="#" title="{tr}Click to insert syntax into editor{/tr}" onclick="javascript:insertAt('{$textarea_id}','{$p.syntax|@addslashes}');">{$p.syntax}</a>
				</li>
				<li class="{cycle}"><strong>{tr}Online Help{/tr}:</strong> {jspopup href="http://www.bitweaver.org/wiki/`$p.help_page`" title=`$p.help_page` class="external"}</li>
			</ul>
			<br /><br />
			{$p.exthelp}
		{if $gBitThemes->isJavascriptEnabled()}</div>{/if}
	{/foreach}
{/if}

<br /><br /><hr /><br />
<h2>{tr}Syntax Help{/tr}</h2>
{foreach from=$formatplugins item=p}
	<h3>{if $p.format_help}<a href="#{$p.plugin_guid}">{/if}{$p.edit_label} Help{if $p.format_help}</a>{/if}</h3>
	{$p.description} {if $p.help_page}{tr}To view syntax help, please visit {jspopup href="http://www.bitweaver.org/wiki/index.php?page=`$p.help_page`" title=$p.help_page class=external}.{/tr}{/if}
{/foreach}

{foreach from=$formatplugins item=p}
	{if $p.format_help}
		<a name="{$p.plugin_guid}"></a>
		<h1>{$p.edit_label} Help</h1>
		{include file=$p.format_help}
	{/if}
{/foreach}
{/strip}
