Updated plugins tpls (New admin theme)

This commit is contained in:
franciscoarocas 2021-01-01 21:24:39 +01:00
parent 4a711c40cb
commit c94c674d48
18 changed files with 277 additions and 206 deletions

View File

@ -0,0 +1,11 @@
<?php
$policies = array (
0 =>
array (
'do' => '0',
'is_all' => true,
),
);
?>

View File

@ -1,4 +1,8 @@
<h2>{$plang.head}</h2>
<div class="row">
<div class="col-12">
<div class="card shadow mb-4">
<div class="card-header"><h6 class="m-0 font-weight-bold text-primary">{$plang.head}</h6></div>
<div class="card-body">
<p>{$plang.description}</p>
{include file=shared:errorlist.tpl}
@ -8,10 +12,13 @@
{html_form}
<h4><label for="wp-apikey">{$plang.apikey}</label></h4>
<p><input id="wp-apikey" type="text" name="wp-apikey" value="{$akismetconf.apikey}" />
<input type="submit" value="{$plang.submit}"/> </p>
<p><input id="wp-apikey" class="form-control" type="text" name="wp-apikey" value="{$akismetconf.apikey}" />
<input type="submit" class="btn btn-primary" value="{$plang.submit}"/> </p>
<p> {$plang.whatis} </p>
{/html_form}
</div>
</div>
</div>
</div>
</div>

View File

@ -16,7 +16,7 @@
{$plang.allow_html}
</label></dt>
<dd>
<p><input type="checkbox" name="bb-allow-html" id="bb-allow-html" {if $bbchecked[0]}checked="checked"{/if} />
<p><input type="checkbox" class="form-check-input" name="bb-allow-html" id="bb-allow-html" {if $bbchecked[0]}checked="checked"{/if} />
{$plang.allow_html_long}</p>
</dd>
@ -24,7 +24,7 @@
{$plang.toolbar}
</label></dt>
<dd>
<p><input type="checkbox" name="bb-toolbar" id="bb-toolbar" {if $bbchecked[2]}checked="checked"{/if} />
<p><input type="checkbox" class="form-check-input" name="bb-toolbar" id="bb-toolbar" {if $bbchecked[2]}checked="checked"{/if} />
{$plang.toolbar_long}</p>
</dd>
@ -38,7 +38,7 @@
{$plang.comments}
</label></dt>
<dd>
<p><input type="checkbox" name="bb-comments" id="bb-comments" {if $bbchecked[1]}checked="checked"{/if} />
<p><input type="checkbox" class="form-check-input" name="bb-comments" id="bb-comments" {if $bbchecked[1]}checked="checked"{/if} />
{$plang.comments_long} </p>
</dd>
@ -47,7 +47,7 @@
</label></dt>
<dd>
<p>{$plang.urlmaxlen_long_pre}
<input class="form-control input_gray bbcode_input" type="text" name="bb-maxlen" size="3" value="{$bbconf.number}">
<input class="form-control input_gray bbcode_input" type="text" name="bb-maxlen" size="3" value="{$bbconf.number}" style="display: inline-block;">
{$plang.urlmaxlen_long_post}</p>
</dd>

View File

@ -1,4 +1,8 @@
<h2>{$plang.head}</h2>
<div class="row">
<div class="col-12">
<div class="card shadow mb-4">
<div class="card-header"><h6 class="m-0 font-weight-bold text-primary">{$plang.head}</h6></div>
<div class="card-body">
<p>{$plang.description}</p>
{include file=shared:errorlist.tpl}
@ -8,7 +12,7 @@
action="{$smarty.const.BLOG_BASEURL}admin.php?p=entry"
enctype="multipart/form-data">
<table class="entrylist">
<table class="entrylist table">
<thead>
<tr>
<th>{$plang.id}</th>
@ -57,4 +61,7 @@
</form>
{/static_block}
</div>
</div>
</div>
</div>

View File

