<?php
/* Smarty version 3.1.32, created on 2021-02-03 07:44:45
  from 'module:phsimpleblogviewstemplate' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.32',
  'unifunc' => 'content_601aa8cd0ca789_14952565',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '61f7118cda84e2f822be8732bb4926bb54237170' => 
    array (
      0 => 'module:phsimpleblogviewstemplate',
      1 => 1558584411,
      2 => 'module',
    ),
  ),
  'includes' => 
  array (
    'module:ph_simpleblog/views/templates/front/post-miniature.tpl' => 1,
    'module:ph_simpleblog/views/templates/front/pagination.tpl' => 2,
  ),
),false)) {
function content_601aa8cd0ca789_14952565 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>



<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_1013166400601aa8cd058e49_64210649', 'page_title');
?>



<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_830040425601aa8cd06a427_89388937', 'head_seo_title');
?>


<?php if ($_smarty_tpl->tpl_vars['is_category']->value == true) {?>
		<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_252634188601aa8cd074c19_46820413', 'head_seo_keywords');
?>

<?php }?>


<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_1430797085601aa8cd079948_83656040', 'head_seo_description');
?>



<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_688504585601aa8cd07ef42_76739146', 'page_content');
$_smarty_tpl->inheritance->endChild($_smarty_tpl, 'page.tpl');
}
/* {block 'page_title'} */
class Block_1013166400601aa8cd058e49_64210649 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'page_title' => 
  array (
    0 => 'Block_1013166400601aa8cd058e49_64210649',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

	<?php if ($_smarty_tpl->tpl_vars['is_category']->value == true) {?>
		<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['blogCategory']->value->name, ENT_QUOTES, 'UTF-8');?>

	<?php } else { ?>
		<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['blogMainTitle']->value, ENT_QUOTES, 'UTF-8');?>

	<?php }
}
}
/* {/block 'page_title'} */
/* {block 'head_seo_title'} */
class Block_830040425601aa8cd06a427_89388937 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'head_seo_title' => 
  array (
    0 => 'Block_830040425601aa8cd06a427_89388937',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

	<?php if ($_smarty_tpl->tpl_vars['is_category']->value == true) {?>
		<?php if ($_smarty_tpl->tpl_vars['blogCategory']->value->meta_title != '') {?>
			<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['blogCategory']->value->meta_title, ENT_QUOTES, 'UTF-8');?>
 - <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['meta']['title'], ENT_QUOTES, 'UTF-8');?>

		<?php } else { ?>
			<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['blogCategory']->value->name, ENT_QUOTES, 'UTF-8');?>
 - <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['meta']['title'], ENT_QUOTES, 'UTF-8');?>

		<?php }?>
	<?php } else { ?>
		<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['blogMainTitle']->value, ENT_QUOTES, 'UTF-8');?>
 - <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['meta']['title'], ENT_QUOTES, 'UTF-8');?>

	<?php }
}
}
/* {/block 'head_seo_title'} */
/* {block 'head_seo_keywords'} */
class Block_252634188601aa8cd074c19_46820413 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'head_seo_keywords' => 
  array (
    0 => 'Block_252634188601aa8cd074c19_46820413',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
if (isset($_smarty_tpl->tpl_vars['blogCategory']->value->meta_keywords)) {
echo htmlspecialchars($_smarty_tpl->tpl_vars['blogCategory']->value->meta_keywords, ENT_QUOTES, 'UTF-8');
}
}
}
/* {/block 'head_seo_keywords'} */
/* {block 'head_seo_description'} */
class Block_1430797085601aa8cd079948_83656040 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'head_seo_description' => 
  array (
    0 => 'Block_1430797085601aa8cd079948_83656040',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

	<?php if ($_smarty_tpl->tpl_vars['is_category']->value == true) {?>
		<?php if ($_smarty_tpl->tpl_vars['blogCategory']->value->meta_description != '') {?>
			<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['blogCategory']->value->meta_description, ENT_QUOTES, 'UTF-8');?>

		<?php }?>
	<?php } else { ?>
		<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['meta_description']->value, ENT_QUOTES, 'UTF-8');?>

	<?php }
}
}
/* {/block 'head_seo_description'} */
/* {block 'page_content'} */
class Block_688504585601aa8cd07ef42_76739146 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'page_content' => 
  array (
    0 => 'Block_688504585601aa8cd07ef42_76739146',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/kubocloud/public_html/creativo-e9/vendor/smarty/smarty/libs/plugins/function.cycle.php','function'=>'smarty_function_cycle',),));
?>



<div class="ph_simpleblog simpleblog-<?php if ($_smarty_tpl->tpl_vars['is_category']->value) {?>category<?php } else { ?>home<?php }?>">
	<?php if ($_smarty_tpl->tpl_vars['is_category']->value == true) {?>

		<?php if (Configuration::get('PH_BLOG_DISPLAY_CATEGORY_IMAGE') && isset($_smarty_tpl->tpl_vars['blogCategory']->value->image)) {?>
		<div class="simpleblog-category-image">
			<img src="<?php echo htmlspecialchars(call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['blogCategory']->value->image,'html','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
" alt="<?php echo htmlspecialchars(call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['blogCategory']->value->name,'html','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
" class="img-responsive" />
		</div>
		<?php }?>

		<?php if (!empty($_smarty_tpl->tpl_vars['blogCategory']->value->description) && Configuration::get('PH_BLOG_DISPLAY_CAT_DESC')) {?>
		<div class="ph_cat_description rte">
			<?php echo $_smarty_tpl->tpl_vars['blogCategory']->value->description;?>

		</div>
		<?php }?>
	<?php }?>

	<?php if (isset($_smarty_tpl->tpl_vars['posts']->value) && count($_smarty_tpl->tpl_vars['posts']->value)) {?>
		<div class="row simpleblog-posts">
			<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['posts']->value, 'post');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['post']->value) {
?>

				<div class="simpleblog-post-item
				<?php if ($_smarty_tpl->tpl_vars['blogLayout']->value == 'grid' && $_smarty_tpl->tpl_vars['columns']->value == '3') {?>
					col-md-4 col-sm-6 col-xs-12 col-ms-12 <?php echo smarty_function_cycle(array('values'=>"first-in-line,second-in-line,last-in-line"),$_smarty_tpl);?>

				<?php } elseif ($_smarty_tpl->tpl_vars['blogLayout']->value == 'grid' && $_smarty_tpl->tpl_vars['columns']->value == '4') {?>
					col-md-3 col-sm-6 col-xs-12 col-ms-12 <?php echo smarty_function_cycle(array('values'=>"first-in-line,second-in-line,third-in-line,last-in-line"),$_smarty_tpl);?>

				<?php } elseif ($_smarty_tpl->tpl_vars['blogLayout']->value == 'grid' && $_smarty_tpl->tpl_vars['columns']->value == '2') {?>
					col-md-6 col-sm-6 col-xs-12 col-ms-12 <?php echo smarty_function_cycle(array('values'=>"first-in-line,last-in-line"),$_smarty_tpl);?>

				<?php } else { ?>
				col-md-12
				<?php }?>">

				<?php $_smarty_tpl->_subTemplateRender("module:ph_simpleblog/views/templates/front/post-miniature.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('post'=>$_smarty_tpl->tpl_vars['post']->value), 0, true);
?>

				</div><!-- .simpleblog-post-item -->

			<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
		</div><!-- .row -->
		
		<?php if ($_smarty_tpl->tpl_vars['is_category']->value) {?>
			<?php $_smarty_tpl->_subTemplateRender("module:ph_simpleblog/views/templates/front/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('rewrite'=>$_smarty_tpl->tpl_vars['blogCategory']->value->link_rewrite,'type'=>'category'), 0, false);
?>
		<?php } else { ?>
			<?php $_smarty_tpl->_subTemplateRender("module:ph_simpleblog/views/templates/front/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('rewrite'=>false,'type'=>false), 0, true);
?>
		<?php }?>
	<?php } else { ?>
		<p class="warning alert alert-warning"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'There are no posts','mod'=>'ph_simpleblog'),$_smarty_tpl ) );?>
</p>
	<?php }?>
</div><!-- .ph_simpleblog -->


<?php
}
}
/* {/block 'page_content'} */
}
