Documentation

Uena - PHP Restaurant Food Admin Dashboard Bootstrap Template

Uena

Uena - PHP Restaurant Food Admin Dashboard Bootstrap Template

This documentation is last updated on 21 Nov 2024

Thank you for purchasing this PHP template.

If you like this template, Please support us by rating this template with 5 stars


SASS installation -

1.- Install Node.js

To compile Sass via the command line first, we need to install node.js. The easiest way is downloading it from the official website nodejs.org open the package and follow the wizard.

2.- Initialize NPM

NPM is the Node Package Manager for JavaScript. NPM makes it easy to install and uninstall third party packages. To initialize a Sass project with NPM, open your terminal and CD (change directory) to your project folder.

npm init

Once in the correct folder, run the command npm init. You will be prompted to answer several questions about the project, after which NPM will generate a package.json file in your folder.

3.- Install Node-Sass

Node-sass is an NPM package that compiles Sass to CSS (which it does very quickly too). To install node-sass run the following command in your terminal: npm install node-sass

npm install node-sass
4.- Write Node-sass Command

Everything is ready to write a small script in order to compile Sass. Open the package.json file in a code editor. You will see something like this: In the scripts section add an scss command

"scripts": {
  "sass": "node-sass --watch scss/main.scss css/style.css"
},
5.- Run the Script

To execute our one-line script, we need to run the following command in the terminal: npm run sass

npm run sass
6.- Other Option

--source-map

"sass": "node-sass --watch scss/main.scss css/style.css --source-map css/style.css.map"

Folder Directories -

  • images

    This folder contains all the images of uena template.

  • fonts

    This folder font files for various template features.

  • css

    This folder contains all the CSS files of uena template.

  • js

    This folder has all javascript files for various template features.

  • vendor

    This folder has all plugins used in the template.

  • script

    This folder has all script contact form used in the template.

  • scss

    Scss File

PHP File-

  • Demo
    • assets
    • config
      • dz.php
    • elements
      • chatbox.php
      • footer.php
      • header.php
      • meta.php
      • nav-header.php
      • page-css.php
      • page-js.php
      • pre-loader.php
      • sidebar.php
    • index.php
    • orders-list.php
    • order-detail.php
    • customer-list.php
    • analytics.php
    • reviews.php
    • .....

RTL integration -

Step 1

Change the direction of theme from here. The file path is given below:-

js/deznav-init.js

var dezSettingsOptions = {
  direction: 'rtl'
};

"scripts": {
  "sass": "node-sass --watch scss/main.scss css/style-rtl.css --source-map css/style.css.map"
},

Theme Features -

js/deznav-init.js


var dezSettingsOptions = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_1",
	headerBg: "color_1",
	navheaderBg: "color_1",
	sidebarBg: "color_1",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full",
	direction: direction
};

Color Theme -

So many color option available

  • color_1
  • color_2
  • color_3
  • color_4
  • color_5
  • color_6
  • color_7
  • color_8
  • color_9
  • color_10
  • color_11
  • color_12
  • color_13
  • color_14
var dezSettingsOptions = {
	typography: "poppins",  	More Options => ["poppins" , "roboto" , "Open Sans" , "Helventivca" ]
	version: "light",       	More Options => ["light" , "dark"]
	layout: "vertical",   	More Options => ["horizontal" , "vertical"]
	primary: "color_11",		More Options => ["color_1," , "color_2," ..... "color_14"]
	headerBg: "color_1",		More Options => ["color_1," , "color_2," ..... "color_14"]
	navheaderBg: "color_1",		More Options => ["color_1," , "color_2," ..... "color_14"]
	sidebarBg: "color_1",		More Options => ["color_1," , "color_2," ..... "color_14"]
	sidebarStyle: "compact",	More Options => ["full" , "mini" , "compact" , "modern" , "overlay" , "icon-hover"]
	sidebarPosition: "fixed",	More Options => ["static" , "fixed"]
	headerPosition: "fixed",	More Options => ["static" , "fixed"]
	containerLayout: "full",	More Options => ["full" , "Boxed" , "Wide Boxed"]
	direction: direction			More Options => ["ltr" , "rtl"]
};