@ -9,7 +9,7 @@
<p>{$plang.app_spamdesc}</p>
{assign var="fetch" value="akismet"}
{include file=plugin:commentcenter/listcomments}
<p><input type="checkbox" name="submitham" id="submitham" checked="checked" />
<p><input type="checkbox" class="form-check-input" name="submitham" id="submitham" checked="checked" />
<label for="submitham">{$plang.app_hamsubmit}</label></p>
{/if}
{if $other}
@ -18,7 +18,8 @@
{include file=plugin:commentcenter/listcomments}
{/if}
<div class="buttonbar">
{html_submit name="mpubcomm" id="mpubcomm" value=$plang.app_pselected}
{html_submit name="mdelcomm" id="mdelcomm" value=$plang.app_dselected}
{html_submit name="mpubcomm" id="mpubcomm" class="btn btn-primary" value=$plang.app_pselected}
{html_submit name="mdelcomm" id="mdelcomm" class="btn btn-secondary" value=$plang.app_dselected}
</div>
{/html_form}
{include file=plugin:commentcenter/footer}

View File

@ -6,37 +6,48 @@
<dl class="option-set">
<dt><label for="log_all">{$plang.log_all}</label></dt>
<dd>
<input type="checkbox" name="log_all" id="log_all"{if $pl_conf.log_all} checked="checked"{/if} /><br />
<div class="form-check">
<input class="form-check-input" type="checkbox" name="log_all" id="log_all"{if $pl_conf.log_all} checked="checked"{/if}>
<label class="form-check-label" for="log_all">
{$plang.log_all_long}
</label>
</div>
</dd>
<dt><label for="email_alert">{$plang.email_alert}</label></dt>
<dd>
<input type="checkbox" name="email_alert" id="email_alert"{if $pl_conf.email_alert} checked="checked"{/if} /><br />
<div class="form-check">
<input type="checkbox" class="form-check-input" name="email_alert" id="log_all"{if $pl_conf.email_alert} checked="checked"{/if} >
<label class="form-check-label" for="log_all">
{$plang.email_alert_long}
</label>
</div>
</dd>
</dl>
<h2>{$plang.akismet}</h2>
<dl class="option-set">
<dt><label for="akismet_check">{$plang.akismet_use}</label></dt>
<dd>
<input type="checkbox" name="akismet_check" id="akismet_check"{if $pl_conf.akismet_check} checked="checked"{/if} />
</dd>
<div class="form-check">
<input type="checkbox" class="form-check-input" name="akismet_check" id="akismet_check"{if $pl_conf.akismet_check} checked="checked"{/if} >
<label class="form-check-label" for="log_all">
{$plang.akismet_use}
</label>
</div>
<dt class="akismet_opts"><label for="akismet_key">{$plang.akismet_key}</label></dt>
<dd class="akismet_opts">
<input type="text" name="akismet_key" id="akismet_key" value="{$pl_conf.akismet_key}" /><br />
<input type="text" class="form-control" name="akismet_key" id="akismet_key" value="{$pl_conf.akismet_key}" /><br />
{$plang.akismet_key_long}
</dd>
<dt class="akismet_opts"><label for="akismet_url">{$plang.akismet_url}</label></dt>
<dd class="akismet_opts">
<input type="text" name="akismet_url" id="akismet_url" value="{$pl_conf.akismet_url}" /><br />
<input type="text" class="form-control" name="akismet_url" id="akismet_url" value="{$pl_conf.akismet_url}" /><br />
{$plang.akismet_url_long|sprintf:$smarty.const.BLOG_BASEURL}
</dd>
</dl>
<div class="buttonbar">
{html_submit name="configure" id="configure" value=$plang.save_conf}
{html_submit name="configure" class="btn btn-primary" id="configure" value=$plang.save_conf}
</div>
{/html_form}
{include file=plugin:commentcenter/footer}

View File

