diff options
| -rw-r--r-- | templates/admin_topics.tpl | 6 | ||||
| -rw-r--r-- | templates/admin_types.tpl | 8 | ||||
| -rw-r--r-- | templates/article_display.tpl | 14 | ||||
| -rw-r--r-- | templates/articles_mini_search.tpl | 2 | ||||
| -rw-r--r-- | templates/articles_nav.tpl | 8 | ||||
| -rw-r--r-- | templates/edit_submission.tpl | 12 | ||||
| -rw-r--r-- | templates/list_articles.tpl | 8 | ||||
| -rw-r--r-- | templates/list_submissions.tpl | 22 | ||||
| -rw-r--r-- | templates/menu_articles.tpl | 16 | ||||
| -rw-r--r-- | templates/menu_articles_admin.tpl | 6 | ||||
| -rw-r--r-- | templates/preview_article.tpl | 6 | ||||
| -rw-r--r-- | templates/print_article.tpl | 6 | ||||
| -rw-r--r-- | templates/received_articles.tpl | 24 | ||||
| -rwxr-xr-x | templates/submission_display.tpl | 20 |
14 files changed, 79 insertions, 79 deletions
diff --git a/templates/admin_topics.tpl b/templates/admin_topics.tpl index a216774..00bebd6 100644 --- a/templates/admin_topics.tpl +++ b/templates/admin_topics.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/admin_topics.tpl,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/admin_topics.tpl,v 1.2 2005/08/13 09:34:08 squareing Exp $ *} {strip} <div class="floaticon">{bithelp}</div> @@ -58,9 +58,9 @@ </td> <td>{$topics[user].arts} ({$topics[user].subs})</td> <td align="right" nowrap="nowrap"> - <a href="{$gBitLoc.ARTICLES_PKG_URL}admin/admin_topics.php?fRemoveTopic=1&topic_id={$topics[user].topic_id}">{tr}remove topic{/tr}</a> + <a href="{$smarty.const.ARTICLES_PKG_URL}admin/admin_topics.php?fRemoveTopic=1&topic_id={$topics[user].topic_id}">{tr}remove topic{/tr}</a> <br /> - <a href="{$gBitLoc.ARTICLES_PKG_URL}admin/admin_topics.php?fRemoveTopicAll=1&topic_id={$topics[user].topic_id}">{tr}remove topic & articles{/tr}</a> + <a href="{$smarty.const.ARTICLES_PKG_URL}admin/admin_topics.php?fRemoveTopicAll=1&topic_id={$topics[user].topic_id}">{tr}remove topic & articles{/tr}</a> <br /> {smartlink ititle='edit' ibiticon='liberty/edit' ifile='edit_topic.php' topic_id=`$topics[user].topic_id`} {smartlink ititle='permissions' ibiticon='liberty/permissions' ipackage='kernel' ifile='object_permissions.php' objectName="Topic `$topics[user].name`" object_type=topic permType=topics object_id=`$topics[user].topic_id`} diff --git a/templates/admin_types.tpl b/templates/admin_types.tpl index 0986def..bba7562 100644 --- a/templates/admin_types.tpl +++ b/templates/admin_types.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/admin_types.tpl,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/admin_types.tpl,v 1.2 2005/08/13 09:34:09 squareing Exp $ *} {strip} <div class="floaticon">{bithelp}</div> @@ -38,7 +38,7 @@ <tr class="{cycle values="odd,even}"> <td> <input type="hidden" name="type_array[{$types[user].article_type_id}]" /> - <a href="{$gBitLoc.ARTICLES_PKG_URL}index.php?type={$types[user].article_type_id}">{tr}{$types[user].type_name}{/tr}</a> + <a href="{$smarty.const.ARTICLES_PKG_URL}index.php?type={$types[user].article_type_id}">{tr}{$types[user].type_name}{/tr}</a> </td> <td style="text-align:center;"><input title="{tr}Rate{/tr}" type="checkbox" name="use_ratings[{$types[user].article_type_id}]" {if $types[user].use_ratings eq 'y'}checked="checked"{/if} /></td> <td style="text-align:center;"><input title="{tr}Before publication date{/tr}" type="checkbox" name="show_pre_publ[{$types[user].article_type_id}]" {if $types[user].show_pre_publ eq 'y'}checked="checked"{/if} /></td> @@ -111,7 +111,7 @@ {form legend="Modify Article Types"} {section name=user loop=$types} <input type="hidden" name="type_array[{$types[user].article_type_id}]" /> - <h2><a href="{$gBitLoc.ARTICLES_PKG_URL}index.php?type={$types[user].article_type_id}">{tr}{$types[user].type_name}{/tr}</a></h2> + <h2><a href="{$smarty.const.ARTICLES_PKG_URL}index.php?type={$types[user].article_type_id}">{tr}{$types[user].type_name}{/tr}</a></h2> <ul> <li><label><input type="checkbox" name="use_ratings[{$types[user].article_type_id}]" {if $types[user].use_ratings eq 'y'}checked="checked"{/if} /> {tr}Rate{/tr}</label></li> @@ -130,7 +130,7 @@ <li><label><input type="checkbox" name="creator_edit[{$types[user].article_type_id}]" {if $types[user].creator_edit eq 'y'}checked="checked"{/if} />{tr}Author can edit{/tr}</label></li> <li> {if $types[user].num_articles eq 0} - <a title="{tr}Remove{/tr}" href="{$gBitLoc.ARTICLES_PKG_URL}admin/admin_types.php?remove_type={$types[user].article_type_id}">{biticon ipackage=liberty iname=delete iexplain=remove}</a> + <a title="{tr}Remove{/tr}" href="{$smarty.const.ARTICLES_PKG_URL}admin/admin_types.php?remove_type={$types[user].article_type_id}">{biticon ipackage=liberty iname=delete iexplain=remove}</a> {else} {$types[user].num_articles} {/if} diff --git a/templates/article_display.tpl b/templates/article_display.tpl index 9d7982d..89377a2 100644 --- a/templates/article_display.tpl +++ b/templates/article_display.tpl @@ -1,13 +1,13 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/article_display.tpl,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/article_display.tpl,v 1.2 2005/08/13 09:34:09 squareing Exp $ *} {strip} <div class="post"> <div class="floaticon"> {if $gContent->viewerCanEdit()} - <a href="{$gBitLoc.ARTICLES_PKG_URL}edit.php?article_id={$article.article_id}">{biticon ipackage=liberty iname=edit iexplain=edit}</a> + <a href="{$smarty.const.ARTICLES_PKG_URL}edit.php?article_id={$article.article_id}">{biticon ipackage=liberty iname=edit iexplain=edit}</a> {/if} - <a style="display:none;" href="{$gBitLoc.ARTICLES_PKG_URL}print.php?article_id={$article.article_id}">{biticon ipackage=liberty iname=print iexplain=print}</a> + <a style="display:none;" href="{$smarty.const.ARTICLES_PKG_URL}print.php?article_id={$article.article_id}">{biticon ipackage=liberty iname=print iexplain=print}</a> {if $bit_p_remove_article eq 'y'} - <a href="{$gBitLoc.ARTICLES_PKG_URL}list.php?remove={$article.article_id}">{biticon ipackage=liberty iname=delete iexplain=remove}</a> + <a href="{$smarty.const.ARTICLES_PKG_URL}list.php?remove={$article.article_id}">{biticon ipackage=liberty iname=delete iexplain=remove}</a> {/if} </div><!-- end .footer --> @@ -42,7 +42,7 @@ <div class="introduction"> {if $article.show_image eq 'y' && $article.img_url} <div class="image"> - <a href="{$gBitLoc.ARTICLES_PKG_URL}read.php?article_id={$article.article_id}"> + <a href="{$smarty.const.ARTICLES_PKG_URL}read.php?article_id={$article.article_id}"> <img class="icon" alt="{$article.topic_name}" src="{$article.img_url}"/> </a> </div> @@ -61,11 +61,11 @@ <div class="footer"> {if $showDescriptionsOnly} - <a href="{$gBitLoc.ARTICLES_PKG_URL}read.php?article_id={$article.article_id}">{tr}Read More...{/tr}</a> + <a href="{$smarty.const.ARTICLES_PKG_URL}read.php?article_id={$article.article_id}">{tr}Read More...{/tr}</a> {/if} {if $gBitSystem->isFeatureActive('feature_article_comments')} {if $showDescriptionsOnly} | {/if} - {if $showDescriptionsOnly}<a href="{$gBitLoc.ARTICLES_PKG_URL}read.php?article_id={$article.article_id}#bitcomments">{/if} + {if $showDescriptionsOnly}<a href="{$smarty.const.ARTICLES_PKG_URL}read.php?article_id={$article.article_id}#bitcomments">{/if} {$article.num_comments} Comment{if $article.num_comments > 1 || $article.num_comments == 0}s{/if} {if $showDescriptionsOnly}</a>{/if} {/if} diff --git a/templates/articles_mini_search.tpl b/templates/articles_mini_search.tpl index 59d7270..982d51f 100644 --- a/templates/articles_mini_search.tpl +++ b/templates/articles_mini_search.tpl @@ -1,7 +1,7 @@ <table class="find"> <tr><td>{tr}Find{/tr}</td> <td> - <form method="get" action="{$gBitLoc.ARTICLES_PKG_URL}list.php"> + <form method="get" action="{$smarty.const.ARTICLES_PKG_URL}list.php"> <input type="text" name="find" value="{$find|escape}" /> <input type="submit" value="{tr}find{/tr}" name="search" /> <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" /> diff --git a/templates/articles_nav.tpl b/templates/articles_nav.tpl index 814cfc1..9c467ed 100644 --- a/templates/articles_nav.tpl +++ b/templates/articles_nav.tpl @@ -1,10 +1,10 @@ <div class="navbar"> <ul> - <li><a href="{$gBitLoc.ARTICLES_PKG_URL}index.php">{tr}View articles{/tr}</a></li> - <li><a href="{$gBitLoc.ARTICLES_PKG_URL}list.php">{tr}List articles{/tr}</a></li> - <li><a href="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php">{tr}List submissions{/tr}</a></li> + <li><a href="{$smarty.const.ARTICLES_PKG_URL}index.php">{tr}View articles{/tr}</a></li> + <li><a href="{$smarty.const.ARTICLES_PKG_URL}list.php">{tr}List articles{/tr}</a></li> + <li><a href="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php">{tr}List submissions{/tr}</a></li> {if $bit_p_edit_article eq 'y'} - <li><a href="{$gBitLoc.ARTICLES_PKG_URL}edit.php">{tr}New article{/tr}</a></li> + <li><a href="{$smarty.const.ARTICLES_PKG_URL}edit.php">{tr}New article{/tr}</a></li> {/if} </ul> </div> diff --git a/templates/edit_submission.tpl b/templates/edit_submission.tpl index 8d597e3..76766f2 100644 --- a/templates/edit_submission.tpl +++ b/templates/edit_submission.tpl @@ -1,4 +1,4 @@ -{popup_init src="`$gBitLoc.THEMES_PKG_URL`overlib.js"} +{popup_init src="`$smarty.const.THEMES_PKG_URL`overlib.js"} <div class="floaticon">{bithelp}</div> {if $preview} {include file="bitpackage:articles/submission_display.tpl"} @@ -6,11 +6,11 @@ <div class="admin articles"> <div class="header"> -<h1><a href="{$gBitLoc.ARTICLES_PKG_URL}edit_submission.php">{tr}Edit{/tr}: {$title}</a></h1> +<h1><a href="{$smarty.const.ARTICLES_PKG_URL}edit_submission.php">{tr}Edit{/tr}: {$title}</a></h1> </div> <div class="body"> -<form enctype="multipart/form-data" method="post" action="{$gBitLoc.ARTICLES_PKG_URL}edit_submission.php" id="tikieditsubmission"> +<form enctype="multipart/form-data" method="post" action="{$smarty.const.ARTICLES_PKG_URL}edit_submission.php" id="tikieditsubmission"> <input type="hidden" name="sub_id" value="{$sub_id|escape}" /> <input type="hidden" name="image_data" value="{$image_data|escape}" /> <input type="hidden" name="use_image" value="{$use_image|escape}" /> @@ -27,7 +27,7 @@ {/section} <option value="" {if $topic_id eq 0}selected="selected"{/if}>{tr}None{/tr}</option> </select> -{if $bit_p_admin_cms eq 'y'}<a href="{$gBitLoc.ARTICLES_PKG_URL}admin/admin_topics.php">{tr}Admin topics{/tr}</a>{/if} +{if $bit_p_admin_cms eq 'y'}<a href="{$smarty.const.ARTICLES_PKG_URL}admin/admin_topics.php">{tr}Admin topics{/tr}</a>{/if} </td></tr> <tr><td>{tr}Type{/tr}</td><td> @@ -36,7 +36,7 @@ <option value="{$types[t].type|escape}" {if $type eq $types[t].type}selected="selected"{/if}>{$types[t].type}</option> {/section} </select> -{if $bit_p_admin_cms eq 'y'}<a href="{$gBitLoc.ARTICLES_PKG_URL}article_types.php">{tr}Admin types{/tr}</a>{/if} +{if $bit_p_admin_cms eq 'y'}<a href="{$smarty.const.ARTICLES_PKG_URL}article_types.php">{tr}Admin types{/tr}</a>{/if} </td></tr> <tr id="isreview" {if $type ne 'Review'}style="display:none;"{else}style="display:block;"{/if}><td>{tr}Rating{/tr}</td><td> <select name="rating"> @@ -69,7 +69,7 @@ <tr><td>Image: </td><td>{$image_name} [{$image_type}] ({$image_size} bytes)</td></tr> {if $tempimg ne 'n'} <tr><td>Image:</td><td> - <img class="icon" alt="{tr}Article image{/tr}" src="{$gBitLoc.TEMP_PKG_URL}{$tempimg}" {if $image_x > 0}width="{$image_x}"{/if}{if $image_y > 0 }height="{$image_y}"{/if} /> + <img class="icon" alt="{tr}Article image{/tr}" src="{$smarty.const.TEMP_PKG_URL}{$tempimg}" {if $image_x > 0}width="{$image_x}"{/if}{if $image_y > 0 }height="{$image_y}"{/if} /> </td></tr> {/if} {/if} diff --git a/templates/list_articles.tpl b/templates/list_articles.tpl index 3cd0b6f..0487ff1 100644 --- a/templates/list_articles.tpl +++ b/templates/list_articles.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/list_articles.tpl,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/list_articles.tpl,v 1.2 2005/08/13 09:34:09 squareing Exp $ *} <div class="floaticon">{bithelp}</div> {strip} @@ -63,7 +63,7 @@ <td colspan="10"> {if $art_list_title eq 'y'} {if $gBitUser->hasPermission( 'bit_p_read_article' )} - <a href="{$gBitLoc.ARTICLES_PKG_URL}read.php?article_id={$listpages[changes].article_id}"> + <a href="{$smarty.const.ARTICLES_PKG_URL}read.php?article_id={$listpages[changes].article_id}"> {/if} {$listpages[changes].title} {if $gBitUser->hasPermission( 'bit_p_read_article' )} @@ -102,10 +102,10 @@ {/if} <td> {if $bit_p_edit_article eq 'y' or ($listpages[changes].author eq $user and $listpages[changes].creator_edit eq 'y')} - <a title="{tr}Edit{/tr}" href="{$gBitLoc.ARTICLES_PKG_URL}edit.php?article_id={$listpages[changes].article_id}"><img class="icon" src="{$gBitLoc.KERNEL_PKG_URL}icons/edit.gif" alt="{tr}Edit{/tr}" /></a> + <a title="{tr}Edit{/tr}" href="{$smarty.const.ARTICLES_PKG_URL}edit.php?article_id={$listpages[changes].article_id}"><img class="icon" src="{$smarty.const.KERNEL_PKG_URL}icons/edit.gif" alt="{tr}Edit{/tr}" /></a> {/if} {if $bit_p_remove_article eq 'y'} - <a title="{tr}Remove{/tr}" href="{$gBitLoc.ARTICLES_PKG_URL}list.php?offset={$offset}&sort_mode={$sort_mode}&remove={$listpages[changes].article_id}"><img class="icon" src="{$gBitLoc.KERNEL_PKG_URL}icons/delete.gif" alt="{tr}Remove{/tr}" /></a> + <a title="{tr}Remove{/tr}" href="{$smarty.const.ARTICLES_PKG_URL}list.php?offset={$offset}&sort_mode={$sort_mode}&remove={$listpages[changes].article_id}"><img class="icon" src="{$smarty.const.KERNEL_PKG_URL}icons/delete.gif" alt="{tr}Remove{/tr}" /></a> {/if} </td> </tr> diff --git a/templates/list_submissions.tpl b/templates/list_submissions.tpl index 4345980..e588e67 100644 --- a/templates/list_submissions.tpl +++ b/templates/list_submissions.tpl @@ -1,14 +1,14 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/Attic/list_submissions.tpl,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/Attic/list_submissions.tpl,v 1.2 2005/08/13 09:34:09 squareing Exp $ *} <div class="listing articles"> <div class="header"> -<h1><a href="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php">{tr}Submissions{/tr}</a></h1> +<h1><a href="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php">{tr}Submissions{/tr}</a></h1> </div> <div class="body"> <table class="find"> <tr><td>{tr}Find{/tr}</td> <td> - <form method="get" action="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php"> + <form method="get" action="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php"> <input type="text" name="find" value="{$find|escape}" /> <input type="submit" value="{tr}find{/tr}" name="search" /> <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" /> @@ -19,22 +19,22 @@ <table class="data"> <tr> {if $art_list_title eq 'y'} - <th><a href="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={if $sort_mode eq 'title_desc'}title_asc{else}title_desc{/if}">{tr}Title{/tr}</a></th> + <th><a href="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={if $sort_mode eq 'title_desc'}title_asc{else}title_desc{/if}">{tr}Title{/tr}</a></th> {/if}{if $art_list_topic eq 'y'} - <th><a href="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={if $sort_mode eq 'topic_name_desc'}topic_name_asc{else}topic_name_desc{/if}">{tr}Topic{/tr}</a></th> + <th><a href="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={if $sort_mode eq 'topic_name_desc'}topic_name_asc{else}topic_name_desc{/if}">{tr}Topic{/tr}</a></th> {/if}{if $art_list_date eq 'y'} - <th><a href="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={if $sort_mode eq 'publish_date_desc'}publish_date_asc{else}publish_date_desc{/if}">{tr}PublishDate{/tr}</a></th> + <th><a href="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={if $sort_mode eq 'publish_date_desc'}publish_date_asc{else}publish_date_desc{/if}">{tr}PublishDate{/tr}</a></th> {/if}{if $art_list_img eq 'y'} <th>{tr}Image{/tr}</th> {/if}{if $art_list_author eq 'y'} - <th><a href="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={if $sort_mode eq 'author_desc'}author_asc{else}author_desc{/if}">{tr}User{/tr}</a></th> + <th><a href="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={if $sort_mode eq 'author_desc'}author_asc{else}author_desc{/if}">{tr}User{/tr}</a></th> {/if}<th>{tr}Action{/tr}</th> </tr> {cycle values="even,odd" print=false} {section name=changes loop=$listpages} <tr class="{cycle}"> {if $art_list_title eq 'y'} - <td><a title="{$listpages[changes].title}" href="{$gBitLoc.ARTICLES_PKG_URL}edit_submission.php?sub_id={$listpages[changes].sub_id}">{$listpages[changes].title|truncate:20:"...":true}</a> + <td><a title="{$listpages[changes].title}" href="{$smarty.const.ARTICLES_PKG_URL}edit_submission.php?sub_id={$listpages[changes].sub_id}">{$listpages[changes].title|truncate:20:"...":true}</a> {*if $listpages[changes].type eq 'Review'}(r){/if*} </td> {/if}{if $art_list_topic eq 'y'} @@ -49,11 +49,11 @@ {/if} <td> {if $gBitUser->hasPermission('bit_p_edit_submission') || $listpages[changes].user_id eq $gBitUser->mUserId} - <a href="{$gBitLoc.ARTICLES_PKG_URL}edit.php?article_id={$listpages[changes].article_id}"><img class="icon" src="{$gBitLoc.KERNEL_PKG_URL}icons/edit.gif" alt="{tr}Edit{/tr}" title="{tr}Edit{/tr}" /></a> + <a href="{$smarty.const.ARTICLES_PKG_URL}edit.php?article_id={$listpages[changes].article_id}"><img class="icon" src="{$smarty.const.KERNEL_PKG_URL}icons/edit.gif" alt="{tr}Edit{/tr}" title="{tr}Edit{/tr}" /></a> {/if} {if $gBitUser->hasPermission('bit_p_admin_articles') || $gBitUser->hasPermission('bit_p_approve_submission')} - <a href="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={$sort_mode}&deny={$listpages[changes].article_id}"><img class="icon" src="{$gBitLoc.KERNEL_PKG_URL}icons/delete.gif" alt="{tr}Remove{/tr}" title="{tr}Deny{/tr}" /></a> - <a href="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php?approve={$listpages[changes].article_id}"><img class="icon" src="{$gBitLoc.IMG_PKG_URL}icons2/post.gif" alt="{tr}Approve{/tr}" title="{tr}Approve{/tr}" /></a> + <a href="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php?offset={$offset}&sort_mode={$sort_mode}&deny={$listpages[changes].article_id}"><img class="icon" src="{$smarty.const.KERNEL_PKG_URL}icons/delete.gif" alt="{tr}Remove{/tr}" title="{tr}Deny{/tr}" /></a> + <a href="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php?approve={$listpages[changes].article_id}"><img class="icon" src="{$smarty.const.IMG_PKG_URL}icons2/post.gif" alt="{tr}Approve{/tr}" title="{tr}Approve{/tr}" /></a> {/if} </td> </tr> diff --git a/templates/menu_articles.tpl b/templates/menu_articles.tpl index 040277f..eda7f5e 100644 --- a/templates/menu_articles.tpl +++ b/templates/menu_articles.tpl @@ -1,28 +1,28 @@ {strip} <ul> {if $gBitUser->hasPermission( 'bit_p_read_article' )} - <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}index.php">{biticon ipackage=liberty iname=home iexplain="articles home" iforce=icon} {tr}Articles Home{/tr}</a></li> - <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}list.php">{biticon ipackage=liberty iname=list iexplain="list articles" iforce=icon} {tr}List articles{/tr}</a></li> + <li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}index.php">{biticon ipackage=liberty iname=home iexplain="articles home" iforce=icon} {tr}Articles Home{/tr}</a></li> + <li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}list.php">{biticon ipackage=liberty iname=list iexplain="list articles" iforce=icon} {tr}List articles{/tr}</a></li> {/if} {if $gBitUser->hasPermission( 'bit_p_edit_article') || $gBitUser->hasPermission('bit_p_submit_article') } - <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}edit.php">{biticon ipackage=liberty iname=new iexplain="new article" iforce=icon} {tr}{if $gBitUser->hasPermission('bit_p_edit_article')}Write{else}Submit{/if} article{/tr}</a></li> + <li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}edit.php">{biticon ipackage=liberty iname=new iexplain="new article" iforce=icon} {tr}{if $gBitUser->hasPermission('bit_p_edit_article')}Write{else}Submit{/if} article{/tr}</a></li> {/if} {if $gBitSystemPrefs.feature_cms_rankings eq 'y' && $gBitUser->hasPermission( 'bit_p_read_article ' )} - <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}rankings.php">{biticon ipackage=liberty iname=list iexplain="article rankings" iforce=icon} {tr}Article Rankings{/tr}</a></li> + <li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}rankings.php">{biticon ipackage=liberty iname=list iexplain="article rankings" iforce=icon} {tr}Article Rankings{/tr}</a></li> {/if} {if $gBitSystemPrefs.feature_comm eq 'y' && $gBitUser->hasPermission( 'bit_p_send_articles ' )} - <li><a class="item" href="{$gBitLoc.XMLRPC_PKG_URL}send_objects.php">{biticon ipackage=liberty iname=spacer iexplain="send articles" iforce=icon} {tr}Send articles{/tr}</a></li> + <li><a class="item" href="{$smarty.const.XMLRPC_PKG_URL}send_objects.php">{biticon ipackage=liberty iname=spacer iexplain="send articles" iforce=icon} {tr}Send articles{/tr}</a></li> {/if} {if $gBitSystem->isFeatureActive('feature_article_submissions')} {if $gBitUser->hasPermission( 'bit_p_submit_article ' ) || $gBitUser->hasPermission( 'bit_p_approve_submission ' ) || $gBitUser->hasPermission( 'bit_p_remove_submission ' )} - <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}list_submissions.php">{biticon ipackage=liberty iname=list iexplain="view submissions" iforce=icon} {tr}View submissions{/tr}</a></li> + <li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}list_submissions.php">{biticon ipackage=liberty iname=list iexplain="view submissions" iforce=icon} {tr}View submissions{/tr}</a></li> {/if} {/if} {if $gBitUser->hasPermission( 'bit_p_admin_articles' )} - <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}admin/admin_topics.php">{biticon ipackage=liberty iname=spacer iexplain="admin topics" iforce=icon} {tr}Article topics{/tr}</a></li> - <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}admin/admin_types.php">{biticon ipackage=liberty iname=spacer iexplain="admin types" iforce=icon} {tr}Article types{/tr}</a></li> + <li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}admin/admin_topics.php">{biticon ipackage=liberty iname=spacer iexplain="admin topics" iforce=icon} {tr}Article topics{/tr}</a></li> + <li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}admin/admin_types.php">{biticon ipackage=liberty iname=spacer iexplain="admin types" iforce=icon} {tr}Article types{/tr}</a></li> {/if} </ul> {/strip} diff --git a/templates/menu_articles_admin.tpl b/templates/menu_articles_admin.tpl index f7a411e..b7fccfb 100644 --- a/templates/menu_articles_admin.tpl +++ b/templates/menu_articles_admin.tpl @@ -1,7 +1,7 @@ {strip} <ul> - <li><a class="item" href="{$gBitLoc.KERNEL_PKG_URL}admin/index.php?page=articles">{tr}Articles Settings{/tr}</a></li> - <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}admin/admin_topics.php">{tr}Article Topics{/tr}</a></li> - <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}admin/admin_types.php">{tr}Article Types{/tr}</a></li> + <li><a class="item" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=articles">{tr}Articles Settings{/tr}</a></li> + <li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}admin/admin_topics.php">{tr}Article Topics{/tr}</a></li> + <li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}admin/admin_types.php">{tr}Article Types{/tr}</a></li> </ul> {/strip} diff --git a/templates/preview_article.tpl b/templates/preview_article.tpl index a548e8f..1bc9673 100644 --- a/templates/preview_article.tpl +++ b/templates/preview_article.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/preview_article.tpl,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/preview_article.tpl,v 1.2 2005/08/13 09:34:09 squareing Exp $ *} <h2>{tr}Preview{/tr} {$title}</h2> <div class="display articles"> <div class="articleheader"> @@ -10,10 +10,10 @@ <div class="articleheading"> {tr}Rating{/tr}: {repeat count=$rating} -<img src="{$gBitLoc.IMG_PKG_URL}icons/blue.gif" class="icon" alt="" /> +<img src="{$smarty.const.IMG_PKG_URL}icons/blue.gif" class="icon" alt="" /> {/repeat} {if $rating > $entrating} -<img src="{$gBitLoc.IMG_PKG_URL}icons/bluehalf.gif" class="icon" alt="" /> +<img src="{$smarty.const.IMG_PKG_URL}icons/bluehalf.gif" class="icon" alt="" /> {/if} ({$rating}/10) </div> diff --git a/templates/print_article.tpl b/templates/print_article.tpl index ee58a86..22a0c1a 100644 --- a/templates/print_article.tpl +++ b/templates/print_article.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/print_article.tpl,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/print_article.tpl,v 1.2 2005/08/13 09:34:09 squareing Exp $ *} {* Index we display a wiki page here *} {include file="bitpackage:kernel/header.tpl"} @@ -29,9 +29,9 @@ <div class="articletrailer"> ({$size} bytes {if $bit_p_edit_article} - [<a href="{$gBitLoc.ARTICLES_PKG_URL}edit.php?article_id={$article_id}">{tr}Edit{/tr}</a>] + [<a href="{$smarty.const.ARTICLES_PKG_URL}edit.php?article_id={$article_id}">{tr}Edit{/tr}</a>] {/if}{if $bit_p_remove_article} - [<a href="{$gBitLoc.ARTICLES_PKG_URL}list.php?remove={$article_id}">{tr}Remove{/tr}</a>] + [<a href="{$smarty.const.ARTICLES_PKG_URL}list.php?remove={$article_id}">{tr}Remove{/tr}</a>] {/if} ) </div> {* end articletrailer *} diff --git a/templates/received_articles.tpl b/templates/received_articles.tpl index 91dca94..eca0b57 100644 --- a/templates/received_articles.tpl +++ b/templates/received_articles.tpl @@ -1,9 +1,9 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/Attic/received_articles.tpl,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/Attic/received_articles.tpl,v 1.2 2005/08/13 09:34:09 squareing Exp $ *} <div class="floaticon">{bithelp}</div> <div class="admin articles"> <div class="header"> -<h1><a href="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php">{tr}Received articles{/tr}</a></h1> +<h1><a href="{$smarty.const.ARTICLES_PKG_URL}received_articles.php">{tr}Received articles{/tr}</a></h1> </div> <div class="body"> @@ -40,7 +40,7 @@ {if $received_article_id > 0} <h2>{tr}Edit received article{/tr}</h2> -<form action="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php" method="post"> +<form action="{$smarty.const.ARTICLES_PKG_URL}received_articles.php" method="post"> <input type="hidden" name="received_article_id" value="{$received_article_id|escape}" /> <input type="hidden" name="created" value="{$created|escape}" /> <input type="hidden" name="image_name" value="{$image_name|escape}" /> @@ -55,7 +55,7 @@ <option value="{$types[t].type|escape}" {if $type eq $types[t].type}selected="selected"{/if}>{$types[t].type}</option> {/section} </select> -{if $bit_p_admin_cms eq 'y'}<a href="{$gBitLoc.ARTICLES_PKG_URL}article_types.php">{tr}Admin types{/tr}</a>{/if} +{if $bit_p_admin_cms eq 'y'}<a href="{$smarty.const.ARTICLES_PKG_URL}article_types.php">{tr}Admin types{/tr}</a>{/if} </td></tr> <tr id="isreview" {if $type ne 'Review'}style="display:none;"{else}style="display:block;"{/if}><td>{tr}Rating{/tr}</td><td> <select name="rating"> @@ -120,7 +120,7 @@ <table class="find"> <tr><td>{tr}Find{/tr}</td> <td> - <form method="get" action="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php"> + <form method="get" action="{$smarty.const.ARTICLES_PKG_URL}received_articles.php"> <input type="text" name="find" /> <input type="submit" name="search" value="{tr}find{/tr}" /> <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" /> @@ -131,11 +131,11 @@ <table class="data"> <tr> -<th><a href="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'received_article_id_desc'}received_article_id_asc{else}received_article_id_desc{/if}">{tr}ID{/tr}</a></th> -<th><a href="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'title_desc'}title_asc{else}title_desc{/if}">{tr}title{/tr}</a></th> -<th><a href="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'received_date_desc'}received_date_asc{else}received_date_desc{/if}">{tr}Date{/tr}</a></th> -<th><a href="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'received_from_site_desc'}received_from_site_asc{else}received_from_site_desc{/if}">{tr}Site{/tr}</a></th> -<th><a href="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'received_from_user_desc'}received_from_user_asc{else}received_from_user_desc{/if}">{tr}User{/tr}</a></th> +<th><a href="{$smarty.const.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'received_article_id_desc'}received_article_id_asc{else}received_article_id_desc{/if}">{tr}ID{/tr}</a></th> +<th><a href="{$smarty.const.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'title_desc'}title_asc{else}title_desc{/if}">{tr}title{/tr}</a></th> +<th><a href="{$smarty.const.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'received_date_desc'}received_date_asc{else}received_date_desc{/if}">{tr}Date{/tr}</a></th> +<th><a href="{$smarty.const.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'received_from_site_desc'}received_from_site_asc{else}received_from_site_desc{/if}">{tr}Site{/tr}</a></th> +<th><a href="{$smarty.const.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={if $sort_mode eq 'received_from_user_desc'}received_from_user_asc{else}received_from_user_desc{/if}">{tr}User{/tr}</a></th> <th>{tr}action{/tr}</th> </tr> {cycle values="even,odd" print=false} @@ -147,8 +147,8 @@ <td>{$channels[user].received_from_site}</td> <td>{$channels[user].received_from_user}</td> <td> - <a href="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={$sort_mode}&received_article_id={$channels[user].received_article_id}"><img class="icon" src="{$gBitLoc.KERNEL_PKG_URL}icons/edit.gif" alt="{tr}edit{/tr}" title="{tr}edit{/tr}" /></a> - <a href="{$gBitLoc.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={$sort_mode}&remove={$channels[user].received_article_id}"><img class="icon" src="{$gBitLoc.KERNEL_PKG_URL}icons/delete.gif" alt="{tr}remove{/tr}" title="{tr}remove{/tr}" /></a> + <a href="{$smarty.const.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={$sort_mode}&received_article_id={$channels[user].received_article_id}"><img class="icon" src="{$smarty.const.KERNEL_PKG_URL}icons/edit.gif" alt="{tr}edit{/tr}" title="{tr}edit{/tr}" /></a> + <a href="{$smarty.const.ARTICLES_PKG_URL}received_articles.php?offset={$offset}&sort_mode={$sort_mode}&remove={$channels[user].received_article_id}"><img class="icon" src="{$smarty.const.KERNEL_PKG_URL}icons/delete.gif" alt="{tr}remove{/tr}" title="{tr}remove{/tr}" /></a> </td> </tr> {sectionelse} diff --git a/templates/submission_display.tpl b/templates/submission_display.tpl index cd7c6a1..8aaf3be 100755 --- a/templates/submission_display.tpl +++ b/templates/submission_display.tpl @@ -1,11 +1,11 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/Attic/submission_display.tpl,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/Attic/submission_display.tpl,v 1.2 2005/08/13 09:34:09 squareing Exp $ *} <div class="display articles"> <div class="header"> <h1>{$title}</h1> {if ($show_author eq 'y') or ($show_pubdate eq 'y') or ($show_expdate eq 'y') or ($show_reads eq 'y')} <div class="date"> {if $show_author eq 'y'} - {tr}By{/tr} <a href="{$gBitLoc.USERS_PKG_URL}index.php?fHomepage={$author}">{$author_name}</a> + {tr}By{/tr} <a href="{$smarty.const.USERS_PKG_URL}index.php?fHomepage={$author}">{$author_name}</a> {/if} {if $show_pubdate eq 'y'} {tr}on{/tr} {$publish_date|bit_short_datetime} @@ -25,10 +25,10 @@ <div class="articlerating"> {tr}Rating{/tr}: {repeat count=$rating} - <img src="{$gBitLoc.IMG_PKG_URL}icons/blue.gif" alt="" /> + <img src="{$smarty.const.IMG_PKG_URL}icons/blue.gif" alt="" /> {/repeat} {if $rating > $entrating} - <img src="{$gBitLoc.IMG_PKG_URL}icons/bluehalf.gif" alt="" /> + <img src="{$smarty.const.IMG_PKG_URL}icons/bluehalf.gif" alt="" /> {/if} {$rating}/10 </div> @@ -37,7 +37,7 @@ <div class="introduction"> {if $show_image eq 'y'} {if !$parsed_body} - <a href="{$gBitLoc.ARTICLES_PKG_URL}read.php?article_id={$article_id}"> + <a href="{$smarty.const.ARTICLES_PKG_URL}read.php?article_id={$article_id}"> {/if} {if $hasImage eq 'y'} <div class="introductionimage"> @@ -58,7 +58,7 @@ {/section} {if ($show_avatar eq 'y') AND ($iconShown != "TRUE") AND ($avatar_lib_name) } <div class="introductionimage"> - <a href="{$gBitLoc.USERS_PKG_URL}index.php?fHomepage={$author}"><img alt="{$author}" class="icon" src="{$avatar_lib_name}" /></a> + <a href="{$smarty.const.USERS_PKG_URL}index.php?fHomepage={$author}"><img alt="{$author}" class="icon" src="{$avatar_lib_name}" /></a> </div> {/if} {/if} @@ -80,18 +80,18 @@ <div class="footer"> <div class="footericon"> {if $bit_p_edit_article eq 'y'} - <a href="{$gBitLoc.ARTICLES_PKG_URL}edit.php?article_id={$article_id}"><img class="icon" src="{$gBitLoc.KERNEL_PKG_URL}icons/edit.gif" alt="{tr}Edit{/tr}" title="{tr}Edit{/tr}" /></a> + <a href="{$smarty.const.ARTICLES_PKG_URL}edit.php?article_id={$article_id}"><img class="icon" src="{$smarty.const.KERNEL_PKG_URL}icons/edit.gif" alt="{tr}Edit{/tr}" title="{tr}Edit{/tr}" /></a> {/if} - <a href="{$gBitLoc.ARTICLES_PKG_URL}print.php?article_id={$article_id}"><img class="icon" src="{$gBitLoc.KERNEL_PKG_URL}icons/print.gif" alt="{tr}Print{/tr}" title="{tr}Print{/tr}" /></a> + <a href="{$smarty.const.ARTICLES_PKG_URL}print.php?article_id={$article_id}"><img class="icon" src="{$smarty.const.KERNEL_PKG_URL}icons/print.gif" alt="{tr}Print{/tr}" title="{tr}Print{/tr}" /></a> {if $bit_p_remove_article eq 'y'} - <a href="{$gBitLoc.ARTICLES_PKG_URL}list.php?remove={$article_id}"><img class="icon" src="{$gBitLoc.KERNEL_PKG_URL}icons/delete.gif" alt="{tr}Remove{/tr}" title="{tr}Remove{/tr}" /></a> + <a href="{$smarty.const.ARTICLES_PKG_URL}list.php?remove={$article_id}"><img class="icon" src="{$smarty.const.KERNEL_PKG_URL}icons/delete.gif" alt="{tr}Remove{/tr}" title="{tr}Remove{/tr}" /></a> {/if} </div> {if $parsed_body eq ''} {if ($size > 0) or (($gBitSystemPrefs.feature_article_comments eq 'y') and ($bit_p_read_comments eq 'y'))} {if ($heading_only ne 'y')} - <a href="{$gBitLoc.ARTICLES_PKG_URL}read.php?article_id={$article_id}">{tr}Read More{/tr}</a> + <a href="{$smarty.const.ARTICLES_PKG_URL}read.php?article_id={$article_id}">{tr}Read More{/tr}</a> {else} {/if} {if ($gBitSystemPrefs.feature_article_comments eq 'y') |
