diff options
| author | spiderr <spiderr@bitweaver.org> | 2022-07-30 21:39:19 -0400 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2022-07-30 21:39:19 -0400 |
| commit | 468ce027a2b166d21e22ec7657fc06990ce86599 (patch) | |
| tree | b361e824b742ba6b30ae7eb24cc777631acf9a17 | |
| parent | 24582dead508432ec2b10fada9475f7a055318f2 (diff) | |
| download | stats-468ce027a2b166d21e22ec7657fc06990ce86599.tar.gz stats-468ce027a2b166d21e22ec7657fc06990ce86599.tar.bz2 stats-468ce027a2b166d21e22ec7657fc06990ce86599.zip | |
migrate from font-awesome 3.2.1 icon- to 6.1.2 fa-
| -rw-r--r-- | templates/menu_stats.tpl | 6 | ||||
| -rw-r--r-- | templates/referrer_stats.tpl | 18 | ||||
| -rw-r--r-- | templates/referrer_stats_ctm_inc.tpl | 4 | ||||
| -rw-r--r-- | templates/user_stats.tpl | 2 |
4 files changed, 14 insertions, 16 deletions
diff --git a/templates/menu_stats.tpl b/templates/menu_stats.tpl index cf7d6d3..230ccdb 100644 --- a/templates/menu_stats.tpl +++ b/templates/menu_stats.tpl @@ -2,13 +2,13 @@ {if $packageMenuTitle}<a class="dropdown-toggle" data-toggle="dropdown" href="#"> {tr}{$packageMenuTitle}{/tr} <b class="caret"></b></a>{/if} <ul class="dropdown-menu"> {if $gBitUser->hasPermission( 'p_stats_view' )} - <li><a class="item" href="{$smarty.const.STATS_PKG_URL}index.php">{booticon iname="icon-home" iexplain="Site Stats" ilocation=menu}</a></li> + <li><a class="item" href="{$smarty.const.STATS_PKG_URL}index.php">{booticon iname="fa-house" iexplain="Site Stats"}</a></li> {if $gBitSystem->mDb->mType eq 'postgres'} - <li><a class="item" href="{$smarty.const.STATS_PKG_URL}users.php">{booticon iname="icon-user" iexplain="User Stats" ilocation=menu}</a></li> + <li><a class="item" href="{$smarty.const.STATS_PKG_URL}users.php">{booticon iname="fa-user" iexplain="User Stats"}</a></li> {/if} {/if} {if $gBitSystem->isFeatureActive( 'stats_referers' ) and $gBitUser->hasPermission( 'p_stats_view_referer' )} - <li><a class="item" href="{$smarty.const.STATS_PKG_URL}referrers.php">{booticon iname="icon-bullhorn" iexplain="Referer Stats" ilocation=menu}</a></li> + <li><a class="item" href="{$smarty.const.STATS_PKG_URL}referrers.php">{booticon iname="fa-bullhorn" iexplain="Referer Stats"}</a></li> {/if} </ul> {/strip} diff --git a/templates/referrer_stats.tpl b/templates/referrer_stats.tpl index 1067f98..6265ba2 100644 --- a/templates/referrer_stats.tpl +++ b/templates/referrer_stats.tpl @@ -18,11 +18,9 @@ <header class="page-header"> <div class="pull-right">{minifind period_format="`$smarty.request.period_format`" timeframe="`$smarty.request.timeframe`"}</div> - <h1><a class="btn btn-xs btn-default" href="{$smarty.const.STATS_PKG_URL}users.php">{booticon iname="icon-arrow-left"}</a> {tr}User Registration Statistics{/tr} {$smarty.request.timeframe|escape}</h1> + <h1><a class="btn btn-xs btn-default" href="{$smarty.const.STATS_PKG_URL}users.php">{booticon iname="fa-arrow-left"}</a> {tr}User Registration Statistics{/tr} {$smarty.request.timeframe|escape}</h1> </header> - - <div class="body"> <table class="table data referrer-stats"> {assign var=refCount value=0} @@ -32,12 +30,12 @@ {assign var=totalReg value=$totalReg+$regCount} {assign var=hostHash value=$host|md5} <tr> - <th>{booticon iname='icon-search' class="btn btn-default btn-sm" onclick="BitBase.toggleElementDisplay('`$hostHash`','table-row-group');"}</th> + <th>{booticon iname='fa-magnifying-glass' class="btn btn-default btn-sm" onclick="BitBase.toggleElementDisplay('`$hostHash`','table-row-group');"}</th> <th style="position:relative"><div style="position:absolute;z-index:-1;width:{math equation="round( ( r / m ) * 100 )" r=$reg|@count m=$maxRegistrations}%; background:#CAF3FF;padding:0 0 0 5px;"> </div>{$host|escape}</th> - <th class="text-right"><div class="floaticon"> [{math equation="round((x / y) * 100)" x=$reg|@count y=$totalRegistrations}% ] <a href="{$smarty.server.SCRIPT_NAME}?period={$smarty.request.period}&find={$host|escape}">{booticon iname='icon-clock'}</a></div></th> + <th class="text-right"><div class="floaticon"> [{math equation="round((x / y) * 100)" x=$reg|@count y=$totalRegistrations}% ] <a href="{$smarty.server.SCRIPT_NAME}?period={$smarty.request.period}&find={$host|escape}">{booticon iname='fa-clock'}</a></div></th> {if $aggregateStats.$host} - <th class="text-right">{$reg|@count} {booticon iname="icon-user"}</th> - <th class="text-right">{$aggregateStats.$host.info.orders|default:"0"} {booticon iname="icon-shopping-cart"}</th> + <th class="text-right">{$reg|@count} {booticon iname="fa-user"}</th> + <th class="text-right">{$aggregateStats.$host.info.orders|default:"0"} {booticon iname="fa-cart-shopping"}</th> <th class="text-right">{$gCommerceCurrencies->format($aggregateStats.$host.info.revenue|default:"0.00")}</th> {/if} </tr> @@ -48,7 +46,7 @@ {foreach from=$aggregateStats.$host.values item=paramValues key=paramKey} <div class="panel panel-default"> <div class="panel-heading" role="tab" id="accordion-{$paramKey}"> - <div class="pull-right">{$paramValues.info.registrations} {booticon iname="icon-user"} {$paramValues.info.orders} {booticon iname="icon-shopping-cart"} {$gCommerceCurrencies->format($paramValues.info.revenue)}</div> + <div class="pull-right">{$paramValues.info.registrations} {booticon iname="fa-user"} {$paramValues.info.orders} {booticon iname="fa-cart-shopping"} {$gCommerceCurrencies->format($paramValues.info.revenue)}</div> <h4 class="panel-title"> <a class="collapsed" data-toggle="collapse" data-parent="#accordion-{$hostHash}" href="#collapse-{$hostHash}-{$paramKey}" aria-expanded="false" aria-controls="collapse-{$hostHash}-{$paramKey}">{$paramKey}</a> </h4> @@ -71,7 +69,7 @@ <div class="panel-heading" role="tab" id="accordion-{$paramKey}"> {if $aggregateStats.$host} <div class="pull-right"> - {$reg|@count} {booticon iname="icon-user"} {$aggregateStats.$host.orders|default:"0"} {booticon iname="icon-shopping-cart"} {$gCommerceCurrencies->format($aggregateStats.$host.revenue|default:"0.00")} + {$reg|@count} {booticon iname="fa-user"} {$aggregateStats.$host.orders|default:"0"} {booticon iname="fa-cart-shopping"} {$gCommerceCurrencies->format($aggregateStats.$host.revenue|default:"0.00")} </div> {/if} <h4 class="panel-title"> @@ -87,7 +85,7 @@ <tr> <th></th> <th data-field="name" data-sortable="true">User</th> - <th class="text-center" data-field="order_count" data-sortable="true">{booticon iname="icon-shopping-cart"}</th> + <th class="text-center" data-field="order_count" data-sortable="true">{booticon iname="fa-cart-shopping"}</th> <th class="text-center" data-field="revenue" data-sortable="true" data-sorter="priceSorter">Revenue</th> </tr> </thead> diff --git a/templates/referrer_stats_ctm_inc.tpl b/templates/referrer_stats_ctm_inc.tpl index bb30742..1a1b2be 100644 --- a/templates/referrer_stats_ctm_inc.tpl +++ b/templates/referrer_stats_ctm_inc.tpl @@ -2,8 +2,8 @@ <tbody style="{if $depth>1}display:none;{/if}" class="group-body-{$parentHash} depth-{$depth}"> <tr> <th style="padding-left:{$depth|default:1}em;"><a href="#" onclick="$('.group-body-{$titleHash}.depth-{$depth+1}').toggle();return false;">{$tableHash.info.title|default:"unknown"}</a></th> - <th class="text-right width10p"><a href="#" onclick="BitBase.toggleElementDisplay('user-list-{$titleHash}','block');return false;">{$tableHash.info.users|count|default:"0"} {booticon iname="icon-user"}</a></th> - <th class="text-right width10p">{$tableHash.info.orders|default:"0"} {booticon iname="icon-shopping-cart"}</th> + <th class="text-right width10p"><a href="#" onclick="BitBase.toggleElementDisplay('user-list-{$titleHash}','block');return false;">{$tableHash.info.users|count|default:"0"} {booticon iname="fa-user"}</a></th> + <th class="text-right width10p">{$tableHash.info.orders|default:"0"} {booticon iname="fa-cart-shopping"}</th> <th class="text-right width10p">{$gCommerceCurrencies->format($tableHash.info.revenue)}</th> </tr> <tr> diff --git a/templates/user_stats.tpl b/templates/user_stats.tpl index 8e60b44..89cf28e 100644 --- a/templates/user_stats.tpl +++ b/templates/user_stats.tpl @@ -24,7 +24,7 @@ [<a href="{$smarty.const.STATS_PKG_URL}referrers.php?period={$smarty.request.period}&timeframe={$timeframe|urlencode}">Referrers</a>] {/if} </td> - <td><div style="width:{math equation="round( ( r / m ) * 100 )" r=$reg m=$userStats.max}%; background:#ff9;padding:0 0 0 5px;">{booticon iname="icon-user"} <a href="{$smarty.const.USERS_PKG_URL}admin/index.php?period={$smarty.request.period}&timeframe={$timeframe|urlencode}">{$reg}</a></div></td> + <td><div style="width:{math equation="round( ( r / m ) * 100 )" r=$reg m=$userStats.max}%; background:#ff9;padding:0 0 0 5px;">{booticon iname="fa-user"} <a href="{$smarty.const.USERS_PKG_URL}admin/index.php?period={$smarty.request.period}&timeframe={$timeframe|urlencode}">{$reg}</a></div></td> </tr> {foreachelse} <tr class="norecords"> |
