{* $Id$ *} {* Note: if you edit this file, make sure to make corresponding edits on tiki-edit_submission.tpl*} {include file='tiki-articles-js.tpl'} {title help="Articles" admpage="articles"} {if $articleId} {tr}Edit:{/tr} {$arttitle} {else} {tr}Edit article{/tr} {/if} {/title}
{button href="tiki-list_articles.php" _type="link" class="btn btn-link" _icon_name="list" _text="{tr}List Articles{/tr}"} {button href="tiki-view_articles.php" _type="link" class="btn btn-link" _icon_name="articles" _text="{tr}View Articles{/tr}"}
{if $preview}

{tr}Preview{/tr}

{include file='article.tpl'} {/if}
{if !empty($translationOf)} {/if} {tabset} {tab name="{tr}Content{/tr}"}

{tr}Content{/tr}

{if $types.$type.heading_only eq 'y'} {textarea name="heading" rows="5" class="form-control" id="subheading"}{$heading}{/textarea} {else} {textarea _simple="y" name="heading" class="form-control" rows="5" id="subheading" comments="y"}{$heading}{/textarea} {/if}
{textarea name="body" id="body"}{$body}{/textarea}
{if $tiki_p_use_HTML eq 'y'} {if $smarty.session.wysiwyg neq 'y'}
{tr}If not enabled, Tiki will retain some HTML tags (a, p, pre, img, hr, b, i){/tr}.
{else} {/if} {/if} {if $prefs.feature_multilingual eq 'y'}
{if $articleId != 0} {tr _0="tiki-edit_article.php?translationOf=$articleId"}To translate, do not change the language and the content. Instead, create a new translation in the new language.{/tr} {if $translations and $translations[1].objId} {remarksbox type=tip title="{tr}Translations{/tr}"} {/remarksbox} {/if} {/if}
{/if} {/tab} {tab name="{tr}Classification{/tr}"}

{tr}Classification{/tr}

{if $tiki_p_admin_cms eq 'y'} {icon name="flag"} {tr}Article Topics{/tr} {/if}
{if $tiki_p_admin_cms eq 'y'} {icon name="structure"} {tr}Article Types{/tr} {/if}
{remarksbox type="info" title="{tr}Hint{/tr}"} {tr}Click "Preview" after selecting article type to have appropriate edit form fields.{/tr} {/remarksbox}
{include file='categorize.tpl'}
{include file='freetag.tpl'}
{/tab} {tab name="{tr}Publication{/tr}"}

{tr}Publication{/tr}

{tr}If checked, the article is published.{/tr}
{autocomplete element='#author' type='username'}
{html_select_date prefix="publish_" time=$publishDate start_year=$prefs.article_start_year end_year=$prefs.article_end_year field_order=$prefs.display_field_order} redefine the interval of the year
{icon name="time" ititle="{tr}Time{/tr}"} {html_select_time prefix="publish_" time=$publishDate display_seconds=false use_24_hours=$use_24hr_clock} {$siteTimeZone}
{html_select_date prefix="expire_" time=$expireDate start_year=$prefs.article_start_year end_year=$prefs.article_end_year field_order=$prefs.display_field_order} {icon name="time" ititle="{tr}Time{/tr}"} {html_select_time prefix="expire_" time=$expireDate display_seconds=false use_24_hours=$use_24hr_clock} {$siteTimeZone}
{/tab} {tab name="{tr}Image{/tr}"}

{tr}Image{/tr}

{tr}If not the topic image{/tr} - {tr}Max file size : {$prefs.article_image_file_size_max/1000} KB{/tr}
{if $hasImage eq 'y'}
{if $imageIsChanged eq 'y'} {tr}Article image{/tr} {else} {tr}Article image{/tr} {/if}
{/if}
{tr}Default will use the topic name{/tr}
{tr}Read Article{/tr} {tr}Maximum dimensions of custom image in view mode{/tr}
0} value="{$image_x|escape}"{/if}> {tr}pixels{/tr}
0} value="{$image_y|escape}"{/if}> {tr}pixels{/tr}
{tr}View Articles{/tr} {tr}Maximum dimensions of custom image in list mode{/tr}
0} value="{$list_image_x|escape}"{/if}> {tr}pixels{/tr}
0} value="{$list_image_y|escape}"{/if}> {tr}pixels{/tr}
{/tab} {tab name="{tr}Advanced{/tr}"}

{tr}Advanced{/tr}

{if $prefs.feature_multilingual eq 'y' and empty($translationOf)}
{/if}
{if $linkto neq ''}
{tr}Test your link: {/tr} {tr}View{/tr}
{/if}
{if $prefs.geo_locate_article eq 'y'}
{$headerlib->add_map()}
{/if} {if $prefs.feature_cms_templates eq 'y' and $tiki_p_use_content_templates eq 'y' and $templates|@count ne 0}
{/if} {if $prefs.feature_cms_emails eq 'y'}
{tr}Email addresses to be sent notifications (comma-separated){/tr} {if !empty($userEmail) and $userEmail neq $prefs.sender_email} {tr}From:{/tr} {/if}
{/if} {if ! empty($all_attributes)}
{tr}Attributes{/tr} {foreach from=$all_attributes item=att key=attname} {assign var='attid' value=$att.itemId|replace:'.':'_'} {assign var='attfullname' value=$att.itemId}
{/foreach}
{/if} {/tab} {/tabset}
{if $articleId}{/if}
{if $smarty.session.wysiwyg neq 'y'} {jq} $("#editpageform").submit(function(evt) { var isHtml = false; if (this.saving && !$("input[name=allowhtml]:checked").length) { $("textarea", this).each(function(){ if ($(this).val().match(/<([A-Z][A-Z0-9]*)\b[^>]*>(.*?)<\/\1>/i)) { isHtml = true; } }); if (isHtml) { this.saving = false; return confirm(tr('You appear to be using HTML in your article but have not selected "Allow full HTML".\nThis will result in HTML tags being removed.\nDo you want to save your edits anyway?')); } } return true; }).attr('saving', false); {/jq} {/if}