Skip to content

Commit

Permalink
Convert to AdminLTE3
Browse files Browse the repository at this point in the history
  • Loading branch information
Akir4d committed Mar 28, 2020
1 parent 203c46d commit b8eeb1e
Show file tree
Hide file tree
Showing 4,555 changed files with 922,773 additions and 7,026 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
## JACAT -> Just Another CodeIgniter/AdminLTE template
## JACAT (Just Another CodeIgniter/AdminLTE template)

**Latest Build: 2020-03-24**
**Latest Build: 2020-03-28**

**Note: This project is still in progress, but welcome for any issues encountered**

A starter template that supports multi-tenant (Frontend / Admin Panel / API) website in a single application. This is a fork of abandoned [CodeIgniter 3 Bootstrap](https://github.com/waifung0207/ci_bootstrap_3).
If you plan to upgrade form original you have to use [sql/upgrade_from_old_codeigniter_3_bootstrap.sql](sql/upgrade_from_old_codeigniter_3_bootstrap.sql) and also check the changes inside [application/modules/admin/config/ion_auth.php](application/modules/admin/config/ion_auth.php)

This repository is developed upon the following tools:
* [CodeIgniter](http://www.codeigniter.com/) (v3.1.11) - PHP framework
* [CodeIgniter](http://www.codeigniter.com/) (3.1.11) - PHP framework
* [CodeIgniter HMVC Extensions](https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc) - modular structure by [wiredesignz](http://wiredesignz.co.nz/)
* [codeigniter-base-model](https://github.com/jamierumbelow/codeigniter-base-model) - more advanced CRUD functions for models by [jamierumbelow](https://github.com/jamierumbelow)
* [codeigniter-restserver](https://github.com/chriskacerguis/codeigniter-restserver) - base setup for API module
* [Ion Auth](http://benedmunds.com/ion_auth/) - (3.0) authentication library for CodeIgniter by [Ben Edmunds](http://benedmunds.com/)
* [Bootstrap](http://getbootstrap.com/) (v3.4.1) - popular frontend framework
* [Ion Auth](http://benedmunds.com/ion_auth) - (3.0) authentication library for CodeIgniter by [Ben Edmunds](http://benedmunds.com/)
* [Bootstrap](http://getbootstrap.com/) (3.4.1) - popular frontend framework
* [Grocery CRUD](http://www.grocerycrud.com/) (custom based on v1.6.3) - feature-rich library to build CRUD tables
* [Image CRUD](http://www.grocerycrud.com/image-crud) (v0.8) - CRUD library for image management
* [AdminLTE](https://github.com/almasaeed2010/AdminLTE) (v2.4.18) - bootstrap theme for Admin Panel
* [AdminLTE](https://github.com/almasaeed2010/AdminLTE) (3.0.2) - bootstrap theme for Admin Panel


### Features
Expand Down
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
theme: jekyll-theme-cayman
encoding: UTF-8
theme: jekyll-theme-cayman
54 changes: 29 additions & 25 deletions application/config/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
defined('BASEPATH') or exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -52,7 +52,7 @@
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'REQUEST_URI';
$config['uri_protocol'] = 'REQUEST_URI';

/*
|--------------------------------------------------------------------------
Expand All @@ -75,13 +75,11 @@
| there is an available translation if you intend to use something other
| than english.
|
| 'auto' means to switch language automatically, you have to configure also
| allowed_auto_languages to prevent php errors.
| 'auto' means to switch language automatically.
|
|
*/
$config['language'] = 'auto';
$config['allowed_auto_languages'] = array('english', 'italian', 'french', 'spanish', 'simplified-chinese', 'traditional-chinese');
$config['language'] = 'auto';

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -395,11 +393,11 @@
| 'cookie_httponly') will also affect sessions.
|
*/
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -518,19 +516,25 @@
$config['proxy_ips'] = '';

/*
| This enables Automatic language switch
| if it not works, be sure you have php-intl enabled in your php.ini file
| This enables Automatic, allowed language are determinated by directory listed
| on application/language.
|
*/
if($config['language'] === 'auto')
{
try {
$config['language'] = strtolower(Locale::getDisplayLanguage(explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE'])[0]));
if(!empty($config['allowed_auto_languages']) && !in_array($config['language'], $config['allowed_auto_languages']))
{
$config['language'] = "english";
}
} catch (\Throwable $e) {
$config['language'] = "english";
}
| If it not works, be sure you have php-intl enabled in your php.ini file
|
if ($config['language'] === 'auto') {
try {
$config['language'] = strtolower(Locale::getDisplayLanguage(explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE'])[0]));
$path_search = APPPATH.'language/';
$all_languages_in_path = glob($path_search.'*', GLOB_ONLYDIR);
foreach ($all_languages_in_path as $key => $value){
$all_languages_in_path [$key] = str_replace($path_search,'', $value);
}
if (!empty($alanguages) && !in_array($config['language'], $alanguages)) {
$config['language'] = "english";
}
} catch (\Throwable $e) {
$config['language'] = "english";
}
}
*/
25 changes: 18 additions & 7 deletions application/config/jacat.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
| /application/config/jacat_example.php
*/

$jacat_ver = "?ver=0.5.0";
$jacat_ver = "?ver=0.5.1";


$config['jacat'] = array(

Expand All @@ -37,26 +38,36 @@
'head' => array(
),
'foot' => array(
'assets/dist/frontend/lib.min.js' . $jacat_ver,
'assets/dist/frontend/app.min.js' . $jacat_ver
'/assets/dist/admin-lte/plugins/jquery/jquery.min.js' . $jacat_ver,
'/assets/dist/bootstrap/dist/js/bootstrap.bundle.min.js' . $jacat_ver,
'/assets/dist/admin-lte/dist/js/adminlte.min.js' . $jacat_ver,
),
),

// Default stylesheets to embed at page head
'stylesheets' => array(
'screen' => array(
'assets/dist/frontend/lib.min.css' . $jacat_ver,
'assets/dist/frontend/app.min.css' . $jacat_ver
'/assets/dist/admin-lte/dist/css/adminlte.min.css' . $jacat_ver,
'/assets/dist/admin-lte/plugins/fontawesome-free/css/all.min.css' . $jacat_ver,
'/assets/dist/admin-lte//plugins/icheck-bootstrap/icheck-bootstrap.min.css'. $jacat_ver,
'/assets/dist/ionicons/docs/css/ionicons.min.css' . $jacat_ver,
)
),

// Default CSS class for <body> tag
'body_class' => '',
'body_class' => 'sidebar-mini hold-transition layout-top-nav',
'navbar_class' => 'navbar navbar-expand navbar-dark',
'navmenu_bg' => 'bg-dark',
'side_class' => '',
'aside_class' => '',
'footer_style' => 'bg-dark',

// language files to autoload
'language_files' => array('auth', 'ion_auth', 'general'),

// Multilingual settings
'languages' => array(
'default' => 'en',
'autoload' => array('general'),
'available' => array(
'en' => array(
'label' => 'English',
Expand Down
Loading

0 comments on commit b8eeb1e

Please sign in to comment.