REFACTORING: framework cleanup, preparing for php7.4 and loading dependencies from composer

This commit is contained in:
Stephan Kasdorf
2019-11-03 22:06:50 +01:00
parent 236f94bb70
commit 70dccc3f15
615 changed files with 219 additions and 76798 deletions

View File

@@ -1,6 +1,5 @@
<?php
namespace Nibiru;
/**
* User - stephan
* Date - 24.01.17
@@ -9,8 +8,9 @@ namespace Nibiru;
* @category - [PLEASE SPECIFIY]
* @license - BSD License
*/
use Nibiru\Adapter\Controller;
class indexController extends View implements IController
class indexController extends Controller
{
public function __construct()
{

View File

@@ -1,13 +1,10 @@
[ENGINE]
;;name = "Dwoo"
name = "Smarty"
;;name = "Twig"
cache = "/../../application/view/cache/"
templates = "/../../application/view/templates/"
templates_c = "/../../application/view/templates_c/"
config_dir = "/../../application/view/configs/"
class_file = "core/l/Smarty/Smarty.class.php"
debugbar = false
debug_template = "/../../application/view/templates/shared/debug.tpl"
debugbar = true
[AUTOLOADER]
class.pos[] = "users"

View File

@@ -1,31 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<title>
{$title}
</title>
{foreach item=style from=$css}
<link href="{$style}" rel="stylesheet">
{/foreach}
<style>
/* note: this is a hack for ios iframe for bootstrap themes shopify page */
/* this chunk of css is not part of the toolkit :) */
body {
width: 1px;
min-width: 100%;
*width: 100%;
}
</style>
</head>
{include 'shared/header.tpl'}
<body>
<div class="container">
<div class="with-iconav">
@@ -34,10 +7,9 @@
<div class="col-sm-12 content">
<div class="dashhead">
<div class="dashhead-titles">
<h6 class="dashhead-subtitle">Dashboards</h6>
<h2 class="dashhead-title">Order history</h2>
<h6 class="dashhead-subtitle">Rapid Prototyping Framework</h6>
<h2 class="dashhead-title">Nibiru</h2>
</div>
<div class="btn-toolbar dashhead-toolbar">
<div class="btn-toolbar-item input-with-icon">
<input type="text" value="01/01/15 - 01/08/15" class="form-control" data-provide="datepicker">
@@ -45,223 +17,6 @@
</div>
</div>
</div>
<div class="flextable table-actions">
<div class="flextable-item flextable-primary">
<div class="btn-toolbar-item input-with-icon">
<input type="text" class="form-control input-block" placeholder="Search orders">
<span class="icon icon-magnifying-glass"></span>
</div>
</div>
<div class="flextable-item">
<div class="btn-group">
<button type="button" class="btn btn-primary-outline">
<span class="icon icon-pencil"></span>
</button>
<button type="button" class="btn btn-primary-outline">
<span class="icon icon-erase"></span>
</button>
</div>
</div>
</div>
<div class="table-full">
<div class="table-responsive">
<table class="table" data-sort="table">
<thead>
<tr>
<th><input type="checkbox" class="select-all" id="selectAll"></th>
<th>Order</th>
<th>Customer name</th>
<th>Description</th>
<th>Date</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10001</a></td>
<td>First Last</td>
<td>Admin theme, marketing theme</td>
<td>01/01/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10002</a></td>
<td>Firstname Lastname</td>
<td>Admin theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10003</a></td>
<td>Name Another</td>
<td>Personal blog theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10004</a></td>
<td>One More</td>
<td>Marketing theme, personal blog theme, admin theme</td>
<td>01/01/2015</td>
<td>$300.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10005</a></td>
<td>Name Right Here</td>
<td>Personal blog theme, admin theme</td>
<td>01/02/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10006</a></td>
<td>First Last</td>
<td>Admin theme, marketing theme</td>
<td>01/01/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10007</a></td>
<td>Firstname Lastname</td>
<td>Admin theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10008</a></td>
<td>Name Another</td>
<td>Personal blog theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10009</a></td>
<td>One More</td>
<td>Marketing theme, personal blog theme, admin theme</td>
<td>01/01/2015</td>
<td>$300.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10010</a></td>
<td>Name Right Here</td>
<td>Personal blog theme, admin theme</td>
<td>01/02/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10011</a></td>
<td>First Last</td>
<td>Admin theme, marketing theme</td>
<td>01/01/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10012</a></td>
<td>Firstname Lastname</td>
<td>Admin theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10013</a></td>
<td>Name Another</td>
<td>Personal blog theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10014</a></td>
<td>One More</td>
<td>Marketing theme, personal blog theme, admin theme</td>
<td>01/01/2015</td>
<td>$300.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10015</a></td>
<td>Name Right Here</td>
<td>Personal blog theme, admin theme</td>
<td>01/02/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10016</a></td>
<td>First Last</td>
<td>Admin theme, marketing theme</td>
<td>01/01/2015</td>
<td>$200.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10017</a></td>
<td>Firstname Lastname</td>
<td>Admin theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10018</a></td>
<td>Name Another</td>
<td>Personal blog theme</td>
<td>01/01/2015</td>
<td>$100.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10019</a></td>
<td>One More</td>
<td>Marketing theme, personal blog theme, admin theme</td>
<td>01/01/2015</td>
<td>$300.00</td>
</tr>
<tr>
<td><input type="checkbox" class="select-row"></td>
<td><a href="#">#10020</a></td>
<td>Name Right Here</td>
<td>Personal blog theme, admin theme</td>
<td>01/02/2015</td>
<td>$200.00</td>
</tbody>
</table>
</div>
</div>
<div class="text-center">
<ul class="pagination">
<li>
<a href="#" aria-label="Previous">
<span aria-hidden="true">&laquo;</span>
</a>
</li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li>
<a href="#" aria-label="Next">
<span aria-hidden="true">&raquo;</span>
</a>
</li>
</ul>
</div>
</div>
</div>
@@ -282,19 +37,9 @@
</div>
</div>
</div>
{foreach item=script from=$js}
<script src="{$script}"></script>
{/foreach}
<script>
// execute/clear BS loaders for docs
$(function(){
while( window.BS&&window.BS.loader&&window.BS.loader.length )
{
(window.BS.loader.pop())()
}
})
</script>
{include file="debugbar.tpl"}
{include 'shared/footer.tpl'}
</body>
</html>

View File

@@ -0,0 +1,53 @@
{capture name='_smarty_debug' assign=debug_output}
<h1>Smarty {Smarty::SMARTY_VERSION} Debug Console
- {if isset($template_name)}{$template_name|debug_print_var nofilter} {/if}{if !empty($template_data)}Total Time {$execution_time|string_format:"%.5f"}{/if}</h1>
{if !empty($template_data)}
<h2>included templates &amp; config files (load time in seconds)</h2>
<div>
{foreach $template_data as $template}
<font color=brown>{$template.name}</font>
<br>&nbsp;&nbsp;<span class="exectime">
(compile {$template['compile_time']|string_format:"%.5f"}) (render {$template['render_time']|string_format:"%.5f"}) (cache {$template['cache_time']|string_format:"%.5f"})
</span>
<br>
{/foreach}
</div>
{/if}
<h2>assigned template variables</h2>
<table id="table_assigned_vars">
{foreach $assigned_vars as $vars}
<tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
<td><h3><font color=blue>${$vars@key}</font></h3>
{if isset($vars['nocache'])}<b>Nocache</b></br>{/if}
{if isset($vars['scope'])}<b>Origin:</b> {$vars['scope']|debug_print_var nofilter}{/if}
</td>
<td><h3>Value</h3>{$vars['value']|debug_print_var:10:80 nofilter}</td>
<td>{if isset($vars['attributes'])}<h3>Attributes</h3>{$vars['attributes']|debug_print_var nofilter} {/if}</td>
{/foreach}
</table>
<h2>assigned config file variables</h2>
<table id="table_config_vars">
{foreach $config_vars as $vars}
<tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
<td><h3><font color=blue>#{$vars@key}#</font></h3>
{if isset($vars['scope'])}<b>Origin:</b> {$vars['scope']|debug_print_var nofilter}{/if}
</td>
<td>{$vars['value']|debug_print_var:10:80 nofilter}</td>
</tr>
{/foreach}
</table>
{/capture}
<script type="text/javascript">
{$id = '__Smarty__'}
{if $display_mode}{$id = "$offset$template_name"|md5}{/if}
document.write('{$debug_output|escape:'javascript' nofilter}');
//_smarty_console = window.open("", "console{$id}", "width=1024,height=600,left={$offset},top={$offset},resizable,scrollbars=yes");
//_smarty_console.document.write("{$debug_output|escape:'javascript' nofilter}");
//_smarty_console.document.close();
</script>

View File

@@ -0,0 +1,13 @@
{foreach item=script from=$js}
<script src="{$script}"></script>
{/foreach}
<script>
// execute/clear BS loaders for docs
$(function(){
while( window.BS&&window.BS.loader&&window.BS.loader.length )
{
(window.BS.loader.pop())()
}
})
</script>
{include file="./debugbar.tpl"}

View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<title>
{$title}
</title>
{foreach item=style from=$css}
<link href="{$style}" rel="stylesheet">
{/foreach}
<style>
/* note: this is a hack for ios iframe for bootstrap themes shopify page */
/* this chunk of css is not part of the toolkit :) */
body {
width: 1px;
min-width: 100%;
*width: 100%;
}
</style>
</head>