@ -14,10 +14,11 @@
{assign var="button_suff" value=""}
{/if}
{if $single}
{html_submit name="commdelok$button_suff" id="commdelok$button_suff" value=$plang.del_subs}
{html_submit name="commdelok$button_suff" class="btn btn-primary" id="commdelok$button_suff" value=$plang.del_subs}
{else}
{html_submit name="commdelok$button_suff" id="commdelok$button_suff" value=$plang.del_subm}
{html_submit name="commdelok$button_suff" class="btn btn-primary" id="commdelok$button_suff" value=$plang.del_subm}
{/if}
{html_submit name="ccancel$button_suff" id="ccancel$button_suff" value=$plang.del_cancel}
{html_submit name="ccancel$button_suff" class="btn btn-secondary" id="ccancel$button_suff" value=$plang.del_cancel}
</div>
{/html_form}
{include file=plugin:commentcenter/footer}

View File

@ -7,10 +7,11 @@
<p>{$plang.sure}</p>
<div class="buttonbar">
{if $single}
{html_submit name="delok" id="delok" value=$plang.del_subs}
{html_submit class="btn btn-primary" name="delok" id="delok" value=$plang.del_subs}
{else}
{html_submit name="delok" id="delok" value=$plang.del_subm}
{html_submit class="btn btn-primary" name="delok" id="delok" value=$plang.del_subm}
{/if}
{html_submit name="cancel" id="cancel" value=$plang.del_cancel}
{html_submit class="btn btn-secondary" name="cancel" id="cancel" value=$plang.del_cancel}
</div>
{/html_form}
{include file=plugin:commentcenter/footer}

View File

@ -4,16 +4,16 @@
<dl class="option-set">
<dt>{$plang.apply_to}</dt>
<dd>
<input type="radio" name="apply_to" id="all_entries" value="all_entries"{if $policy.is_all} checked="checked"{/if} />
<input type="radio" class="form-check-input" name="apply_to" id="all_entries" value="all_entries"{if $policy.is_all} checked="checked"{/if} />
<label for="all_entries">{$plang.all_entries}</label><br />
<input type="radio" name="apply_to" id="some_entries" value="some_entries"{if !empty($policy.entry)} checked="checked"{/if} />
<input type="radio" class="form-check-input" name="apply_to" id="some_entries" value="some_entries"{if !empty($policy.entry)} checked="checked"{/if} />
<label for="some_entries">{$plang.some_entries}</label><br />
<input type="radio" name="apply_to" id="properties" value="properties"{if !$polnew && !$policy.is_all & empty($policy.entry)} checked="checked"{/if} />
<input type="radio" class="form-check-input" name="apply_to" id="properties" value="properties"{if !$polnew && !$policy.is_all & empty($policy.entry)} checked="checked"{/if} />
<label for="properties">{$plang.properties}</label><br />
</dd>
<dt><label for="behavoir">{$plang.behavoir}</label></dt>
<dd>
<select name="behavoir" id="behavoir">
<select name="behavoir" class="form-select" id="behavoir">
<option value="1"{if $policy.do==1} selected="selected"{/if}>{$plang.allow}</option>
<option value="0"{if $policy.do==0 && !$polnew} selected="selected"{/if}>{$plang.approvation}</option>
<option value="-1"{if $policy.do==-1} selected="selected"{/if}>{$plang.block}</option>
@ -29,19 +29,19 @@
{if !empty($policy.entry) && !is_array($policy.entry)}
{assign var="parity" value=1}
<input type="text" name="entries[]" value="{$policy.entry|wp_specialchars}" />
<input type="text" class="form-control" name="entries[]" value="{$policy.entry|wp_specialchars}" />
{elseif !empty($policy.entry)}
{foreach name=entries_foreach from=$policy.entry item=entry}
<input type="text" name="entries[]" value="{$entry|wp_specialchars}" /> {if ($smarty.foreach.entries_foreach.iteration % 2)==0}<br />{/if}
<input type="text" class="form-control" name="entries[]" value="{$entry|wp_specialchars}" /> {if ($smarty.foreach.entries_foreach.iteration % 2)==0}<br />{/if}
{if ($smarty.foreach.entries_foreach.iteration % 2)==1 && $smarty.foreach.entries_foreach.last}{assign var="parity" value=1}{/if}
{/foreach}
{/if}
{if $parity==1} <input type="text" name="entries[]" value="" /><br />{/if}
<input type="text" name="entries[]" value="" />
<input type="text" name="entries[]" value="" /><br />
<input type="text" name="entries[]" value="" />
<input type="text" name="entries[]" value="" /><br />
<input type="text" class="form-control" name="entries[]" value="" />
<input type="text" class="form-control" name="entries[]" value="" /><br />
<input type="text" class="form-control" name="entries[]" value="" />
<input type="text" class="form-control" name="entries[]" value="" /><br />
</div>
<div id="fill_properties" class="option-set">
@ -58,7 +58,7 @@
<fieldset>
<legend>{$plang.po_time}</legend>
<p><label for="older">{$plang.po_older}</label>
<input type="text" name="older" id="older" value="{if !empty($policy.older)}{$policy.older/86400}{/if}" class="smalltextinput" />
<input type="text" class="form-control" name="older" id="older" value="{if !empty($policy.older)}{$policy.older/86400}{/if}" class="smalltextinput" style="display: inline-block;"/>
{$plang.days}</p>
<!-- TODO: add the option for timestamp -->
</fiedlset>
@ -67,6 +67,7 @@
<div class="buttonbar">
<input type="hidden" name="policy_id" value="{$pol_id}" />
{html_submit name="edit_policy" id="edit_policy" value=$plang.save_policy}
{html_submit name="edit_policy" class="btn btn-primary" id="edit_policy" value=$plang.save_policy}
</div>
{/html_form}
{include file=plugin:commentcenter/footer}

