Пример #1
0
 function __construct()
 {
     $this->directorController = DirectorController::getSingleton();
     $this->createDirectorPostType();
     add_action('add_meta_boxes_' . self::DIRECTOR_POST_TYPE, array(&$this, 'addMetaBoxes'));
     add_action('save_post', array(&$this->directorController, 'save'));
     //add_filter('manage_board_posts_columns', array(&$this, 'createColumnHead'));
     //add_action('manage_board_posts_custom_column', array(&$this, 'createColumnContent'), 10, 2);
     //$this->createCategoryTaxonomy();
 }
Пример #2
0
<div class="container all-pad-gone">
    <div class="row">
        <div class="col-md-12 about">   
            <h2><?php 
echo $pageEntity->getTitle();
?>
</h2>
            <p><?php 
echo $pageEntity->getContent();
?>
</p>
        </div>    
    </div>
    <div class="row">
        <?php 
foreach (DirectorController::getSingleton()->getAllMedia() as $media) {
    ?>
        <div class="col-md-4">
            <div class="media">
                <h4><?php 
    echo $media->getTitle();
    ?>
</h4> 
                <h5><?php 
    echo mysql2date("F j, Y", $media->getDate());
    ?>
</h5>
                <p><?php 
    echo TextHelper::cropText($media->getContent(), 100);
    ?>
</p>
Пример #3
0
<?php

use INUtils\Entity\PostEntity;
use Director\Controller\DirectorController;
use Board\Controller\BoardController;
use INUtils\Helper\TextHelper;
/*
  Template Name: board
*/
$pageEntity = new PostEntity(get_the_ID());
$boards = DirectorController::getSingleton()->getAll();
get_header();
?>
<div class="container all-pad-gone">
    <?php 
echo do_shortcode('[slideshow group="about"]');
?>
    <?php 
echo getTopMenu();
?>
       
</div> 
<div class="container all-pad-gone">
    <div class="row">
        <div class="col-md-12 about">   
            <h2><?php 
echo $pageEntity->getTitle();
?>
</h2>
            <p>DCBIA (District of Columbia Building Industry Association) builds leaders, community, partnership and the economy for our vibrant city through content-rich programs, networking and education.</p>
            <p>With a membership of nearly 500 companies and organizations and several thousand real estate professionals, DCBIA members represent all aspects of real estate development including developers, general contractors, architects and engineers, lenders, attorneys, brokers, title companies, utility companies, and community development organizations.</p>