Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 96 lines (88 sloc) 2.977 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
{strip}

<div class="floaticon">
{bithelp}
{if $package}
{assign var=iconsize value=$gBitSystem->getConfig("site_icon_size")}
{biticon ipackage="$package" iname="pkg_`$package`" iexplain="$package" iclass="$iconsize icon"}
{/if}
</div>

<div class="admin {$package}">
<div class="header">
{if $package}
<h1>{tr}Configure{/tr}: {tr}{$pageName|default:$page|replace:"_":" "|capitalize}{/tr}</h1>
{else}
<h1>{tr}Administration{/tr}</h1>
{/if}
</div>

{* The rest determines which page to include using "page" GET parameter. Default: list-sections
Add a value in first check when you create a new admin page. *}
<div class="body">
{if $file }
{include file="bitpackage:$package/admin_`$file`.tpl"}
{else}
{if $smarty.request.version_check}
{if $version_info.error.number ne 0}
{formfeedback error=$version_info.error.string}
{elseif $version_info}
{legend legend="Version Check"}
{if $version_info.compare eq 0 and !$version_info.release}
{formfeedback success="{tr}Your version is up to date.{/tr}"}
{elseif $version_info.compare lt 0 or $version_info.release}
{formfeedback warning="{tr}Your version is not up to date.{/tr}"}
{elseif $version_info.compare gt 0 or $version_info.release}
{formfeedback warning="{tr}Seems you are using a test version.{/tr}"}
{/if}

<div class="row">
{formlabel label="Your Version"}
{forminput}
<strong>bitweaver {$version_info.local}</strong>
{/forminput}
</div>

{if $version_info.compare lt 0}
<div class="row">
{formlabel label="Upgrade"}
{forminput class=warning}
<strong>bitweaver {$version_info.upgrade}</strong>
{formhelp page="ReleaseTwoChangelog}
{/forminput}
</div>
{elseif $version_info.compare gt 0}
<div class="row">
{formlabel label="Latest Version"}
{forminput}
<strong>bitweaver {$version_info.upgrade}</strong>
{formhelp page="ReleaseTwoChangelog}
{/forminput}
</div>
{/if}

{if $version_info.release}
<div class="row">
{formlabel label="Latest Release"}
{forminput class=warning}
<strong>bitweaver {$version_info.release}</strong>
{formhelp page="ReleaseTwoChangelog}
{/forminput}
</div>
{/if}
{/legend}
{/if}
{/if}

<table width="100%" class="menutable">
<tr>
{assign var="i" value="1"}
{foreach key=key item=template from=$adminTemplates}
<td class="width33p aligntop">
{box class="`$key`menu menu box" ipackage=$key iname="pkg_`$key`" iexplain="$key" iclass="menuicon" title=$key|capitalize}
{include file="bitpackage:`$key`/menu_`$key`_admin.tpl"}
{/box}
</td>
{if not ($i++ mod 3)}
</tr><tr>
{/if}
{/foreach}
</tr>
</table>
{/if}
</div><!-- end .body -->
</div><!-- end .body -->

{/strip}
Something went wrong with that request. Please try again.