Jump to content

how can i include php files in div tags..


dgnzcn

Recommended Posts

hi, i have an admin page, i created with layout drag&drop page and i send it to database like this:

<div class="row"><div class="column col-md-4 col-sm-4 col-xs-4"><!--gm-editable-region-->In this div tags i need include Leftmenu-Module.php<!--/gm-editable-region--></div><div class="column col-md-8 col-sm-8 col-xs-8"><!--gm-editable-region-->In this div tags i need include Gallery-Module.php<!--/gm-editable-region--></div></div>
how can i include  php files instead of these text.

post-87090-0-80094300-1474714132_thumb.png

 

 

 

my full frontpage html codes.

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="tr-TR" lang="tr-TR"> <!--<![endif]-->

<head>
<meta name="description" content="Test Page">
<meta name="copyright" content="x © 2016">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test Page</title>

<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/MegaNavbar.css"/>
<link rel="stylesheet" type="text/css" href="assets/css/skins/navbar-inverse.css" title="inverse">
<link rel="stylesheet" type="text/css" href="assets/css/animation/animation.css" title="inverse">

<link rel="shortcut icon" href="./favicon.ico" />

<script src="assets/plugins/jquery/jquery-1.11.1.min.js"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>

<!-- GALERİ SAYFASI İÇİN -->
<script src="assets/plugins/fotogaleri/jquery.bsPhotoGallery.js"></script>
<link rel="stylesheet" href="assets/plugins/fotogaleri/jquery.bsPhotoGallery.css">
</head>
<body>
<div class="container">
<header role="banner">
<img class="" id="logo-main" src="uploads/57c586c5cb907.jpg" width="100%" title="x" alt="x">



<nav class="navbar navbar-inverse swing no-border-radius xs-height75" id="main_navbar" role="navigation"> <!-- nav class="navbar navbar-default HingeUpToDown -->
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<ul class="nav navbar-nav navbar-left">
<li><a href="#" class="toggle_fixing"><i class="fa fa-chevron-down"></i> </a></li>
</ul>
<a class="navbar-brand navbar-left" href="index.php"><i class="fa fa-home"></i> Anasayfa</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbar-collapse-1">

<ul class="nav navbar-nav navbar-left">
<li class=''>
<a href='index.php?sayfa=blog&link=blog'><i class='fa '></i> Blog</a>
</li>
</li>
<li class=''>
<a href='index.php?sayfa=detay&link=nikon-d700-fx-1'><i class='fa fa-align-justify'></i> Nikon D700</a>
</li>
</li>
<li class='active'>
<a href='index.php?sayfa=detay&link=test-page'><i class='fa fa-align-justify'></i> Test Page</a>
</li>
</li>
<li class=''>
<a href='index.php?sayfa=detay&link=karsinizda-d700-efsanesi-1'><i class='fa '></i> KARŞINIZDA D700</a>
</li>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- search form -->
<form class="navbar-form-expanded navbar-form navbar-left visible-lg-block visible-md-block visible-xs-block" role="search" method="POST" action="index.php?sayfa=arama-sonucu">
<div class="input-group">
<input type="text" class="form-control" data-width="80px" data-width-expanded="170px" placeholder="Arama..." name="arama">
<span class="input-group-btn"><button class="btn btn-default" type="submit"><i class="fa fa-search"></i> </button></span>
</div>
</form>
<li class="dropdown-grid visible-sm-block">
<a data-toggle="dropdown" href="javascript:;" class="dropdown-toggle"><i class="fa fa-search"></i> </a>
<div class="dropdown-grid-wrapper" role="menu">
<ul class="dropdown-menu col-sm-6">
<li>
<form class="no-margin">
<div class="input-group">
<input type="text" class="form-control">
<span class="input-group-btn"><button class="btn btn-default" type="button"> <i class="fa fa-search"></i></button></span>
</div>
</form>
</li>
</ul>
</div>
</li>
<li class="dropdown-full">
<a data-toggle="dropdown" href="javascript:;" class="dropdown-toggle"><i class="fa fa-envelope"></i> İletişim<span class="caret"></span></a>
<ul class="dropdown-menu">
<li class="col-xs-4 col-sm-4 col-md-3 col-lg-3">
<h3 style="padding-top:0px; border-bottom: 1px solid #e6e6e6;"><i class="fa fa-envelope"></i> İletişim</h3>
<address>
<br>
<strong>x</strong><br>
1. Sanayi Sitesi 2830 Sk. No:24/2<br>
Kat:2 D.211 1.Sanayi Sitesi / İzmir<br>
<abbr title="Phone"><span class="glyphicon glyphicon-phone-alt"></span> Tel1:</abbr> <a href="tel:02324492746"> 0 (232) 449 2746<br></a>
<abbr title="Phone"><span class="glyphicon glyphicon-phone-alt"></span> Tel2:</abbr> <a href="tel:0"> 0 <br></a>
<abbr title="Phone"><span class="glyphicon glyphicon-phone"></span> Gsm1:</abbr> <a href="tel:05325014596"> 0 (532) 501 4596<br></a>
<abbr title="Phone"><span class="glyphicon glyphicon-phone"></span> Gsm2:</abbr> <a href="tel:0"> 0 <br></a>

