{* $Id$ *} {assign var="baseURI" value="{$smarty.server.REQUEST_URI}"} {$headerlib->add_jsfile("lib/jquery_tiki/tiki-profile.js")} {remarksbox type="tip" title="{tr}Tip{/tr}"} {tr}Tiki Configuration Profiles{/tr}. {tr}You can revert a profile you applied through the Tiki logs{/tr}. {/remarksbox} {if isset($profilefeedback)} {remarksbox type="note" title="{tr}Note{/tr}"} {tr}The following list of changes has been applied:{/tr} {/remarksbox} {/if} {tabset name='tabs_admin-profiles'} {tab name="{tr}Apply{/tr}"} {if $prefs.javascript_enabled eq 'y'} {if $openSources == 'some'} {remarksbox type="warning" title="{tr}Warning{/tr}"} {tr}Some of your Profiles Repositories are not connecting. This may prevent you from applying certain profiles{/tr} {/remarksbox} {/if}

{tr}Find profiles{/tr} {tr}Search by name, types and repository{/tr}

{if isset($category_list) and count($category_list) gt 0}
{/if}
{remarksbox type="info" title="{tr}Suggested Profiles{/tr}" close="n"} {assign var=profilesFilterUrlStart value="tiki-admin.php?categories%5B%5D="} {assign var=profilesFilterUrlMid value='.x&categories%5B%5D='} {assign var=profilesFilterUrlEnd value='&repository=http%3A%2F%2Fprofiles.tiki.org%2Fprofiles&page=profiles&preloadlist=y&list=List#step2'}

{assign var=profilesFilterUrlFeaturedProfiles value='Featured+profiles'} {tr}Featured Site Profiles{/tr}
{tr}Featured Site Profiles is a list of applications that are maintained by the Tiki community and are a great way to get started.{/tr}

{assign var=profilesFilterUrlFullProfiles value='Full+profile+(out+of+the+box+%26+ready+to+go)'} {tr}Full Profiles{/tr}
{tr}Full Profiles are full featured out of the box solutions.{/tr}

{assign var=profilesFilterUrlMiniProfiles value='Mini-profile+(can+be+included+in+other)'} {tr}Mini Profiles{/tr}
{tr}Mini Profiles will configure specific features and are a great way to add more functionality to an existing configuration.{/tr}

{assign var=profilesFilterUrlLearningProfiles value='Learning+profile+(just+to+show+off+feature)'} {tr}Learning Profiles{/tr}
{tr}Learning Profiles will allow you to quickly evaluate specific features in Tiki.{/tr}

{/remarksbox}
{if isset($result)}

{tr}Select and apply profile Click on a configuration profile name below to review it and apply it on your site{/tr}

{foreach key=k item=profile from=$result} {if $profile.name == $show_details_for} {assign var="show_details_for_profile_num" value="$k"} {assign var="show_details_for_fullname" value=$profile.name|escape} {assign var="show_details_for_domain" value=$profile.domain|escape} {assign var="show_details_for_event" value={ticket mode=get}} {$show=true} {else} {/if} {/foreach} {if $result|@count eq '0'} {/if}
{tr}Profile name{/tr} {tr}Repository{/tr} {tr}Profile type{/tr}
{$profile.name|escape}: {tr}See profile info below (may take a few seconds to load){/tr}. {$profile.name|escape} {if $profile.installed} {tr}applied{/tr}{/if} {$profile.domain} {$profile.categoriesString}
{tr}No results{/tr}
{if isset($show_details_for_profile_num) && $show_details_for_profile_num != ""} {jq}$.profilesShowDetails('{{$baseURI}}', 'profile-{{$show_details_for_profile_num}}', '{{$show_details_for_domain}}', '{{$show_details_for_fullname}}', '{{$show_details_for_event}}', '{{$show}}');{/jq} {/if}
{/if} {else} {remarksbox type="warning" title="{tr}Warning{/tr}"} {tr}JavaScript must be turned ON in order to apply Profiles. Please enable your JavaScript and try again.{/tr} {/remarksbox} {/if} {/tab} {tab name="{tr}Export{/tr}"}
{tr}Export YAML{/tr} {if !empty(exported_content)} {foreach $exported_content as $export}
{$export}
{/foreach} {/if}
{tr}Export modified preferences as YAML{/tr}
{listfilter selectors=".profile_export_list > li"}
{if $tiki_p_admin_trackers eq 'y'} {/if}
{/tab} {tab name="{tr}Advanced{/tr}"}

{tr}Repository status{/tr} {tr}status of the registered profile repositories{/tr}

{foreach key=k item=entry from=$sources} {/foreach}
{tr}Profile repository{/tr} {tr}Status{/tr} {tr}Last update{/tr}
{$entry.short} {if $entry.status == 'open'} {icon name='status-open' iclass='tips' ititle="{tr}Status:{/tr}{tr}Open{/tr}"} {icon name='status-pending' istyle='display:none' iclass='tips' ititle="{tr}Status:{/tr}{tr}Pending{/tr}"} {icon name='status-closed' istyle='display:none' iclass='tips' ititle="{tr}Status:{/tr}{tr}Closed{/tr}"} {elseif $entry.status == 'closed'} {icon name='status-open' istyle='display:none' iclass='tips' ititle="{tr}Status:{/tr}{tr}Open{/tr}"} {icon name='status-pending' istyle='display:none' iclass='tips' ititle="{tr}Status:{/tr}{tr}Pending{/tr}"} {icon name='status-closed' iclass='tips' ititle="{tr}Status:{/tr}{tr}Closed{/tr}"} {else} {icon name='status-open' istyle='display:none' iclass='tips' ititle="{tr}Status:{/tr}{tr}Open{/tr}"} {icon name='status-pending' iclass='tips' ititle="{tr}Status:{/tr}{tr}Pending{/tr}"} {icon name='status-closed' istyle='display:none' iclass='tips' ititle="{tr}Status:{/tr}{tr}Closed{/tr}"} {/if} {$entry.formatted} {icon name="refresh" iclass='tips' ititle=":{tr}Refresh{/tr}"}
{ticket} {preference name=profile_autoapprove_wikiplugins} {preference name=profile_unapproved} {preference name=profile_sources} {preference name=profile_channels}
{tr}Profile tester{/tr}
{ticket} {remarksbox type="warning" title="{tr}Warning{/tr}"} {tr}Paste or type wiki markup and YAML (with or without the {literal}{CODE}{/literal} tags) into the text area below{/tr}
{tr}This will run the profile and make potentially unrecoverable changes in your database!{/tr} {/remarksbox}
{$empty_cache}
{/tab} {/tabset} {jq} {{foreach item=k from=$oldSources} $.profilesRefreshCache("{$baseURI}", "{$k}"); {/foreach}} {/jq}