{* $Id: include_features.tpl 38107 2011-10-10 02:52:47Z marclaporte $ *}

{remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}Please see the <a class='rbox-link' target='tikihelp' href='http://doc.tiki.org/Features'>evaluation of each feature</a> on Tiki's developer site.{/tr}{/remarksbox}

	<form class="admin" id="features" name="features" action="tiki-admin.php?page=features" method="post">
		<div class="heading input_submit_container" style="text-align: right">
			<input type="submit" name="features" value="{tr}Apply{/tr}" />
			<input type="reset" name="featuresreset" value="{tr}Reset{/tr}" />
		</div>


{tabset name="admin_features"}
{*
 * The following section is typically for features that act like Tiki
 * sections and add a configuration icon to the sections list
 *}
{* ---------- Main features ------------ *}
{tab name="{tr}Global features{/tr}"}

		<fieldset>
			<legend>{tr}Main feature{/tr}</legend>

			<div class="admin clearfix featurelist">
				{preference name=feature_wiki}
				{preference name=feature_file_galleries}
				{preference name=feature_blogs}
				{preference name=feature_articles}
				{preference name=feature_forums}
				{preference name=feature_trackers}
				{preference name=feature_polls}
				{preference name=feature_sheet}
				{preference name=feature_calendar}
				{preference name=feature_newsletters}
				{preference name=feature_banners}
				{preference name=feature_categories}
				{preference name=feature_freetags}
				{preference name=feature_search}
			</div>

		</fieldset>

		<fieldset>
			<legend>{tr}Additional{/tr}</legend>

			<div class="admin clearfix featurelist">
				{preference name=feature_surveys}
				{preference name=feature_directory}
				{preference name=feature_quizzes}
				{preference name=feature_shoutbox}
				{preference name=feature_minichat}				
				{preference name=feature_live_support}
				{preference name=feature_tell_a_friend}
				{preference name=feature_share}
				{preference name=feature_credits}
				{preference name=feature_invoice}
				{preference name=feature_accounting}
				{preference name=payment_feature}				
				{preference name=feature_draw}
				{preference name=feature_docs}
				{preference name=feature_slideshow}
				{preference name=feature_dynamic_content}
				{preference name=feature_perspective}
				{preference name=feature_areas}
				{preference name=feature_sefurl}
				{preference name=feature_webmail}
				{preference name=feature_actionlog}
				{preference name=feature_comm}
				{preference name=feature_contribution}
				{preference name=feature_copyright}
				{preference name=feature_mailin}				
					
				{preference name=feature_custom_home}
				{preference name=feature_faqs}
				{preference name=feature_galleries}
				{preference name=feature_html_pages}	
			</div>
		</fieldset>

		<fieldset>
			<legend>{tr}Interaction with online services or other software{/tr}</legend>
			<div class="admin clearfix featurelist">		
				{preference name=connect_feature}
				{preference name=feature_maps}
				{preference name=feature_gmap}
				{preference name=feature_socialnetworks}
				
				{preference name=feature_watershed}				
				{preference name=feature_kaltura}				
			
				{preference name=zotero_enabled}
				<div class="adminoptionboxchild" id="zotero_enabled_childcontainer">
					{if $prefs.zotero_client_key and $prefs.zotero_client_secret and $prefs.zotero_group_id}
						{remarksbox type=info title="{tr}Configuration completed{/tr}"}<a href="tiki-ajax_services.php?oauth_request=zotero">{tr}Authenticate with Zotero{/tr}</a>{/remarksbox}
					{/if}
					{preference name=zotero_client_key}
					{preference name=zotero_client_secret}
					{preference name=zotero_group_id}
					{preference name=zotero_style}
				</div>
		
			</div>
		</fieldset>
		
		
		<fieldset>
			<legend>{tr}Watches{/tr}</legend>

			<div class="admin clearfix featurelist">
				{preference name=feature_user_watches}
				{preference name=feature_group_watches}
				{preference name=feature_daily_report_watches}
				<div class="adminoptionboxchild" id="feature_daily_report_watches_childcontainer">
					{preference name=dailyreports_enabled_for_new_users}
				</div>
				{preference name=feature_user_watches_translations}
				{preference name=feature_user_watches_languages}
				{preference name=feature_groupalert}				
			</div>
		</fieldset>		
		
{/tab}
			