</address>
<address>
<strong><span class="glyphicon glyphicon-envelope"></span> E-Posta:</strong><br>
<a href="mailto:bilgi@sanalrenk.com">bilgi@sanalrenk.com</a>
</address>
</li>
<li class="col-xs-8 col-sm-8 col-md-4 col-lg-4">
<div class="row">
<form class="" role="form">
<div class="col-xs-6 col-md-6 ">
<div class="form-group">
<input type="text" class="form-control" id="inputName" name="inputName" placeholder="İsminizi yazınız">
</div>
</div>
<div class="col-xs-6 col-md-6 ">
<div class="form-group">
<input type="password" class="form-control" id="inputEmail" name="inputEmail" placeholder="Eposta yazınız">
</div>
</div>
<div class="col-xs-12 col-md-12 ">
<div class="form-group">
<input type="password" class="form-control" id="inputSubject" name="inputSubject" placeholder="Konu yazınız ...">
</div>
</div>
<div class="col-xs-12 col-md-12 ">
<div class="form-group">
<textarea style="resize: none;" class="form-control" id="inputMessage" name="inputMessage" placeholder="Mesajınızı yazınız" rows="4"></textarea>
</div>
</div>
<div class="form-group col-sm-offset-3 col-sm-9">
<button class="btn btn-default pull-right" type="submit"><i class="fa fa-chevron-circle-right"></i> Gönder</button>
</div>
</form>
</div>
</li>
<li class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d6361714.258352032!2d30.75115952496783!3d38.87124507767135!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x14b0155c964f2671%3A0x40d9dbd42a625f2a!2zVMO8cmtpeWU!5e0!3m2!1str!2str!4v1472040606714"></iframe>
</div>
</li>
</ul>
</li>
<!-- dropdown grid -->

</ul>
</div>
</div>
</nav>
</header>
</div>
<div class="container">
<div class="row">
<div class="panel-body"><div class="row"><div class="column col-md-4 col-sm-4 col-xs-4"><!--gm-editable-region-->In this div tags i need include Leftmenu-Module.php<!--/gm-editable-region--></div><div class="column col-md-8 col-sm-8 col-xs-8"><!--gm-editable-region-->In this div tags i need include Gallery-Module.php<!--/gm-editable-region--></div></div><div class="row"></div><hr>
<!-- Footer -->
<footer>
<div class="row">
<div class="col-lg-12">
x © 2016 </div>
</div>
</footer>

</div>
</div>


<script>

//Start navbar toggle fix top bottom
$(document).on('click', '.toggle_fixing', function(e) {
e.preventDefault();
if ($('#main_navbar').hasClass('navbar-fixed-top')) {
$('#main_navbar').toggleClass('navbar-fixed-bottom navbar-fixed-top');
$(this).children('i').toggleClass('fa-chevron-down fa-chevron-up');
} else {
$('#main_navbar').toggleClass('navbar-fixed-bottom');
$(this).children('i').toggleClass('fa-chevron-down fa-chevron-up');
if ($('#main_navbar').parent('div').hasClass('container')) $('#main_navbar').children('div').addClass('container').removeClass('container-fluid');
else if ($('#main_navbar').parent('div').hasClass('container-fluid')) $('#main_navbar').children('div').addClass('container-fluid').removeClass('container');
FixMegaNavbar(navHeight);
}
if ($('#main_navbar').hasClass('navbar-fixed-top')) {$('body').css({'margin-top': $('#main_navbar').height()+'px', 'margin-bottom': ''});}
else if ($('#main_navbar').hasClass('navbar-fixed-bottom')) {$('body').css({'margin-bottom': $('#main_navbar').height()+'px', 'margin-top': ''});}
})
//End navbar toggle fix top bottom

//Start Fix MegaNavbar on scroll page
var navHeight = $('#main_navbar').offset().top;
FixMegaNavbar(navHeight);
$(window).bind('scroll', function() {FixMegaNavbar(navHeight);});

function FixMegaNavbar(navHeight) {
if (!$('#main_navbar').hasClass('navbar-fixed-bottom')) {
if ($(window).scrollTop() > navHeight) {
$('#main_navbar').addClass('navbar-fixed-top')
$('body').css({'margin-top': $('#main_navbar').height()+'px'});
if ($('#main_navbar').parent('div').hasClass('container')) $('#main_navbar').children('div').addClass('container').removeClass('container-fluid');
else if ($('#main_navbar').parent('div').hasClass('container-fluid')) $('#main_navbar').children('div').addClass('container-fluid').removeClass('container');
}
else {
$('#main_navbar').removeClass('navbar-fixed-top');
$('#main_navbar').children('div').addClass('container-fluid').removeClass('container');
$('body').css({'margin-top': ''});
}
}
}
//End Fix MegaNavbar on scroll page

//Next code used to prevent unexpected menu close when using some components (like accordion, tabs, forms, etc), please add the next JavaScript to your page
$( window ).load(function() {
$(document).on('click', '.navbar .dropdown-menu', function(e) {e.stopPropagation();});
});
</script>
</body>
</html>

post-87090-0-60093600-1474713284_thumb.png

Edited by requinix
Link to comment
Share on other sites

You are saving html code in a database? Is this your own CMS that you are writing?

Yes it is mine, but just like similar this : 

<div class="row"><div class="column col-md-4 col-sm-4 col-xs-4"><!--gm-editable-region-->In this div tags i need include Leftmenu-Module.php<!--/gm-editable-region--></div><div class="column col-md-8 col-sm-8 col-xs-8"><!--gm-editable-region-->In this div tags i need include Gallery-Module.php<!--/gm-editable-region--></div></div>

is there any way without save to db??

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.