{* $Id$ *} {extends 'layout_edit.tpl'} {block name=title} {if $translation_mode eq 'n'}

{capture name="pageDescription"} {$page|escape}{if $pageAlias ne ''} ({$pageAlias|escape}){/if} {/capture} {if isset($hdr) && $prefs.wiki_edit_section eq 'y'} {tr}Edit Section:{/tr} {$smarty.capture.pageDescription} {else} {tr _0=''|cat:$smarty.capture.pageDescription|cat:''}Edit %0{/tr} {/if}

{else} {title}{tr}Update '{$page}'{/tr}{/title} {/if} {/block} {block name=content} {if $page|lower neq 'sandbox' and $prefs.feature_contribution eq 'y' and $prefs.feature_contribution_mandatory eq 'y'} {remarksbox type='tip' title="{tr}Tip{/tr}"} {tr}Fields marked with an * are mandatory.{/tr} {/remarksbox} {/if} {if isset($customTip)} {remarksbox type='tip' title=$customTipTitle} {tr}{$customTip|escape}{/tr} {/remarksbox} {/if} {if isset($wikiHeaderTpl)} {$wikiHeaderTpl} {/if} {if $prefs.ajax_autosave eq "y"}
{self_link _icon_name="view" _class="previewBtn tips" _ajax="n" _title=":{tr}Preview your changes{/tr}"} {/self_link}
{jq} $(".previewBtn").click(function(){ auto_save('editwiki', autoSaveId); if ($('#autosave_preview:visible').length === 0) { if (!ajaxPreviewWindow) { setCookie("preview_diff_style", "", "preview", "session"); $("#preview_diff_style").val("").trigger("change.select2"); $('#autosave_preview').slideDown('slow', function(){ ajax_preview( 'editwiki', autoSaveId, true );}); } } else { ajax_preview( 'editwiki', autoSaveId, true ); } return false; });{/jq} {else}
{/if} {if isset($data.draft)} {tr}Draft written on{/tr} {$data.draft.lastModif|tiki_long_time}
{if $data.draft.lastModif < $data.lastModif} {tr}Warning: new versions of this page have been made after this draft{/tr} {/if} {/if} {if $page|lower eq 'sandbox'} {remarksbox type='tip' title="{tr}Tip{/tr}"} {tr}The Sandbox is a page where you can practice editing, etc. and use the preview feature to check the appearance of the page. No versions are stored for this page.{/tr} {/remarksbox} {/if} {if isset($included_by)} {remarksbox type='Warning' title="{tr}Warning{/tr}"} {tr}The following item(s) include this one with Plugin Include and might be affected by these changes. Renaming sections can break related item(s).{/tr} {include file='tiki-edit-page-included_by.tpl'} {/remarksbox} {/if} {if $category_needed eq 'y'} {remarksbox type='Warning' title="{tr}Warning{/tr}"}
{tr}A category is mandatory{/tr}
{/remarksbox} {/if} {if $contribution_needed eq 'y'} {remarksbox type='Warning' title="{tr}Warning{/tr}"}
{tr}A contribution is mandatory {/tr}
{/remarksbox} {/if} {if isset($summary_needed) && $summary_needed eq 'y'} {remarksbox type='Warning' title="{tr}Warning{/tr}"}
{tr}An edit summary is mandatory {/tr}
{/remarksbox} {/if} {if $likepages}
{tr}Perhaps you are looking for:{/tr} {if $likepages|@count < 0} {else}
{cycle name=table values=',,,,' print=false advance=false} {section name=back loop=$likepages} {cycle name=table} {/section}
{$likepages[back]|escape}
{/if}
{/if} {if $preview or $prefs.ajax_autosave eq "y"} {include file='tiki-preview.tpl'} {/if} {if isset($diff_style)}
{if $translation_mode == 'y'}

{icon name="language"} {tr}Translate from:{/tr} {$source_page|escape}

