142 lines
5.2 KiB
PHP
142 lines
5.2 KiB
PHP
<?php
|
|
session_start();
|
|
// if(!isset($_SESSION['user_id'])){
|
|
// header("Location: ../../../");
|
|
// }
|
|
|
|
// if (isset($_SESSION["user_id"])) {
|
|
// // $mysqli = func_get_database();
|
|
|
|
// // $result = $mysqli->query($sql);
|
|
// // $user = $result->fetch_assoc();
|
|
// // portal/admin/core/api/js/libs/appfactory/afspayments.js
|
|
|
|
// if($_SESSION["user_id"]==1){
|
|
// html("Appfactory Studio - Web Builder","../../../../../");
|
|
// }else{
|
|
// header("Location: ../index.php");
|
|
// }
|
|
// }else{
|
|
// header("Location: ../../index.php");
|
|
// }
|
|
?>
|
|
|
|
|
|
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Appfactory Studio - Website Builder</title>
|
|
<meta content="Websites Builder" name="description">
|
|
<link rel="icon" type="image/x-icon" href="../../../../../assets/favicon.ico">
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://unpkg.com/grapick/dist/grapick.min.css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
|
|
<link rel="stylesheet" href="./stylesheets/tooltip.css">
|
|
<link rel="stylesheet" href="./stylesheets/demos.css?v3">
|
|
<link rel="stylesheet" href="./stylesheets/toastr.min.css">
|
|
<link rel="stylesheet" href="./stylesheets/grapes.min.css?v0.20.3">
|
|
<link rel="stylesheet" href="./stylesheets/grapesjs-preset-webpage.min.css">
|
|
<script src="./js/grapes.min.js?v0.20.3"></script>
|
|
<!-- <script src="./grapesjs/grapesjs-my-plugin/dist/index.js"></script> -->
|
|
<script src="./js/toastr.min.js"></script>
|
|
|
|
|
|
<script src="https://unpkg.com/grapesjs-preset-webpage@1.0.2"></script>
|
|
<script src="https://unpkg.com/grapesjs-blocks-basic@1.0.1"></script>
|
|
<script src="https://unpkg.com/grapesjs-plugin-forms@2.0.5"></script>
|
|
<script src="https://unpkg.com/grapesjs-component-countdown@1.0.1"></script>
|
|
<script src="https://unpkg.com/grapesjs-plugin-export@1.0.11"></script>
|
|
<script src="https://unpkg.com/grapesjs-tabs@1.0.6"></script>
|
|
<script src="https://unpkg.com/grapesjs-custom-code@1.0.1"></script>
|
|
<script src="https://unpkg.com/grapesjs-touch@0.1.1"></script>
|
|
<script src="https://unpkg.com/grapesjs-parser-postcss@1.0.1"></script>
|
|
<script src="https://unpkg.com/grapesjs-tooltip@0.1.7"></script>
|
|
<script src="https://unpkg.com/grapesjs-tui-image-editor@0.1.3"></script>
|
|
<script src="https://unpkg.com/grapesjs-typed@1.0.5"></script>
|
|
<script src="https://unpkg.com/grapesjs-style-bg@2.0.1"></script>
|
|
<script src="https://unpkg.com/grapesjs-navbar"></script>
|
|
<!-- <script src="https://unpkg.com/grapesjs-mjml@1.0.2"></script> -->
|
|
|
|
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<link rel="stylesheet" href="./css/styles.css">
|
|
|
|
|
|
<div id="gjs" style="height:0px; overflow:hidden">
|
|
<?php
|
|
$headerNav = file_get_contents("./other/pages/_header_nav.html");
|
|
$headerNavStyles = file_get_contents("./other/pages/_test.css");
|
|
$footerHtml = file_get_contents("./other/pages/_footer.html");
|
|
$footerStyles = file_get_contents("./other/pages/_footer.css");
|
|
$indexHtmlContents = file_get_contents("./other/pages/home.html");
|
|
$indexCssContents = file_get_contents("./other/pages/home_styles.css");
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
var gl_navbar = `<?php echo $headerNav; ?>`;
|
|
var gl_html_index = `<?php echo $headerNav . " " . $indexHtmlContents . " " . $footerHtml; ?>`;
|
|
var gl_css_index = `<?php echo $headerNavStyles . " ". $indexCssContents . " " . $footerStyles; ?>`;
|
|
|
|
</script>
|
|
</div>
|
|
|
|
|
|
<!--
|
|
This is for GrapesJS alert, currently right now this is the only that
|
|
I can modify my own actions within the editor until I get a handle on
|
|
plugins.
|
|
-->
|
|
<!-- nnnn // pppp -->
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div id="panel-pages" style="display:none">
|
|
<h3>Website Pages</h3>
|
|
<input id="add-new-page-input" type="text" />
|
|
<button id="add-new-page-btn">Add Page</button>
|
|
<ul id="panel-pages-list">
|
|
</ul>
|
|
</div>
|
|
<div id="panel-pubish" style="display:none">
|
|
<h3>Publish</h3>
|
|
<button id="panel-publish-cancel">Cancel</button>
|
|
<button id="panel-publish-publish">Publish</button>
|
|
</div>
|
|
<div id="info-panel" style="display:none">
|
|
<h3>Save Progress</h3>
|
|
<button id="panel-save-cancel">Cancel</button>
|
|
<button id="panel-save-save">Save</button>
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="other/js/helper.js"></script>
|
|
<script type="text/javascript" src="other/js/config_properties.js"></script>
|
|
<script type="text/javascript" src="other/js/main.js"></script>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|