?> <!-- Start main-content --> <div class="main-content"> <!-- Section: home --> <section> <div class="container pb-0"> <div class="section-title text-center mb-0"> <div class="row"> <div class="col-md-12"> <h3 class="text-uppercase mt-0">WomenLine</h3> <div class="title-icon"> <i class="flaticon-hand221"></i> </div> <div class="col-lg-10 col-md-9 col-sm-6 text-left"> <p><?php echo substr(strip_tags($pm->setPage('introduction')->getPageInfo('page-content')), 0, 250); ?> ...</p> </div> <div class="col-lg-2 col-md-3 col-sm-6"> <a href="introduction" class="btn btn-colored btn-orange">Learn More</a> </div> </div> </div> </div> </div> </section> <!-- Section: featured project --> <section> <div class="container pb-80"> <div class="section-title text-center">
$url = new URL(); $pm = new PageManager(); $pages = $pm->getPageList(); echo Comman::loadView('admin-header'); ?> <div class="container" style="margin-top: 10px;"> <div class="row"> <div class="col-xs-12"> <div class="panel"> <div class="panel-body"> <table class="table table-bordered"> <tr><th>#</th><th>Name</th><th></th></tr> <?php $i = 1; foreach ($pages as $page) { $pm->setPage($page); ?> <tr> <td><?php echo $i++; ?> </td> <td><?php echo $pm->getPageInfo('page-title'); ?> </td> <td><a href="<?php echo $config->site_address . $page; ?> /?mode=edit" target="_blank" class="btn btn-info">Edit</a></td> </tr>
$scope.videos = $data.items; }); }) .controller('newsDetailController', function($scope){ addActive('news'); $scope.title = "News"; setTitle("News"); $scope.breadcrumb = [ {title:'Home',link:'/home',active:false}, {title:'News',link:'/news',active:true}, ]; hideSlider(); }) <?php foreach ($list as $pageId) { $pm->setPage($pageId); ?> .controller('<?php echo $pm->fixPageIdForController($pageId); ?> Controller', function($scope){ addActive('<?php echo $pageId; ?> '); $scope.title = "<?php echo $pm->getPageInfo('page-title'); ?> "; setTitle("<?php echo $pm->getPageInfo('page-title');
<?php include '../core/includes.php'; $config = new Config(); $auth = new Auth(); $pm = new PageManager(); $pm->setPage($_REQUEST['page']); if (!$auth->isAdmin()) { header("Location:" . $config->site_address . "login"); } if ($pm->setPageInfo('page-content', $_REQUEST['content'])) { echo 1; } else { echo 0; }