View File

@ -0,0 +1,4 @@
</div>
</div>
</div>
</div>

View File

@ -1,4 +1,9 @@
<h2>{$plang.title}</h2>
<div class="row">
<div class="col-12 mb-4">
<div class="card shadow mb-4">
<div class="card-header"><h6 class="m-0 font-weight-bold text-primary">{$plang.title}</h6></div>
<div class="card-body">
<p>{$plang.desc1}</p>
<p>{$plang.desc2}</p>
<ul>
@ -9,5 +14,3 @@
</ul>
{include file='shared:errorlist.tpl'}

View File

@ -1,4 +1,4 @@
<table class="entrylist">
<table class="entrylist table">
<thead><tr>
{if !$delete}<th></th>{/if}
<th>{$plang.app_date}</th>
@ -16,7 +16,7 @@
{foreach from=$entry.$fetch item=comm key=comm_id}
{assign var="i" value=$i+1}
<tr>
{if !$delete}<td class="td_select_{$fetch}"><input type="checkbox" name="select[e{$entryid}_c{$comm_id}]" /></td>{/if}
{if !$delete}<td class="td_select_{$fetch}"><input type="checkbox" class="form-check-input" name="select[e{$entryid}_c{$comm_id}]" /></td>{/if}
<td>{$comm.date|date_format:"%D, %T"}</td>
<td class="main_cell">
{$comm.content|strip_tags}
@ -41,7 +41,7 @@
{else}
{assign var="rm_url" value=$action_url|cmd_link:deletecomm:"e`$entryid`_c`$comm_id`"}
{/if}
<a href="{$rm_url}" title="{$plang.app_delete}"><img src="{$plugin_url}imgs/delete.png" alt="{$plang.app_delete}" /></a>
<a href="{$rm_url}" title="{$plang.app_delete}"><img src="{$plugin_url}imgs/delete.png" alt="{$plang.app_delete}" style="margin-top: 4px;"/></a>
</td>
{/if}
</tr>

View File