{tr}Changes that need to be translated are highlighted below.{/tr}
{/if}
{include file='pagehistory.tpl' cant=0} {if $diff_summaries}
    {foreach item=diff from=$diff_summaries}
  • {tr}Version:{/tr} {$diff.version|escape} - {$diff.comment|escape|default:"{tr}No comment{/tr}"} {if count($diff_summaries) gt 1} {assign var=diff_version value=$diff.version} {icon name="next" onclick="\$('input[name=oldver]').val($diff_version);\$('#editpageform').submit();return false;" title=":{tr}View{/tr}" style="cursor: pointer"} {/if}
  • {/foreach} {button _onclick="\$('input[name=oldver]').val(1);\$('#editpageform').submit();return false;" _text="{tr}All Versions{/tr}" _ajax="n"}
{/if}
{/if} {if $prompt_for_edit_or_translate == 'y'} {include file='tiki-edit-page-include-prompt_for_edit_or_translate.tpl'} {/if}
{if !empty($smarty.request.returnto)}{/if} {if isset($diff_style)} {/if} {if $page_ref_id}{/if} {if isset($hdr)}{/if} {if isset($cell)}{/if} {if isset($pos)}{/if} {if $current_page_id}{/if} {if $add_child}{/if} {if $preview or $prefs.wiki_actions_bar eq 'top' or $prefs.wiki_actions_bar eq 'both'}
{include file='wiki_edit_actions.tpl' wysiwyg=$wysiwyg}
{/if}
{if isset($page_badchars_display)} {if $prefs.wiki_badchar_prevent eq 'y'} {remarksbox type=errors title="{tr}Invalid page name{/tr}"} {tr _0=$page_badchars_display|escape}The page name specified contains unallowed characters. It will not be possible to save the page until those are removed: %0{/tr} {/remarksbox} {else} {remarksbox type=tip title="{tr}Tip{/tr}"} {tr _0=$page_badchars_display|escape}The page name specified contains characters that may render the page hard to access. You may want to consider removing those: %0{/tr} {/remarksbox} {/if}

{tr}Page name:{/tr}

{else} {* the above hidden field is needed for auto-save to work *} {/if} {tabset name='tabs_editpage' cookietab=1} {tab name="{tr}Edit page{/tr}"} {if $translation_mode == 'y'}

{tr}Translate to:{/tr} {$target_page|escape}