{tab name="{tr}Interface{/tr}"}
			<fieldset class="admin clearfix featurelist">
				<legend> {tr}Ajax{/tr} </legend>	
				{preference name=feature_ajax}
				<div class="adminoptionboxchild half_width" id="feature_ajax_childcontainer">
					{preference name=ajax_autosave}
				</div>
			</fieldset>
			<fieldset class="admin clearfix featurelist">
				<legend> {tr}jQuery plugins and add-ons{/tr} </legend>
				{preference name=feature_jquery_autocomplete}
				{preference name=feature_jquery_media}
				{preference name=feature_jquery_reflection}
				{preference name=feature_jquery_superfish}
				{preference name=feature_jquery_tooltips}
				{preference name=feature_jquery_ui_theme}
				{preference name=feature_jquery_ui}
				{preference name=feature_jquery_validation}
				<div class="adminoptionboxchild">
				<fieldset>
					<legend> {tr}Experimental:{/tr} {icon _id=bug_error}</legend>
					{preference name=feature_jquery_carousel}
					{preference name=feature_jquery_tablesorter}
					{preference name=jquery_ui_selectmenu}
					<div class="adminoptionboxchild" id="jquery_ui_selectmenu_childcontainer">
						{preference name=jquery_ui_selectmenu_all}
					</div>
				</fieldset>
				</div>
			</fieldset>

			<fieldset class="admin clearfix featurelist">
				<legend> {tr}Mobile{/tr} </legend>
					{preference name=mobile_feature}

					<div class="adminoptionboxchild" id="mobile_feature_childcontainer">
						{preference name=mobile_perspectives}
						<fieldset>
							<legend>{tr}Mobile Themes{/tr}</legend>
						{preference name=mobile_theme_header}
						{preference name=mobile_theme_content}
						{preference name=mobile_theme_footer}
						{preference name=mobile_theme_modules}
						{preference name=mobile_theme_menus}
						{preference name=mobile_use_latest_lib}
						</fieldset>
					</div>
			</fieldset>

{/tab}

{tab name="{tr}Programmer{/tr}"}
			<div class="admin clearfix featurelist">
				{preference name=feature_integrator}
				{preference name=feature_xmlrpc}
				{preference name=feature_debug_console}
				{preference name=feature_tikitests}
				{preference name=disableJavascript}
				{preference name=smarty_compilation}
				{preference name=feature_webservices}
				{preference name=feature_dummy}				
			</div>

			<div class="admin clearfix featurelist">
				<fieldset>
					<legend>{tr}Logging and Reporting{/tr}</legend>
					<div class="adminoptionbox">
						{preference name=error_reporting_level}
						<div class="adminoptionboxchild">
							{preference name=error_reporting_adminonly label="{tr}Visible to admin only{/tr}"}
							{preference name=smarty_notice_reporting label="{tr}Include Smarty notices{/tr}"}
						</div>
					</div>

					{preference name=log_mail}
					{preference name=log_sql}
					<div class="adminoptionboxchild" id="log_sql_childcontainer">
						{preference name=log_sql_perf_min}
					</div>
					{preference name=log_tpl}
				</fieldset>
			</div>

			<div class="admin">
				<fieldset>
					<legend>{tr}Custom Code{/tr}</legend>
					{preference name="header_custom_js"}
					{preference name=smarty_security}
				</fieldset>
			</div>
			
			<fieldset>
				<legend>{tr}Event Hooks{/tr}</legend>
				{remarksbox type=note title="{tr}New Feature{/tr}"}
					{tr}Please note that this is a relatively new feature that still needs to be deployed all around. Expect more events to be added over time.{/tr}
				{/remarksbox}
				<p>{tr}If you need to add behaviors to Tiki, there are several event hooks you can attach to. Here are the events and the inheritance.{/tr}</p>
				{$headerlib->add_dracula()}
				<div id="graph-canvas" class="graph-canvas" data-graph-nodes="{$event_graph.nodes|@json_encode|escape}" data-graph-edges="{$event_graph.edges|@json_encode|escape}"></div>
				<a href="#" id="graph-draw" class="button">{tr}Draw Event Diagram{/tr}</a>
				{jq}
				$('#graph-draw').click( function( e ) {
					$(this).hide();
					$('#graph-canvas').drawGraph();
					return false;
				} );
				{/jq}
			</fieldset>
{/tab}

{/tabset}


	<div class="input_submit_container" style="margin-top: 5px; text-align: center">
		<input type="submit" name="features" value="{tr}Apply{/tr}" />
	</div>
</form>
