diff --git a/application/config/theme.php b/application/config/theme.php new file mode 100644 index 000000000..d0bc13a15 --- /dev/null +++ b/application/config/theme.php @@ -0,0 +1,12 @@ +_ci_view_paths = array_merge(array(realpath('templates/flatly').DIRECTORY_SEPARATOR => 1), $this->_ci_view_paths); + include APPPATH.'config/theme.php'; + + // add other first view path if exist + if(!empty($config['theme_name']) && file_exists('templates/'.$config['theme_name'].'/views')) + $this->_ci_view_paths = array_merge(array('templates/'.$config['theme_name'].'/views'.DIRECTORY_SEPARATOR => 1), $this->_ci_view_paths); return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); } diff --git a/templates/flatly/css/style.css b/templates/flatly/css/style.css index 9beb4cb8a..bfa76fa3a 100644 --- a/templates/flatly/css/style.css +++ b/templates/flatly/css/style.css @@ -1,18 +1,44 @@ /* additional styles placed here */ -body { - padding-top: 60px; +html, body { + height: 100%; } +body { + /*padding-top: 80px;*/ +} +.wrapper { + min-height: 100%; + margin-bottom: -75px; +} + .navbar { min-height: 40px; + border-radius: 0; } .navbar-brand { - padding: 10px 15px; - height: 41px; + padding: 22px 15px; + height: 40px; } + +.topbar { + color: #eee; + font-size: 12px; + background: #182735; + padding: 5px; +} +.navbar-default .navbar-nav > .active > a, +.navbar-default .navbar-nav > .active > a:hover, +.navbar-default .navbar-nav > .active > a:focus { + color: #2C3E50; + background-color: #FFFFFF; +} + table.tablesorter { border: 0; } +table.tablesorter tbody td { + padding: 8px; +} table.tablesorter tbody td.over { background-color: #F5F5F5; } @@ -58,10 +84,77 @@ table.tablesorter thead tr th, table.tablesorter tfoot tr th { #new_button { bottom: 5px; } +#new_button > a { + border-width: 2px; + padding: 6px 9px; + font-size: 13px; + line-height: 1.5; + border-radius: 3px; + color: #ffffff; + background-color: #2c3e50; + border-color: #2c3e50; + display: inline-block; + margin-bottom: 0; + font-weight: normal; + text-align: center; + vertical-align: middle; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +#new_button > a > .big_button { + float: none !important; + position: static; + width: auto; + height: auto; + background: none; +} +#new_button > a > .big_button > span { + position: static; + font-size: 13px; + font-weight: normal; +} + +#home_module_list { + padding: 20px 0; + text-align: center; +} +.module_item { + min-width: 105px; + display: inline-block; + text-align: center; + margin-bottom: 3px; + border: 1px solid #ddd; +} +.module_item a { + display: block; +} +.navbar .menu-icon { + text-align: center; + font-size: 11px; +} +.navbar .menu-icon img { + width: 24px; +} +#feedback_bar { + top: 64px; +} +#footer { + height: 35px; + margin: 40px 0 0 0; + background: white; + padding: 10px +} @media (min-width: 768px){ .navbar-nav > li > a { - padding-top: 10px; - padding-bottom: 10px; + padding: 10px 10px 9px; } } \ No newline at end of file diff --git a/templates/flatly/partial/footer.php b/templates/flatly/partial/footer.php deleted file mode 100644 index 4ac111daa..000000000 --- a/templates/flatly/partial/footer.php +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/templates/flatly/partial/footer_excel.php b/templates/flatly/partial/footer_excel.php deleted file mode 100644 index 69fb64a9b..000000000 --- a/templates/flatly/partial/footer_excel.php +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/templates/flatly/partial/header_excel.php b/templates/flatly/partial/header_excel.php deleted file mode 100644 index c60a36c20..000000000 --- a/templates/flatly/partial/header_excel.php +++ /dev/null @@ -1,54 +0,0 @@ - - - - - <?php echo $this->config->item('company').' -- '.$this->lang->line('common_powered_by').' Open Source Point Of Sale' ?> - - - diff --git a/templates/flatly/partial/print_receipt.php b/templates/flatly/partial/print_receipt.php deleted file mode 100644 index 0450b4cae..000000000 --- a/templates/flatly/partial/print_receipt.php +++ /dev/null @@ -1,75 +0,0 @@ - - - \ No newline at end of file diff --git a/templates/flatly/partial/stock_locations.php b/templates/flatly/partial/stock_locations.php deleted file mode 100644 index 6530ba4e2..000000000 --- a/templates/flatly/partial/stock_locations.php +++ /dev/null @@ -1,20 +0,0 @@ - - $location_data ) { ?> - - -
-lang->line('config_stock_location').' ' .++$i. ':', 'stock_location_'.$i ,array('class'=>'required wide')); ?> -
- 'stock_location_'.$location_id, - 'id'=>'stock_location_'.$location_id, - 'class'=>'stock_location valid_chars required', - 'value'=>$location_name); - $location_data['deleted'] && $form_data['disabled'] = 'disabled'; - echo form_input($form_data); - ?> -
- - -
- diff --git a/templates/flatly/people/manage.php b/templates/flatly/people/manage.php deleted file mode 100755 index b352474af..000000000 --- a/templates/flatly/people/manage.php +++ /dev/null @@ -1,93 +0,0 @@ -load->view("partial/header"); ?> - - - -
-
lang->line('common_list_of').' '.$this->lang->line('module_'.$controller_name); ?>
-
- lang->line($controller_name.'_new'), - array('class'=>'thickbox none btn btn-primary btn-sm','title'=>$this->lang->line($controller_name.'_new'))); - ?> - - lang->line('common_import_excel'), - array('class'=>'thickbox none btn btn-primary btn-sm','title'=>'Import Items from Excel')); - ?> - -
-
- -
- -
-
- -
-
-load->view("partial/footer"); ?> diff --git a/templates/flatly/views/home.php b/templates/flatly/views/home.php new file mode 100644 index 000000000..9fed3613d --- /dev/null +++ b/templates/flatly/views/home.php @@ -0,0 +1,18 @@ +load->view("partial/header"); ?> + +

lang->line('common_welcome_message'); ?>

+ +
+ result() as $module) + { + ?> +
+ module_id");?>">Menubar Image + module_id");?>">lang->line("module_".$module->module_id) ?> +
+ +
+load->view("partial/footer"); ?> \ No newline at end of file diff --git a/templates/flatly/views/partial/footer.php b/templates/flatly/views/partial/footer.php new file mode 100644 index 000000000..129796252 --- /dev/null +++ b/templates/flatly/views/partial/footer.php @@ -0,0 +1,13 @@ + + + + + + + \ No newline at end of file diff --git a/templates/flatly/partial/header.php b/templates/flatly/views/partial/header.php similarity index 78% rename from templates/flatly/partial/header.php rename to templates/flatly/views/partial/header.php index 7a4ed675b..ecaa814d8 100644 --- a/templates/flatly/partial/header.php +++ b/templates/flatly/views/partial/header.php @@ -60,9 +60,23 @@ html { - -