Esempio n. 1
0
 function __construct()
 {
     $this->staffController = StaffController::getSingleton();
     $this->createStaffPostType();
     add_action('add_meta_boxes_staff', array(&$this, 'addMetaBoxesForStaff'));
     add_action('save_post', array(&$this->staffController, 'save'));
 }
Esempio n. 2
0
<?php

use INUtils\Entity\PostEntity;
use Staff\Controller\StaffController;
/*
  Template Name: staff
*/
$pageEntity = new PostEntity(get_the_ID());
$staffs = StaffController::getSingleton()->getAll();
get_header();
?>
<div class="container all-pad-gone">
    <?php 
echo do_shortcode('[slideshow group="about"]');
?>
    <?php 
echo getTopMenu();
?>
       
</div> 

<!--start main content here-->

<div class="container all-pad-gone">
    <div class="row">
        <div class="col-md-12 about">   
            <h2><?php 
echo $pageEntity->getTitle();
?>
</h2>
            <p><?php