From: <pk...@us...> - 2008-08-12 16:27:01
|
Revision: 14184 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14184&view=rev Author: pkdille Date: 2008-08-12 16:27:10 +0000 (Tue, 12 Aug 2008) Log Message: ----------- [MOD] edit blog: code reindenting (no diff) Modified Paths: -------------- trunk/templates/tiki-edit_blog.tpl Modified: trunk/templates/tiki-edit_blog.tpl =================================================================== --- trunk/templates/tiki-edit_blog.tpl 2008-08-12 16:07:18 UTC (rev 14183) +++ trunk/templates/tiki-edit_blog.tpl 2008-08-12 16:27:10 UTC (rev 14184) @@ -1,79 +1,122 @@ <h1> -{if $blogId > 0} -<a class="pagetitle" href="tiki-edit_blog.php?blogId={$blogId}">{tr}Edit Blog{/tr}: {$title}</a> -{else} -<a class="pagetitle" href="tiki-edit_blog.php">{tr}Create Blog{/tr}</a> -{/if} + {if $blogId > 0} + <a class="pagetitle" href="tiki-edit_blog.php?blogId={$blogId}">{tr}Edit Blog{/tr}: {$title}</a> + {else} + <a class="pagetitle" href="tiki-edit_blog.php">{tr}Create Blog{/tr}</a> + {/if} - {if $prefs.feature_help eq 'y'} -<a href="{$prefs.helpurl}Blogs" target="tikihelp" class="tikihelp" title="{tr}Edit Blog{/tr}"> -<img src="img/icons/help.gif" border="0" height="16" width="16" alt='{tr}Help{/tr}' /></a>{/if} + {if $prefs.feature_help eq 'y'} + <a href="{$prefs.helpurl}Blogs" target="tikihelp" class="tikihelp" title="{tr}Edit Blog{/tr}"> + <img src="img/icons/help.gif" border="0" height="16" width="16" alt='{tr}Help{/tr}' /></a> + {/if} - {if $prefs.feature_view_tpl eq 'y'} -<a href="tiki-edit_templates.php?template=tiki-edit_blog.tpl" target="tikihelp" class="tikihelp" title="{tr}View tpl{/tr}: {tr}Edit Blog Tpl{/tr}"> -<img src="img/icons/info.gif" border="0" height="16" width="16" alt='{tr}Edit Tpl{/tr}' /></a>{/if}</h1> + {if $prefs.feature_view_tpl eq 'y'} + <a href="tiki-edit_templates.php?template=tiki-edit_blog.tpl" target="tikihelp" class="tikihelp" title="{tr}View tpl{/tr}: {tr}Edit Blog Tpl{/tr}"> + <img src="img/icons/info.gif" border="0" height="16" width="16" alt='{tr}Edit Tpl{/tr}' /> + </a> + {/if} +</h1> <div class="navbar"> -<a class="linkbut" href="tiki-list_blogs.php">{tr}List Blogs{/tr}</a> -{if $blogId > 0}<a class="linkbut" href="tiki-view_blog.php?blogId={$blogId}">{tr}View Blog{/tr}</a>{/if} + <a class="linkbut" href="tiki-list_blogs.php">{tr}List Blogs{/tr}</a> + + {if $blogId > 0}<a class="linkbut" href="tiki-view_blog.php?blogId={$blogId}">{tr}View Blog{/tr}</a>{/if} </div> + {if $category_needed eq 'y'} -<div class="simplebox highlight">{tr}A category is mandatory{/tr}</div> + <div class="simplebox highlight">{tr}A category is mandatory{/tr}</div> {/if} + <h2>{tr}Current heading{/tr}</h2> + {if strlen($heading) > 0} -{eval var=$heading} + {eval var=$heading} {/if} {if $individual eq 'y'} -<a class="link" href="tiki-objectpermissions.php?objectName={$title|escape:"url"}&objectType=blog&permType=blogs&objectId={$blogId}">{tr}There are individual permissions set for this blog{/tr}</a> + <a class="link" href="tiki-objectpermissions.php?objectName={$title|escape:"url"}&objectType=blog&permType=blogs&objectId={$blogId}">{tr}There are individual permissions set for this blog{/tr}</a> {/if} + <form method="post" action="tiki-edit_blog.php" id="blog-edit-form"> -<input type="hidden" name="blogId" value="{$blogId|escape}" /> -<table class="normal"> -<tr class="editblogform"><td><label for="blog-title">{tr}Title{/tr}</label></td><td><input type="text" name="title" id="blog-title" value="{$title|escape}" /></td></tr> -<tr class="editblogform"><td><label for="blog-desc">{tr}Description{/tr}</label><br />{include file="textareasize.tpl" area_name='blog-desc' formId='blog-edit-form'}</td><td><textarea class="wikiedit" name="description" id="blog-desc" rows="{$rows}" cols="{$cols}" wrap="virtual">{$description|escape}</textarea></td></tr> -<tr class="editblogform"><td>{tr}Creator{/tr}</td><td><select name="creator"> -{if $tiki_p_admin eq 'y' or $tiki_p_blog_admin eq 'y'} -{foreach from=$users key=userId item=u} -<option value="{$u|escape}"{if $u eq $creator} selected="selected"{/if}>{$u}</option> -{/foreach} -{else} -<option value="{$user|escape}" selected="selected">{$user}</option> -{/if} -</select> -</td></tr> -<tr class="editblogform"><td><label for="blogs-number">{tr}Number of posts to show{/tr}</label></td><td><input type="text" name="maxPosts" id="blogs-number" value="{$maxPosts|escape}" /></td></tr> -<tr class="editblogform"><td><label for="blogs-allow_others">{tr}Allow other user to post in this blog{/tr}</label></td><td> -<input type="checkbox" name="public" id="blogs-allow_others" {if $public eq 'y'}checked='checked'{/if}/> -</td></tr> -<tr class="editblogform"><td><label for="blogs-titles">{tr}Use titles in blog posts{/tr}</label></td><td> -<input type="checkbox" name="use_title" id="blogs-titles" {if $use_title eq 'y'}checked='checked'{/if}/> -</td></tr> -<tr class="editblogform"><td><label for="blogs-search">{tr}Allow search{/tr}</label></td><td> -<input type="checkbox" name="use_find" id="blogs-search" {if $use_find eq 'y'}checked='checked'{/if}/> -</td></tr> -<tr class="editblogform"><td><label for="blogs-comments">{tr}Allow comments{/tr}</label></td><td> -<input type="checkbox" name="allow_comments" id="blogs-comments" {if $allow_comments eq 'y' or $allow_comments eq 'c'}checked='checked'{/if}{if $prefs.feature_blogposts_comments ne 'y'} disabled="disabled"{/if} /> -{if $prefs.feature_blogposts_comments ne 'y'}Global post-level comments is disabled.{/if} -</td></tr> -<tr class="editblogform"><td>{tr}Show user avatar{/tr}</td><td> -<input type="checkbox" name="show_avatar" {if $show_avatar eq 'y'}checked='checked'{/if} /> -</td></tr> + <input type="hidden" name="blogId" value="{$blogId|escape}" /> + <table class="normal"> + <tr class="editblogform"> + <td><label for="blog-title">{tr}Title{/tr}</label></td> + <td><input type="text" name="title" id="blog-title" value="{$title|escape}" /></td> + </tr> + <tr class="editblogform"> + <td><label for="blog-desc">{tr}Description{/tr}</label> + <br /> + {include file="textareasize.tpl" area_name='blog-desc' formId='blog-edit-form'} + </td> + <td> + <textarea class="wikiedit" name="description" id="blog-desc" rows="{$rows}" cols="{$cols}" wrap="virtual">{$description|escape}</textarea> + </td> + </tr> + <tr class="editblogform"> + <td>{tr}Creator{/tr}</td> + <td> + <select name="creator"> + {if $tiki_p_admin eq 'y' or $tiki_p_blog_admin eq 'y'} + {foreach from=$users key=userId item=u} + <option value="{$u|escape}"{if $u eq $creator} selected="selected"{/if}>{$u}</option> + {/foreach} + {else} + <option value="{$user|escape}" selected="selected">{$user}</option> + {/if} + </select> + </td> + </tr> + <tr class="editblogform"> + <td><label for="blogs-number">{tr}Number of posts to show{/tr}</label></td> + <td><input type="text" name="maxPosts" id="blogs-number" value="{$maxPosts|escape}" /></td> + </tr> + <tr class="editblogform"> + <td><label for="blogs-allow_others">{tr}Allow other user to post in this blog{/tr}</label></td> + <td><input type="checkbox" name="public" id="blogs-allow_others" {if $public eq 'y'}checked='checked'{/if}/></td> + </tr> + <tr class="editblogform"> + <td><label for="blogs-titles">{tr}Use titles in blog posts{/tr}</label></td> + <td><input type="checkbox" name="use_title" id="blogs-titles" {if $use_title eq 'y'}checked='checked'{/if}/></td> + </tr> + <tr class="editblogform"> + <td><label for="blogs-search">{tr}Allow search{/tr}</label></td> + <td><input type="checkbox" name="use_find" id="blogs-search" {if $use_find eq 'y'}checked='checked'{/if}/></td> + </tr> + <tr class="editblogform"> + <td><label for="blogs-comments">{tr}Allow comments{/tr}</label></td> + <td> + <input type="checkbox" name="allow_comments" id="blogs-comments" {if $allow_comments eq 'y' or $allow_comments eq 'c'}checked='checked'{/if}{if $prefs.feature_blogposts_comments ne 'y'} disabled="disabled"{/if} /> + {if $prefs.feature_blogposts_comments ne 'y'}Global post-level comments is disabled.{/if} + </td> + </tr> + <tr class="editblogform"> + <td>{tr}Show user avatar{/tr}</td> + <td><input type="checkbox" name="show_avatar" {if $show_avatar eq 'y'}checked='checked'{/if} /></td> + </tr> -{if $prefs.feature_blog_heading eq 'y' and $tiki_p_edit_templates eq 'y'} -<tr class="editblogform"> - <td> - <label for="blogs-heading">{tr}Blog heading{/tr}</label> - <br /> - {include file="textareasize.tpl" area_name='blogs-heading' formId='blog-edit-form'}</td> - <td> - <textarea name="heading" id="blogs-heading" rows='10' cols='{$cols}'>{$heading|escape}</textarea> - </td> -</tr> -{/if} -{include file=categorize.tpl} -<tr class="editblogform"><td> </td><td><input type="submit" class="wikiaction" name="preview" value="{tr}Preview{/tr}" /><input type="submit" class="wikiaction" name="save" value="{tr}Save{/tr}" /></td></tr> -</table> + {if $prefs.feature_blog_heading eq 'y' and $tiki_p_edit_templates eq 'y'} + <tr class="editblogform"> + <td> + <label for="blogs-heading">{tr}Blog heading{/tr}</label> + <br /> + {include file="textareasize.tpl" area_name='blogs-heading' formId='blog-edit-form'} + </td> + <td> + <textarea name="heading" id="blogs-heading" rows='10' cols='{$cols}'>{$heading|escape}</textarea> + </td> + </tr> + {/if} + + {include file=categorize.tpl} + + <tr class="editblogform"> + <td> </td> + <td> + <input type="submit" class="wikiaction" name="preview" value="{tr}Preview{/tr}" /> + <input type="submit" class="wikiaction" name="save" value="{tr}Save{/tr}" /> + </td> + </tr> + </table> </form> <br /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |