Skip to content

Instantly share code, notes, and snippets.

@dandyarir dandyarir/head.php
Created Aug 15, 2017

Embed
What would you like to do?
<!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">
<title><?php echo $title; ?></title>
<!-- Global stylesheets -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>assets/css/icons/fontawesome/styles.min.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>assets/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>assets/css/core.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>assets/css/components.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>assets/css/colors.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>assets/css/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>assets/css/sweetalert.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>assets/select2/select2.min.css" rel="stylesheet" type="text/css">
<!-- /global stylesheets -->
<!-- Core JS files -->
<script type="text/javascript" src="<?php echo base_url()?>assets/js/plugins/loaders/pace.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/core/libraries/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/core/libraries/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/plugins/loaders/blockui.min.js"></script>
<!-- /core JS files -->
<!-- Theme JS files -->
<script type="text/javascript" src="<?php echo base_url()?>assets/js/core/libraries/jquery_ui/widgets.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/core/libraries/jquery_ui/effects.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/plugins/forms/styling/switchery.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/plugins/forms/styling/uniform.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/plugins/forms/selects/select2.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/core/app.js"></script>
<?php
if($active == 1){
//js pie
echo '
<script type="text/javascript" src="'.base_url().'assets/js/plugins/visualization/d3/d3.min.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/plugins/visualization/d3/d3_tooltip.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/plugins/visualization/c3/c3.min.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/charts/c3/c3_bars_pies.js"></script>';
//js halaman form
echo '<script type="text/javascript" src="'.base_url().'assets/js/pages/form_layouts.js"></script>';
//js dashboard
echo '<script type="text/javascript" src="'.base_url().'assets/js/pages/dashboard.js"></script>';
}else if ($active == 4) {
// js alpaca jquery adv
echo '
<script type="text/javascript" src="'.base_url().'assets/js/plugins/forms/inputs/typeahead/handlebars.min.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/plugins/forms/inputs/alpaca/alpaca.min.js"></script>';
// js spinner
echo '
<script type="text/javascript" src="'.base_url().'assets/js/plugins/forms/inputs/touchspin.min.js"></script>';
// js tag
echo '
<script type="text/javascript" src="'.base_url().'assets/js/plugins/forms/tags/tagsinput.min.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/plugins/forms/tags/tokenfield.min.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/plugins/ui/prism.min.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/plugins/forms/inputs/typeahead/typeahead.bundle.min.js"></script>
';
// js wizard
echo '
<script type="text/javascript" src="'.base_url().'assets/js/plugins/forms/wizards/stepy.min.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/plugins/forms/validation/validate.min.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/pages/form_input_groups.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/pages/wizard_stepy.js"></script>
';
//js halaman form
echo '
<script type="text/javascript" src="'.base_url().'assets/js/pages/alpaca_basic.js"></script>
<script type="text/javascript" src="'.base_url().'assets/js/pages/form_layouts.js"></script>';
// data tag input ada disini
echo '<script type="text/javascript" src="'.base_url().'assets/js/pages/form_tags_input.js"></script>';
}else{
}
?>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/pages/jqueryui_components.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/js/plugins/ui/ripple.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>assets/css/sweetalert.min.js"></script>
<!-- /theme JS files -->
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.