<?output('_header.html.php',$output);?> <!-- custom javascript --> <script type="text/javascript" > var default_url = '<?= makeUrl(cfg('default_uri')) ?>'; </script> <?=includeJS("jquery-ui-1.8.11.custom.min.js");?> <?=includeJS("jquery.ui.nestedSortable.js");?> <?=includeJS("admin_projects_list.js");?> <?output('_header2.html.php',$output);?> <div class="pad" > <a href="#newproject" class="button">add new project</a> <div id="list-holder" > <?=projects()->getMenu(false)?> </div> </div> <?output('_footer.html.php',$output);?>
<?php include_once "header.php"; ?> <?php $pageText = pageText(); if (!empty($pageText)) { ?> <div class="page-text"> <?php echo pageText(); ?> </div> <?php } ?> <div class="page-content"> <?php if ($_GET['project_tags']) { echo projects(); } else { echo pageContent(); } ?> </div> <?php include_once "footer.php";
</div> <div id="menu"> <?php echo pageList(); ?> </div> </div> <div id="main"> <div id="content"> <?php if (!viewingProjectTags()) { ?> <div class="pageText"> <?php echo pageText(); ?> </div> <?php } ?> <div class="pageContent"> <?php echo viewingProjectTags() ? projects() : pageContent(); ?> </div> </div> </div> </body> </html>
<?php include_once "header.php"; ?> <?php if (is_index()) { ?> <div class="front-slideshow"> <?php echo viewingProjectTags() == false ? projects('template= front_slideshow.html') : projects(); ?> </div> <?php } else { ?> <div class="page-text"> <?php echo pageText(); ?> </div> <?php echo pageContent(); ?> <?php }
function ctrl_admin_project_updateitem() { in_admin(); try { if (getPost('uid')=='new') { $data = new stdClass(); $data->type = getPost('type'); $item = projects()->get(param(1))->addItem($data); } else { $item = projects()->get(param(1))->getItem(getPost('uid')); } $item->title = strip_tags(getPost('title')); $item->caption = strip_tags(getPost('caption',false),cfg('allowed_tags')); if ((getPost('src')!=null) && ($item->type==Project::ITEM_TYPE_EMBED)) { if(filter_var(getPost('src'), FILTER_VALIDATE_URL)) { $item->src = getPost('src'); } else { $json['message'] = "The url you provided is not valid."; $json['message_type'] = MESSAGE_ERROR; die(json_encode($json)); } } projects()->save(); $json['message'] = "Item updated."; $json['message_type'] = MESSAGE_SUCCESS; } catch (Exception $e) { $json['message'] = $e->getMessage(); $json['message_type'] = MESSAGE_ERROR; } echo json_encode($json); }
function projectView() { if (projectSelected() == false) { return; } else { $settings = prepare_settings("show= big, id= " . selectedProject()); echo projects($settings); } }
<?php include_once "header.php"; ?> <?php $pageText = pageText(); if (!empty($pageText) && viewingProjectTags() == false) { ?> <div class="pageText"> <?php echo pageText(); ?> </div> <?php } ?> <div class="view"> <?php if (viewingProjectTags()) { echo '<ul>' . projects() . '</ul>'; } else { echo pageContent(); } ?> </div> <?php include_once "footer.php";
function main() { $action = $_REQUEST["action"]; if ($action == "topics") { $data = topics(); } else { if ($action == "types") { $data = types(); } else { if ($action == "people") { $data = people(); } else { $data = projects(); } } } header("Content-Type: application/json"); header("Access-Control-Allow-Origin: *"); echo json_encode($data); }
<!-- Projects Gallery --> <section id="projects-showcase" class="section"> <div class="section__meta"> <h1 class="title"><?php echo l::get('home_projects_title'); ?> </h1> </div> <div class="section__content"> <div class="featured-projects"> <?php projects(array('shuffle' => true)); ?> </div> <div class="aligncenter"> <a href="<?php echo page('projects')->url(); ?> " class="btn btn-line"><?php echo l::get('view_all_projects'); ?> </a> </div> </div> </section>