@ -1,4 +1,4 @@
<table id="commencenter-table">
<table id="commencenter-table"class="table">
<thead id="commencenter-table-head">
<tr>
{if !$delete} <th style="width: 10%;">{$plang.select}</th>{/if}
@ -10,7 +10,7 @@
<tbody id="commencenter-table-body">
{foreach name=policies from=$policies key=id item=policy}
<tr class="tr_policy{$id}">
{if !$delete} <td class="td_select"><input type="checkbox" name="select[{$id}]" /></td>{/if}
{if !$delete} <td class="td_select"><input type="checkbox" class="form-check-input" name="select[{$id}]" /></td>{/if}
<td class="main-cell">
{if $delete}<input type="hidden" name="del_policy[]" value="{$id}" />
{/if}

View File

@ -2,8 +2,11 @@
{html_form}
<h2>{$plang.man_searcht}</h2>
<p>{$plang.man_searchd}</p>
<p><input type="text" name="entry" value="{$entry_id}" />
{html_submit name="entry_search" id="entry_search" value=$plang.man_search}</p>
<div class="form-row">
<input type="text" class="form-control" name="entry" value="{$entry_id}" style="display: inline-block;"/>
{html_submit name="entry_search" class="btn btn-primary mt-1" id="entry_search" value=$plang.man_search}
</div>
{if !empty($entry_id)}
{assign var="titleok" value=$entry_id|idToSubject|wp_specialchars}
@ -11,8 +14,9 @@
{include file=plugin:commentcenter/listcomments}
<input type="hidden" name="entry_hid" value="{$entry_id}" />
<div class="buttonbar">
{html_submit name="mdelcomm_2" id="mdelcomm_2" value=$plang.app_dselected}
{html_submit name="mdelcomm_2" id="mdelcomm_2" class="btn btn-primary" value=$plang.app_dselected}
</div>
{/if}
{/html_form}
{include file=plugin:commentcenter/footer}

View File

@ -7,10 +7,9 @@
<a href="#" rel="selectAll[td_select]">{$plang.select_all}</a>
<a href="#" rel="deselectAll[td_select]">{$plang.deselect_all}</a>
</div>
<div id="commentcenter_options">
<a href="{$action_url|cmd_link:poledit:-1}"><img src="{$plugin_url}imgs/edit.png" alt="{$plang.newpol}" />{$plang.newpol}</a>
</div>
<div class="buttonbar">
{html_submit name="multidel" id="multidel" value=$plang.del_selected}
<a href="{$action_url|cmd_link:poledit:-1}" class="btn btn-secondary"><img src="{$plugin_url}imgs/edit.png" alt="{$plang.newpol}" /> {$plang.newpol}</a>
{html_submit class="btn btn-primary" name="multidel" id="multidel" value=$plang.del_selected}
</div>
{/html_form}
{include file=plugin:commentcenter/footer}

View File

@ -1,15 +1,21 @@
<div class="row">
<div class="col-12 mb-4">
<div class="card shadow mb-4">
<div class="card-header">
<h6 class="m-0 font-weight-bold text-primary">{$plang.head}</h6>
</div>
<div class="card-body">
<h2>{$plang.head}</h2>
<p>{$plang.description}</p>
{include file=shared:errorlist.tpl}
<div style="margin: 0 auto; width: 20em;">
{html_form}
<p><input type="submit" name="lastcommentadmin_clear" value="{$plang.clear}"/> </p><p>{$plang.cleardescription} </p>
<p><br></p>
<p><input type="submit" name="lastcommentadmin_rebuild" value="{$plang.rebuild}"/> </p><p>{$plang.rebuilddescription} </p>
<p><input type="submit" class="btn btn-primary" name="lastcommentadmin_clear" value="{$plang.clear}"/> </p><p>{$plang.cleardescription} </p>
<p><input type="submit" class="btn btn-primary" name="lastcommentadmin_rebuild" value="{$plang.rebuild}"/> </p><p>{$plang.rebuilddescription} </p>
{/html_form}
</div>
</div>
</div>
</div>

View File

