403Webshell
Server IP : 39.106.62.82  /  Your IP : 216.73.216.240
Web Server : nginx/1.14.1
System : Linux iz2ze1m0zmp2dk5c3j5ap5z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /webdata/gohomesh.com/wp-content/themes/gongheng/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /webdata/gohomesh.com/wp-content/themes/gongheng/taxonomy-news-cat.php
<?php get_header() ?>

<!--主体-->
            <div class="content">
                
                <!--s-banner-->
                <div class="s-banner">
                    <img src="/style/img/banner-news.jpg" />
                    <div class="text" aos="fade-in">
                        <h3>公恒动态</h3>
                        <p>NEWS</p>
                    </div>
                    <div class="mbx mbx02" aos="fade-in">
                        <div class="left">
                            <a href="/" class="fa fa-home"></a>
                            <i></i>
                            <a href="###">公恒动态</a>
                            <span class="fa fa-angle-right" aria-hidden="true"></span>
                            <a href="###"></a>
                        </div>
                    </div>
                </div>
                
                <!--news-->
                <div class="newswarp">
                <div class="news01">
                    <div class="top">
                    	<?php 
                    		$terms = get_terms('news-cat'); 
                    		$uri = explode('/', $_SERVER['REQUEST_URI']);
                    	?>
                    	<?php foreach($terms as $term): ?>
                        <a href="<?php echo get_term_link($term); ?>" class="<?php if(in_array($term->slug, $uri)){echo 'activ';} ?>"><?php echo $term->name; ?></a>
						<?php endforeach; ?>
                    </div>
                    <div class="min clearfix">
                       <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
                        <a target="<?php if(get_field('link')){echo '_blank';}?>" href="<?php if(get_field('link')){the_field('link');}else{the_permalink();} ?>">
                            <div class="imgbox clearfix">
                                <p><img src="<?php the_field('img') ?>" /></p>
                            </div>
                            <div class="text">
                                <h3><?php the_title() ?></h3>
                                <?php  
                                	$cat = wp_get_post_terms(get_the_ID(),'news-cat');
                                ?>
                                <div class="data"><span><?php echo $cat[0]->name; ?></span><i></i><font><?php the_time('Y.m.d') ?></font></div>
                                <h4><?php echo free_strimwidth(replace_text_wps(get_field('desc')),20); ?></h4>
                                <h5 class="more">探索更多</h5>
                            </div>
                        </a>
						<?php endwhile;endif; ?>

                    </div>
                    
                    <div class="fy" aos="fade-up">
                    	<?php the_posts_pagination( array(
						'mid_size' => 3,
						'prev_text' =>'上一页',
						'next_text' =>'下一页',
						) ); ?>
                        <!-- <a href="###" class="active">1</a>
                        <a href="###">2</a>
                        <a href="###">2</a>
                        <a href="###">下一页</a> -->
                    </div>
                    
                </div>
                
                </div>
    </div>

  <?php get_footer() ?>  

Youez - 2016 - github.com/yon3zu
LinuXploit