%PDF- %PDF-
| Direktori : /home/gachan/www/wp-content/themes/jekas/ |
| Current File : /home/gachan/www/wp-content/themes/jekas/single-work.php |
<?php
get_header('post');
$header1 = array(
'title' => str_replace(__('description','jekas'),'<strong>'.__('description','jekas').'</strong>',__('Characteristics and description of the work.','jekas')),
'header_desc' => '<p></p>',
'header_icon' => 'fa fa-html5',
'header_icon_position' => 'right',
);
$header2 = array(
'title' => str_replace(__('Works','jekas'),'<strong>'.__('Works','jekas').'</strong>',__('Recent Works with jk.','jekas')),
'header_desc' => '<p></p>',
'header_icon' => 'fa fa-css3',
'header_icon_position' => 'left',
);
$title = '';
$description = '';
$work_tags = array();
$work_tags_icon = 'fa fa-check';
$icons = array();
$gallery = array();
$button_text = esc_html__('Launch Project','jekas');
$button_url = '#';
$jekas_works = array();
if(function_exists('rwmb_meta')){
$header1 = rwmb_meta('work_header_1');
if(!empty($header1['header_resalt']))
$header1['title'] = str_replace($header1['header_resalt'],'<span>'.$header1['header_resalt'].'</span>',$header1['header_title']);
else
$header1['title'] = $header1['header_title'];
$header2 = rwmb_meta('work_header_2');
if(!empty($header2['header_resalt']))
$header2['title'] = str_replace($header2['header_resalt'],'<span>'.$header2['header_resalt'].'</span>',$header2['header_title']);
else
$header2['title'] = $header2['header_title'];
$resalt_title = rwmb_meta('work_resalt');
$title = rwmb_meta('work_name');
if(!empty($resalt_title))
$title = str_replace($resalt_title,'<span>'.$resalt_title.'</span>',$title);
$description = rwmb_meta('work_desc');
$icons = rwmb_meta('work_icons',array('multiple' => true));
$gallery = rwmb_meta('work_gallery',array('type' => 'image'));
$button_text = rwmb_meta('work_btn_text');
$button_url = rwmb_meta('work_btn_url');
$work_tags_icon = rwmb_meta('work_tag_icon');
$work_tags = rwmb_meta('work_tags');
$jekas_works = rwmb_meta('work_selected',array('multiple' => true));
}
?>
<div style="visibility: visible; animation-name: fadeInUp;" class="row info_title wow animated fadeInUp animated">
<div class="vertical_line">
<div class="circle_bottom"></div>
</div>
<div class="info_vertical">
<h2><?php print wp_kses($header1['title'],array('span'=> array()))?></h2>
<p><?php print esc_html($header1['header_desc']) ?></p>
</div>
<div class="vertical_line"></div>
<i class="<?php print $header1['header_icon']?> <?php print $header1['header_icon_position']?>"></i>
</div>
<section class="content_info">
<div class="info_resalt borders">
<div class="container">
<div class="row">
<div class="col-md-4">
<h3 class="titles-span"><?php print esc_html($title)?></h3>
<p><?php print esc_html($description) ?></p>
<ul class="list">
<?php foreach($work_tags as $category ) :?>
<li> <i class="<?php print $work_tags_icon?>"></i> <?php print esc_html($category) ?> </li>
<?php endforeach;?>
</ul>
<div class="technologies">
<?php foreach($icons as $icon):?>
<i class="<?php print $icon?>"></i>
<?php endforeach;?>
</div>
<a href="<?php print esc_url($button_url)?>" class="button"><?php print esc_html($button_text) ?></a>
</div>
<div class="col-md-8">
<ul class="carousel-single" id="carousel-single">
<?php foreach($gallery as $picture):?>
<li><img class="img-responsive" src="<?php print esc_url($picture['full_url']) ?>" alt=""/></li>
<?php endforeach;?>
</ul>
</div>
</div>
</div>
</div>
</section>
<div style="visibility: visible; animation-name: fadeInUp;" class="row info_title wow fadeInUp animated">
<div class="vertical_line">
<div class="circle_bottom"></div>
</div>
<div class="info_vertical animated">
<h2 class="text_h1"><?php print wp_kses($header2['title'],array('span'=> array()))?></h2>
<p><?php print esc_html($header2['header_desc']) ?></p>
</div>
<div class="vertical_line"></div>
<i class="<?php print $header2['header_icon']?> <?php print $header1['header_icon_position']?>"></i>
</div>
<div class="content-info">
<div class="info_resalt border-top">
<div class="container wow fadeInUp">
<div class="row">
<div class="col-md-12">
<ul class="owl-carousel carousel-portfolio" id="carousel-portfolio">
<?php foreach($jekas_works as $jekas_work):
if(function_exists('rwmb_meta')) {
$img_url = reset($img = rwmb_meta('work_picture',array('type' => 'image'),$jekas_work));
$img_url =$img_url['full_url'];
$jekas_work_title = rwmb_meta('work_name',null,$jekas_work);
}
else {
$img_url = get_template_directory_uri() . '/img/post-image.jpg';
$jekas_work_title = get_the_title($jekas_work);
}
?>
<li>
<div class="hover">
<img src="<?php print esc_url($img_url)?>" alt=""/>
<a href="<?php print esc_url($img_url)?>" class="ligbox-image" title="Image"><div class="overlay"></div></a>
</div>
<div class="info">
<a href="<?php print esc_url(get_permalink($jekas_work))?>"> <?php print $jekas_work_title?> </a>
<?php
if(function_exists('rwmb_meta'))
foreach(rwmb_meta('work_icons',array('multiple'=>true),$jekas_work) as $icon)
print "<i class='$icon'></i>";
?>
</div>
</li>
<?php endforeach;?>
</ul>
</div>
</div>
</div>
</div>
</div>
<?php get_footer()?>