Example #1
0
 function __construct()
 {
     $this->issueController = IssueController::getSingleton();
     $this->createIssuePostType();
     $this->createKeyIssuesTaxonomy();
     add_action('add_meta_boxes_' . self::POST_TYPE, array(&$this, 'addMetaBoxes'));
     add_action('save_post', array(&$this->issueController, 'save'));
 }
Example #2
0
<?php

use Resource\Helper\ResourceHelper;
use Issue\Controller\IssueController;
use INUtils\Entity\PostEntity;
/*
  Template Name: advocacy
*/
get_header();
$keyIssues = ResourceHelper::getKeyIssues();
$headings = IssueController::getSingleton()->getHeadings();
$pageEntity = new PostEntity(get_the_ID());
//var_dump($headings[0]->getName()); die();
?>
<div class="container all-pad-gone">
    <?php 
echo do_shortcode('[slideshow group="advocacy"]');
?>
    <?php 
echo getTopMenu();
?>
     
</div> 
<div class="container all-pad-gone" ng-controller="ResourceController" ng-init="initial()">
    <div class="row">
        <div class="col-md-12 advocacy">   
            <h2><?php 
echo $pageEntity->getTitle();
?>
</h2>
            <p><?php