文件操作 - footer.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/ltlcompare.com/wp-content/themes/ltl-compare/footer.php
编辑文件内容
<?php $logo_white = carbon_get_theme_option( 'logo_white' ); $copyright = carbon_get_theme_option( 'copyright' ); $footer_app_desc = carbon_get_theme_option( 'footer_app_desc' ); $footer_apps = carbon_get_theme_option( 'footer_apps' ); $footer_awards = carbon_get_theme_option( 'footer_awards' ); $footer_info = carbon_get_theme_option( 'footer_info' ); ?> <footer class="footer"> <div class="container"> <div class="footer-main"> <?php if ( $logo_white ) : ?> <div class="footer-logo-wrapp"> <div class="footer-logo"> <img src="<?php echo image_downsize( $logo_white, 'full' )[0]; ?>" alt="<?php echo get_post_meta( $logo_white, '_wp_attachment_image_alt', true ); ?>" > </div> </div> <?php endif; ?> <?php if ( has_nav_menu( 'footer' ) || has_nav_menu( 'social' ) ) : ?> <nav class="footer-nav"> <?php if ( has_nav_menu( 'footer' ) ) : ?> <div class="footer-nav-section"> <div class="footer-nav-title"><?php _e( 'Navigation', DOMAIN ); ?></div> <?php wp_nav_menu( array( 'theme_location' => 'footer', 'container' => false, 'menu_class' => 'footer-menu', ) ); ?> </div> <?php endif; ?> <?php if ( has_nav_menu( 'social' ) ) : ?> <div class="footer-nav-section"> <div class="footer-nav-title"><?php _e( 'Navigation', DOMAIN ); ?></div> <?php wp_nav_menu( array( 'theme_location' => 'social', 'container' => false, 'menu_class' => 'footer-menu', ) ); ?> </div> <?php endif; ?> </nav> <?php endif; ?> <div class="footer-awards"> <button class="to-top"> <svg class="icon"><use xlink:href="#icon-to-top"/></svg> </button> <?php if ( $footer_awards ) : ?> <div class="footer-award"> <?php foreach ( $footer_awards as $item ) : ?> <img src="<?php echo image_downsize( $item, 'full' )[0]; ?>" alt="<?php echo get_post_meta( $item, '_wp_attachment_image_alt', true ); ?>" > <?php endforeach; ?> </div> <?php endif; ?> </div> </div> <div class="footer-content"> <div class="footer-app"> <?php if ( $footer_app_desc ) : ?> <div class="footer-app-desc"> <?php echo $footer_app_desc; ?> </div> <?php endif; ?> <?php if ( $footer_apps ) : ?> <div class="footer-app-links"> <?php foreach ( $footer_apps as $item ) : ?> <a href="<?php echo $item['link'] ?>" aria-label="<?php echo $item['name'] ?>" target="_blank"> <img src="<?php echo image_downsize( $item['image'], 'full' )[0]; ?>" alt="<?php echo get_post_meta( $item['image'], '_wp_attachment_image_alt', true ); ?>" > </a> <?php endforeach; ?> </div> <?php endif; ?> </div> <?php if ( $footer_info ) : ?> <div class="footer-content-text"> <?php echo apply_filters( 'hte_content', $footer_info ); ?> </div> <?php endif; ?> </div> <?php if ( $copyright || has_nav_menu( 'terms' ) ) : ?> <div class="foot"> <?php if ( $copyright ) : ?> <div class="copyright"> <?php echo str_replace( '{Y}', date( 'Y' ), $copyright ); ?> </div> <?php endif; ?> <?php if ( has_nav_menu( 'terms' ) ) : ?> <nav class="foot-nav"> <?php wp_nav_menu( array( 'theme_location' => 'terms', 'container' => false, 'menu_class' => 'terms-menu', ) ); ?> </nav> <?php endif; ?> </div> <?php endif; ?> </div> </footer> <div class="ajax-nonce-fields"> <?php wp_nonce_field( 'ajax', 'ajax_nonce_field' ); ?> </div> <?php wp_footer(); ?> </body> </html>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件