403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/d2m/sofident_cz/wp-content/themes/sofident/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/d2m/sofident_cz/wp-content/themes/sofident/single-service.php
<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package Sofident
 */
get_header();

$terms = get_the_terms($post->ID, 'department');
foreach ($terms as $term) {
    $termID[] = $term->term_id;
    $termName[] = $term->name;
}
$dep_id = $termID[0];
$dep_name = $termName[0];
$current_post = get_the_ID();
?>
<div id="primary" class="content-area container">
    <main id="main" class="site-main row single-service" role="main">
        <div class="col-xs-12 col-sm-8 wow fadeIn">
            <?php
            while (have_posts()) : the_post();

                the_content();

            endwhile; // End of the loop.
            ?>
        </div>
        <aside id="secondary" class="widget-area col-xs-12 col-sm-4" role="complementary">
            <section id="pricelist" class="widget">
                <h2 class="widget-title"><?php the_title(); ?><?php _e(' cenik', 'sofident'); ?> </h2>
                <?php include( 'template-parts/box-price.php' ); ?>
            </section>

            <section id="call-use" class="widget">
                <h3 class="wow fadeInDown"><?php _e('Objednat se', 'sofident'); ?> </h3>
                <strong id="phone-number" class="wow fadeInUp">+420 777 134 305</strong>
            </section>

            <?php
            $args = array(
                'posts_per_page' => 1,
                'post_type' => 'offers',
                'tax_query' => array(
                    array(
                        'taxonomy' => 'department',
                        'field' => 'id',
                        'terms' => $dep_id
                    )
                )
            );
            $posts = get_posts($args);
            foreach ($posts as $post) : setup_postdata($post);
                ?>
                <section id="widget-offer" class="widget">
                    <div style="background: url('<?php the_post_thumbnail_url(); ?>') center left 60px no-repeat">
                        <h2 class="wow fadeInDown"><?php the_title(); ?></h2>
                        <a class="btn btn-orange wow fadeInUp" href="<?php the_field('offer_link'); ?>"><?php _e('Objednat', 'sofident'); ?></a>
                    </div>
                </section>
                <?php
            endforeach;
            wp_reset_postdata();
            ?>

            <section id="related-posts" class="widget">
                <?php
                ?>
                <h2 class="widget-title"><?php echo $dep_name; ?></h2>
                <ul class="no-list">
                    <?php
                    $args2 = array(
                        'posts_per_page' => 5,
                        'post_type' => 'service',
                        'exclude' => $current_post,
                        'tax_query' => array(
                            array(
                                'taxonomy' => 'department',
                                'field' => 'id',
                                'terms' => $dep_id
                            )
                        )
                    );
                    $posts2 = get_posts($args2);
                    foreach ($posts2 as $post) :
                        ?>
                        <li><a href="<?php the_permalink(); ?>">
                                <h4><i class="with-sprite icn-tick"></i><?php the_title(); ?></h4>
                                <p><?php echo wp_trim_words($post->post_content, 10, '...'); ?></p></a>
                        </li>
                        <?php
                    endforeach;
                    wp_reset_postdata();
                    ?>
                </ul>
                <?php ?>
            </section>
            <?php get_sidebar(); ?>
        </aside>
    </main><!-- #main -->
</div><!-- #primary -->

<?php
$contact_type = 'service';
include('template-parts/request-cover.php');

get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit