Server IP : 149.255.58.128 / Your IP : 216.73.216.152
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /home/wheelch2/public_html/wp-content/themes/building-lite//front-page.php
<?php
/**
*
* @package Building Lite
*/
get_header();
if (!is_home() && is_front_page()) {
$hideslide = get_theme_mod('hide_slider', '1');
if($hideslide == ''){
$pages = array();
for($sld=7; $sld<10; $sld++) {
$mod = absint( get_theme_mod('page-setting'.$sld));
if ( 'page-none-selected' != $mod ) {
$pages[] = $mod;
}
}
if( !empty($pages) ) :
$args = array(
'posts_per_page' => 3,
'post_type' => 'page',
'post__in' => $pages,
'orderby' => 'post__in'
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) :
$sld = 7;
?>
<section id="home_slider">
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<?php
$i = 0;
while ( $query->have_posts() ) : $query->the_post();
$i++;
$building_lite_slideno[] = $i;
$building_lite_slidetitle[] = get_the_title();
$building_lite_slidedesc[] = get_the_excerpt();
$building_lite_slidelink[] = esc_url(get_permalink());
?>
<img src="<?php the_post_thumbnail_url('full'); ?>" title="#slidecaption<?php echo esc_attr( $i ); ?>" />
<?php
$sld++;
endwhile;
?>
</div>
<?php
$k = 0;
foreach( $building_lite_slideno as $building_lite_sln ){ ?>
<div id="slidecaption<?php echo esc_attr( $building_lite_sln ); ?>" class="nivo-html-caption">
<div class="top-bar">
<h2><a href="<?php echo esc_url($building_lite_slidelink[$k] ); ?>"><?php echo esc_html($building_lite_slidetitle[$k] ); ?></a></h2>
<p><?php echo esc_html($building_lite_slidedesc[$k] ); ?></p>
<div class="clear"></div>
<a class="slide-button" href="<?php echo esc_url($building_lite_slidelink[$k] ); ?>">
<?php echo esc_html(get_theme_mod('slide_text',__('Read More','building-lite')));?>
</a>
</div>
</div>
<?php $k++;
wp_reset_postdata();
} ?>
<?php endif; endif; ?>
</div>
<div class="clear"></div>
</section>
<?php } }
?>
<div class="main-container">
<?php $hidebox = get_theme_mod('hide_section', '1'); ?>
<?php if($hidebox == '') { ?>
<?php if(get_theme_mod('page-setting1',true) != '' && get_theme_mod('page-setting2',true) != '' && get_theme_mod('page-setting3',true) != '') { ?>
<section id="pagearea">
<div class="container">
<div class="pagearea-inner">
<?php for($f=1; $f<4; $f++) { ?>
<?php if(get_theme_mod('page-setting'.$f) != '') { ?>
<?php $page_query = new WP_Query(array('page_id' => get_theme_mod('page-setting'.$f))); ?>
<?php while( $page_query->have_posts() ) : $page_query->the_post(); ?>
<div class="fourbox three_column">
<div class="thumbbx"><?php if(has_post_thumbnail()) { ?><?php the_post_thumbnail(); ?><?php } ?></div>
<div class="fourbxcontent">
<a href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a>
<p><?php the_excerpt(); ?></p>
</div>
</div>
<?php endwhile; ?>
<?php } } ?>
<div class="clear"></div>
</div><!-- .pagearea-inner -->
</div><!-- container-->
</section>
<?php } }?>
<div class="content-area">
<div class="middle-align content_sidebar">
<div class="site-main" id="sitemain">
<?php
if ( have_posts() ) :
// Start the Loop.
while ( have_posts() ) : the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content-page', get_post_format() );
endwhile;
// Previous/next post navigation.
the_posts_pagination();
wp_reset_postdata();
else :
// If no content, include the "No posts found" template.
get_template_part( 'no-results' );
endif;
?>
</div>
<?php get_sidebar();?>
<div class="clear"></div>
</div>
</div>
<?php get_footer(); ?>
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | March 05 2024 12:06:44 | 1032 / wheelch2 | 0755 | |
css | -- | May 29 2023 22:41:18 | 1032 / wheelch2 | 0755 | |
customize-pro | -- | May 29 2023 22:41:18 | 1032 / wheelch2 | 0755 | |
images | -- | May 29 2023 22:41:18 | 1032 / wheelch2 | 0755 | |
inc | -- | May 29 2023 22:41:18 | 1032 / wheelch2 | 0755 | |
js | -- | May 29 2023 22:41:18 | 1032 / wheelch2 | 0755 | |
languages | -- | May 29 2023 22:41:18 | 1032 / wheelch2 | 0755 | |
| | | | | |
404.php | 0.856 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
archive.php | 1.131 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
change_log.txt | 0.184 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
comments.php | 3.236 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
content-page.php | 0.726 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
content-single.php | 1.54 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
content.php | 2.059 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
editor-style.css | 0.136 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
footer.php | 1.102 KB | June 03 2023 19:06:12 | 1032 / wheelch2 | 0644 | |
front-page.php | 4.672 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
full-width.php | 0.908 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
functions.php | 5.366 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
header.php | 4.199 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
image.php | 3.791 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
index.php | 1.567 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
license.txt | 34.323 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
no-results.php | 0.99 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
page.php | 1.011 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
readme.txt | 3.346 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
screenshot.png | 381.935 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
search.php | 1.05 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
searchform.php | 0.559 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
sidebar.php | 0.826 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
single.php | 0.858 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
style.css | 16.915 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |