/** * Provede načtení dat pro cat / term / tag * * @author Tomáš Kocifaj * @link http://www.ktstudio.cz * * @return \KT_WP_Facebook_Data_Configurator */ private function termDataInit() { $model = new KT_WP_Term_Base_Model(get_queried_object()); $this->setTitle($model->getName())->setUrl($model->getPermalink()); if (KT::issetAndNotEmpty($model->getDescription())) { $this->setDescription($model->getDescription()); } return $this; }
<div class="col-md-3"> <?php get_sidebar(); ?> </div> <div class="col-md-9"> <header> <h1 class="text-center"><?php echo $termModel->getName(); ?> </h1> <?php if ($termModel->isDescription()) { ?> <h2 class="text-center hidden-xs"><?php echo $termModel->getDescription(); ?> </h2> <?php } ?> </header> <?php if ($postsPresenter->isPosts()) { ?> <div id="posts-container" class="row" data-offset="<?php echo $postsPresenter->getInitialOffset(); ?> " data-category-id="<?php echo $termModel->getId(); ?>