@ -1,29 +1,30 @@
<h2>{$plang.head}</h2>
<div class="row">
<div class="col-12">
<div class="card shadow mb-4">
<div class="card-header"><h6 class="m-0 font-weight-bold text-primary">{$plang.head}</h6></div>
<div class="card-body">
{include file=shared:errorlist.tpl}
{html_form}
<h3>{$plang.mode} </h3>
<dl>
<dt><label><input type="radio" name="mode" value="0" {if $pconfig.mode == 0 }checked=checked{/if}>
<dt><label><input type="radio" class="form-check-input" name="mode" value="0" {if $pconfig.mode == 0 }checked=checked{/if}>
{$plang.auto} </label> </dt>
<dd>{$plang.autodescr}</dd>
<dt><label><input type="radio" name="mode" value="1" {if $pconfig.mode==1}checked=checked{/if}>
<dt><label><input type="radio" class="form-check-input" name="mode" value="1" {if $pconfig.mode==1}checked=checked{/if}>
{$plang.pathinfo} </label> </dt>
<dd>{$plang.pathinfodescr}</dd>
<dt><label><input type="radio" name="mode" value="2" {if $pconfig.mode==2}checked=checked{/if}>
<dt><label><input type="radio" class="form-check-input" name="mode" value="2" {if $pconfig.mode==2}checked=checked{/if}>
{$plang.httpget} </label> </dt>
<dd>{$plang.httpgetdescr}</dd>
<dt><label><input type="radio" name="mode" value="3" {if $pconfig.mode==3}checked=checked{/if}>
<dt><label><input type="radio" class="form-check-input" name="mode" value="3" {if $pconfig.mode==3}checked=checked{/if}>
{$plang.pretty} </label> </dt>
<dd>{$plang.prettydescr}</dd>
</dl>
<div class="buttonbar">
<input type="submit" name="saveopt" value="{$plang.saveopt}" />
<input type="submit" class="btn btn-primary" name="saveopt" value="{$plang.saveopt}" />
</div>
@ -32,7 +33,7 @@
<p>{$plang.description}</p>
<p>
<textarea id="htaccess" name="htaccess"
<textarea id="htaccess" name="htaccess" class="form-control mw-100"
{if $cantsave}readonly="readonly" {/if}cols="70" rows="16">{$htaccess|escape:'html'}</textarea>
</p>
@ -40,8 +41,13 @@
{if $cantsave}
<p><em>{$plang.cantsave}</em></p>
{else}
<input type="submit" name="htaccess-submit" value="{$plang.submit}"/>
<input type="submit" class="btn btn-primary" name="htaccess-submit" value="{$plang.submit}"/>
{/if}
</div>
{/html_form}
</div>
</div>
</div>
</div>
</div>

View File

@ -1,4 +1,8 @@
<h2>{$plang.head}</h2>
<div class="row">
<div class="col-12">
<div class="card shadow mb-4">
<div class="card-header"><h6 class="m-0 font-weight-bold text-primary">{$plang.head}</h6></div>
<div class="card-body">
{include file=shared:errorlist.tpl}
@ -7,7 +11,7 @@
<div class="option-list">
<p>{$plang.desc1|wptexturize}</p>
<p>
<textarea id="qs-wordlist" name="qs-wordlist" rows="10" cols="20">{$qscfg.wordlist}</textarea>
<textarea class="form-control mw-100" id="qs-wordlist" name="qs-wordlist" rows="10" cols="20">{$qscfg.wordlist}</textarea>
</p>
<p>{$plang.desc2}</p>
</div>
@ -17,13 +21,18 @@
<dt><label>{$plang.desc3}</label></dt>
<dd>
{$plang.desc3pre}
<input type="text" class="smalltextinput" id="qs-number" name="qs-number" value="{$qscfg.number}" />
<input type="text" class="form-control" class="smalltextinput" id="qs-number" name="qs-number" value="{$qscfg.number}" style="display: inline-block;" />
{$plang.desc3post}
</dd>
</dl>
<div class="buttonbar">
<input type="submit" value="{$plang.submit}"/>
<input type="submit" class="btn btn-primary" value="{$plang.submit}"/>
</div>
{/html_form}
</div>
</div>
</div>
</div>
</div>