{tr}Reproduce the changes highlighted on the left using the editor below{/tr}.
{/if} {textarea codemirror='true' syntax='tiki'}{$pagedata}{/textarea} {if $prefs.wiki_freetags_edit_position eq 'edit'} {if $prefs.feature_freetags eq 'y' and $tiki_p_freetags_tag eq 'y'}
{tr}Tags{/tr} {include file='freetag.tpl'}
{/if} {/if} {if $page|lower neq 'sandbox'} {if $prefs.feature_contribution eq 'y'}
{tr}Contributions{/tr} {include file='contribution.tpl'}
{/if} {if (!isset($wysiwyg) || $wysiwyg neq 'y') and $prefs.feature_wiki_pictures eq 'y' and $tiki_p_upload_picture eq 'y' and $prefs.feature_filegals_manager neq 'y'}
{tr}Upload picture{/tr}
{tr}Add another image{/tr}
{/if} {/if} {/tab} {if $prefs.feature_categories eq 'y' and $tiki_p_modify_object_categories eq 'y' and count($categories) gt 0} {tab name="{tr}Categories{/tr}"} {if $categIds} {remarksbox type="note" title="{tr}Note:{/tr}"} {tr}Categorization has been preset for this edit{/tr} {/remarksbox} {section name=o loop=$categIds} {/section} {if $prefs.feature_wiki_categorize_structure eq 'y'} {tr}Categories will be inherited from the structure top page{/tr} {/if} {else} {if $page|lower ne 'sandbox'} {include file='categorize.tpl' notable='y'} {/if}{* sandbox *} {/if} {/tab} {/if} {if $prefs.wiki_freetags_edit_position eq 'freetagstab'} {if $prefs.feature_freetags eq 'y' and $tiki_p_freetags_tag eq 'y'} {tab name="{tr}Tags{/tr}"} {include file='freetag.tpl'} {/tab} {/if} {/if} {if !empty($showPropertiesTab)} {tab name="{tr}Properties{/tr}"}
{if $tiki_p_admin_wiki eq "y"} {icon name="cog"} {tr}Wiki Preferences{/tr} {/if} {if $tiki_p_admin_wiki eq 'y' or $tiki_p_assign_perm_wiki_page eq 'y'} {permission_link mode=link type="wiki page" id=$page permType=wiki title=$page} {/if} {if isset($tiki_p_edit_content_templates) and tiki_p_edit_content_templates eq 'y'} {icon name="content-template"} {tr}Content Templates{/tr} {/if} {if isset($tiki_p_edit_structures) and $tiki_p_edit_structures eq 'y'} {icon name="structure"} {tr}Structures{/tr} {/if} {if $prefs.feature_copyright eq 'y' and $prefs.wiki_feature_copyrights eq 'y'} {if !empty($copyrights)} {icon name="copyright"} {tr}Copyright notices{/tr} {/if} {icon name="wiki"} {tr}Copyright page{/tr} {/if}
{if $prefs.feature_wiki_templates eq 'y' and $tiki_p_use_content_templates eq 'y'}
{/if} {if $prefs.feature_wiki_usrlock eq 'y' && ($tiki_p_lock eq 'y' || $tiki_p_admin_wiki eq 'y')}
{/if} {if $prefs.wiki_comments_allow_per_page neq 'n'}
{/if} {if $prefs.feature_wiki_allowhtml eq 'y' and $tiki_p_use_HTML eq 'y' and ($wysiwyg neq 'y' or $prefs.wysiwyg_htmltowiki eq 'y')}
{tr}HTML tags are used to create elements of the wiki page, instead of being displayed as code.{/tr}
{if $prefs.ajax_autosave eq "y"} {jq} $("input[name=allowhtml]").change(function() { auto_save( "editwiki", autoSaveId ); }); {/jq} {/if} {else} {/if} {if $prefs.feature_wiki_import_html eq 'y'}
{/if} {if $prefs.feature_wiki_import_page eq 'y'}
{/if} {if $prefs.feature_wiki_export eq 'y' and $tiki_p_export_wiki eq 'y'} {/if} {if !isset($wysiwyg) || $wysiwyg neq 'y'} {if $prefs.feature_wiki_attachments == 'y' and ($tiki_p_wiki_attach_files eq 'y' or $tiki_p_wiki_admin_attachments eq 'y')}
{/if} {/if} {* merged tool and property tabs for tiki 6 *} {if $page|lower neq 'sandbox'} {if $prefs.wikiplugin_addreference eq 'y' && $showBiblioSection}
{include file='addreference.tpl'}
{/if} {if $prefs.wiki_freetags_edit_position eq 'properties' or $prefs.wiki_freetags_edit_position eq ''} {if $prefs.feature_freetags eq 'y' and $tiki_p_freetags_tag eq 'y'} {include file='freetag.tpl'} {/if} {/if} {if $prefs.feature_wiki_icache eq 'y'}
{if $prefs.wiki_cache == 0} {remarksbox type="warning" title="{tr}Warning{/tr}" close="n"}{tr}Only cache a page if it should look the same to all groups authorized to see it.{/tr}{/remarksbox} {/if}
{/if} {if $prefs.feature_wiki_structure eq 'y' && $showstructs|@count gt 0}
    {foreach from=$showstructs item=page_info}
  • {$page_info.pageName}{if !empty(${$page_info.outputType}.page_alias)}({$page_info.page_alias}){/if}
  • {/foreach}
{/if} {if $prefs.feature_copyright eq 'y' and $prefs.wiki_feature_copyrights eq 'y'}
{if $prefs.wikiSubmitNotice neq ""} {remarksbox type="note" title="{tr}Important:{/tr}"} {tr}{$prefs.wikiSubmitNotice}{/tr} {/remarksbox} {/if}
{/if} {if $tiki_p_admin_wiki eq 'y' && $prefs.wiki_authors_style_by_page eq 'y'}
{/if} {/if}{*end if sandbox *} {if $prefs.markdown_enabled eq 'y'}
{/if} {if $prefs.feature_wiki_description eq 'y' or $prefs.metatag_pagedesc eq 'y'}
{if $prefs.metatag_pagedesc eq 'y'} {else} {/if}
{jq} $("#description").keyup(function () { var length = $(this).val().length; if(length == 200) { alert("You have reached the number of characters allowed (200 max) for the description field"); } }); {/jq}
{/if} {if $prefs.feature_wiki_footnotes eq 'y'} {if $user}
{/if} {/if} {if $prefs.feature_wiki_ratings eq 'y' and $tiki_p_wiki_admin_ratings eq 'y'}
{foreach from=$poll_rated item=rating}
{$rating.info.title} {assign var=thispage value=$page|escape:"url"} {assign var=thispoll_rated value=$rating.info.pollId} {button href="?page=$thispage&removepoll=$thispoll_rated" _text="{tr}Disable{/tr}"}
{/foreach} {if $tiki_p_admin_poll eq 'y'} {button href="tiki-admin_polls.php" _text="{tr}Admin Polls{/tr}"} {/if} {if $poll_rated|@count <= 1 or $prefs.poll_multiple_per_object eq 'y'}
{if count($polls_templates)}
{else}
{remarksbox type="info" title="{tr}Information{/tr}" close="n"} {tr}There is no available poll template.{/tr} {if $tiki_p_admin_polls ne 'y'} {tr}Please ask an administrator to create one.{/tr} {/if} {/remarksbox}
{/if}
{/if}
{/if} {if $prefs.feature_multilingual eq 'y'}
{tr _0="tiki-edit_translation.php?no_bl=y&page={$page|escape:url}"}To translate, do not change the language and the content. Instead, create a new translation in the new language.{/tr} {if $translationOf} {/if}
{if $trads|@count > 1 and $urgent_allowed}
{tr}Translation request:{/tr} {if $diff_style} {/if}
{/if} {/if} {if $prefs.geo_locate_wiki eq 'y'} {$headerlib->add_map()}
{/if} {* check if wiki_auto_toc is set - but don't understand why wiki_page_hide_title is checked - also the logic made into an 'and' since the previous 'or' made no sense *} {if $prefs.wiki_auto_toc eq 'y' and $prefs.wiki_page_hide_title eq 'y'}
{/if} {if $prefs.wiki_page_hide_title eq 'y' && ($prefs.wiki_page_name_above eq 'y' or $prefs.feature_page_title eq 'y' or $prefs.wiki_page_name_inside eq 'y')}
{/if} {if $prefs.namespace_enabled eq 'y'}
{tr}The namespace for a page is guessed automatically from the page name. However, some exceptions may arise. This option allows to override the namespace.{/tr}
{/if} {if $prefs.site_layout_per_object eq 'y'}
{/if} {if $prefs.object_maintainers_enable eq 'y'}
{object_selector_multi _simplename=maintainers _simplevalue=$object_maintainers type=user _threshold=-1 _class="user-selector" _separator=";" _placeholder="{tr}Name{/tr}"}
{tr}days{/tr}
{/if} {/tab}{* end properties tab *} {else} {if $wysiwyg eq 'y'}{* include hidden allowhtml for wysiwyg if the properties tab isn't needed *} {/if} {/if} {/tabset}
{if $page|lower ne 'sandbox'} {if $prefs.feature_antibot eq 'y' && (isset($anon_user) && $anon_user eq 'y')} {include file='antibot.tpl' tr_style="formcolor"} {/if} {/if}{* sandbox *} {if $prefs.wiki_actions_bar neq 'top'} {include file='wiki_edit_actions.tpl' wysiwyg=$wysiwyg page_info=$page_info} {/if}
{include file='tiki-page_bar.tpl'} {/block}