| Server IP : 194.30.32.123 / Your IP : 216.73.216.89 Web Server : Apache System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64 User : ftpbegirale ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /expert/htwebs/www.begirale.com/public/wp-content/themes/perspective-theme/ |
Upload File : |
<?php
get_header();
global $node,$cs_theme_option;
$cs_layout = '';
$post_xml = get_post_meta($post->ID, "portfolio", true);
if ( $post_xml <> "" ) {
$xmlObject = new SimpleXMLElement($post_xml);
$post_view = $xmlObject->inside_portfolio_thumb_view;
$portfolio_custom_image = $xmlObject->inside_portfolio_thumb_custom_image;
$post_video = $xmlObject->inside_portfolio_thumb_video;
$post_audio = $xmlObject->inside_portfolio_thumb_audio;
$post_slider = $xmlObject->inside_portfolio_thumb_slider;
$post_slider_type = $xmlObject->inside_portfolio_thumb_slider_type;
$portfolio_social_sharing = $xmlObject->portfolio_social_sharing;
$related_post = $xmlObject->related_post;
$post_gallery = $xmlObject->inside_portfolio_thumb_gallery;
$portfolio_post_desc = $xmlObject->portfolio_post_desc;
$portfolio_post_desc_title = $xmlObject->portfolio_post_desc_title;
$portfolio_related = $xmlObject->portfolio_related;
$width = 1170;
$height = 490;
}
else {
$post_view = '';
$portfolio_thumb_audio = '';
$portfolio_thumb_video = '';
$post_slider = '';
$portfolio_thumb_slider_type = '';
$post_slider_type = '';
$portfolio_social_sharing = '';
$related_post = '';
$portfolio_custom_image = '';
$post_gallery = '';
$portfolio_post_desc_title = '';
$portfolio_related = '';
}
$port_class = '';
if($xmlObject->portfolio_view == "Full"){
$port_class = "full";
}elseif($xmlObject->portfolio_view == "Side Left"){
$port_class = "left";
}
elseif($xmlObject->portfolio_view == "Side Right"){
$port_class = "right";
}
?>
<!-- Content Section Start -->
<div id="main" role="main">
<!-- Container Start -->
<div class="container">
<!-- Row Start -->
<div class="row">
<?php
if (have_posts()):
while (have_posts()) : the_post();
$width = 1170;
$height = 490;
$image_url = cs_get_post_img_src($post->ID, $width,$height);
?>
<div class="portfolio-<?php echo $port_class; ?>">
<?php if ( $xmlObject->portfolio_view == "Full" ) { ?>
<div class="span12">
<figure class="detail_figure <?php if ($image_url == '') echo 'no-image'; ?> fullimg" >
<?php
if ( $post_view == "Slider"){
cs_flex_slider($width, $height,$post_slider);
}elseif ( $post_view == "Dragable Gallery"){
$width = 585;
$height = 440;
echo cs_portfolio_gallery($width,$height,$post_gallery,$post_view);
}elseif($post_view == "Simple Gallery"){
echo cs_portfolio_gallery($width,$height,$post_gallery,$post_view);
}
elseif($post_view == "Use Featured Image"){
echo '<a><img src="'.$image_url.'" alt="" /></a>
<span></span>';
}elseif($post_view == "Custom Image"){
echo '<a><img src="'.$portfolio_custom_image.'" alt="" /></a>
<span></span>';
}elseif($post_view == "Video"){
$url = parse_url($post_video);
if($url['host'] == $_SERVER["SERVER_NAME"]){?>
<video width="<?php echo $width; ?>" class="mejs-wmp" height="<?php echo $height; ?>" src="<?php echo $post_video ?>" poster="<?php echo $image_url; ?>" controls="controls" preload="none"></video>
<span class="play_btn transition absolute"></span>
<?php
}else{
echo wp_oembed_get($post_video,array('width'=>$width));
}
}elseif($post_view == "Audio"){
?>
<audio style="width:100%;" src="<?php echo $post_audio; ?>" type="audio/mp3" controls="controls"></audio>
<?php
}
?>
</figure>
</div>
<div class="span4">
<div class="portfolio-detail-sidebar">
<?php if($portfolio_post_desc_title <> '' ){ echo '<header class="heading"><h2 class="heading-color section-title cs-heading-color">'.$portfolio_post_desc_title.'</h1></header>'; } ?>
<?php if($portfolio_post_desc <> '' ){ echo '<p>'.$portfolio_post_desc.'</p>'; } ?>
<header class="heading">
<h2 class="heading-color section-title cs-heading-color"><?php echo $xmlObject->port_other_info_main_title?></h2>
</header>
<ul>
<?php
$port_other_info_title = '';
$port_other_info_desc = '';
$port_other_info_icon = '';
if ( $post_xml <> "" ) {
foreach ( $xmlObject as $other_info ){
if ( $other_info->getName() == "other_info" ) {
$port_other_info_title = $other_info->port_other_info_title;
$port_other_info_desc = $other_info->port_other_info_desc;
$port_other_info_icon = $other_info->port_other_info_icon;
echo '<li> <span class="icon-stack pull-left"><em class="icon-circle icon-stack-base"></em><em class="'.$other_info->port_other_info_icon.' icon-light"></em></span>
<div class="text">
<span>'.$port_other_info_title.'</span>
<p>'.$port_other_info_desc.'</p>
</div></li>';
}
}
}
?>
</ul>
</div>
</div>
<div class="span8">
<!-- Portfolio Detail Text -->
<div class="portfolio-detail-text">
<?php the_content(); ?>
</div>
<!-- Portfolio Detail Text -->
</div>
<?php }else{
if($xmlObject->portfolio_view == "Side Left"){ ?>
<!-- Portfolio Detail Text -->
<div class="span4">
<div class="portfolio-detail-sidebar">
<?php if($portfolio_post_desc_title <> '' ){ echo '<h2>'.$portfolio_post_desc_title.'</h1>'; } ?>
<?php if($portfolio_post_desc <> '' ){ echo '<p>'.$portfolio_post_desc.'</p>'; } ?>
<header class="heading">
<h2 class="heading-color section-title cs-heading-color"><?php echo $xmlObject->port_other_info_main_title?></h2>
</header>
<ul>
<?php
$port_other_info_title = '';
$port_other_info_desc = '';
$port_other_info_icon = '';
if ( $post_xml <> "" ) {
foreach ( $xmlObject as $other_info ){
if ( $other_info->getName() == "other_info" ) {
$port_other_info_title = $other_info->port_other_info_title;
$port_other_info_desc = $other_info->port_other_info_desc;
$port_other_info_icon = $other_info->port_other_info_icon;
echo '<li> <span class="icon-stack pull-left"><em class="icon-circle icon-stack-base"></em><em class="'.$other_info->port_other_info_icon.' icon-light"></em></span>
<div class="text">
<span>'.$port_other_info_title.'</span>
<p>'.$port_other_info_desc.'</p>
</div></li>';
}
}
}
?>
</ul>
</div>
</div>
<?php
}
?>
<div class="span8">
<figure class="detail_figure <?php if ($image_url == '') echo 'no-image'; ?> fullimg" >
<?php
if ( $post_view == "Slider"){
cs_flex_slider($width, $height,$post_slider);
}elseif ( $post_view == "Dragable Gallery"){
$width = 585;
$height = 440;
echo cs_portfolio_gallery($width,$height,$post_gallery,$post_view);
}elseif($post_view == "Simple Gallery"){
echo cs_portfolio_gallery($width,$height,$post_gallery,$post_view);
}elseif($post_view == "Use Featured Image"){
echo '<a><img src="'.$image_url.'" alt="" /></a>
<span></span>';
}elseif($post_view == "Custom Image"){
echo '<a><img src="'.$portfolio_custom_image.'" alt="" /></a>
<span></span>';
}elseif($post_view == "Video"){
$url = parse_url($post_video);
if($url['host'] == $_SERVER["SERVER_NAME"]){?>
<video width="<?php echo $width; ?>" class="mejs-wmp" height="<?php echo $height; ?>" src="<?php echo $post_video ?>" poster="<?php echo $image_url; ?>" controls="controls" preload="none"></video>
<span class="play_btn transition absolute"></span>
<?php
}else{
echo wp_oembed_get($post_video,array('width'=>$width));
}
}elseif($post_view == "Audio"){
?>
<audio style="width:100%;" src="<?php echo $post_audio; ?>" type="audio/mp3" controls="controls"></audio>
<?php
}
?>
</figure>
</div>
<?php if($xmlObject->portfolio_view == "Side Right"){ ?>
<div class="span4">
<div class="portfolio-detail-sidebar">
<?php if($portfolio_post_desc_title <> '' ){ echo '<h2>'.$portfolio_post_desc_title.'</h1>'; } ?>
<?php if($portfolio_post_desc <> '' ){ echo '<p>'.$portfolio_post_desc.'</p>'; } ?>
<header class="heading">
<h2 class="section-title headding-color cs-heading-color"><?php echo $xmlObject->port_other_info_main_title?></h2>
</header>
<ul>
<?php
$port_other_info_title = '';
$port_other_info_desc = '';
$port_other_info_icon = '';
if ( $post_xml <> "" ) {
foreach ( $xmlObject as $other_info ){
if ( $other_info->getName() == "other_info" ) {
$port_other_info_title = $other_info->port_other_info_title;
$port_other_info_desc = $other_info->port_other_info_desc;
$port_other_info_icon = $other_info->port_other_info_icon;
echo '<li> <span class="icon-stack pull-left"><em class="icon-circle icon-stack-base"></em><em class="'.$other_info->port_other_info_icon.' icon-light"></em></span>
<div class="text">
<span>'.$port_other_info_title.'</span>
<p>'.$port_other_info_desc.'</p>
</div></li>';
}
}
}
?>
</ul>
</div>
</div>
<?php
}
?>
<div class="span12">
<!-- Portfolio Detail Text -->
<div class="portfolio-detail-text">
<?php the_content(); ?>
</div>
<!-- Portfolio Detail Text -->
</div>
<?php
}
?>
<div class="span12">
<!-- Share Post Start -->
<div class="share_post">
<nav id="nav-single" class="portfolio-pagination">
<?php previous_post_link( '%link', __( '<span class="prevs">Previous Post</span>', 'Perspective' ) ); ?>
<?php next_post_link( '%link', __( '<span class="nexts">Next Post</span>', 'Perspective' ) ); ?>
</nav><!-- #nav-single -->
<?php if($portfolio_social_sharing == "on"){ ?>
<a class="uppercase share_link colrhover"><?php if($cs_theme_option['trans_switcher']== "on"){ echo _e('Share Post','Perspective');}else{ echo $cs_theme_option['trans_share_this_post']; } ?></a>
<!-- Social Network Start -->
<?php cs_social_share(); ?>
<!-- Social Network End -->
<?php } ?>
</div>
<!-- Share Post End -->
</div>
</div>
<!-- Related Posts Starts -->
<?php
if ($portfolio_related== "on") {
cs_enqueue_jcarousel_style_script();
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#mycarousel').jcarousel({
easing: 'easeOutCubic',
animation: 1000
});
});
</script>
<?php
$custom_taxterms='';
$custom_taxterms = wp_get_object_terms( $post->ID, array('portfolio-category','portfolio-tag'), array('fields' => 'ids') );
// arguments
$args = array(
'post_type' => 'portfolio',
'post_status' => 'publish',
'posts_per_page' => -1, // you may edit this number
'orderby' => 'DESC',
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'portfolio-tag',
'field' => 'id',
'terms' => $custom_taxterms
),
array(
'taxonomy' => 'portfolio-category',
'field' => 'id',
'terms' => $custom_taxterms
)
),
'post__not_in' => array ($post->ID),
);
$custom_query = new WP_Query($args);
$count = 0;
$count = $custom_query->post_count;
if ($count) {
?>
<div class="span12">
<div class="wrapper-slider">
<header class="heading">
<h2 class="heading-color section-title cs-heading-color"><?php echo $xmlObject->inside_portfolio_related_post_title; ?></h2>
</header>
<div class="portfolio jcarousel-skin-tango">
<ul id="mycarousel">
<?php
while ($custom_query->have_posts()) : $custom_query->the_post();
$post_xml = get_post_meta($post->ID, "portfolio", true);
if ( $post_xml <> "" ) {
$xmlObject = new SimpleXMLElement($post_xml);
$post_view = $xmlObject->portfolio_thumb_view;
$post_video = $xmlObject->portfolio_thumb_video;
$post_audio = $xmlObject->portfolio_thumb_audio;
$post_slider = $xmlObject->portfolio_thumb_slider;
$post_slider_type = $xmlObject->portfolio_thumb_slider_type;
$width = 585;
$height = 440;
}
else {
$post_view = '';
$post_video = '';
$post_audio = '';
$post_slider = '';
$post_slider_type = '';
$post_gallery = '';
}
$image_url = cs_get_post_img_src($post->ID,585,440);
?>
<li>
<!-- Article Start -->
<article class="<?php if($image_url == ''){ echo "no-img"; }?>">
<figure class="<?php if($post_view == "Audio"){ echo "audio";}?>">
<?php
if ( $post_view == "Slider" and $post_slider_type == "Flex Slider" ){
cs_flex_slider($width, $height,$post_slider);
}elseif ( $post_view == "Slider" and $post_slider_type == "Nivo Slider" ){
cs_nivo_slider($width, $height,$post_slider);
}elseif($post_view == "Single Image"){
echo '<a href="'.get_permalink().'"><img src="'.$image_url.'" alt="" ></a>
<span class="shadow"></span>
<figcaption class="bordercolr webkit">
<div class="portfolio-effect">
<a href="'.get_permalink().'" class="icon-style"><i class="icon-link"></i></a>
<div class="hover-text">
<p>';
$before_cat = '';
$categories_list = get_the_term_list ( get_the_id(), 'portfolio-category', $before_cat, ' ', '' );
if ( $categories_list ){ printf( __( '%1$s', 'Perspective' ),$categories_list ); }
echo '</p>
</div>
</div>
</figcaption>
';
}elseif($post_view == "Video" and $post_video <> ''){
$url = parse_url($post_video);
if($url['host'] == $_SERVER["SERVER_NAME"]){?>
<video width="278" class="mejs-wmp" height="203" src="<?php echo $post_video ?>" id="player1" poster="<?php echo $image_url; ?>" controls="controls" preload="none"></video>
<?php
}else{
$width = 585;
$height = 205;
echo wp_oembed_get($post_video,array('width'=>$width,'height' => $height));
}
}elseif($post_view == "Audio" ){
?>
<audio style="width:100%;" src="<?php echo $post_audio; ?>" controls="controls"></audio>
<?php
}
?>
</figure>
<!-- Text Start -->
<div class="text">
<h6><a href="<?php the_permalink();?>"><?php echo substr(get_the_title(),0,30); if(strlen(get_the_title()) > 30 ) echo '...'; ?></a></h6>
<span class="cuting_border"></span>
<span class="border_arrow"></span>
</div>
<!-- Text End -->
</article>
<!-- Article End -->
</li>
<?php
endwhile;
wp_reset_query();
?>
</ul></div>
<?php } ?>
<!-- About Author Start -->
<?php
if (get_the_author_meta('description')){ ?>
<div class="about-author">
<header class="heading"><h2 class="heading-color section-title cs-heading-color"><?php _e('About', 'Perspective');?> <?php _e('Author', 'Perspective');?></h2></header>
<!-- Thumbnail List Start -->
<div class="thumb">
<!-- Thumbnail List Item Start -->
<figure>
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php echo get_avatar(get_the_author_meta('user_email'), apply_filters('PixFill_author_bio_avatar_size', 63)); ?></a>
</figure>
</div>
<div class="text">
<h5 class="colrhover"><a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" class="color"> <?php echo get_the_author(); ?></a></h5>
<p class="line"><?php the_author_meta('description'); ?></p>
<a href="http://twitter.com/<?php the_author_meta('twitter'); ?>" target="_blank" class="colr tweet_follow"><i class="icon-twitter colr icon-2"></i>
<?php if($cs_theme_option['trans_switcher']== "on"){ echo _e('Follow Us on Twitter','Perspective');}else{ echo $cs_theme_option['trans_follow_twitter'];} ?></a>
</div>
</div>
<!-- About Author End -->
<?php } ?>
<?php comments_template('', true); ?>
<!-- Detail Post End -->
</div>
</div>
<?php }?>
<!-- Related Posts End -->
<?php endwhile; endif;?>
<!-- Span9 End -->
<?php get_footer(); ?>