var dezThemeSet1 = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_1",
	headerBg: "color_1",
	navheaderBg: "color_12",
	sidebarBg: "color_12",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full",
	direction: direction
};

var dezThemeSet2 = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_9",
	headerBg: "color_1",
	navheaderBg: "color_9",
	sidebarBg: "color_9",
	sidebarStyle: "mini",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full",
	direction: direction
};

var dezThemeSet3 = {
	typography: "poppins",
	version: "dark",
	layout: "vertical",
	primary: "color_7",
	headerBg: "color_1",
	navheaderBg: "color_7",
	sidebarBg: "color_7",
	sidebarStyle: "modern",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full",
	direction: direction
};

var dezThemeSet4 = {
	typography: "poppins",
	version: "dark",
	layout: "vertical",
	primary: "color_1",
	headerBg: "color_1",
	navheaderBg: "color_1",
	sidebarBg: "color_1",
	sidebarStyle: "mini",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full",
	direction: direction
};

var dezThemeSet5 = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_1",
	headerBg: "color_1",
	navheaderBg: "color_1",
	sidebarBg: "color_1",
	sidebarStyle: "mini",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full",
	direction: direction
};

var dezThemeSet6 = {
	typography: "poppins",
	version: "light",
	layout: "horizontal",
	primary: "color_5",
	headerBg: "color_1",
	navheaderBg: "color_1",
	sidebarBg: "color_1",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "static",
	containerLayout: "full",
	direction: direction
};

var dezThemeSet7 = {
	typography: "poppins",
	version: "light",
	layout: "horizontal",
	primary: "color_2",
	headerBg: "color_1",
	navheaderBg: "color_1",
	sidebarBg: "color_2",
	sidebarStyle: "compact",
	sidebarPosition: "fixed",
	headerPosition: "static",
	containerLayout: "full",
	direction: direction
};

var dezThemeSet8 = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_15",
	headerBg: "color_1",
	navheaderBg: "color_15",
	sidebarBg: "color_1",
	sidebarStyle: "overlay",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "wide-boxed",
	direction: direction
};

var dezThemeSet9 = {
	typography: "poppins",
	version: "light",
	layout: "horizontal",
	primary: "color_14",
	headerBg: "color_14",
	navheaderBg: "color_14",
	sidebarBg: "color_1",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full",
	direction: direction
};

var dezThemeSet10 = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_8",
	headerBg: "color_1",
	navheaderBg: "color_8",
	sidebarBg: "color_8",
	sidebarStyle: "compact",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full",
	direction: direction
};

var dezThemeSet11 = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_9",
	headerBg: "color_9",
	navheaderBg: "color_1",
	sidebarBg: "color_1",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full",
	direction: direction
};

Credits -


HTML Structure -

All The Css, Js and configurations are added in the dz.php file under the config directory of root folder, there is multiple array of configurations, css and js in dz.php config file. So css and js are included in every pages by running the loop of arrays from dz.php config file. Under the configurations file, the keys of css and js arrays are the page or file name.when the page is open, get the current page name in the dz.php config file and run the loop for css and js.

1

Header

2

Footer Section

3

Page Css

elements/page-css.php 4

Page Js

elements/page-js.php 4

Page Meta

elements/meta.php 4

Do You Need Help To Customization

After Purchase A Template...

You Will Start Customizing According Your Requirement
BUT What If You Don't Know

SOLUTION IS HIRE DexignZone

Hire Same Team For Quality Customization

  • In Order To Ensure Your Website Is Live, We Will Customize
    The Template According To Your Requirements And Upload It to the Server.

Version History - #back to top

v1.0 - 21 Nov 2024
  • New - Created & Upload Uena